Skip to content

Instantly share code, notes, and snippets.

@telent
Last active August 1, 2022 10:39
Show Gist options
  • Save telent/4ea6af093f057401ae459d7ab42d4df7 to your computer and use it in GitHub Desktop.
Save telent/4ea6af093f057401ae459d7ab42d4df7 to your computer and use it in GitHub Desktop.

Symptoms

boots to grub menu, but when any option selected it says

unaligned pointer 0x8c6ebc159a4294f5
Aborted. Press any key to exit.

Pressing a key resets the board

Sources

https://github.com/NixOS/nixpkgs/compare/master...telent:nixpkgs:not-again

I built the image with

NIX_PATH=nixpkgs=./nixpkgs nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage  -I nixos-config=./odroid-n2-text-mode.nix

Hardware/firmware

Odroid N2 Plus with Tow-Boot in SPI. Cross-compiling from x86-64

$ cat odroid-n2-text-mode.nix
{ pkgs, modulesPath, lib, ... }:
let inherit (lib) mkForce; in {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal-new-kernel.nix"
];
boot.initrd.kernelModules = [
"usb_storage"
"uas"
];
documentation.enable = lib.mkOverride 32000 false;
documentation.nixos.enable = lib.mkOverride 32000 false;
nixpkgs.crossSystem.system = "aarch64-linux";
boot.supportedFilesystems = lib.mkForce [ "vfat" "f2fs" "xfs" ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment