Skip to content

Releases: ryan4yin/nixos-licheepi4a

Add support for remote deployment

15 Aug 14:32
Compare
Choose a tag to compare

What Changed

  1. Support for booting from emmc
  2. Add support for remote deployment
  3. Only the most necessary packages are installed by default now, the image size is reduced to 600MB.

Known Issues

  • fix the sdImage's file size
  • fix the sdImage's auto resize after the first boot.
  • networkmanager(nmcli/nmtui) failed to compiled.
  • Failed to enable firewall due to the error: firewall-start[2300]: iptables: Failed to initialize nft: Protocol not supported

Build all things from source

07 Aug 20:26
Compare
Choose a tag to compare

What Changed

  1. Build opensbi & u-boot from source - Thanks to @chainsx & @Rabenda
  2. Add some useful packages into the prebuilt sdImage.
  3. (WIP) Support flashing flashing rootfs into emmc, not working yet.

The first version(currently without GUI)

05 Aug 20:51
Compare
Choose a tag to compare

v0.0.1beta1

25 Jun 15:05
Compare
Choose a tag to compare
v0.0.1beta1 Pre-release
Pre-release

Still not working, the rootfs has been successfully built with the help of @revy_rabenda , but it seems that the boot partition still has some work to do.

file structure:

› ls
╭───┬───────────────────────┬──────┬──────────┬──────────────╮
│ # │         name          │ type │   size   │   modified   │
├───┼───────────────────────┼──────┼──────────┼──────────────┤
│ 0 │ boot                  │ dir  │   4.1 KB │ 53 years ago │
│ 1 │ lost+found            │ dir  │  16.4 KB │ 53 years ago │
│ 2 │ nix                   │ dir  │   4.1 KB │ 53 years ago │
│ 3 │ nix-path-registration │ file │ 242.7 KB │ 53 years ago │
╰───┴───────────────────────┴──────┴──────────┴──────────────╯

› ls boot/
╭───┬───────────────────────────┬──────┬──────────┬──────────────╮
│ # │           name            │ type │   size   │   modified   │
├───┼───────────────────────────┼──────┼──────────┼──────────────┤
│ 0 │ boot/extlinux             │ dir  │   4.1 KB │ 53 years ago │
│ 1 │ boot/fw_dynamic.bin       │ file │ 121.8 KB │ 53 years ago │
│ 2 │ boot/light_aon_fpga.bin   │ file │  50.3 KB │ 53 years ago │
│ 3 │ boot/light_c906_audio.bin │ file │  16.4 KB │ 53 years ago │
│ 4 │ boot/nixos                │ dir  │   4.1 KB │ 53 years ago │
╰───┴───────────────────────────┴──────┴──────────┴──────────────╯


› cat boot/extlinux/extlinux.conf
# Generated file, all changes will be lost on nixos-rebuild!

# Change this to e.g. nixos-42 to temporarily boot to an older configuration.
DEFAULT nixos-default

MENU TITLE ------------------------------------------------------------
TIMEOUT 50

LABEL nixos-default
  MENU LABEL NixOS - Default
  LINUX ../nixos/rzc42b6qjxy10wb1wkfmrxjcxsw52015-linux-riscv64-unknown-linux-gnu-5.10.113-thead-1520-Image
  INITRD ../nixos/vh8624bjxdpxh7ds3nqvqbx992yx63hp-initrd-linux-riscv64-unknown-linux-gnu-5.10.113-thead-1520-initrd
  APPEND init=/nix/store/a5gnycsy3cq4ix2k8624649zj8xqzkxc-nixos-system-nixos-23.05.20230624.3ef8b37/init console=ttyS0,115200 root=/dev/mmcblk0p3 rootfstype=ext4 rootwait rw earlycon clk_ignore_unused loglevel=7 eth=$ethaddr rootrwoptions=rw,noatime rootrwreset=yes init=/lib/systemd/systemd loglevel=4
  FDT ../nixos/rzc42b6qjxy10wb1wkfmrxjcxsw52015-linux-riscv64-unknown-linux-gnu-5.10.113-thead-1520-dtbs/thead/light-lpi4a.dtb