[U-Boot-Users] bootm shows Kernel info but reset

Hello,
i have a problem starting Linux from U-Boot. I compile my Linux-Kernel with the make uImage command and copy it to my tftpboot directory.
With U-Boot i can load the image through tftp and the bootm command shows the correct information. But after a while, around half second, it restarts U-Boot again.
Do you have any hint for that problem?
Best Regards, Ingo
---
# t 100000 uImage Using FEC ETHERNET device TFTP from server 172.16.102.78; our IP address is 172.16.102.79 Filename 'uImage'. Load address: 0x100000 Loading: ################################################################# ################################################################# ### done Bytes transferred = 679637 (a5ed5 hex) # bootm 100000 ## Booting image at 00100000 ... Image Name: Linux-2.4.25 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 679573 Bytes = 663.6 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK
U-Boot 1.2.0 (Jun 14 2007 - 11:03:06) BCS_EPDEV_P01-00
CPU: MPC885ZPnn at 100 MHz [40.0...133.0 MHz] 8 kB I-Cache 8 kB D-Cache FEC present Board: EP88xC 1.1 CPLD revision 2 Watchdog enabled DRAM: 64 MB FLASH: 32 MB In: serial Out: serial Err: serial Net: FEC ETHERNET, FEC2 ETHERNET #

First, try to uncomment DEBUG in cmd_bootm.c - you may see useful output. Second, see how your serial connection is initialized - why there is no any output on console? What is command line u-boot provides for the kernel?
Leonid.
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Ingo Swieter Sent: Thursday, June 14, 2007 4:22 AM To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] bootm shows Kernel info but reset
Hello,
i have a problem starting Linux from U-Boot. I compile my Linux-Kernel with the make uImage command and copy it to my tftpboot directory.
With U-Boot i can load the image through tftp and the bootm command shows the correct information. But after a while, around half second, it restarts U-Boot again.
Do you have any hint for that problem?
Best Regards, Ingo
---
# t 100000 uImage Using FEC ETHERNET device TFTP from server 172.16.102.78; our IP address is 172.16.102.79 Filename 'uImage'. Load address: 0x100000 Loading: ################################################################# ################################################################# ### done Bytes transferred = 679637 (a5ed5 hex) # bootm 100000 ## Booting image at 00100000 ... Image Name: Linux-2.4.25 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 679573 Bytes = 663.6 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK
U-Boot 1.2.0 (Jun 14 2007 - 11:03:06) BCS_EPDEV_P01-00
CPU: MPC885ZPnn at 100 MHz [40.0...133.0 MHz] 8 kB I-Cache 8 kB D-Cache FEC present Board: EP88xC 1.1 CPLD revision 2 Watchdog enabled DRAM: 64 MB FLASH: 32 MB In: serial Out: serial Err: serial Net: FEC ETHERNET, FEC2 ETHERNET #

Hi Leonid,
i uncommented DEBUG but that doesn't show to much information yet: ## cmdline at 0x007FFF00 ... 0x007FFF85
so i had a look at that address: # md 7fff00 .. console=ttyS0,11 .. 5200 console=tty .. S0 root=/dev/nfs .. ip=172.16.102.7 .. 9:::255.255.255. .. 0::eth0 nfsroot= .. 172.16.102.78:/e .. pdev/tools/ppc_8 .. xx rw.L;.2D..&.3
which show exactly the expected information, the command line for the kernel.
/Ingo
Leonid schrieb:
First, try to uncomment DEBUG in cmd_bootm.c - you may see useful output. Second, see how your serial connection is initialized - why there is no any output on console? What is command line u-boot provides for the kernel?
Leonid.

In message 467124D6.2080105@brunel.de you wrote:
i have a problem starting Linux from U-Boot.
...
With U-Boot i can load the image through tftp and the bootm command shows the correct information. But after a while, around half second, it restarts U-Boot again.
...
# bootm 100000
Tried reading the FAQ? Why not?
See http://www.denx.de/wiki/view/DULG/LinuxUncompressingError
Best regards,
Wolfgang Denk

Hi Wolfgang,
sorry for posting a HTML Mail.
I have read the FAQ but didn't find my problem solved there. The Link which you gave me do not solve my problem neither, because there is no problem with uncompressing Linux, i guess. As you can see here, my output looks like that:
# bootm fd000000 ## Booting image at fd000000 ... Image Name: Linux-2.4.25 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 677865 Bytes = 662 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## cmdline at 0x007FFF00 ... 0x007FFF85
I have tried both, booting from flash and ram with the same result. I also tried to load an zImage directly with the go command, but that gives me just junk on the serial console.
I am realy sure, that the linux image can start, because a zImage works with the old bootload 'planet core'.
But i have no clue what to check for differences in the registers, which can help me to find the problem.
Best regards, Ingo
Wolfgang Denk schrieb:
In message 467124D6.2080105@brunel.de you wrote:
i have a problem starting Linux from U-Boot.
...
With U-Boot i can load the image through tftp and the bootm command shows the correct information. But after a while, around half second, it restarts U-Boot again.
...
# bootm 100000
Tried reading the FAQ? Why not?
See http://www.denx.de/wiki/view/DULG/LinuxUncompressingError
Best regards,
Wolfgang Denk

Hi!
On 18 jun 2007, at 13:02, Ingo Swieter wrote:
I have tried both, booting from flash and ram with the same result. I also tried to load an zImage directly with the go command, but that gives me just junk on the serial console.
I am realy sure, that the linux image can start, because a zImage works with the old bootload 'planet core'.
But i have no clue what to check for differences in the registers, which can help me to find the problem.
There can be a number of reasons to why it doesn't start. If you have access to JTAG/BDM, try debugging the booting image with GDB and see what you can find.
/Thomas
participants (4)
-
Ingo Swieter
-
Leonid
-
Thomas Jansson
-
Wolfgang Denk