How to install Ubuntu to eMMC and to install KDE (Neon)
#53
(11-20-2019, 02:09 PM)Arglebargle Wrote:
(11-19-2019, 10:00 PM)iav Wrote: How can I set up Ubuntu to emmc with btrfs filesystem? Sumply boot from sdcard, format rootfs on emmc to btrfs and then copy all files from sdcard rootfs to emmc rootfs will be not enough,  propose?

There are extra steps but you've got the right idea.

Some things that are important: in theory BSP kernel u-boot can directly boot a btrfs partition as long as it doesn't use compression. So if you don't care about compression you *should* be able to just flash Ubuntu to the emmc, flash mrfixit's u-boot with sd-booting capability to the emmc, convert the root filesystem to btrfs and then edit /boot/extlinux/extlinux.conf to change rootfstype and rootflags and be able to boot. You'll want to update /etc/default/extlinux after that to match your root filesystem configuration from the hand-modified /boot/extlinux/extlinux.conf so that you don't break booting on a kernel upgrade. /usr/local/sbin/update-extlinux.sh regenerates /boot/extlinux/extlinux.conf using /etc/default/extlinux as a template for kernel command-line parameters.

Also note: you should mount the emmc root filesystem and `touch /var/lib/rock64/resized` on it to prevent the ext4 resize script from puking on your drive on the first boot. You'll need to resize the partition manually too, read /usr/local/sbin/resize_filesystem.sh to see how to do that for ext4 before converting or just install gparted and use that.

I wouldn't do this though. You gain a lot by using compression with btrfs on a device with very slow (sd) or mildly-slow (emmmc) storage and you'll reduce nand wear significantly as well.

If you wait a bit I'll write up a guide and/or script installing ayufan's image to a btrfs root filesystem with extra niceties. I started typing out the steps below and I think it warrants its own post because it's going to be fairly involved.


Messages In This Thread
RE: How to install Ubuntu to eMMC and to install KDE - by iav - 11-20-2019, 05:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Install Tow-Boot on the SPI Shad0w 14 12,556 11-18-2024, 11:23 AM
Last Post: reukiodo
  How to rewrite uboot to emmc pineitup 5 9,952 12-27-2020, 10:35 AM
Last Post: nightranger73
  Video : How to install Armbian Reforged and set it up on PineBookPro / Gaming image NicoD-SBC 0 3,094 11-23-2020, 12:09 PM
Last Post: NicoD-SBC
  Citrix Receiver / ICAClient install for armhf Arwen 7 16,585 09-14-2020, 11:02 PM
Last Post: vb_linux
  Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound Syonyk 43 60,213 07-28-2020, 03:18 PM
Last Post: SamWilts
  Using 2 OS images on eMMC for safe upgrades Arwen 0 2,623 06-13-2020, 01:13 PM
Last Post: Arwen
  How to boot Manjaro from NVME with uboot on eMMC as400 47 64,205 06-07-2020, 02:37 AM
Last Post: as400
  Restoring the OS using the eMMC Adapter xircledev 3 7,958 02-20-2020, 05:16 PM
Last Post: Thovthe
  Quick Guide to installing Ubuntu Unity on your Pinebook Pro andybleaden@gmail.com 19 26,421 02-03-2020, 11:17 AM
Last Post: MIchael

Forum Jump:


Users browsing this thread: 9 Guest(s)