Hi<div><br></div><div>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: <a href="http://pastebin.com/KUVAwWRk">http://pastebin.com/KUVAwWRk</a>. It's based on git commit 'dadcf5bd8f715'.</div>
<div><br></div><div>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:</div><div><br></div><div>sudo dd if=barebox.bin of=/dev/sdc bs=512 skip=2 seek=2 && sync</div>
<div><br></div><div>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:</div>
<div><br></div><div><div>Board: SID1 NOAH</div><div>registered netconsole as cs1</div><div>imx-esdhc@mci0: registered as mci0</div><div>imx-esdhc@imx-esdhc0: timeout 1</div><div>Cannot reset the SD/MMC card</div><div>ehci@ehci0: USB EHCI 1.00</div>
<div>cfi_flash@cfi_flash0: found cfi flash at a0000000, size 67108864</div><div>Malloc space: 0x83b00000 -> 0x83efffff (size 4 MB)</div><div>Stack space : 0x83af8000 -> 0x83b00000 (size 32 kB)</div><div>envfs: wrong magic on /dev/env0</div>
<div>no valid environment found on /dev/env0. Using default environment</div><div>running /env/bin/init...</div><div><br></div><div>Hit any key to stop autoboot: 3</div><div><br></div><div>type update_kernel nor [<imagename>] to update kernel into flash</div>
<div>type update_root nor [<imagename>] to update rootfs into flash</div><div><br></div><div>sid1-noah:/</div><div>sid1-noah:/ devinfo</div><div>devices:</div><div>`---- net</div><div>`---- imx_serial0</div><div> `---- cs0</div>
<div>`---- mem0</div><div> `---- 0x00000000-0x03ffffff: /dev/ram0</div><div>`---- imx_iim0</div><div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank0</div><div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank1</div>
<div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank2</div><div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank3</div><div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank4</div><div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank5</div>
<div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank6</div><div> `---- 0x00000000-0x0000001f: /dev/imx_iim_bank7</div><div>`---- ramfs0</div><div>`---- devfs0</div><div>`---- mem1</div><div> `---- 0x00000000-0x000017e7: /dev/defaultenv</div>
<div>`---- mem2</div><div> `---- 0x00000000-0xfffffffe: /dev/mem</div><div>`---- cs1</div><div>`---- i2c-imx0</div><div>`---- imx-esdhc0</div><div> `---- mci0</div><div>`---- fec_imx0</div><div> `---- miidev0</div>
<div> `---- 0x00000000-0x0000003f: /dev/phy0</div><div> `---- eth0</div><div>`---- ehci0</div><div>`---- cfi_flash0</div><div> `---- 0x00000000-0x03ffffff: /dev/nor0</div><div> `---- 0x00000000-0x0003ffff: /dev/self</div>
<div> `---- 0x00040000-0x0005ffff: /dev/env0</div><div> `---- 0x00000000-0x0003ffff: /dev/nor0.barebox</div><div> `---- 0x00040000-0x0005ffff: /dev/nor0.bareboxenv</div><div> `---- 0x00060000-0x0035ffff: /dev/nor0.kernel</div>
<div> `---- 0x00360000-0x03ffffff: /dev/nor0.root</div><div><br></div><div>drivers:</div><div>imx_serial</div><div> ramfs</div><div> devfs</div><div> fat</div><div> tftp</div><div> imx_iim</div><div>
fec_imx</div><div> miidev</div><div> cfi_flash</div><div> <NULL></div><div> ehci</div><div> ohci</div><div> imx_spi</div><div> i2c-imx</div><div> mci</div><div> imx-esdhc</div><div> fb</div>
<div> imxfb</div><div> at25x</div><div> mem</div><div> cramfs</div><div>sid1-noah:/ meminfo</div><div>max system bytes = 516096</div><div>system bytes = 516096</div><div>in use bytes = 495984</div>
<div>sid1-noah:/ iomem</div><div>0x00000000 - 0xfffffffe (size 0xffffffff) iomem</div><div> 0x43f80000 - 0x43f80fff (size 0x00001000) i2c-imx0</div><div> 0x43f90000 - 0x43f90fff (size 0x00001000) imx_serial0</div><div>
0x50038000 - 0x50038fff (size 0x00001000) fec_imx0</div>
<div> 0x53fb4000 - 0x53fb4fff (size 0x00001000) imx-esdhc0</div><div> 0x53ff0000 - 0x53ff0fff (size 0x00001000) imx_iim0</div><div> 0x53ff4500 - 0x53ff44ff (size 0x00000000) ehci0</div><div> 0x53ff4540 - 0x53ff453f (size 0x00000000) ehci0</div>
<div> 0x80000000 - 0x83ffffff (size 0x04000000) ram0</div><div> 0x83af8000 - 0x83afffff (size 0x00008000) stack</div><div> 0x83b00000 - 0x83efffff (size 0x00400000) malloc space</div><div> 0x83f00000 - 0x83f3fcf4 (size 0x0003fcf5) barebox</div>
<div> 0x83f42124 - 0x83f48688 (size 0x00006565) bss</div><div> 0xa0000000 - 0xa3ffffff (size 0x04000000) cfi_flash0</div><div>sid1-noah:/ cpufreq 532</div><div>Switched CPU frequency to 532MHz</div><div>sid1-noah:/ dump_clocks</div>
<div>mpll: 532000000 Hz</div><div>upll: 240000000 Hz</div><div>arm: 399000000 Hz</div><div>ahb: 133000000 Hz</div><div>uart: 33250000 Hz</div><div>gpt: 66500000 Hz</div><div>nand: 33250000 Hz</div>
<div>lcd: 66500000 Hz</div><div>i2c: 120000000 Hz</div><div>sdhc1: 66500000 Hz</div><div>sid1-noah:/ cpufreq 399</div><div>Switched CPU frequency to 399MHz</div><div>sid1-noah:/ dump_clocks</div><div>mpll: 399000000 Hz</div>
<div>upll: 240000000 Hz</div><div>arm: 299250000 Hz</div><div>ahb: 99750000 Hz</div><div>uart: 24937500 Hz</div><div>gpt: 49875000 Hz</div><div>nand: 24937500 Hz</div><div>lcd: 49875000 Hz</div>
<div>i2c: 120000000 Hz</div><div>sdhc1: 49875000 Hz</div></div><div><br></div><div>I'm glad for any pointers.</div><div><br></div><div>Best regards</div><div>Roberto </div>