skiffos / SkiffOS

Any Linux distribution, anywhere.
https://skiffos.com
MIT License
687 stars 51 forks source link

allwinner/nezha: new risc-v platform #189

Closed paralin closed 2 years ago

paralin commented 2 years ago

Adds support for the RISC-V Allwinner Nezha.

paralin commented 2 years ago

Works up to a certain point in u-boot process:

Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1:      SkiffOS
Retrieving file: /rootfs.cpio.lz4
Retrieving file: /Image
append: console=ttyS0,115200 root=/dev/ram0 rw init=/lib/systemd/systemd
Retrieving file: /sun20i-d1-nezha.dtb
Moving Image from 0x40040000 to 0x40200000, end=417dfbc8
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
ERROR: Failed to allocate 0x7688268 bytes below 0x42e00000.
ramdisk - allocation error

... most likely the initramfs is too large (for the 1GB memory).

Will test a few things to confirm this is the reason.

paralin commented 2 years ago

Needs further boot debugging. But mostly there.

paralin commented 2 years ago

Status: boots to kernel, everything else not tested yet.

Next focus is to get the newer kernel running.

Known issues:

paralin commented 2 years ago

image

paralin commented 2 years ago

The system now boots & is ssh-accessible, albeit with some features disabled:

image

paralin commented 2 years ago

image

paralin commented 2 years ago

Networking + internet works :)

image

paralin commented 2 years ago

Now everything works. Testing with all optimizations & security opts enabled now.

paralin commented 2 years ago

image