zupo has quit [Ping timeout: 240 seconds]
lopsided98 has quit [Ping timeout: 252 seconds]
lopsided98 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has quit [Ping timeout: 258 seconds]
jackdk_ has joined #nixos-aarch64
bkchr[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
pdafriend[m] has quit [Quit: removing from IRC because user idle on matrix for 30+ days]
zupo has quit [Ping timeout: 272 seconds]
zupo has joined #nixos-aarch64
worldofpeace has quit [Ping timeout: 268 seconds]
worldofpeace has joined #nixos-aarch64
orivej has joined #nixos-aarch64
worldofpeace has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 250 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 258 seconds]
FRidh has joined #nixos-aarch64
FRidh has quit [Client Quit]
FRidh has joined #nixos-aarch64
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 258 seconds]
jackdk_ has quit [Remote host closed the connection]
exarkun1 has quit [Read error: Connection reset by peer]
dtz has quit [Read error: Connection reset by peer]
thefloweringash has quit [Remote host closed the connection]
codyopel has quit [Read error: Connection reset by peer]
timokau[m] has quit [Remote host closed the connection]
bennofs[m] has quit [Read error: Connection reset by peer]
peel has quit [Remote host closed the connection]
moredread[m] has quit [Remote host closed the connection]
Ericson2314 has quit [Remote host closed the connection]
sphalerit has quit [Read error: Connection reset by peer]
cornu has quit [Remote host closed the connection]
sphalerit has joined #nixos-aarch64
orivej has joined #nixos-aarch64
thefloweringash has joined #nixos-aarch64
peel has joined #nixos-aarch64
codyopel has joined #nixos-aarch64
Ericson2314 has joined #nixos-aarch64
cornu has joined #nixos-aarch64
timokau[m] has joined #nixos-aarch64
dtz has joined #nixos-aarch64
exarkun1 has joined #nixos-aarch64
bennofs[m] has joined #nixos-aarch64
moredread[m] has joined #nixos-aarch64
lopsided98 has quit [Read error: Connection reset by peer]
lopsided98 has joined #nixos-aarch64
lopsided98 has quit [Client Quit]
lopsided98 has joined #nixos-aarch64
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos-aarch64
orivej has quit [Ping timeout: 250 seconds]
orivej has joined #nixos-aarch64
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo__ has joined #nixos-aarch64
zupo has quit [Ping timeout: 240 seconds]
zupo_ has quit [Ping timeout: 250 seconds]
zupo__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo_ has joined #nixos-aarch64
zupo_ has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 272 seconds]
zupo_ has quit [Quit: Textual IRC Client: www.textualapp.com]
zupo has joined #nixos-aarch64
alex_giusi_tiri has joined #nixos-aarch64
<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!"
<gchristensen> I've never gotten in to work
<gchristensen> so I'd only document what didn't
<samueldr> gchristensen: I can help you possibly
<samueldr> gchristensen: here's your success woot https://logs.nix.samueldr.com/nixos-aarch64/2018-11-21#1738333;
<gchristensen> I might have sorted why the nixos image didn't boot off the card, bad superblock
<samueldr> and the fork with the u-boot build instructions https://github.com/NixOS/nixpkgs/compare/master...samueldr:u-boot/odroid-c2
<samueldr> branch*
<gchristensen> thank you, samueldr!
<samueldr> I don't know what's to be expected from the mainline kernel though
<gchristensen> 1: NixOS - Default
<gchristensen> Enter choice:
<samueldr> that's to be expected when booting the sd_image with u-boot :)
<gchristensen> yeah, so rewriting the disk with a freshly downloaded image improved things
<gchristensen> I wonder if shops that develop boards like this have special setups to make it easy to read / write the disks and try new images
<gchristensen> or if it is the same, sorta tedious moving microsd cards back and forth
<makefu> maybe they are actually using some dedicated adapter: http://www.saelig.com/product/MIO001.htm
<gchristensen> huh
<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> wow! cool!
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
<gchristensen> console=ttyS0,115200n8 console=ttyAMA0,115200n8 console=tty0 <- comes from the nixos image
<gchristensen> iirc, we don't support more than 1 console= line
<samueldr> exactly
<gchristensen> oh :)
<samueldr> #42255 is related
<{^_^}> https://github.com/NixOS/nixpkgs/pull/42255 (by dezgeg, 28 weeks ago, open): WIP: Log stage-{1,2} output to secondary consoles
<gchristensen> oh!
<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
<samueldr> it's possible you're plugged to ttyS1
<samueldr> is it*?
<gchristensen> OH! I got a "initialized" beep on my keyboard
<gchristensen> I ... don't know ...
<gchristensen> no I don't think so
<samueldr> ... is the way it usually starts
<samueldr> ah lol
<gchristensen> I'm connected to the dedicated UART connection
<samueldr> okay, so probably "CON5" I guess, which they say should be ttyS0
<samueldr> (though that's probably on their fork)
<samueldr> I would edit the boot options and remove all console args except ttyS0
<gchristensen> yeah, I've done that, going through the options of:
<gchristensen> # - console=ttyAMA0,115200n8
<gchristensen> # - console=ttyS0,115200n8
<gchristensen> # - console=tty0,115200n8
<samueldr> tty0 would be the screen
<samueldr> I would try in order, ttyS0, ttyS1, then ttyAMA0
<gchristensen> giving ttyS0 without a speed a shot
<samueldr> it's possible the two serial ports are switched on the mainline kernel
<samueldr> hmmm, does the mainline kernel even support the odroid-c2?
<gchristensen> it finds a dtb
<gchristensen> Retrieving file: /extlinux/../nixos/gz1chw67hj8fj2b3xdrkv1nxrv8jvdzv-linux-4.19.13-dtbs/amlogic/meson-gxbb-odroidc2.dtb
<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
<gchristensen> yeah I'm using my laptop :)
<makefu> according to https://github.com/georgewhewell/nixos-nanopim3/blob/master/hardware/boards/odroid-c2.nix#L40 ttyAML0 may be the right tty for the odroid-c2
<gchristensen> AML? :o
<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> yeah, almost certainly ttyAML0 :)
<gchristensen> bingo!
<gchristensen> way to go makefu!
<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)
Acou_Bass has quit [Ping timeout: 272 seconds]
Acou_Bass has joined #nixos-aarch64