Skip to contentSkip to conversation

I will be crazy, Please HELP

U-Boot-Users Zhao Hongda 2 participants 2 messages Apr 9, 2003

lore
Share & tools
lore
#1 lore raw
In reply to Zhao Hongda
Quoted 12 lines · In message <01a401c2febe$6f3809a0$fe02a8c0@esd11> you wrote:

after two days, I still cannot boot a kernel from u-boot, 1.first I build my linux kernel by:
make lubbock
make oldconfig
make dep
make zImage
2.then I follow the README file to product uImage,
arm-linux-objcopy -O binary -R .note -R .comment -S vmlinux linux.bin gzip -9 linux.bin
mkimage -A arm -O linux -T kernel -C gzip -a 0xa0008000 -e 0xa0008000 -n
"Linux Kernel Image" -d linux.bin.gz uImage
3.then I use u-boot to load it:

Quoted 8 lines
    =>loadb 0xa0008000
    =>bootm 0xa0008000
    ## Booting image at a0008000 ...
    Image Name:   Linux Kernel Image
    Image Type:   ARM Linux Kernel Image (gzip compressed)
    Data Size:    791662 Bytes = 773.1 kB
    Load Address: a0008000
    Entry Point:  a0008000

This is wrong. Load the image to RAM at a _different_ address. You overwrite your own code.

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Pray to God, but keep rowing to shore. - Russian Proverb
#0 lore raw

after two days, I still cannot boot a kernel from u-boot, 1.first I build my linux kernel by:
make lubbock
make oldconfig
make dep
make zImage
2.then I follow the README file to product uImage,
arm-linux-objcopy -O binary -R .note -R .comment -S vmlinux linux.bin gzip -9 linux.bin
mkimage -A arm -O linux -T kernel -C gzip -a 0xa0008000 -e 0xa0008000 -n
"Linux Kernel Image" -d linux.bin.gz uImage
3.then I use u-boot to load it:

    =>loadb 0xa0008000
    =>bootm 0xa0008000
    ## Booting image at a0008000 ...
    Image Name:   Linux Kernel Image
    Image Type:   ARM Linux Kernel Image (gzip compressed)
    Data Size:    791662 Bytes = 773.1 kB
    Load Address: a0008000
    Entry Point:  a0008000
    Verifying Checksum ... OK
    Uncompressing Kernel Image ...

    U-Boot 0.2.3 (Apr  8 2003 - 19:02:38)
    <then U-boot is self-restart seval times>

who can give me a detail sample to product a usable uImage file, and howto load/run it.
Thanks very much, I am almost crazy now.
Hongda Zhao