[U-Boot] Run hello world with Uboot !
Mathieu Dube
mathieu at mobilefusioninc.com
Tue Oct 7 16:27:40 CEST 2008
Hi
I have the same problem with an imx3.1 dev board.
I do this:
uboot> tftp 0x80000000 /tftpboot/hello_world.bin
smc911x: initializing
smc911x: detected LAN9117 controller
smc911x: phy initialized
smc911x: MAC 00:08:ee:01:e1:3c
TFTP from server 192.168.1.70; our IP address is 192.168.1.71
Filename '/tftpboot/hello_world.bin'.
Load address: 0x80000000
Loading: #
done
Bytes transferred = 536 (218 hex)
then:
uboot> go 0x80000000
## Starting application at 0x80000000 ...
on my jtag it goes :
- TARGET: core #0 has entered debug mode
which I think means it crashed
here's the output of info on jtag:
Core number : 0
Core state : debug mode (ARM)
Debug entry cause : Vector Catch (DATA ABORT)
Current PC : 0x87f12724
Current CPSR : 0x600001d3 (Supervisor)
I've also tried to go 0x80000004 with the same result.
Im surely doing something wrong.
If someone could point out to me what I could be doing wrong I'd appreciate
thanks
-M
On Tue, Oct 7, 2008 at 1:30 AM, thaoth <thaoth at cybersoft-vn.com> wrote:
>
> Hi,
>
> I'm working on SH7727 T-Engine Board (MS7727CP02)(sh3) and I'm trying to
> load Hello World example in U-boot (use Serial, ymodem and
> hello_world.bin),
> ...
> => loady 0x8e000000
> ## Ready for binary (ymodem) download to 0x8E000000 at 115200 bps...
> CCCxyzModem - CRC mode, 2(SOH)/69(STX)/0(CAN) packets, 5 retries
> ## Total Size = 0x000112ec = 70380 Bytes
> => go 0x8e000000
> ## Starting application at 0x8E000000 ...
> ...
> but my board reset when I run Hello world. I also try with hello_world.srec
> (serial, Kermit mode) and an uboot image:
> "mkimage -A sh -O u-boot -T standalone -C none -a 0x8c000000 -e 0x8c000000
> -n 'Hello Image' -d examples/hello_world hello.img"
> ...
> => loady
> ## Ready for binary (ymodem) download to 0x8E000000 at 115200 bps...
> CCxyzModem - CRC mode, 2(SOH)/69(STX)/0(CAN) packets, 4 retries
> ## Total Size = 0x0001132c = 70444 Bytes
> => bootm 0x8e000000
> * kernel: cmdline image address = 0x8e000000
> ## Booting kernel from Legacy Image at 8e000000 ...
> Image Name: Hello Image
> Image Type: SuperH U-Boot Standalone Program (uncompressed)
> Data Size: 70380 Bytes = 68.7 kB
> Load Address: 8c000000
> Entry Point: 8c000000
> Verifying Checksum ... OK
> Wrong Image Type for bootm command
> ERROR: can't get kernel image!
> ...
> Could you give me an advice?
> I think i have wrong image format? But how can I get correct format ?
>
> Best regards.
> --
> View this message in context:
> http://www.nabble.com/Run-hello-world-with-Uboot-%21-tp19851315p19851315.html
> Sent from the Uboot - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
--
Mathieu Dube
Software Engineer
MobileFusion, Inc
2715 Sarah St
Pittsburgh PA, 15203
Main: 412.481.1111 Ext:140
Fax: 412.481.0220
Email: mathieu at mobilefusioninc.com
URL: www.mobilefusioninc.com
****************************************************************************
This communication (including any attachments) is for the use of the
intended recipient(s) only and may contain information that is confidential,
privileged or otherwise legally protected. Any unauthorized use or
dissemination of this communication is prohibited. If you have received this
communication in error, please immediately notify the sender by return
e-mail message and delete all copies of the original communication. Thank
you for your cooperation.
More information about the U-Boot
mailing list