[U-Boot-Users] U-boot hangs while running a stand alone program

Hi All,
I am running U-boot on Cogent CSB535FS board using Txema's patch. I am able to do a serial tranfer the image using loadb. But U-boot hangs when I run the image. I created the image as below:
# mkimage -A arm -O u-boot -T standalone -C none -a 0xC0200000 -e 0xC0200004 -n "Hello World Program" -d hello_world.bin newhelloworld.bin
My process is as below:
=> loadb C0200000 ## Ready for binary (kermit) download to 0xC0200000 at 115200 bps...
---------------------------------------------------- (/home/midhun/ckermit/) C-Kermit>send /BINARY /home/midhun/uboot/u-boot/examples/newhelloworld.bin (/home/midhun/ckermit/) C-Kermit>connect Connecting to /dev/ttyS0, speed 115200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- ## Total Size = 0x00000248 = 584 Bytes ## Start Addr = 0xC0200000 => iminfo C0200000
## Checking Image at c0200000 ... Image Name: Hello World Program Image Type: ARM U-Boot Standalone Program (uncompressed) Data Size: 520 Bytes = 0.5 kB Load Address: c0200000 Entry Point: c0200004 Verifying Checksum ... OK => go C0200004 ## Startin
U-boot does not even print the whole line of "## Starting application at ... ". It just hangs after the above the line. What could be the problem?
Thanks & Regards, Midhun Agnihotram, Ahmedabad 382481. India. Mob: +91-9979509691

In message 4dde4acb0706082318g60ec4c25tae4404d390d4c8d8@mail.gmail.com you wrote:
I am running U-boot on Cogent CSB535FS board using Txema's patch. I am able to do a serial tranfer the image using loadb. But U-boot hangs when I run the image. I created the image as below:
# mkimage -A arm -O u-boot -T standalone -C none -a 0xC0200000 -e
^^^^^^^^^^
0xC0200004 -n "Hello World Program" -d hello_world.bin newhelloworld.bin
My process is as below:
=> loadb C0200000
^^^^^^^^
Download address must be different from image load address.
## Checking Image at c0200000 ... Image Name: Hello World Program Image Type: ARM U-Boot Standalone Program (uncompressed) Data Size: 520 Bytes = 0.5 kB Load Address: c0200000 Entry Point: c0200004 Verifying Checksum ... OK => go C0200004 ## Startin
And U-Boot images don't get started by "go", but with "bootm".
What you did here was jumping in the middle of the U-Boot image header. This cannot work.
U-boot does not even print the whole line of "## Starting application at ... ". It just hangs after the above the line. What could be the problem?
Maybe you should start reading some documentation?
Best regards,
Wolfgang Denk
participants (2)
-
Midhun Agnihotram
-
Wolfgang Denk