h0m1 has quit [Ping timeout: 245 seconds]
h0m1 has joined #nixos-aarch64
<clever> samueldr: still stuck on VFP stuff here :(
<samueldr> they don't break them out in a convenient manner (e.g. headphone jack or type-c SBU lines)
<samueldr> but it's amazing that they list the location!
<clever> yeah, that is amazing
orivej has quit [*.net *.split]
betaboon has quit [*.net *.split]
ToxicFrog has quit [*.net *.split]
kcalvinalvin has quit [*.net *.split]
Acou_Bass has quit [*.net *.split]
grw has quit [*.net *.split]
nbp has quit [*.net *.split]
njd has quit [*.net *.split]
aminechikhaoui has quit [*.net *.split]
v0|d has quit [*.net *.split]
ornxka has quit [*.net *.split]
disasm has quit [*.net *.split]
<clever> the 1v8 is a bit low, i dont have any adapters that low
<samueldr> I have one uart cable that is supposed to be 1.8V, identified and put away
<samueldr> I wouldn't trust myself if it was with the other ones
<clever> i usually find RX by just hooking the scope up to random pins until i get serial data
<clever> TX i mean
<clever> [ 0.000000] Architected cp15 and mmio timer(s) running at 19.20MHz (virt/virt).
<clever> samueldr: wait a tick....
<clever> thats the same freq and timer the rpi is using, the stuff i just fixed yesterday...
<clever> [ 7.188149] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000ff00
<clever> ok, so `dup2` returned `-1` as an 8bit int...
<clever> [ 7.188175] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000900
<clever> OS error code 9: Bad file descriptor
<clever> [ 7.188142] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000600
<clever> OS error code 6: No such device or address
<clever> when i try to open /dev/ttyAMA0
<samueldr> do you run an init script with -e?
<samueldr> that would explain the codes I guess
<samueldr> you might want to redirect to /proc/kmsg
<clever> samueldr: i already have a console=ttyAMA0 that should have fixed things
<clever> samueldr: so i'm now using a custom c binary as /init, and returning a unique exit code for each failure condition
<samueldr> and I meant /dev/kmsg
<samueldr> ah
<samueldr> if you write to /dev/kmsg, it'll go in the dmesg buffer
<samueldr> since you already have it, I think, you can debug why opening the console fails if it fails
<samueldr> with more info
<samueldr> with Mobile NixOS it's been helpful in situations where I had to rely on console ramoops
<samueldr> the ramoops only contains the dmesg output
<samueldr> though I wonder if you can use it as a console
<samueldr> so if I redirect the init logging to /dev/kmsg, I can get the init's log too
<clever> samueldr: testing...
<clever> [ 8.518785] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
<clever> that could be 2 things
<clever> OS error code 4: Interrupted system call
<clever> while opening kmsg
<clever> or, a -1 from dup2(fd, 1);
<clever> samueldr: i just came to a realization!
<clever> samueldr: what if its the blasted device-tree, with the uart disabled??
<clever> but the decompiled dtb says its on
<clever> [ 0.000000] Kernel panic - not syncing: /soc/local_intc@40000000: unable to map local interrupt registers
<clever> /nix/store/raznalfsw83pp5q94akrfwv6h0kppmff-rpi3.dts:64.5-30: Warning (reg_format): /local_intc@40000000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
<clever> [ 3.389550] Run /init as init process
<clever> [ 3.393796] hello world
<clever> samueldr: its alive!!!
<samueldr> what was the issue?
<clever> samueldr: the DTB file i copied from upstream, disables the serial port by default
<clever> samueldr: and i lack the ability to apply device-tree-overlays
<clever> samueldr: and i was missing a few critical lines from my custom dts, so it failed to setup interupts (until now)
<clever> but now that my custom DT works, /dev/ttyAMA0 is actually being created
<clever> so console=ttyAMA0 works
<clever> and it can find /dev/console on its own
<clever> ish
<clever> [ 3.332228] Warning: unable to open an initial console -2.
<clever> it actually still failed, but then was able to print anyways?
<samueldr> lol
<clever> but now i have stdout when things fail, and can do more then exit with a 16bit int
<clever> printf("failed to open kmsg: %s\n", strerror(errno));
<clever> real error messages, here we go!
<clever> [ 3.396309] potentially unexpected fatal signal 4.
<clever> oh wait
<clever> thats not a `return 4`
<clever> thats death due to signal 4
<clever> write(1, "hello world\n", 12); works
<clever> printf("and now with printf\n"); dies
<clever> 747M /nix/store/diqiirnl2axx7ajb4dsyyjh6bp2brff6-armv6l-unknown-linux-musleabihf-stage-final-gcc-debug-8.3.0
<clever> 1000M total
<clever> samueldr: dear god, -g makes my initrd 1gig in size!
<clever> and this firmware isnt configured to give linux 1gig, lol
<clever> no debug for you!
<samueldr> how the
<clever> it depends on gcc
<samueldr> oh, deps and stuff
<samueldr> you don't use the nixos-special-sauce that minifies things
<clever> correct
<clever> just naked pkgs.makeInitrd
<clever> [ 3.393804] hello world
<clever> [ 3.396318] potentially unexpected fatal signal 4.
<clever> [ 3.416539] pc : [<00010bec>] lr : [<00012458>] psr: 80000010
<clever> 00010be8 <printf_core>: 10be8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10bec: ed2d8b04 vpush {d8-d9}
<clever> 00010be8 <printf_core>:
<clever> 10be8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
<clever> 10bec: ed2d8b04 vpush {d8-d9}
<clever> samueldr: well, now i know why printf fails, lol
Acou_Bass has joined #nixos-aarch64
THFKA4 has quit [Ping timeout: 245 seconds]
THFKA4 has joined #nixos-aarch64
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
lopsided98 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
Aleksejs has quit [Quit: Goodbye]
Aleksejs has joined #nixos-aarch64
ornxka has joined #nixos-aarch64
grw has joined #nixos-aarch64
nbp has joined #nixos-aarch64
ToxicFrog has joined #nixos-aarch64
disasm has joined #nixos-aarch64
v0|d has joined #nixos-aarch64
njd has joined #nixos-aarch64
orivej has joined #nixos-aarch64
betaboon has joined #nixos-aarch64
kcalvinalvin has joined #nixos-aarch64
aminechikhaoui has joined #nixos-aarch64
orivej has quit [Ping timeout: 268 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 245 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
<marijan[m]> can somebody help me with enabling SPI on a raspberry pi 3 running nixos? I've added the spidev and spi_bcm2835 kernel modules and enabled spi in the /boot/config.txt, but after rebuilding and rebooting I don't get the spi devices listed
t184256 has left #nixos-aarch64 ["Error from remote client"]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
t184256 has joined #nixos-aarch64
<grw> marijan[m]: not sure, but would guess you need to apply relevant dt overlay like this- https://nixos.org/nixos/manual/options.html#opt-hardware.deviceTree.overlays
ryantrinkle has quit [Ping timeout: 276 seconds]
ryantrinkle has joined #nixos-aarch64
<marijan[m]> grw: when I try to switch to a new generation I get the error message "The option `hardware.deviceTree' defined in xxx does not exist."
<grw> marijan[m]: maybe you need to use newer channel.. try rebuild with `-I nixpkgs=channel:nixos-19.09`
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 268 seconds]
zupo has joined #nixos-aarch64
vika_nezrimaya has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vika_nezrimaya has quit [Ping timeout: 276 seconds]
mehlon has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
lovesegfault has quit [Ping timeout: 276 seconds]
orivej has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 245 seconds]
mehlon has quit [Quit: Quit]
ryantrinkle has quit [Ping timeout: 276 seconds]
ryantrinkle has joined #nixos-aarch64
orivej has joined #nixos-aarch64
fpletz has quit [Remote host closed the connection]
fpletz has joined #nixos-aarch64
fpletz has joined #nixos-aarch64
fpletz has quit [Changing host]
zupo has joined #nixos-aarch64
Thra11 has quit [Ping timeout: 276 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tilpner_ has joined #nixos-aarch64
tilpner has quit [Ping timeout: 276 seconds]
orivej has quit [Ping timeout: 268 seconds]