02:41
h0m1 has quit [Ping timeout: 245 seconds]
02:43
h0m1 has joined #nixos-aarch64
04:07
<
clever >
samueldr: still stuck on VFP stuff here :(
04:08
<
samueldr >
they don't break them out in a convenient manner (e.g. headphone jack or type-c SBU lines)
04:08
<
samueldr >
but it's amazing that they list the location!
04:08
<
clever >
yeah, that is amazing
04:08
orivej has quit [*.net *.split]
04:08
betaboon has quit [*.net *.split]
04:08
ToxicFrog has quit [*.net *.split]
04:08
kcalvinalvin has quit [*.net *.split]
04:08
Acou_Bass has quit [*.net *.split]
04:08
grw has quit [*.net *.split]
04:08
nbp has quit [*.net *.split]
04:08
njd has quit [*.net *.split]
04:08
aminechikhaoui has quit [*.net *.split]
04:08
v0|d has quit [*.net *.split]
04:08
ornxka has quit [*.net *.split]
04:08
disasm has quit [*.net *.split]
04:09
<
clever >
the 1v8 is a bit low, i dont have any adapters that low
04:10
<
samueldr >
I have one uart cable that is supposed to be 1.8V, identified and put away
04:10
<
samueldr >
I wouldn't trust myself if it was with the other ones
04:11
<
clever >
i usually find RX by just hooking the scope up to random pins until i get serial data
04:11
<
clever >
[ 0.000000] Architected cp15 and mmio timer(s) running at 19.20MHz (virt/virt).
04:11
<
clever >
samueldr: wait a tick....
04:11
<
clever >
thats the same freq and timer the rpi is using, the stuff i just fixed yesterday...
04:50
<
clever >
[ 7.188149] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000ff00
04:50
<
clever >
ok, so `dup2` returned `-1` as an 8bit int...
04:53
<
clever >
[ 7.188175] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000900
04:53
<
clever >
OS error code 9: Bad file descriptor
04:59
<
clever >
[ 7.188142] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000600
04:59
<
clever >
OS error code 6: No such device or address
04:59
<
clever >
when i try to open /dev/ttyAMA0
05:11
<
samueldr >
do you run an init script with -e?
05:11
<
samueldr >
that would explain the codes I guess
05:11
<
samueldr >
you might want to redirect to /proc/kmsg
05:12
<
clever >
samueldr: i already have a console=ttyAMA0 that should have fixed things
05:12
<
clever >
samueldr: so i'm now using a custom c binary as /init, and returning a unique exit code for each failure condition
05:13
<
samueldr >
and I meant /dev/kmsg
05:13
<
samueldr >
if you write to /dev/kmsg, it'll go in the dmesg buffer
05:13
<
samueldr >
since you already have it, I think, you can debug why opening the console fails if it fails
05:13
<
samueldr >
with more info
05:14
<
samueldr >
with Mobile NixOS it's been helpful in situations where I had to rely on console ramoops
05:15
<
samueldr >
the ramoops only contains the dmesg output
05:15
<
samueldr >
though I wonder if you can use it as a console
05:15
<
samueldr >
so if I redirect the init logging to /dev/kmsg, I can get the init's log too
05:25
<
clever >
samueldr: testing...
05:25
<
clever >
[ 8.518785] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
05:26
<
clever >
that could be 2 things
05:26
<
clever >
OS error code 4: Interrupted system call
05:26
<
clever >
while opening kmsg
05:26
<
clever >
or, a -1 from dup2(fd, 1);
05:28
<
clever >
samueldr: i just came to a realization!
05:28
<
clever >
samueldr: what if its the blasted device-tree, with the uart disabled??
05:29
<
clever >
but the decompiled dtb says its on
05:33
<
clever >
[ 0.000000] Kernel panic - not syncing: /soc/local_intc@40000000: unable to map local interrupt registers
05:35
<
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)
06:00
<
clever >
[ 3.389550] Run /init as init process
06:00
<
clever >
[ 3.393796] hello world
06:00
<
clever >
samueldr: its alive!!!
06:01
<
samueldr >
what was the issue?
06:01
<
clever >
samueldr: the DTB file i copied from upstream, disables the serial port by default
06:01
<
clever >
samueldr: and i lack the ability to apply device-tree-overlays
06:01
<
clever >
samueldr: and i was missing a few critical lines from my custom dts, so it failed to setup interupts (until now)
06:02
<
clever >
but now that my custom DT works, /dev/ttyAMA0 is actually being created
06:02
<
clever >
so console=ttyAMA0 works
06:02
<
clever >
and it can find /dev/console on its own
06:02
<
clever >
[ 3.332228] Warning: unable to open an initial console -2.
06:03
<
clever >
it actually still failed, but then was able to print anyways?
06:03
<
clever >
but now i have stdout when things fail, and can do more then exit with a 16bit int
06:04
<
clever >
printf("failed to open kmsg: %s\n", strerror(errno));
06:04
<
clever >
real error messages, here we go!
06:05
<
clever >
[ 3.396309] potentially unexpected fatal signal 4.
06:05
<
clever >
thats not a `return 4`
06:05
<
clever >
thats death due to signal 4
06:05
<
clever >
write(1, "hello world\n", 12); works
06:05
<
clever >
printf("and now with printf\n"); dies
06:10
<
clever >
747M /nix/store/diqiirnl2axx7ajb4dsyyjh6bp2brff6-armv6l-unknown-linux-musleabihf-stage-final-gcc-debug-8.3.0
06:10
<
clever >
1000M total
06:10
<
clever >
samueldr: dear god, -g makes my initrd 1gig in size!
06:10
<
clever >
and this firmware isnt configured to give linux 1gig, lol
06:10
<
clever >
no debug for you!
06:11
<
clever >
it depends on gcc
06:11
<
samueldr >
oh, deps and stuff
06:11
<
samueldr >
you don't use the nixos-special-sauce that minifies things
06:11
<
clever >
just naked pkgs.makeInitrd
06:13
<
clever >
[ 3.393804] hello world
06:13
<
clever >
[ 3.396318] potentially unexpected fatal signal 4.
06:13
<
clever >
[ 3.416539] pc : [<00010bec>] lr : [<00012458>] psr: 80000010
06:14
<
clever >
00010be8 <printf_core>: 10be8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 10bec: ed2d8b04 vpush {d8-d9}
06:14
<
clever >
00010be8 <printf_core>:
06:14
<
clever >
10be8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
06:14
<
clever >
10bec: ed2d8b04 vpush {d8-d9}
06:14
<
clever >
samueldr: well, now i know why printf fails, lol
06:31
Acou_Bass has joined #nixos-aarch64
06:39
THFKA4 has quit [Ping timeout: 245 seconds]
06:41
THFKA4 has joined #nixos-aarch64
06:41
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
06:41
t184256 has joined #nixos-aarch64
06:45
zupo has joined #nixos-aarch64
07:34
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:17
zupo has joined #nixos-aarch64
08:24
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:24
zupo has joined #nixos-aarch64
08:26
zupo has quit [Client Quit]
08:29
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
08:30
lopsided98 has joined #nixos-aarch64
08:51
zupo has joined #nixos-aarch64
09:49
Aleksejs has quit [Quit: Goodbye]
09:49
Aleksejs has joined #nixos-aarch64
10:05
ornxka has joined #nixos-aarch64
10:05
grw has joined #nixos-aarch64
10:05
nbp has joined #nixos-aarch64
10:05
ToxicFrog has joined #nixos-aarch64
10:05
disasm has joined #nixos-aarch64
10:05
v0|d has joined #nixos-aarch64
10:06
njd has joined #nixos-aarch64
10:07
orivej has joined #nixos-aarch64
10:07
betaboon has joined #nixos-aarch64
10:08
kcalvinalvin has joined #nixos-aarch64
10:42
aminechikhaoui has joined #nixos-aarch64
11:10
orivej has quit [Ping timeout: 268 seconds]
11:20
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:22
zupo has joined #nixos-aarch64
11:29
zupo has quit [Ping timeout: 245 seconds]
11:43
zupo has joined #nixos-aarch64
11:47
zupo has quit [Client Quit]
11:51
zupo has joined #nixos-aarch64
11:54
zupo has quit [Client Quit]
12:50
<
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
12:51
t184256 has left #nixos-aarch64 ["Error from remote client"]
13:02
orivej has joined #nixos-aarch64
13:07
orivej has quit [Ping timeout: 246 seconds]
13:11
t184256 has joined #nixos-aarch64
13:41
ryantrinkle has quit [Ping timeout: 276 seconds]
14:56
ryantrinkle has joined #nixos-aarch64
14:59
<
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."
15:05
<
grw >
marijan[m]: maybe you need to use newer channel.. try rebuild with `-I nixpkgs=channel:nixos-19.09`
15:06
zupo has joined #nixos-aarch64
15:11
zupo has quit [Ping timeout: 268 seconds]
15:41
zupo has joined #nixos-aarch64
16:00
vika_nezrimaya has joined #nixos-aarch64
16:13
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:32
vika_nezrimaya has quit [Ping timeout: 276 seconds]
17:58
mehlon has joined #nixos-aarch64
18:11
Thra11 has joined #nixos-aarch64
18:16
zupo has joined #nixos-aarch64
18:24
lovesegfault has quit [Ping timeout: 276 seconds]
18:29
orivej has joined #nixos-aarch64
19:03
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:12
orivej has quit [Ping timeout: 245 seconds]
19:42
mehlon has quit [Quit: Quit]
19:42
ryantrinkle has quit [Ping timeout: 276 seconds]
19:58
ryantrinkle has joined #nixos-aarch64
20:17
orivej has joined #nixos-aarch64
20:37
fpletz has quit [Remote host closed the connection]
20:38
fpletz has joined #nixos-aarch64
20:39
fpletz has joined #nixos-aarch64
20:39
fpletz has quit [Changing host]
21:03
zupo has joined #nixos-aarch64
21:25
Thra11 has quit [Ping timeout: 276 seconds]
21:38
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:59
zupo has joined #nixos-aarch64
22:44
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:47
tilpner_ has joined #nixos-aarch64
22:52
tilpner has quit [Ping timeout: 276 seconds]
23:50
orivej has quit [Ping timeout: 268 seconds]