# MX-BAREBOX-FLASH =# Requirements =============== 1. serial console -> MX-SERIAL 2. tftp server -> MX-TFTP 3. dhcp server (optional) -> MX-DHCP =# Setup environment for linux ============================== export boardname=vmx53 export bareboxbin=barebox-2012.09.0-vmx53-vpac0.bin export kernelbin=zImage-2.6.35.3-vmx53-vpac0.bin export fsbin=rootfs-ubifs-bb-1-18-vmx53-vpac0.bin =# Get the binaries =================== mkdir -pv /tftpboot/${boardname}/ cd /tftpboot/${boardname} wget http://www.voipac.com/downloads/imx/53/bin/${bareboxbin} wget http://www.voipac.com/downloads/imx/53/bin/${kernelbin} wget http://www.voipac.com/downloads/imx/53/bin/${fsbin} ln -s ${bareboxbin} barebox.bin ln -s ${kernelbin} zImage ln -s ${fsbin} rootfs.bin =# Run the barebox ================== barebox 2012.09.0-vmx53-vpac0 #1 Mon Sep 24 00:22:08 CEST 2012 Board: Voipac VMX53 SDRAM at 0x70000000: 1024MB (DDR3 2x4096Mb, 15 ROWs, 10 COLs, 8 BANKs) SDRAM at 0xb0000000: 1024MB (DDR3 2x4096Mb, 15 ROWs, 10 COLs, 8 BANKs) registered netconsole as cs1 imx-esdhc@mci0: registered as mci0 imx-esdhc@mci1: registered as mci1 m25p@m25p0: sst25vf032b (4096 Kbytes) m25p@m25p1: sst25vf064c (8192 Kbytes) NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit ), page size: 2048, OOB size: 64 Bad block table not found for chip 0 Bad block table not found for chip 0 Scanning device for bad blocks Bad block table written to 0x1ffe0000, version 0x01 Bad block table written to 0x1ffc0000, version 0x01 detected i.MX53 rev 2.1 Malloc space: 0x7f700000 -> 0x7fefffff (size 8 MB) Stack space : 0x7f6f8000 -> 0x7f700000 (size 32 kB) running /env/bin/init... Hit any key to stop autoboot: 3 =# Stop the boot process by pressing the key ============================================ Hit any key to stop autoboot: 1 barebox:/ =# (Optional) If you do not use dhcp server edit the barebox =# environment to match yours needs in the case that you. =# Press to apply the changes =# Press to suppress the changes ============================================================ barebox:/ edit /env/config ..... # use 'dhcp' to do dhcp in barebox and in kernel ip=static # or set your networking parameters here eth0.ipaddr=192.168.0.2 eth0.netmask=255.255.255.0 eth0.gateway=192.168.0.1 eth0.ethaddr=00:01:02:03:04:05 .... =# Flash the module = (automate version) =================== erase /dev/nand0 update barebox update kernel update rootfs =# Final steps for linux ======================== reset