00:14
wildtrees has quit [Quit: Leaving]
00:19
ris has quit [Ping timeout: 276 seconds]
00:21
clever_ has joined #nixos-aarch64
00:21
clever_ has quit [Changing host]
00:21
clever_ is now known as clever
00:33
<
MichaelEden[m] >
Ashy: thanks!
00:37
orivej has quit [Ping timeout: 240 seconds]
01:40
<
Ashy >
hmm, latest image and uboot still won't boot the rockpro64
01:41
<
Ashy >
i don't quite understand why ayufan's patches to uboot and the kernel still haven't been mainlined yet
01:45
<
samueldr >
I'd say the same for the pinebook (a64)
01:45
<
samueldr >
for the kernel*
01:45
<
samueldr >
at least u-boot seems fine
01:45
<
Ashy >
have you ever got any patches into mainline kernel?
01:45
<
samueldr >
haven't written anything yet
01:46
<
Ashy >
it's something i've had on my bucketlist for a while hehe
01:46
<
samueldr >
one day I figure I will, with the way things are going :)
01:46
<
samueldr >
though I did almost, but chickened out, and someone else did a better fix anyway
01:46
<
samueldr >
years ago, for the touchpad of my then-new laptop
01:48
<
Ashy >
last time i was playing with nixos on the rockpro64 (a few months back) i did actually get it running but only by starting with ayufan's ubuntu image and then dd'ing over the nixos root partition so it was still ayufan's uboot and kernel
01:48
THFKA4 has quit [Ping timeout: 246 seconds]
01:48
<
samueldr >
we do have a u-boot build now
01:49
<
Ashy >
it should be possible to write an sd-image.nix definition that does all that and builds a rockpro64 specific image right?
01:49
<
samueldr >
according to this page at least, hydra should be building a u-boot for it
01:49
<
Ashy >
yeah i just tried that on the sdcard though and didnt get any hdmi output
01:49
<
samueldr >
I believe that if you delete the FAT32 partition of a 19.09 or unstable sd-image, and then `dd` as described it should work
01:49
THFKA4 has joined #nixos-aarch64
01:50
<
Ashy >
oh, delete the first partition?
01:50
<
samueldr >
(deleting the partition is mostly so stuff isn't confused by the garbage that'll get written there)
01:50
<
samueldr >
"garbage"
01:50
<
samueldr >
rockchip firmware files... judge like you want :)
01:51
<
Ashy >
yeah blobs are blech... market slowly seems to be coming around to that though
01:53
<
Ashy >
so what exactly should i do with this uboot image?
01:53
<
samueldr >
sudo dd if=idbloader.img of=/dev/mmcblkX bs=512 seek=64
01:53
<
samueldr >
it sounds like :)
01:53
<
samueldr >
(I don't have rock* hardware)
01:53
<
Ashy >
yeah but delete the first mmc partition first?
01:53
<
samueldr >
well, rock*64, from pine
01:53
<
samueldr >
you should delete the first partition, yeah
01:53
<
samueldr >
it should boot with it still
01:54
<
samueldr >
but some software may barf when seeing what seems like random garbage
01:54
<
samueldr >
I think that idbloader is bigger than the gap in front
01:54
<
Ashy >
mount it and use rm or fully delete it from the partition table?
01:54
<
samueldr >
only from the partition table
01:56
<
samueldr >
though, even if I don't have their hardware, I think I know enough about the boot chain to help
01:57
<
Ashy >
is there an example sd-image.nix somewhere that includes specifying a specific uboot configuration/fork and a specific kernel fork?
01:57
<
samueldr >
u-boot (for now) is handled out-of-band
01:57
<
samueldr >
e.g. dd on your device
01:58
<
samueldr >
not sure about a good example for the rockpro64 and configuring the kernel
02:01
<
Ashy >
hmm, yeah still no hdmi output after deleting the fat32 partition and dd'ing the uboot image again
02:18
<
samueldr >
lopsided98: you can also cc me on generic base nixos-on-arm stuff, if you want
02:18
<
samueldr >
they're likely to affect me somehow at some point :)
02:42
<
Ashy >
yeah that prebuilt uboot for the rockpro64 does not seem to want to boot
02:43
<
Ashy >
or possibly it is but hdmi isnt working
03:19
jtojnar has quit [Read error: Connection reset by peer]
03:20
jtojnar has joined #nixos-aarch64
05:19
tilpner has quit [Remote host closed the connection]
05:19
tilpner has joined #nixos-aarch64
06:38
mishach has joined #nixos-aarch64
06:39
<
mishach >
greetings;
06:40
<
mishach >
If there is someone who can help, here is my problem. I am just looking for some pointers on how to proceed.
06:40
<
mishach >
I am trying to compile a hello world program that includes glib and pkgconfig as nativeBuildInputs
06:41
<
mishach >
when i entered nix-shell, PKG_CONFIG_PATH was not set, so i fixed that
06:41
<
mishach >
but when i try to compile hellow world program i run into this error
06:42
<
mishach >
it is identical to erro described here
06:43
<
mishach >
and my default.nix file
06:45
<
mishach >
Note, hellow world runs in standard environment
06:45
<
mishach >
it just in cross-compiled it throws an error
06:45
<
mishach >
any times or pointers would be greatly appretiated
06:46
<
mishach >
so my guess is
06:47
<
mishach >
derivation is incorrect, but how to debug it
06:48
<
clever >
mishach: if you add pkgconfig to the nativeBuildInputs, it will manage PKG_CONFIG_PATH for you
06:48
<
clever >
glib likely has to be in buildInputs
06:49
<
mishach >
however, i added pkgconfig to nativeBuildInputs
06:50
<
mishach >
that just worked
06:51
<
mishach >
i just had to place library into
06:51
<
mishach >
buildInputs
06:51
<
mishach >
Thank You!
06:51
<
mishach >
so I am getting something wrong about nativeBuildInputs vs buildInputs dependencies
06:52
<
mishach >
so libraries that we will be used by the program when it is run on the host go to buildInputs
06:56
<
clever >
mishach: yes
06:57
<
mishach >
wow, that was a huge learning experience for me.
06:57
<
mishach >
Thank You!!
07:13
mishach has quit [Remote host closed the connection]
07:49
zupo has joined #nixos-aarch64
08:49
DigitalKiwi has quit [Quit: quite.]
08:51
DigitalKiwi has joined #nixos-aarch64
09:04
saboteur has joined #nixos-aarch64
09:04
saboteur has quit [Remote host closed the connection]
09:05
saboteurspk has joined #nixos-aarch64
09:06
saboteurspk has quit [Remote host closed the connection]
09:27
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:29
orivej has joined #nixos-aarch64
09:32
SaboteurCZ has joined #nixos-aarch64
09:36
SaboteurCZ has left #nixos-aarch64 [#nixos-aarch64]
09:42
SaboteurCZ has joined #nixos-aarch64
09:42
SaboteurCZ has quit [Remote host closed the connection]
09:43
SaboteurCZ has joined #nixos-aarch64
09:43
<
SaboteurCZ >
Hi samueldr. Just wanted to ask what is the current state (or progress) of work on NixOS on PinePhone :)
10:02
SaboteurCZ has quit [Remote host closed the connection]
10:31
ris has joined #nixos-aarch64
10:41
zupo has joined #nixos-aarch64
10:48
zupo has quit [Read error: Connection reset by peer]
10:53
zupo has joined #nixos-aarch64
11:59
zupo has quit [Ping timeout: 276 seconds]
13:38
ryantrinkle has joined #nixos-aarch64
13:40
orivej has quit [Ping timeout: 265 seconds]
13:48
ryantrinkle has quit [Ping timeout: 276 seconds]
13:53
ryantrinkle has joined #nixos-aarch64
14:15
ryantrinkle has quit [Ping timeout: 245 seconds]
14:18
kunstruktur has quit [Ping timeout: 245 seconds]
16:02
orivej has joined #nixos-aarch64
16:20
ryantrinkle has joined #nixos-aarch64
16:38
ryantrinkle has quit [Ping timeout: 265 seconds]
17:44
jtojnar has quit [Read error: Connection reset by peer]
18:59
<
lopsided98 >
5.3 doesn't boot on my RockPro64...
19:01
<
lopsided98 >
samueldr: I'm getting similar errors as your chromebook
19:01
<
lopsided98 >
mmc1: mmc_select_hs400es failed, error -110
19:02
<
samueldr >
then you may be in a better position to bisect than I am
19:02
<
samueldr >
the chromebook I have simply doesn't go far back enough
19:02
<
samueldr >
I'd have to backport way too much changes to get it compiling under mainline for older than 5.0
19:03
<
samueldr >
lopsided98: is it pretty consistent?
19:03
<
samueldr >
do you know the model number of the eMMC?
19:06
<
samueldr >
it's not FORESEE though
19:06
<
lopsided98 >
The error I posted above was from unpatched mainline
19:06
<
samueldr >
I figure limiting to hs200 is what made it work
19:07
<
samueldr >
I am doing the same, but in a much less clean way
19:07
<
lopsided98 >
No, I tested 5.3 with that patch and it still fails
19:07
<
samueldr >
try this one
19:08
<
samueldr >
it's my much less clean way :)
19:08
<
samueldr >
hs400es just won't exist
19:08
<
lopsided98 >
I'm not sure what the model is, I don't have physical access to it right now
19:08
<
samueldr >
if you have the dmesg output of a working boot, it should be in there somewhere
19:10
<
lopsided98 >
Wait, it just booted when I went to test the patched kernel again
19:10
<
samueldr >
I have suspicions that mainline is doing something just out of tolerence for some cards
19:11
<
samueldr >
or that some some eMMCs are just out of tolerance
19:14
<
lopsided98 >
Yeah, it has never been very reliable but it would usually work after 2 or 3 tries
19:15
<
lopsided98 >
I can't find anything about the model number in dmesg
19:15
<
samueldr >
dmesg | grep -i mmc
19:16
<
samueldr >
it will not say "this is the model number"
19:16
<
samueldr >
but it should be in there
19:16
<
samueldr >
at least it was in my experience
19:16
<
lopsided98 >
mmcblk2: mmc2:0001 DG4032 29.1 GiB
19:18
<
samueldr >
that's it
19:18
<
samueldr >
this
*may* be WD
19:19
<
samueldr >
it's SanDisk
19:19
<
samueldr >
like mine
19:19
<
samueldr >
and like
19:19
<
samueldr >
(sandisk is a brand of WD now)
19:20
<
samueldr >
so AFAICT it really looks like a big regression for sandisk and hs400es :/
19:21
<
lopsided98 >
you can read sandisk in the image
19:22
<
samueldr >
the model number alone is pretty much confirmation :)
19:22
<
samueldr >
>> High quality storage from SanDisk
19:22
<
samueldr >
under key features
19:22
<
samueldr >
right, so another confirmation for my hunch
19:23
<
samueldr >
now, I think the next best thing is to gather the data I have and scream in the void^W^W^W send to the right mailing list about that subsystem
19:25
<
lopsided98 >
I might try enabling dynamic debugging for the mmc subsystem, which should show all commands that are sent to the emmc and their responses
19:26
<
samueldr >
(not saying you shouldn't)
19:26
<
samueldr >
I didn't grok enough of it all
19:26
<
samueldr >
something around CMD30 IIRC
19:26
<
samueldr >
reaching timeout IIRC
19:27
<
samueldr >
though even adding some sleeps to maybe help some stuff settle that didn't change anything (unsurprisingly)
19:28
<
samueldr >
though you're probably right that this will help figure out the right issue
19:28
<
samueldr >
I kinda side-stepped the issue for now, since I can get hs200 working most of the time
19:28
<
samueldr >
(it sometimes fails, like 1/10 or 1/20 times)
19:29
<
lopsided98 >
Mine never works after a reboot, I have to fully power cycle it, usually a few times
19:31
<
lopsided98 >
Even when it does work, it hangs for around a minute before the emmc is detected
22:01
ryantrinkle has joined #nixos-aarch64
22:02
pbb has joined #nixos-aarch64
22:31
ryantrinkle has quit [Ping timeout: 268 seconds]
22:36
ryantrinkle has joined #nixos-aarch64
22:46
ryantrinkle has quit [Ping timeout: 276 seconds]
23:00
ryantrinkle has joined #nixos-aarch64
23:18
THFKA4 has quit [Quit: WeeChat 2.4]
23:51
ris has quit [Ping timeout: 265 seconds]