# 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=vmx25 export bareboxbin=barebox-2012.09.0-vmx25-vpac3.bin export kernelbin=zImage-2_6_35-vmx25-vpac7.bin export fsbin=rootfs-ubifs-bb-1-18-vmx25-vpac0.bin =# Setup environment for android ================================ export boardname=vmx25 export bareboxbin=barebox-2010_10_0-vmx25-vpac2.bin export kernelbin=zImage-2_6_35-vmx25-android-vpac0.bin export fsbin=rootfs-ubifs-android23-vmx25-vpac0.bin =# Get the binaries =================== mkdir -pv /tftpboot/${boardname}/ cd /tftpboot/${boardname} wget http://www.voipac.com/downloads/imx/25/bin/${bareboxbin} wget http://www.voipac.com/downloads/imx/25/bin/${kernelbin} wget http://www.voipac.com/downloads/imx/25/bin/${fsbin} ln -s ${bareboxbin} barebox.bin ln -s ${kernelbin} zImage ln -s ${fsbin} rootfs.bin =# Run the barebox ================== barebox 2012.09.0-vmx25-vpac3 #1 Sat Nov 17 02:55:23 CET 2012 Board: Voipac VMX25 SDRAM at 0x80000000: 64MB (512Mb, 13 ROWs, 10 COLs) SDRAM at 0x90000000: 64MB (512Mb, 13 ROWs, 10 COLs) registered netconsole as cs1 NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit ), page size: 2048, OOB size: 64 Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 imxfb@imxfb0: i.MX Framebuffer driver m25p@m25p0: sst25vf032b (4096 Kbytes) m25p@m25p1: sst25vf032b (4096 Kbytes) Malloc space: 0x81700000 -> 0x81efffff (size 8 MB) Stack space : 0x816f8000 -> 0x81700000 (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 =# Final steps for android ========================== reset ==# Stop the boot process by pressing the key ============================================= Hit any key to stop autoboot: 1 barebox:/ ==# Edit the defaut barebox environment ==# Press to apply the changes ==# Press to suppress the changes ========================================= barebox:/ edit /env/config ..... bootargs="init=/init console=ttymxc0,115200 androidboot.console=ttymxc0 video=imxfb:WVGA-LCD" .... .... ==# Save the changes ==================== barebox:/ saveenv