<samueldr>
though it might be that odroid's build overrides the feature
<samueldr>
with that, it should be able to pick up and boot from the extlinux.conf file
<samueldr>
(sadly, no uefi since that was ~2017 IIRC)
<samueldr>
you could inspect the environment at boot by stopping the boot process
<samueldr>
and using `printenv`
<samueldr>
there should be a couple variables named like `bootcmd_something`
<samueldr>
you could use `run bootcmd_something` to try and boot from that device, though I don't have a N2 around to better help :)
<ardumont>
yeah, your code and the supposedly doc entry derived from it helped a bit already (from odroid-c2)
<ardumont>
(also the immediate suggestion)
<ardumont>
i just groked the 'it might be odroid's build overrides the feature' ;)
<ardumont>
i'm not even there
<ardumont>
so far, i've played (tried to at least) to make things work with other working distributions's uboot stuff (ubuntu's) and the blinking blue led as feedback
<ardumont>
(i've only purchased from a couple hours ago the usb-uart kit to be able to have more feedback ;)
mthst has quit [Ping timeout: 248 seconds]
<THFKA4>
you can try diffing the 2015 uboot with the hardkernel for to see what they even changed
<THFKA4>
fork*
<samueldr>
not much s922x stuff in master, so forward porting the BSP changes could be hard, since it also mean rejuvenating the code so it works with whatever changed
<samueldr>
though not impossible
<ardumont>
in the very file mentioned by samueldr, there are also commands to scan for extlinux `scan_dev_for_extlinux` or `boot_extlinux`
mthst has joined #nixos-aarch64
<samueldr>
yeah, generally you start with `run boot_DEVICE` like `run boot_mmc1` or `boot_usb`
<samueldr>
because just `boot_extlinux` won't work since it expects a device set by `boot_DEVICE`
<ardumont>
i'm unclear whether those instructions are from the boot.ini or something else though (i need to document myself more)
<ardumont>
(from what i already saw in that file, it looks like it)
<ardumont>
heh, trying to build uboot for now, i'll see how to patch things up after
<ardumont>
~> "nix-build -A pkgsCross.aarch64-multiplatform.ubootOdroidN2" substituting the src from upstream to hardkernel's
<ardumont>
as a tryout
<ardumont>
which fails naturally
ryantrinkle has quit [Ping timeout: 248 seconds]
jackdk_ has joined #nixos-aarch64
ToxicFrog has joined #nixos-aarch64
<ToxicFrog>
So, I'm trying to set up nixos on an rpi3b (not b+), and it's not going super well
<ToxicFrog>
I dd the install image to an SD card, and it boots up and does the initial partition resize just fine, and if I reboot it at that point it boots back into the installation environment with no fuss.
<ToxicFrog>
But once I replace configuration.nix with my own setup and nixos-rebuild, it stops booting entirely.
<ToxicFrog>
It finds extlinux.conf and loads the kernel and initrd, but then hangs at "Starting Kernel..."
<ToxicFrog>
I'm using HDMI and a USB keyboard (no serial console).
<ToxicFrog>
Note that once I nixos-rebuild it stops booting even the original generation that came with the install image, with the same symptoms.
<ToxicFrog>
I've checked the extlinux.conf just in case it was somehow clobbering the options for that generation, but it still has the original cmdline and everything.