Booting mx25 based device from SD and NOR
Roberto Nibali
rnibali at gmail.com
Tue May 22 08:11:46 EDT 2012
Hi
I have been trying to boot a customized mx25 based device using barebox and
I seem to be missing a few basic pointers, I believe, since it does not
work. I have attached my config and put my current patch-set online:
http://pastebin.com/KUVAwWRk. It's based on git commit 'dadcf5bd8f715'.
I don't know if the way of adding the boatloader to the SD card for later
installing it onto NOR flash is the correct one. I currently issue a:
sudo dd if=barebox.bin of=/dev/sdc bs=512 skip=2 seek=2 && sync
sdc being the SD card. I wonder if the environment has to be put somewhere
into a partition or if it can be glued into the barebox image. Because
loading the barebox.bin as a secondary stage bootloader from within uboot
version 2009.08 works somehow:
Board: SID1 NOAH
registered netconsole as cs1
imx-esdhc at mci0: registered as mci0
imx-esdhc at imx-esdhc0: timeout 1
Cannot reset the SD/MMC card
ehci at ehci0: USB EHCI 1.00
cfi_flash at cfi_flash0: found cfi flash at a0000000, size 67108864
Malloc space: 0x83b00000 -> 0x83efffff (size 4 MB)
Stack space : 0x83af8000 -> 0x83b00000 (size 32 kB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
Hit any key to stop autoboot: 3
type update_kernel nor [<imagename>] to update kernel into flash
type update_root nor [<imagename>] to update rootfs into flash
sid1-noah:/
sid1-noah:/ devinfo
devices:
`---- net
`---- imx_serial0
`---- cs0
`---- mem0
`---- 0x00000000-0x03ffffff: /dev/ram0
`---- imx_iim0
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank0
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank1
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank2
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank3
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank4
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank5
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank6
`---- 0x00000000-0x0000001f: /dev/imx_iim_bank7
`---- ramfs0
`---- devfs0
`---- mem1
`---- 0x00000000-0x000017e7: /dev/defaultenv
`---- mem2
`---- 0x00000000-0xfffffffe: /dev/mem
`---- cs1
`---- i2c-imx0
`---- imx-esdhc0
`---- mci0
`---- fec_imx0
`---- miidev0
`---- 0x00000000-0x0000003f: /dev/phy0
`---- eth0
`---- ehci0
`---- cfi_flash0
`---- 0x00000000-0x03ffffff: /dev/nor0
`---- 0x00000000-0x0003ffff: /dev/self
`---- 0x00040000-0x0005ffff: /dev/env0
`---- 0x00000000-0x0003ffff: /dev/nor0.barebox
`---- 0x00040000-0x0005ffff: /dev/nor0.bareboxenv
`---- 0x00060000-0x0035ffff: /dev/nor0.kernel
`---- 0x00360000-0x03ffffff: /dev/nor0.root
drivers:
imx_serial
ramfs
devfs
fat
tftp
imx_iim
fec_imx
miidev
cfi_flash
<NULL>
ehci
ohci
imx_spi
i2c-imx
mci
imx-esdhc
fb
imxfb
at25x
mem
cramfs
sid1-noah:/ meminfo
max system bytes = 516096
system bytes = 516096
in use bytes = 495984
sid1-noah:/ iomem
0x00000000 - 0xfffffffe (size 0xffffffff) iomem
0x43f80000 - 0x43f80fff (size 0x00001000) i2c-imx0
0x43f90000 - 0x43f90fff (size 0x00001000) imx_serial0
0x50038000 - 0x50038fff (size 0x00001000) fec_imx0
0x53fb4000 - 0x53fb4fff (size 0x00001000) imx-esdhc0
0x53ff0000 - 0x53ff0fff (size 0x00001000) imx_iim0
0x53ff4500 - 0x53ff44ff (size 0x00000000) ehci0
0x53ff4540 - 0x53ff453f (size 0x00000000) ehci0
0x80000000 - 0x83ffffff (size 0x04000000) ram0
0x83af8000 - 0x83afffff (size 0x00008000) stack
0x83b00000 - 0x83efffff (size 0x00400000) malloc space
0x83f00000 - 0x83f3fcf4 (size 0x0003fcf5) barebox
0x83f42124 - 0x83f48688 (size 0x00006565) bss
0xa0000000 - 0xa3ffffff (size 0x04000000) cfi_flash0
sid1-noah:/ cpufreq 532
Switched CPU frequency to 532MHz
sid1-noah:/ dump_clocks
mpll: 532000000 Hz
upll: 240000000 Hz
arm: 399000000 Hz
ahb: 133000000 Hz
uart: 33250000 Hz
gpt: 66500000 Hz
nand: 33250000 Hz
lcd: 66500000 Hz
i2c: 120000000 Hz
sdhc1: 66500000 Hz
sid1-noah:/ cpufreq 399
Switched CPU frequency to 399MHz
sid1-noah:/ dump_clocks
mpll: 399000000 Hz
upll: 240000000 Hz
arm: 299250000 Hz
ahb: 99750000 Hz
uart: 24937500 Hz
gpt: 49875000 Hz
nand: 24937500 Hz
lcd: 49875000 Hz
i2c: 120000000 Hz
sdhc1: 49875000 Hz
I'm glad for any pointers.
Best regards
Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20120522/b41b6931/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Default-config-file-for-NOAH.patch
Type: application/octet-stream
Size: 2785 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20120522/b41b6931/attachment-0001.obj>
More information about the barebox
mailing list