[U-Boot] Is it possible to load the uboot.bin file to RAM area instead FLASH?

Madhavi Manchala madhavi.linux at gmail.com
Mon Feb 14 08:04:04 CET 2011


On Sun, Feb 13, 2011 at 10:07 PM, Srinath Iyengar
<srinathiyengarr at gmail.com> wrote:
> Hi Madhavi ,
>
>
>
> Assuming through JTAG sdram has been initialized; try loading the "u-boot"
>  - the ELF file generated while you compiled u-boot not u-boot.bin.
>
> FYI , example of files generated when u-boot is compiled
>
> file u-boot*
>
> u-boot:      ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically
> linked, not stripped
>
> u-boot.bin:  data
>
> u-boot.lds:  ASCII assembler program text
>
> u-boot.map:  ASCII assembler program text
>
> u-boot.srec: Motorola S-Record; binary data in text format

Dear Srinath,

Thank you very much for your information.

I am able to load the "u-boot" (ELF format file as you said in your
email) file from .gdbinit script file through J-Link JTAG and
J-LinkGDBServer tools. I am able to see the following statements on
the GDB console screen.

Loading section .text, size 0x152b0 lma 0x33f80000
Loading section .rodata, size 0x5ec8 lma 0x33f952b0
Loading section .hash, size 0x38 lma 0x33f9b178
Loading section .data, size 0x684 lma 0x33f9b1b0
Loading section .got.plt, size 0xc lma 0x33f9b834
Loading section .u_boot_cmd, size 0x468 lma 0x33f9b840
Loading section .rel.dyn, size 0x3b88 lma 0x33f9bca8
Loading section .dynsym, size 0x90 lma 0x33f9f830
Start address 0x33f80000, load size 129216
Transfer rate: 387 KB/sec, 9229 bytes/write.
(test-gdb)

Actually, I want to load the "u-boot" file into SDRAM area and run
from the SD RAM only instead of FLASH area. Here, the RAM address
starts from 0x00000000 in our board. I tried to modify some of the
macros like PHYS_SDRAM_1 and its size. However, there is no luck. Even
I did not see any messages on the hyper terminal.

I am modifying the smdk2410.h file for our samsung board where it is a
based on S3C2510A MCU. I want to modify this config file as per our
board requirement.

Any ideas / hints would be greatly help me and appreciated.

Thanks in advance.
Madhavi M.

>
> With Regards
>
> Srinath
>
> On Sun, Feb 13, 2011 at 7:52 PM, Madhavi Manchala <madhavi.linux at gmail.com>
> wrote:
>>
>> On Sun, Feb 13, 2011 at 7:11 PM, Lei Wen <adrian.wenl at gmail.com> wrote:
>> > On Sun, Feb 13, 2011 at 9:30 PM, Madhavi Manchala
>> > <madhavi.linux at gmail.com> wrote:
>> >> On Fri, Feb 11, 2011 at 10:27 PM, Wolfgang Denk <wd at denx.de> wrote:
>> >>> Dear Lei Wen,
>> >>>
>> >>> In message
>> >>> <AANLkTin7zsxVqjKp1Htovf44mtfkNsJR2DF9bSBkTBFR at mail.gmail.com> you wrote:
>> >>>>
>> >>>> If your sdram is large enough, or the uboot code is small enough, you
>> >>>> don't need
>> >>>> the dram init. But begin at the TEXT_BASE still is a must.
>> >>>
>> >>> Hugh?  You _always_ must make sure the RAM has been initialized first.
>> >>>
>> >>> Best regards,
>> >>>
>> >>> Wolfgang Denk
>> >>
>> >> Dear Wolfgang Denk and Lei,
>> >>
>> >> Thanks for your information.
>> >>
>> >> I build one u-boot.bin file for smdk2410 configuration. However, when
>> >> I try to load through JTAG, I am seeing the following error.
>> >>
>> >> invalid download offset u-boot.bin
>> >>
>> >> Am I doing any thing wrong? I set RAM BASE address as 0x00000000 in
>> >> the confiuration file as our board RAM starts from there only. Shall I
>> >> need to modify any thing in the config file?
>> >>
>> > No idea...
>> > That info message should not be printed by your uboot.
>> > Maybe you should refer to someone expert for your jtag to solve this...
>> >
>> > Best regads,
>> > Lei
>>
>> Yes, Lei.
>>
>> I am using J-Link JTAG with J-LinkGDBServer for loading the u-boot.bin
>> file on to the board through a .gdbinit script file. One more thing,
>> when I looked into the config.h file, I found CONFIG_SYS_LOAD_ADDR
>> macro. What is the use of this macro? Is it u-boot load address? I
>> also changed this and tested. But, lo luck.
>>
>> Thanks for your information.
>>
>> Regards,
>> Madhavi M.
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>
>


More information about the U-Boot mailing list