Skip to content

Commit

Permalink
Use ttyAMA1
Browse files Browse the repository at this point in the history
This allows raspi4b to boot. It fails while trying to mount a volume.

Keep in mind that the SSH authorized keys truncate the append, so
important cmdlines must be added here
```sh
cat <<EOF> mkosi.local.conf
[Host]
ExtraSearchPaths=build/
KernelCommandLine=earlycon=pl011,mmio32,0xfe201000 console=ttyAMA1 root=/dev/mmcblk1p2 rootdelay=1
EOF
```

```sh
sudo mkosi --machine $(uuidgen) --debug --qemu-firmware linux --qemu-kernel kernel8.img --qemu-kvm=false --qemu-swtpm=false --qemu-smp 4 --runtime-scratch=false qemu -machine raspi4b -dtb bcm2711.dtb
```

Signed-off-by: Anne Isabelle "Anya" Macedo <annie@retpolanne.com>
  • Loading branch information
retpolanne committed Nov 25, 2024
1 parent f970e1a commit 1bf2aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ def to_oci(self) -> str:

def default_serial_tty(self) -> str:
return {
Architecture.arm : "ttyAMA0",
Architecture.arm64 : "ttyAMA0",
Architecture.arm : "ttyAMA1",
Architecture.arm64 : "ttyAMA1",
Architecture.s390 : "ttysclp0",
Architecture.s390x : "ttysclp0",
Architecture.ppc : "hvc0",
Expand Down

0 comments on commit 1bf2aef

Please sign in to comment.