> Second, I am having trouble figuring out the right way to install the
> root filesystem. The best I have been able to figure out is:
> 
>       1. Build a squashfs image.
> 
>       2. Create ubi.conf:
>       
>       [root_volume]
>       mode=ubi
>       image=lede-ar71xx-mikrotik-root.squashfs
>       vol_id=0
>       vol_name=rootfs
>       vol_size=50MiB
> 
>       3. Run "ubinize -vv -o root.img -m 2048 -p 128KiB -s 2048 ubi.conf".
> 
>       4. Run "ubiformat /dev/mtd6 -f root.img".
> 
> This sees to work. However, with OpenWrt I could simply mount
> /dev/mtdblock6 and extract openwrt-ar71xx-mikrotik-Ath5k-rootfs.tar.gz
> into the disk. This would result in a r/w yaffs rather than a read-only
> squashfs. The RouterBoard 493G has plenty of flash, so a writable root
> filesystem is both feasible and convenient (writes are very rare).

A quick update: I now use ubifs instead of squashfs to create a writable
filesystem.

Would it be possible to add to the LEDE build process the ability to
create a ubifs target image in addition to ext4 and squashfs?

Also, during earlier work I found that selecting the "ext4" target
image does not work. After I selected "ext4," "make V=99" simply did not
create an ext4 image, nor did the kernel build with ext4 support. Is
this expected?

After extracting the .tar.gz filesystem archive to /tmp/root, I run this
on my computer:

        mkfs.ubifs -x none -m 2048 -e 126976 -c 240 -r /tmp/root -o
                /tmp/lede-ar71xx-mikrotik-root.ubifs

Then I run this on the router:

        ubi.conf:
                [root_volume]
                mode=ubi
                image=/tmp/lede-ar71xx-mikrotik-root.ubifs
                vol_id=0
                vol_name=rootfs
                vol_size=50MiB

        ubinize -vv -o lede-ar71xx-mikrotik-root.ubi -m 2048 -p 128KiB
                -s 2048 ubi.conf

        ubidetach -p /dev/mtd6

        ubiformat /dev/mtd6 -f lede-ar71xx-mikrotik-root.ubi

-- 
Mike

:wq

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to