I would like to get Ubuntu Mate 16.04 on the Raspberry Pi 3 B+. According to this thread this should be possible. Here is the summary on how they achieved it:
Copy the following files from Raspbian to Ubuntu Mate:
- For Booting: copy bootcode.bin, fixup.dat, start.elf, bcm2710-rpi-3-b-plus.dtb and kernel7.img
For keyboard/mouse: copy /lib/modules/4.9.80-v7+ (root partition)
For network: copy the contents of /lib/firmware/brcm/ (root partition)
If you want to boot from USB:
- edit cmdline.txt, change root=/dev/mmcblk0p2 to root=/dev/sda2 (boot partition)
- edit etc/fstab, change/dev/mmcblk0p2 to sda2 and /dev/mmcblk0p1 to sda1 (root partition)
My question is where to copy /lib/modules/-v7+ and /lib/firmware/brcm from the root partition. I was able to get raspian running on the raspberry pi 3B+ and then I copied the /lib/ files/folders to a usb stick. But I don't know where to put them on the sd card with ubuntu mate on it. I would copy them to the same location if I had ubuntu mate running on the pi already. However, I don't get this far.
Other steps I did so far:
- mount raspian image
- mount ubuntu mate image
- copy files from the boot partition (bootcode.bin, fixup.dat, start.elf, bcm2710-rpi-3-b-plus.dtb and kernel7.img) of the mounted raspian image to the mounted ubuntu mate image.
I was then able to boot from this sd card to the point where I got the following error and could not type any commands:
Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details
...
But I don't know how to fix this error because I cannot enter any commands. The only thing that works is switching terminals using Ctrl+Alt+F1...
/lib
directory. Linux distros are all identical WRT where kernel modules and firmware go.