Flash ubuntu to sd and the ssd. Use dd or official imager etc.
Delete partition 2 from sd (fdisk, diskpart, gparted, Windows disk management)
Delete partition1 from ssd.
Plug both in and turn on.
Code: Select all
console=ttyAMA0,115200 console=tty1 root=/dev/sda2 rootfstype=ext4 Code: Select all
LABEL=writable / ext4 defaults 0 0
LABEL=system-boot /boot/firmware vfat defaults 0 1Code: Select all
# Please DO NOT modify this file; if you need to modify the boot config, the
# "usercfg.txt" file is the place to include user changes. Please refer to
# the README file for a description of the various configuration files on
# the boot partition.
# The unusual ordering below is deliberate; older firmwares (in particular the
# version initially shipped with bionic) don't understand the conditional
# [sections] below and simply ignore them. The Pi4 doesn't boot at all with
# firmwares this old so it's safe to place at the top. Of the Pi2 and Pi3, the
# Pi3 uboot happens to work happily on the Pi2, so it needs to go at the bottom
# to support old firmwares.
#[pi4]
#kernel=uboot_rpi_4_32b.bin
#max_framebuffers=2
#
#[pi2]
#kernel=uboot_rpi_2.bin
#
#[pi3]
#kernel=uboot_rpi_3_32b.bin
[all]
device_tree_address=0x03000000
kernel=vmlinuz
initramfs initrd.img followkernel
# The following settings are "defaults" expected to be overridden by the
# included configuration. The only reason they are included is, again, to
# support old firmwares which don't understand the "include" command.
enable_uart=1
cmdline=nobtcmd.txt
include syscfg.txt
include usercfg.txt
I tested the SSD several times and found no errors on it. By booting Ubuntu 20.04 into single user mode I was able to work around the errors that put the filesystem into a read only mode and install all upgraded packages. It USB boots nicely and at least for the moment it seems to work as it should. Currently the kernel is:blk_update_request I/O err dev sda
Linux ubuntu 5.4.0-1011-raspi #11-Ubuntu SMP Fri May 8 07:43:33 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 48.4M 1 loop /snap/core18/1708
loop1 7:1 0 48.4M 1 loop /snap/core18/1753
loop2 7:2 0 23.5M 1 loop /snap/snapd/7267
loop3 7:3 0 61.3M 1 loop /snap/lxd/14808
sda 8:0 0 465.8G 0 disk
ââsda1 8:1 0 256M 0 part /boot/firmware
ââsda2 8:2 0 465.5G 0 part /
I've tried to make u-boot recognize the usb controller on rpi4, and even current master version, with compiled xhci support it fails to do so. Then looked at patchwork, and there seems to be an ongoing effort to bring the usb firmware initialization to u-boot here. With this patch applied and with replacement of uboot_rpi_4.bin on the boot partition I've managed to boot the 20.04 distro.waveform80 wrote: ↑Sun Mar 29, 2020 4:14 pmUnfortunately there's still one missing bit: u-boot itself, despite having USB support compiled in (and despite apparently having USB mass-storage compiled in) ... doesn't see any mass storage devices whenever I've tested it! I've not yet had time to dig into this (beyond examining the compile time flags), but if anyone fancies a delve I'd love to hear any ideas!
In my opinion this is significant news and may open the door for many distributions to run on the Pi. I'd like to try the same with the 64-bit version of Void Linux, but that belongs in another thread. I find it disappointing as ARM has rapidly entered the server market that the way a Pi boots is very different than the bigger ARM-based servers. In contrast, the same x86 installation media and boot system used to install Ubuntu on a cheap laptop can be used for an expensive 128-core server.alkersan wrote: ↑Mon Jun 01, 2020 7:58 amI've tried to make u-boot recognize the usb controller on rpi4, and even current master version, with compiled xhci support it fails to do so. Then looked at patchwork, and there seems to be an ongoing effort to bring the usb firmware initialization to u-boot here. With this patch applied and with replacement of uboot_rpi_4.bin on the boot partition I've managed to boot the 20.04 distro.waveform80 wrote: ↑Sun Mar 29, 2020 4:14 pmUnfortunately there's still one missing bit: u-boot itself, despite having USB support compiled in (and despite apparently having USB mass-storage compiled in) ... doesn't see any mass storage devices whenever I've tested it! I've not yet had time to dig into this (beyond examining the compile time flags), but if anyone fancies a delve I'd love to hear any ideas!
Thanks for this note. In fact, I am also currently working on getting u-boot 2020.04 with the XHCI patch applied in one of my projects because I would like to get USB boot implemented for the rpi4 (see https://github.com/jens-maus/RaspberryM ... -640118741). However, even with the XHCI patches applied (see https://github.com/jens-maus/RaspberryM ... ot-patches) my own compiled U-boot version stops right after DRAM initialization (see github ticket above) when booting just with a USB thumb drive attached.alkersan wrote: ↑Mon Jun 01, 2020 7:58 amI've tried to make u-boot recognize the usb controller on rpi4, and even current master version, with compiled xhci support it fails to do so. Then looked at patchwork, and there seems to be an ongoing effort to bring the usb firmware initialization to u-boot here. With this patch applied and with replacement of uboot_rpi_4.bin on the boot partition I've managed to boot the 20.04 distro.waveform80 wrote: ↑Sun Mar 29, 2020 4:14 pmUnfortunately there's still one missing bit: u-boot itself, despite having USB support compiled in (and despite apparently having USB mass-storage compiled in) ... doesn't see any mass storage devices whenever I've tested it! I've not yet had time to dig into this (beyond examining the compile time flags), but if anyone fancies a delve I'd love to hear any ideas!
Checked the daily build and noticed that u-boot was updated to2020.04 from upstream, and there are mentions of a few rpi related tweaks. Unfortunately those aren't related to USB. Also it seems that upstream u-boot didn't land any raspberry related usb or xhci updates neither.