[PATCH 1/3] 8xx: Analogue & Micro Adder875 board support.
Bryan O'Donoghue
bodonoghue at codehermit.ie
Wed Jan 16 10:25:02 EST 2008
Greetings Scott.
I've tried both of the procedures you've outlined on the Adder875 with
the patches supplied against the paulus git tree to no avail.
Pass #1 :
Doing it safe with cuImage.8xx
Build system : Debian lenny, ELDK 4.1 uClibc
Kernel : Linux-2.6.24-rc6-g4f43143f-dirty - about two days old
Bootloader : U-Boot 1.3.1-g5c740711-dirty (Jan 15 2008 - 21:50)
#define CONFIG_OF_LIBFDT 1
#undef CONFIG_OF_FLAT_TREE
- So that U-Boot will understand the three parameter bootm.
dtc : DTC 1.1.0-rc1
I do
1. source /opt/eldk/eldk_init ppc_8xx
2. export ARCH=powerpc
3. cd linux-2.6-paulus
4. git branch adder875-patchset master
5. git checkout adder875-patchset
6. cat ../adder875_patches/adder875.patch | patch -p1
The patch applies almost perfectly - except for a minor conflict in
arch/powerpc/boot/Makefile - where I add redboot-8xx.c right after
cuboot-rainer.c manually.
7. make distclean && mrproper && clean
8. make adder875-uboot_defconfig
9. make zImage
That runs just fine - and just to prove to you I haven't done anything
funny here the last few lines of output are
HOSTLD arch/powerpc/boot/dtc
WRAP arch/powerpc/boot/cuImage.8xx
DTC: dts->dtb on file
"/home/deckard/Development/linux/linux-2.6-paulus/arch/powerpc/boot/dts/adder875-uboot.dts"
Image Name: Linux-2.6.24-rc6-g4f43143f-dirty
Created: Tue Jan 15 23:02:52 2008
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1032266 Bytes = 1008.07 kB = 0.98 MB
Load Address: 0x00400000
Entry Point: 0x00400554
WRAP arch/powerpc/boot/zImage.redboot-8xx
DTC: dts->dtb on file
"/home/deckard/Development/linux/linux-2.6-paulus/arch/powerpc/boot/dts/adder875-uboot.dts"
cp arch/powerpc/boot/ucImage.8xx /tftpboot
The U-Boot output is :
=> tftpboot 0x400000 cuImage.8xx
Using FEC ETHERNET device
TFTP from server 192.168.0.101; our IP address is 192.168.0.202
Filename 'cuImage.8xx'.
Load address: 0x400000
Loading:
#################################################################
#################################################################
#################################################################
#######
done
Bytes transferred = 1032330 (fc08a hex)
=> bootm 0x400000
## Booting image at 00400000 ...
Image Name: Linux-2.6.24-rc6-g4f43143f-dirty
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1032266 Bytes = 1008.1 kB
Load Address: 00400000
Entry Point: 00400554
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
I haven't as yet tried to single step through the bootup process - but,
just to say that assuming the above procedure isn't _too_ far wrong -
the stuff posted to the list agains the tree you've recommended doesn't
seem to work..
If you can point out a flaw in my usage of it - that'd help alot. I have
some code I'd love to be able to use with the Adder875+powerpc layer -
which is why I'm interested in this patchset...
Pass #2 :
Replace step 9 with.
9. make uImage
10 dtc -o ../adder875-uboot.dtb -O dtb
arch/powerpc/boot/dts/adder875-uboot.dts
cp arch/powerpc/boot/uImage /tftpboot
cp ../adder875-uboot.dtb /tftpboot
Finally in u-boot
=> tftpboot 0x400000 uImage
Using FEC ETHERNET device
TFTP from server 192.168.0.101; our IP address is 192.168.0.202
Filename 'uImage'.
Load address: 0x400000
Loading:
#################################################################
#################################################################
#################################################################
###
done
Bytes transferred = 1009496 (f6758 hex)
=> tftpboot 0x500000 adder875-uboot.dtb
Using FEC ETHERNET device
TFTP from server 192.168.0.101; our IP address is 192.168.0.202
Filename 'adder875-uboot.dtb'.
Load address: 0x500000
Loading: #
done
Bytes transferred = 3147 (c4b hex)
=> bootm 0x400000 - 0x500000
## Booting image at 00400000 ...
Image Name: Linux-2.6.24-rc6-g4f43143f-dirty
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1009432 Bytes = 985.8 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Booting using the fdt at 0x500000
Aside from the u-boot modification of including
#define CONFIG_OF_LIBFDT 1
The rest is a pristine version of Yuli Barchoen's original U-Boot Adder
stuff.
The uImage + dtb seems to get a good bit further in that it seems to get
stuck somewhere inside of some trampoline code in time.c
(gdb) bt
#0 0xc000ee30 in __div64_32 ()
#1 0xc01d71f4 in time_init () at arch/powerpc/kernel/time.c:940
I might have a go at some proper debugging tomorrow after work.
If you have any suggestions as to what's going wrong or what I've not
done right I'd appreciate the help.
Best Regards,
BOD
More information about the Linuxppc-dev
mailing list