NixOS on ARM/Clockworkpi A06 uConsole: Difference between revisions
imported>Tarinaky No edit summary |
m Add category |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{ARM/breadcrumb}} | |||
== Status == | == Status == | ||
Panel/Display works. Broadcom wifi works. System boots. All other features untested. | Panel/Display works. Broadcom wifi works. System boots. All other features untested. These instructions are specific to the A06 version and will not work on the CM4. I don't have the version with the Qualcomm 4G extension board, so I cannot advise on how to get that running. | ||
NB: Currently only works with Nixos-23.11 channel. System will not boot with 24.05 image. I haven't figured out why. | |||
=== Modules / Drivers === | === Modules / Drivers === | ||
| Line 7: | Line 10: | ||
== Kernel == | == Kernel == | ||
The device tree patches to make the panel/display work are currently only available as kernel patches. The official patches only support kernel 5.x, however there is a community patchset for kernel 6.5 available at [[https://github.com/Autianic/clockworkpi-linux-kernel/tree/master/linux-clockworkpi-a06]] | The device tree patches to make the panel/display work are currently only available as kernel patches. The official patches only support kernel 5.x, however there is a community patchset for kernel 6.5/6.6 available at [[https://github.com/Autianic/clockworkpi-linux-kernel/tree/master/linux-clockworkpi-a06]] | ||
These patches can be applied using the following nix snippet: | These patches can be applied using the following nix snippet: | ||
boot.kernelPackages = pkgs. | boot.kernelPackages = pkgs.linuxPackages_6_6; | ||
boot.kernelPatches = [ | boot.kernelPatches = [ | ||
{ | { | ||
| Line 45: | Line 48: | ||
} | } | ||
]; | ]; | ||
NB: At time of writing, ZFS is marked broken for Kernel 6.5, so you will have to disable zfs to build this kernel with the following snippet | |||
nixpkgs.overlays = [(final: super: { zfs = super.zfs.overrideAttrs(_: { meta.platforms = []; }); })]; | |||
| Line 61: | Line 68: | ||
$ dd if=uConsole_A06_v1.1e.img of=nixos_a06.img count=32768 | $ dd if=uConsole_A06_v1.1e.img of=nixos_a06.img count=32768 | ||
$ dd if=your_nixos_image.img skip= | $ dd if=your_nixos_image.img skip=77824 of=nixos_a06.img seek=32768 | ||
The partition table for the resulting image will then be wrong, but we can fix that with fdisk by deleting our partition, and then recreating it. | The partition table for the resulting image will then be wrong, but we can fix that with fdisk by deleting our partition, and then recreating it. | ||
| Line 80: | Line 87: | ||
Your image should now be bootable. | Your image should now be bootable. | ||
[[Category:NixOS on ARM]] | |||