Wiki Home » vmx53 » rootfs

rootfs

Last modified by Administrator on 2018/10/21 17:36

Rootfs for various flash configurations

These images are compatible with barebox update command.

128(256,512)MB NAND

export fs_direcotry=/home/marek/workdir/vmx53/rootfs/busybox/rootfs-bb-1-22.1/
export fs_ubifs_image=rootfs-1.22-ubifs-m2k-e128k-512M_vmx53_$(date "+%Y%m%d").bin
sudo mkfs.ubifs -m 2048 -e 129024 -c 4080 -r ${fs_direcotry} -o ${fs_ubifs_image}
cp -av ${fs_ubifs_image} /srv/tftp/vmx53/

1GB NAND

export fs_direcotry=/home/marek/workdir/vmx53/rootfs/busybox/rootfs-bb-1-22.1/
export fs_ubifs_image=rootfs-1.22-ubifs-m4k-e512k-1G_vmx53_$(date "+%Y%m%d").bin
sudo mkfs.ubifs -m 4096 -e 520192 -c 2000 -r ${fs_direcotry} -o ${fs_ubifs_image}
cp -av ${fs_ubifs_image} /srv/tftp/vmx53/

4GB NAND

export fs_direcotry=/home/marek/workdir/vmx53/rootfs/busybox/rootfs-bb-1-22.1/
export fs_ubifs_image=rootfs-1.22-ubifs-m4k-e1M-4G_vmx53_$(date "+%Y%m%d").bin
sudo mkfs.ubifs -m 4096 -e 1040384 -c 4080 -r ${fs_direcotry} -o ${fs_ubifs_image}
cp -av ${fs_ubifs_image} /srv/tftp/vmx53/

Android image for 1GB flash

These images are compatible with barebox tftp command.

Prepare working dir

mkdir -pv ~/workdir/vmx53/rootfs/android/
cd ~/workdir/vmx53/rootfs/android/
wget https://www.voipac.com/downloads/imx/53/bin/rootfs-nfs-android-2.3-vmx53-vpac1.tar.gz
sudo tar xvzf rootfs-nfs-android-2.3-vmx53-vpac1.tar.gz

Make ubifs image

cd ~/workdir/vmx53/rootfs/android/
export fs_direcotry=~/workdir/vmx53/rootfs/android/rootfs-nfs-android-2.3-vmx53-vpac1/
export fs_ubifs_image=rootfs-android23-ubifs_vmx53_$(date "+%Y%m%d").bin

sudo mkfs.ubifs -m 4096 -e 520192 -c 2000 -r ${fs_direcotry} -o ${fs_ubifs_image}

Make ubi image

cd ~/workdir/vmx53/rootfs/android/

cat > ubinize.cfg << EOF_M
[ubifs]
mode=ubi
image=rootfs-android23-ubifs_vmx53_20140807.bin
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
EOF_M


sudo ubinize -v -o rootfs-android23-ubi_vmx53_$(date "+%Y%m%d").bin -m 4096 -p 512KiB -s 1024 ubinize.cfg
Tags:
Created by Administrator on 2014/08/25 17:03

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.1 - Documentation