This guide will allow you to install linux on Bedrock PC
Tested versions:
Linux server 22.04.1
Tested serial platforms:
Tio
Putty
Tested disks:
Kingston datatraveler usb thumb drive
Create bootable usb drive:
download a linux server iso
sudo dd if=${path/to/iso/file.iso} of=/dev/sdX status=progress
Note: X is the letter you see when running lsblk.
Insert the usb media to the device
In BIOS enable uart support
In BIOS choose the bootable usb drive
Grub settings:
A grub menu will appear saying try or install ubuntu, on this entry press ‘e’ to set the boot parameters.
You will be prompted with a window like this:
setparams 'Install Ubuntu Server'
set gfxpayload=keep
linux /casper/vmlinuz quiet ---
initrd /casper/initrd
Remove the quiet parameter and change the entry as follows:
linux /casper/vmlinuz console=tty1 console=ttyS4,115200n8 systemd.unit=getty@ttyS4.service —
Wait for the live usb to boot
Live USB settings:
After live usb boots run the following services (check if I can drop some of them):
sudo systemctl start snapd sudo systemctl start snapd.socket sudo systemctl start snapd.seeded sudo systemctl start snapd.apparmor sudo systemctl start snapd.core-fixup sudo systemctl start snapd.autoimport sudo systemctl start systemd-resolved sudo systemctl start snapd.system-shutdown sudo systemctl start cloud-init sudo systemctl start cloud-init-local sudo systemctl start systemd-rfkill.service sudo systemctl start systemd-networkd.service sudo systemctl start ssh.service sudo systemctl start ModemManager.service sudo systemctl start snap.lxd.daemon.service
run the installer program:
Sudo subiquity –serial
Choose your selected setting for installation
Wait until installation is complete.
you will be asked to remove the installation media and press enter
Device will be rebooted
Enable ttyS4 service:
Boot into BIOS
Boot from the disk you installed linux on.
In the grub menu:
Choose advanced options for Ubuntu
Select the line that says recovery mode
Press ’e’
In line: linux /boot/vmlinuz-5.15.0-43-generic root=UUID=4c58e5aa-6443-4fb2-84e7-4ac2265a7b9e ro recovery nomodeset dis_ucode_ldr
Add the console redirection:
linux /boot/vmlinuz-5.15.0-43-generic root=UUID=4c58e5aa-6443-4fb2-84e7-4ac2265a7b9e ro console=tty1 console=ttyS4,115200n8 recovery nomodeset dis_ucode_ldr
Press ctrl+x to boot
Choose Root (drop into shell):
Type:
systemctl enable getty@ttyS4.service
Reboot to linux in normal mode