2019年10月23日 星期三

[RPi] 安裝 Ubuntu Mate 在 Pi 3B+ (16.04 和 18.04 都通用)

參考這幾篇文章

* https://www.raspberrypi.org/forums/viewtopic.php?t=225763
* https://ubuntu-mate.community/t/ubuntu-mate-on-raspberry-pi-3-b/18842/3
* https://www.raspberrypi.org/forums/viewtopic.php?f=71&t=209093

最後做了這幾件事
1. 將 2018-11-13-raspbian-stretch.img 的 bootcode.bin, fixup.dat, start.elf, bcm2710-rpi-3-b-plus.dtb and kernel7.img 複製到 Ubuntu Mate 的 /boot ==> 才可以開機(如果要使用 Pi 3B 開機,需要把 bcm2710-rpi-3-b.dtb 複製到 /boot)
2. 將 2018-11-13-raspbian-stretch.img 的 /lib/modules/* 複製到 Ubuntu Mate /lib/module ==> 鍵盤滑鼠才可以用

3. 將 2018-11-13-raspbian-stretch.img 的 /lib/firmware/brcm 複製到 Ubuntu Mate 的 /lib/firmware/brcm ==> WiFi 才可以用

4. (這不重要)修改 Ubuntu Mate 的 /boot/cmdline.txt,新增 initcall_debug=1 和 loglevel=8,但最重要的應該是將 root 開機位置從 root=PARTUUID=xxxx 改成 root=/dev/mmcblk0p2
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 loglevel=8 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait initcall_debug=1


但 Ubuntu Mate 16.04 用起來有時候怪怪的,開機會 kernel panic,看起來還是 Ubuntu Mate 18.04 比較適合?

沒有留言: