[okl4-developer] about arm920t core
Carl van Schaik
carl at ok-labs.com
Mon Nov 12 11:18:03 EST 2007
Hi Quanlong,
It looks as if you are loading the image.bin file, which is not an ELF
file. Thus you should not use bootelf.
As Geoffrey pointed out, you should also be using the image.boot instead
of image.elf. If you want to load a binary, use arm-linux-objdump -O
binary image.boot image.bin
then in u-boot you need to run "go 0x30000000" instead.
If you load the image.boot file, then you can run bootelf, but you need
to ensure that the address you load the image.boot ELF file does not
overlap any addresses in the image, otherwise you will overwrite the ELF
file in memory when loading from it.
regards,
Carl
Geoffrey Lee wrote:
> On Sat, Nov 10, 2007 at 12:10:50AM +0900, QUANLONG wrote:
>
>> hello Everyone.
>>
>> I have a problem with porting my s3c2410 core,
>>
>> (1) I got the image.boot and image.elf with
>> ./tools/build.py machine=gta01 project=iguana wombat=true
>>
>
> Hi
>
>
>>
>> (2) and I got image.bin with
>> arm-linu-gcc -O objcopy image.elf image.bin
>> (3) I download image.bin to 0x30000000 using tftp(u-boot) and bootelf 0x30000000
>> but it appears
>> MBA2410 # bootelf 0x30000000
>> ## No elf image at address 0x30000000
>> MBA2410 #
>>
>
> image.elf should not normally be used for booting.
>
> Usually, to boot, either the image.boot should be used, or
> alternatively, if your bootloader does not support
> booting an ELF file for some reason you can use the image.bin converted
> from image.boot using objcopy(1) as you have done.
>
>
>> (4) I download image.bin to 0x30000000 using tftp(u-boot) and go 0x30000000
>> then it seems the my terimal dosn't work properly , but it is still alive
>> MBA2410 # go 0x30000000???{?wCCCCCGGGKGKKDHGHD{
>>
>
> Have you ensured that the serial settings are correct? (e.g. baud rate,
> stop bit, etc?)
>
> Also, is this on hardware or simulator? Have you made sure that
> the serial driver is hooked up to the right UART? The OpenMoko uses
> the s3c2410, but the board may be wired differently to the board you have.
>
>
>
> -gl
>
>>
>>
>> can you give me some advice???
>>
>> Best Regards.
>>
>>
>> 전 룡
>>
>
>
>> _______________________________________________
>> Developer mailing list
>> Developer at okl4.org
>> https://lists.okl4.org/mailman/listinfo/developer
>>
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
More information about the Developer
mailing list