[U-Boot] [PATCH RFC] mcf5307 support

Hi all,
i would like to contribute and to commit mcf5307 support.
I created all the following files:
arch/m68k/cpu/config.mk arch/m68k/cpu/cpu.c arch/m68k/cpu/cpu.h arch/m68k/cpu/cpu_init.c arch/m68k/cpu/interrupts.c arch/m68k/cpu/Makefile arch/m68k/cpu/speed.c arch/m68k/cpu/start.S arch/m68k/include/asm/immap_5307.h arch/m68k/include/asm/5307.h
and did some little changes in :
arch/m68k/include/asm/cache.h arch/m68k/include/asm/immap.h arch/m68k/include/asm/timer.h include/common.h
I read u-boot site patch section. Actually my git tree is about a month old.
Unfortunately i don't have much experience with git, and looking for some help: seems i cannot "git pull" anymore, i am getting an error:
xu@angel7:~/u-boot.git$ git pull error: Unable to find dbf545f2d11cd3118c6c8b54122adfbe799ea1b8 under http://git.denx.de/u-boot.git Cannot obtain needed blob dbf545f2d11cd3118c6c8b54122adfbe799ea1b8 while processing commit e6a857da746d5d7d450e59c0f86664c6b279b1c2. error: Fetch failed. xu@angel7:~/u-boot.git$
Is there a way to generate the patch comparing my local tree with a new "git clone" u-boot folder ? Or otherwise, since i cannot "pull", what would be the correct procedure for the patch now ?
Many Thanks angelo dureghello

Dear angelo,
In message 4E371771.8000902@gmail.com you wrote:
seems i cannot "git pull" anymore, i am getting an error:
xu@angel7:~/u-boot.git$ git pull error: Unable to find dbf545f2d11cd3118c6c8b54122adfbe799ea1b8 under http://git.denx.de/u-boot.git Cannot obtain needed blob dbf545f2d11cd3118c6c8b54122adfbe799ea1b8 while processing commit e6a857da746d5d7d450e59c0f86664c6b279b1c2. error: Fetch failed. xu@angel7:~/u-boot.git$
You should try unsing git protocol instead of HTTP. Also, make sure to use a recent version of git.
Is there a way to generate the patch comparing my local tree with a new "git clone" u-boot folder ?
You can export your patches using "git format-patch" and then re-apply these to a (branch in) a fresh clone of the master repo.
Or otherwise, since i cannot "pull", what would be the correct procedure for the patch now ?
In the first step, fix this pull problem.
Best regards,
Wolfgang Denk

Hi Wolfgang,
thanks for the help,
I changed url using git, but i still have an issue:
angelo@angel7:~/sysam/amcore/u-boot.git$ git checkout master M Makefile A arch/m68k/cpu/mcf530x/Makefile A arch/m68k/cpu/mcf530x/config.mk A arch/m68k/cpu/mcf530x/cpu.c A arch/m68k/cpu/mcf530x/cpu.h A arch/m68k/cpu/mcf530x/cpu_init.c A arch/m68k/cpu/mcf530x/interrupts.c A arch/m68k/cpu/mcf530x/speed.c A arch/m68k/cpu/mcf530x/start.S M arch/m68k/include/asm/cache.h M arch/m68k/include/asm/immap.h M arch/m68k/include/asm/timer.h M boards.cfg M include/common.h M include/flash.h Already on 'master' Your branch is behind 'origin/master' by 331 commits, and can be fast-forwarded. angelo@angel7:~/sysam/amcore/u-boot.git$ git pull git://git.denx.de/u-boot.git master From git://git.denx.de/u-boot * branch master -> FETCH_HEAD Updating 6f4dd40..33a6b9e error: Your local changes to 'Makefile' would be overwritten by merge. Aborting. Please, commit your changes or stash them before you can merge. angelo@angel7:~/sysam/amcore/u-boot.git$
I don't understand why the Makefile cannot be merged, i just added 2 lines with the target for my custom board.
Thanks angelo
On 01/08/2011 23:36, Wolfgang Denk wrote:
Dear angelo,
In message4E371771.8000902@gmail.com you wrote:
seems i cannot "git pull" anymore, i am getting an error:
xu@angel7:~/u-boot.git$ git pull error: Unable to find dbf545f2d11cd3118c6c8b54122adfbe799ea1b8 under http://git.denx.de/u-boot.git Cannot obtain needed blob dbf545f2d11cd3118c6c8b54122adfbe799ea1b8 while processing commit e6a857da746d5d7d450e59c0f86664c6b279b1c2. error: Fetch failed. xu@angel7:~/u-boot.git$
You should try unsing git protocol instead of HTTP. Also, make sure to use a recent version of git.
Is there a way to generate the patch comparing my local tree with a new "git clone" u-boot folder ?
You can export your patches using "git format-patch" and then re-apply these to a (branch in) a fresh clone of the master repo.
Or otherwise, since i cannot "pull", what would be the correct procedure for the patch now ?
In the first step, fix this pull problem.
Best regards,
Wolfgang Denk

Dear angelo,
In message 4E37B3E7.60108@gmail.com you wrote:
angelo@angel7:~/sysam/amcore/u-boot.git$ git checkout master M Makefile A arch/m68k/cpu/mcf530x/Makefile A arch/m68k/cpu/mcf530x/config.mk A arch/m68k/cpu/mcf530x/cpu.c A arch/m68k/cpu/mcf530x/cpu.h A arch/m68k/cpu/mcf530x/cpu_init.c A arch/m68k/cpu/mcf530x/interrupts.c A arch/m68k/cpu/mcf530x/speed.c A arch/m68k/cpu/mcf530x/start.S M arch/m68k/include/asm/cache.h M arch/m68k/include/asm/immap.h M arch/m68k/include/asm/timer.h M boards.cfg M include/common.h M include/flash.h
So you have modified files in your tree...
I don't understand why the Makefile cannot be merged, i just added 2 lines with the target for my custom board.
It could probably be merged, if you had used a "git merge" command. You did not, you used "git checkout", which performs a checkout of a specific version in the git repository.
Best regards,
Wolfgang Denk
participants (2)
-
angelo
-
Wolfgang Denk