Problems booting a uImage on sequoia (PPC440EPx with fdt/powerpc)
Hi
I would like to run the DENX-v2.6.23.1 linux kernel (ARCH=powerpc) as a base to run some tests with xenomai. I had no problem to create a git branch and to run
git checkout -b sequoia-DENX-v2.6.23.1 DENX-v2.6.23.1
make ARCH=powerpc CROSS_COMPILE=ppc_4xx- O=../build sequoia_defconfig make ARCH=powerpc CROSS_COMPILE=ppc_4xx- O=../build uImage
As the resulting kernel could not be loaded with my 1.2.0 u-Boot I spent some time reading the linux/Documentation/powerpc/booting-without-of.txt,
http://www.denx.de/wiki/UBoot/UBootFdtInfo
http://www.denx.de/wiki/DULG/LinuxFDTBlob
Downloading the dtc and installing it was a snap. I used the arch/powerpc/boot/dts/sequoia.dts as contained DENX-v2.6.23.1 release.
I discovered in Stefan's Roese u-boot-ppc4xx his for-1.3.1 branch which contains some fdt patches (as of today).
I patched sequoia following the example of the kilauea board, enabled the debugging output in cpu/ppc4xx/fdt.c. The patch is attached.
Now I am stuck here:
Quoted 14 lines
Bytes transferred = 12288 (3000 hex)
## Booting image at 00200000 ...Image Name: Linux-2.6.23.1 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1461812 Bytes = 1.4 MBLoad Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Booting using the fdt at0x400000
Updating property '/cpus/PowerPC,440EPx at 0/timebase-frequency' = 1f 78 a4 08(528000008) Updating property '/cpus/PowerPC,440EPx at 0/clock-frequency' = 1f 78 a4 08(528000008) Updating property '/plb/clock-frequency' = 07 de 29 02(132000002) Updating property '/plb/opb/clock-frequency' = 03 ef 14
Quoted 8 lines
81(66000001) Updating property '/plb/opb/ebc/clock-frequency' = 03 ef 14 81(66000001) Updating /memory node to 0:268435456
Updating node UART0: clock-frequency=11059200
Updating node UART1: clock-frequency=11059200
Updating node UART2: clock-frequency=11059200
Updating node UART3: clock-frequency=11059200
Updating node EMAC0
Updating node EMAC1
I would appreciate if somebody could point out where I made a mistake and what the next hurdle to tackle is.
Thanks in advance.
Signature · 8 lines
Niklaus Giger -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Add-fdt-support-for-the-sequoia-board.patch Type: text/x-diff Size: 1990 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20071120/e3f75921/attachment.patch
Dear Niklaus,
Quoted 2 lines · in message <[email protected]> you wrote:
As the resulting kernel could not be loaded with my 1.2.0 u-Boot I spent some
Version 1.2.0 on Sequoia? Ummm. Please try 1.3.0 instead.
Quoted 2 lines
I discovered in Stefan's Roese u-boot-ppc4xx his for-1.3.1 branch which contains some fdt patches (as of today).
Right, but this is still somewhat experimental.
The recommended way do far is to boot an ARCH=powerpc kernel on the Sequoia by using the boot wrapper (i. e. use cuImage instead of uImage).
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It's certainly convenient the way the crime (or condition) of
stupidity carries with it its own punishment, automatically
admisistered without remorse, pity, or prejudice. :-)
-- Tom Christiansen in <[email protected]>Dear Wolfgang,
Quoted 9 lines · Wolfgang Denk
Dear Niklaus,
Quoted 3 lines · in message <[email protected]> you wrote:
As the resulting kernel could not be loaded with my 1.2.0 u-Boot I spent some
Version 1.2.0 on Sequoia? Ummm. Please try 1.3.0 instead.
Quoted 9 lines
Quoted 2 lines
I discovered in Stefan's Roese u-boot-ppc4xx his for-1.3.1 branch which contains some fdt patches (as of today).
Right, but this is still somewhat experimental.
The recommended way do far is to boot an ARCH=powerpc kernel on the Sequoia by using the boot wrapper (i. e. use cuImage instead of uImage).
Thanks a lot for your answer. I just had to figure out that zImage is the name of the generated image (e.g.
http://www.nabble.com/-PATCH--add-cuImage-comment-for-'make-help'-t4760921.html)
Now my kernel boots!
Thanks a lot for your prompt answer! (Now, I owe you a beer)
Signature · 1 line
Niklaus Giger