Brume: Move ubuntu root to sd(or usb)

slightly modified
from openwrt without installing ubuntu to the mmc…
You still need to make sure your uboot is updated per the instructions on github.

fdisk /dev/mmcblk1
select g
select w
fdisk /dev/mmcblk1
select n
1
hit enter till your done
select w

mkfs.ext4 /dev/mmcblk1p1
mkdir /mnt/sd
mount /dev/mmcblk1p1 /mnt/sd
cd /tmp
curl -SL http://download.gl-inet.com/firmware/mv1000/ubuntu/testing/ubuntu-18.04.3-20191109.tar.gz -o /tmp/ubuntu-18.04.3-20191109.tar.gz

tar -xf /tmp/ubuntu-18.04.3-20191109.tar.gz -C /mnt/sd

from openwrt run:
fw_setenv image_part 1
fw_setenv image_dir /boot/
fw_setenv fdt_name armada-gl-mv1000-ubuntu.dtb
fw_setenv args_sd setenv bootargs root=/dev/mmcblk1p1 rw rootwait
fw_setenv bootscript run boot_sd
reboot

if you want to go back to openwrt you can:
dd if/dev/zero of=/dev/mtd1

1 Like

thank you.
also is it possible to extract to a subdirectory of sdcard-root
I.E. mkdir /mnt/sd/newdir
tar -xf /tmp/ubuntu-18.04.3-20191109.tar.gz -C /mnt/sd/newdir
and then boot from it by
I.E. fw_setenv args_sd setenv bootargs root=/dev/mmcblk1p1/newdir rw rootwait

so as to hold multiple OS testing configs

Well not for the root device but you can add an additional partition , for example for arch Linux and Ubuntu I have mmcblk1p1 as / for Ubuntu and mmcblk1p2 for arch