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
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] | |
[ 0.000000] Linux version 5.18.3 (nixbld@localhost) (gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.38) #1-mobile-nixos SMP PREEMPT Tue Jan 1 00:00:00 UTC 1980 | |
[ 0.000000] Machine model: Motorola G5 Plus (potter) | |
[ 0.000000] efi: UEFI not found. | |
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000081800000, size 0 MiB | |
[ 0.000000] OF: reserved mem: initialized node memory@81800000, compatible id shared-dma-pool | |
[ 0.000000] NUMA: No NUMA configuration found | |
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000ffffffff] | |
[ 0.000000] NUMA: NODE_DATA [mem 0xff9f1a40-0xff9f3fff] | |
[ 0.000000] Zone ranges: |
{ lib, pkgs, config, ... }: | |
let | |
inherit (lib.strings) makeBinPath; | |
app = pkgs.callPackage ../mobile-nixos/examples/hello/app {}; | |
hello-gui = pkgs.mobile-nixos.stage-1.script-loader.wrap { | |
name = "hello-gui"; | |
applet = "${app}/libexec/app.mrb"; | |
env = { | |
PATH = "${makeBinPath (with pkgs;[ | |
systemd # journalctl |
;; lib.fnl | |
;; surely there is a better way to do this | |
(fn next-key [tbl current-key] | |
(let [first (next tbl) | |
n | |
(accumulate [is-next nil | |
id view (pairs tbl) | |
:until (and is-next (not (= is-next current-key)))] |
{ config, lib, pkgs, ... }: | |
let | |
inherit (lib) mkForce; | |
in | |
{ | |
imports = | |
let mobile = fetchTarball { | |
name = "mobile-nixos"; | |
url = "https://codeload.github.com/NixOS/mobile-nixos/tar.gz/c45932ae53aa0c5da9cfddd25e7cbb503f472147"; |
(local lgi (require :lgi)) | |
(local inspect (require :inspect)) | |
(local Gtk lgi.Gtk) | |
(local WebKit2 lgi.WebKit2) | |
(let [current-url "https://terse.telent.net" | |
window (Gtk.Window { | |
:title "Just browsing" | |
:default_width 800 |
(local lgi (require :lgi)) | |
(local dbus (require :dbus_proxy)) | |
(local GLib lgi.GLib) | |
(local GV lgi.GLib.Variant) | |
(local variant dbus.variant) | |
;; https://www.freedesktop.org/software/ModemManager/api/latest/ref-dbus.html | |
(local modem-manager | |
(dbus.Proxy:new | |
{ |
(local lgi (require :lgi)) | |
(local gtk lgi.Gtk) | |
(let [window (gtk.Window { | |
:title "My window" | |
:default_width 400 | |
:default_height 400 | |
})] | |
(window:show_all)) |
# nix-build -E 'with import <nixpkgs> {}; pkgs.callPackage ./. {}' ; nix-env -i result/ | |
{ stdenv | |
, lib | |
, fetchzip | |
, wrapFirefox | |
, firefox-esr-unwrapped | |
, fetchFirefoxAddon }: | |
with { inherit (builtins) readFile replaceStrings; }; | |
let |
diff --git a/support/builders/allwinner-a64/default.nix b/support/builders/allwinner-a64/default.nix | |
index 7ffddc1..e8efef8 100644 | |
--- a/support/builders/allwinner-a64/default.nix | |
+++ b/support/builders/allwinner-a64/default.nix | |
@@ -1,4 +1,4 @@ | |
-{ lib, buildTowBoot, TF-A, imageBuilder, runCommandNoCC, spiInstallerPartitionBuilder }: | |
+{ lib, buildTowBoot, crustFirmware, TF-A, imageBuilder, runCommandNoCC, spiInstallerPartitionBuilder }: | |
# For Allwinner A64 and Allwinner A64 compatible based hardware | |
{ withSPI ? false, ... } @ args: |