# 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=vmx51 # In the case of the 128/256MB RAM version export bareboxbin=barebox-2011_06_0-vmx51-256M-vpac1.bin # In the case of the 512MB Ram version export bareboxbin=barebox-2011_06_0-vmx51-512M-vpac1.bin export kernelbin=zImage-2_6_35-vmx51-vpac0.bin export fsbin=rootfs-nand-bb-1-18-vmx51-vpac0.ubi.bin =# Get the binaries =================== mkdir -pv /tftpboot/${boardname}/ cd /tftpboot/${boardname} wget http://www.voipac.com/downloads/imx/51/bin/${bareboxbin} wget http://www.voipac.com/downloads/imx/51/bin/${kernelbin} wget http://www.voipac.com/downloads/imx/51/bin/${fsbin} mv ${bareboxbin} barebox.bin mv ${kernelbin} zImage mv ${fsbin} rootfs.bin =# Run the barebox ================== barebox 2011.06.0 (Aug 18 2011 - 13:29:24) Board: Voipac VMX51 SDRAM at 0x90000000: 128MB (DDR2 2x512Mb, 13 ROWs, 10 COLs, 4 BANKs) SDRAM at 0xa0000000: 0MB (DDR2 2x0Mb, 11 ROWs, 8 COLs, 4 BANKs) mc13892-i2c@mc13892-i2c0: PMIC ID: 0x000045d0 [Rev: 2.0a] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xa1 (Micron NAND 128MiB 1,8V 8-bit) Scanning device for bad blocks Bad eraseblock 1022 at 0x07fc0000 Bad eraseblock 1023 at 0x07fe0000 Detected CPU i.MX51 rev 3.0 [unknown] Boot device: NAND Malloc space: 0x97700000 -> 0x97f00000 (size 8 MB) Stack space : 0x976f8000 -> 0x97700000 (size 32 kB) running /env/bin/init... =# 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 =# Flash the module = (manual version) =================== eth0.ipaddr=192.168.0.123 eth0.netmask=255.255.255.0 eth0.gateway=192.168.0.1 eth0.serverip=192.168.0.122 eth0.ethaddr=00:01:02:03:04:05 erase /dev/nand0.barebox.bb tftp vmx51/barebox.bin /dev/nand0.barebox.bb erase /dev/nand0.kernel.bb tftp vmx51/zImage /dev/nand0.kernel.bb erase /dev/nand0.rootfs.bb tftp vmx51/rootfs.bin /dev/nand0.rootfs.bb =# Final steps for linux ======================== reset