i.MX53 SODIMM PC Filesystem

From Voipac Wiki
Jump to navigation Jump to search

All the precompiled Voipac images can be found in the download section. Updating filesystem using Barebox is possible with all of these files as well as with the images below.

Filesystems for different configurations

NAND Flash memory sized 128, 256 or 512 MB

export fs_directory=/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_directory} -o ${fs_ubifs_image}
cp -av ${fs_ubifs_image} /srv/tftp/vmx53/

NAND Flash memory sized 1 GB

export fs_directory=/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_directory} -o ${fs_ubifs_image}
cp -av ${fs_ubifs_image} /srv/tftp/vmx53/

NAND Flash memory sized 4 GB

export fs_directory=/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_directory} -o ${fs_ubifs_image}
cp -av ${fs_ubifs_image} /srv/tftp/vmx53/

Android image for 1GB NAND Flash memory

Prepare working directory

mkdir -pv ~/workdir/vmx53/rootfs/android/
cd ~/workdir/vmx53/rootfs/android/
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-nfs-android-2.3-vmx53-vpac1.tar.gz
sudo tar xvzf rootfs-nfs-android-2.3-vmx53-vpac1.tar.gz

Build UBIFS image

cd ~/workdir/vmx53/rootfs/android/
export fs_directory=~/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_directory} -o ${fs_ubifs_image}

Build 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