mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* freescale-mx28-evk run from ram
@ 2018-03-01 16:30 duhuanpeng
  2018-03-02  7:36 ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: duhuanpeng @ 2018-03-01 16:30 UTC (permalink / raw)
  To: barebox

Dear all,

Happy Yuanxiao(Lantern) Festival!

I have a modified mx28-evk board, I want to run barebox on it, but I don’t want to make change to the flash.

In System.map
00000000 T __image_start
00000000 T start
00000000 T _stext
00000000 T _text
00000004 T __bare_init_start
00000004 T get_runtime_offset
00000014 t linkadr
00000018 T __ld_var_base
00000018 T __ld_var__text
00000020 t ___text
00000024 T __ld_var___rel_dyn_start
0000002c t ____rel_dyn_start
00000030 T __ld_var___rel_dyn_end
00000038 t ____rel_dyn_end
0000003c T __ld_var___dynsym_start
00000044 t ____dynsym_start
00000048 T __ld_var___dynsym_end
00000050 t ____dynsym_end
00000054 T __ld_var___bss_start
0000005c t ____bss_start
00000060 T __ld_var___bss_stop
00000068 t ____bss_stop

So, I load barebox.bin to address 0x00000000:

Hit any key to stop autoboot:  0 
MX28 U-Boot > tftpboot 0 barebox.bin
Using FEC0 device
TFTP from server 192.168.12.61; our IP address is 192.168.12.62
Filename 'barebox.bin'.
Load address: 0x0
Loading: T #############################
done
Bytes transferred = 424776 (67b48 hex)
MX28 U-Boot > go 0
## Starting application at 0x00000000 ...


I believe the sram is too small to load the binary.

So, I change the TEXT_BASE to 0x41600000 in menuconfig, build and update barebox.bin, it print funny characters:

MX28 U-Boot > <INTERRUPT>
MX28 U-Boot > <INTERRUPT>
MX28 U-Boot > tftpboot 0x41600000 barebox.bin
Using FEC0 device
TFTP from server 192.168.12.61; our IP address is 192.168.12.62
Filename 'barebox.bin'.
Load address: 0x41600000
Loading: T #############################
done
Bytes transferred = 424776 (67b48 hex)
MX28 U-Boot > go 0x41600000
## Starting application at 0x41600000 ...
���������������������������������������������������������������������������������������������������������������������������������������������

For imx283, How to run barebox from ram?

Thanks,
Du Huanpeng



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-02 10:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01 16:30 freescale-mx28-evk run from ram duhuanpeng
2018-03-02  7:36 ` Sascha Hauer
2018-03-02  9:53   ` 答复: " duhuanpeng
     [not found]   ` <000001d3b205$12bea160$383be420$@qq.com>
2018-03-02 10:15     ` 'Sascha Hauer'
2018-03-02 10:55       ` 答复: " duhuanpeng
2018-03-02 10:56       ` duhuanpeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox