<alex_giusi_tiri>
hi. i would have a little issue; when i try uninstalling, `nix-env -e links`, it seems it doesn't really do it. :-?
<clever>
alex_giusi_tiri: what name does `nix-env -q` list for it?
FRidh has quit [Quit: Konversation terminated!]
worldofpeace has joined #nixos-aarch64
<alex_giusi_tiri>
...it os saying "selector matches no derivation" i tried with "links" and with "nixos.links". Thanks!
<gchristensen>
it has been another few weeks and I've forgotten the details about nixos on my odroid, but I should figure it out...
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos-aarch64
<gchristensen>
ok, I'm remembering details of my frustration with these smll computers. I Can't ever find them! :)
<makefu>
maybe they are still in the wiki? :D
<gchristensen>
I doubt it, I think it was stuck in some IRC logs.
<gchristensen>
I sort of broke it ~1yr+ ago and haven't gotten it to boot properly since. samueldr helped me get an up to date uboot going, and then I stalled at the kernel taking over
<gchristensen>
so now I'm reading those logs again and trying to make it happen
<makefu>
"curse past me for not writing proper documentation!"
<samueldr>
I think most of these CPUs have some kind of download mode or service mode
<samueldr>
Allwinner has FEL
<samueldr>
I'm pretty sure rockchip has one, don't know the details (yet)
<samueldr>
amlogic (meson) probably has one
<samueldr>
FEL for allwinner allows, among other things, to send data to memory, then "jump" to it, so you can send a u-boot, then start it, without having any storage in play
<samueldr>
Qualcomm has one too, but it's... hard to find good info about it, most of it is like "use this spooky .exe and just flash this to your phone"
<samueldr>
I'm currently trying to find more genuine info, but it's hard since when a phone's storage breaks, if that phone is using a qualcomm cpu, it's the device it ends up showing to the computer
<samueldr>
so e.g. `05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)` gives a bunch of garbage results, among those, millions of "we're a legit windows driver site we swear" kind of website :/
<gchristensen>
ouch
* samueldr
has way too many firefox windows and tabs open about different bootloadery things right now
<gchristensen>
you continue to impress me
<gchristensen>
everything stops at Starting kernel ...
<samueldr>
that's normal
<samueldr>
(IIRC)
<samueldr>
the default console= might not be the right one for your device
<gchristensen>
yeah, trying different ones
<gchristensen>
but also hdmi doesn't work, so hopefully I can land on the right one :)
<samueldr>
wait about 5 minutes for the rootfs to expand and then it probably will end up working
<gchristensen>
wow, really?
<samueldr>
because IIRC, all consoles will show a tty, even though they don't show boot messages
<samueldr>
but the image self-expands the ext4 partition at boot, so it takes an annoying amount of time at first boot
<gchristensen>
do you know what pulses the "Alive" LED?
<gchristensen>
it pulses sometimes and not other times... notably, not now
<samueldr>
it's probably something specific to the -C2 (or to that amlogic series)
<samueldr>
is it plugged into ethernet? some boards have theyr PHY led (ethernet) not in the port
<samueldr>
notably, the raspberry pi family
<gchristensen>
no it isn't
<gchristensen>
hrm so I think it is about 7min now, with no activity
<samueldr>
it's possible then that either the console= expected on -C2 isn't given, or that something else happend :)
<samueldr>
plug in a usb keyboard, type reboot[enter]
<samueldr>
if it works, that means the board successfully booted, otherwise, it's inconclusive
<gchristensen>
oh cool idea
<gchristensen>
heh, doesn't even initialize the kbd
<gchristensen>
or provide it power
<samueldr>
might be having issues then
<samueldr>
a "fun" thing with recent hardware is how memory needs training data... and sometimes it will seem to work for a while with the wrong training, and then fail later :/
<samueldr>
that could be something that's happening, otherwise, could be panicing for any reason
<gchristensen>
22925 bytes read in 5 ms (4.4 MiB/s)
<gchristensen>
## Flattened Device Tree blob at 01000000
<gchristensen>
Booting using the fdt bloOK
<gchristensen>
Loading Device Tree to 000000007d8d0000, end 000000007d8d898c ... OK
<samueldr>
right, so there's at least *some* support for it
<gchristensen>
I ... wonder ... if it isn't getting enough power over this usb connection
<gchristensen>
I disconnected hdmi and the uboot serial console got way more reliable
<samueldr>
usb power from what?
<samueldr>
because yes, it's entirely plausible
<samueldr>
some boards, notably the raspberry pi 3B, need a bunch of power to work right, and most usb ports on e.g. laptops will be spec compliant at 0.5A
<samueldr>
linuxPackages_sunxi64 ? I wonder if it's entirely relevant, but I guess it might, since at some point they also get mainline things when rebasing
<makefu>
searching for "ttyaml0" yields some google results for the odroid-c2
<samueldr>
(pro-tip: most CPU vendors will use multiple names for the same thing, just to make things fun I guess, sunxi -> allwinner; meson -> amlogic)
<samueldr>
:/ I never know what to feel when I get "[company] Confidential and Proprietary" on not-obviously-shady github repos
<makefu>
i was just looking through the logs linked in https://nixos.wiki/wiki/NixOS_on_ARM/ODROID-C2 to find the repo of georgewhewell which supposently builts images for a ton of single-board computers for nixos
<samueldr>
whether it's the source file header that's not been changed for an open source release, or it's misappropriated code
<gchristensen>
cp: error writing '/dev/mmcblk0': No space left on device -- annoying. it isn't out of space, the kernel is just unhappy for some reason.
<samueldr>
gchristensen: mmcblk0 is the nand or the sd card?
<gchristensen>
sdcard
<samueldr>
NAND support is marked as WIP in the linux-meson wiki
<gchristensen>
the disk is corrupted somewhere
<gchristensen>
so I'm rewriting it
<gchristensen>
or, trying, but failing :)
<gchristensen>
after a quick reboot, my laptop system is happy enough to write to it.
<gchristensen>
stage 1!
<gchristensen>
stage 2!
<gchristensen>
"Started login service"
<gchristensen>
YAY! ok, gotta run, I'll write up some info on the wiki after a thing.
<gchristensen>
back in 2-3hrs :D :D thank you samueldr, makefu!
<samueldr>
:)
<gchristensen>
Linux nixos 4.19.13 #1-NixOS SMP PREEMPT Sat Dec 29 12:37:59 UTC 2018 aarch64 GNU/Linux
<gchristensen>
woooot
<makefu>
great, maybe the c2 will be the next board i buy :)
<samueldr>
isn't it getting a bit old?
<samueldr>
(though yeah, that means better support hopefully)