Ubuntu on Raspberry 3B +
Download image
We download the official image of Ubuntu 18.04 from http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-18.04.1-preinstalled-server-armhf+raspi2.img.xz
Write image on SD card
My SD card is on drive sdb
xzcat ubuntu-18.04.1-preinstalled-server-armhf+raspi2.img.xz | dd bs=4M of=/dev/sdb 0+222067 records in 0+222067 records out 2361393152 bytes (2.4 GB, 2.2 GiB) copied, 184.237 s, 12.8 MB/s
Change bootloader
cd /mnt/ mkdir sdp1 mkdir sdp2 mount /dev/sdb1 sdp1/ mount /dev/sdb2 sdp2/ cd sdp1/
On file config.txt change these lines
kernel=uboot.bin device_tree_address=0x02000000
by these ones:
#kernel=uboot.bin #device_tree_address=0x02000000 kernel=vmlinuz initramfs initrd.img followkernel
Copy device-tree files
cp /mnt/sdp2/lib/firmware/4.15.0-1017-raspi2/device-tree/bcm2710-rpi-3-b-plus.dtb ./ cp -r /mnt/sdp2/lib/firmware/4.15.0-1017-raspi2/device-tree/overlays/ ./
We change files bootcode.bin, fixup.dat and start.elf
cd /tmp/ wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20180417-1_armhf.deb dpkg-deb -x raspberrypi-bootloader_1.20180417-1_armhf.deb /tmp/pi-bootloader cd /tmp/pi-bootloader/boot cp * /mnt/sdp1/
We update Wifi drivers
cd /mnt/sdp2/lib/firmware/brcm mv brcmfmac43340-sdio.bin brcmfmac43340-sdio.bin.bak wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.bin wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.clm_blob wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.txt
Unmount the SD card
cd /mnt/ umount sdp1 umount sdp2
The system boot, but kernel panic with network card,... kernel 4.15 does not work :(
References
- RaspberryPi
- Debian Buster arm64 on a Raspberry Pi 3 Model B+
- Headless Raspberry Pi Setup with Raspbian Stretch (Pi 3B+ compatible)
Daniel Simao (talk) 23:48, 14 August 2018 (EDT)