IRC channel logs

2020-02-12.log

back to list of logs

<janneke> https://joyofsource.com/a-bare-bones-guix-system-on-the-pinebook-pro.html
<civodul>janneke: nice!
<civodul>we really have to fix that AArch64 Guile 3.0 bug
<civodul>also, would be nice if linux-libre would actually build *and* boot :-)
<janneke>civodul: i've been "waiting" to put this up, trying to somehow debug the linux-libre boot since sunday... :-(
<janneke>as it is, i don't think this is guix material
<civodul>at least we know what to work on!
<civodul>it's great that you were patient enough to get this far already
<civodul>that'll be useful to others
<janneke>civodul: hmm, yes -- i'd be happy to post it to guix blog; but it could be read as: "how to boot guix while still using a non-free kernel" :-(
<janneke>it would be a pretty nice machihne once linux-libre boots!
<janneke>*machine
<civodul>janneke: you're right, well, "we" :-) can fix the linux-libre issue
<civodul>and then publish an updated version on the Guix blog
<janneke>civodul: yes, let "us" do that!
*janneke actually meant to say: *love it*
<janneke>vagrantc: do you know how to run a pinebook .img with qemu? re: https://joyofsource.com/a-bare-bones-guix-system-on-the-pinebook-pro.html
<civodul>love it!
<janneke>:)
*janneke just found that u-boot/pinebook pro won't boot vmlinux, but needs `arch/arm64/boot/Image'
<fossy>huh
<stikonas>hmm, isn't arch/arm64/boot/Image the standard thing with arm64 u-boot?
<stikonas>although, on my rockpro64 I have an intermediate step (grub2)
<janneke>stikonas: yes, that's what i just heard
<stikonas>btw, are you putting u-boot on eMMC or SPI?
<janneke>although i did not know it was "standard u-boot", only that vmlinux won't work for me
<janneke>on a micro sd (that's mmc i guess)
<janneke>stikonas: do you have any idea if i can boot an mmc image with qemu?
<janneke>i can't seem to find how to do that
<stikonas>I think you can, but you probably need some arm64 UEFI image
<stikonas>or something like that
<stikonas>it's probably a bit tricky
<stikonas>or maybe you can just boot kernel directly...
<stikonas>hmm
<stikonas>in that case you should extract kernel/initramfs/dtb from your image and pass it to qemu...
<stikonas> https://wiki.qemu.org/Documentation/Platforms/ARM has some command line which might be a good place to start
<janneke>stikonas: ty!
<janneke>stikonas: the mmc image that i'm using has a separate rk3399-pinebookpro.dtb
<janneke>so, from your remark i take it that that's tied to the kernel?
<stikonas>well, it's loosely tied
<stikonas>it might work across similar kernels
*janneke tried to google what dtb or fdt stands for...
<stikonas>dtb is basically a device description
<stikonas>unlike x86_64 which has mostly buses that can be probed
<janneke>ah, right
<stikonas>on arm most buses are simpler and you need to describe which devices are connected
<stikonas>so that kernel knows what e.g. controls fan, what controls sdcard voltage, etc..
<janneke>the u-boot that guix installs creates a fdtdir, and i'm wondering if that could work at all as the image i'm using has this .dtb file
<stikonas>hmm, I haven't used fdtdir but I think it's probably similar to config file vs conf.d folders
<stikonas>I haven't tried guix on arm yet...
<stikonas>I have some guide for Gentoo on rockpro64 (also rk3399 based, just as pinebook pro)
<stikonas> https://stikonas.eu/wordpress/2019/09/15/blobless-boot-with-rockpro64/
<janneke>yeah, it looks like that...but given that i get to see no u-boot output -- very discouraging this rebooting all the time
<stikonas>yeah, I think there is a bug in u-boot, so u-boot fails to power on HDMI screen
<stikonas>I have the same issue with my board...
<stikonas>but at least I can connect serial cable
<janneke>ah
<janneke>stikonas: i got one cable that fits the sockets, but i am unsure about this 3.3v thing and uart people are talking about
<janneke>it seems some cables have that built in?
<janneke>should u-boot detect a serial cable and wait if it sees it?
<stikonas>somebody on #linux-rockchip (anarsoul if I remember correctly) did some investigations, and he got HDMI screen to show something while in u-boot but it wasn't very useful image
<janneke>hehe, yeah
<stikonas>janneke: I think you can ignore that 3.3v thing
<stikonas>only 3 cables are needed (ground, tx and rx)
<janneke>ok
<stikonas>u-boot has serial cable drivers but you need to specify correct baud rate
<stikonas>probably screen /dev/ttyUSB0 1500000
<stikonas>I usually just power the board using normal power cable instead of providing power via serial cable
<janneke>hmm, i do not have a any ttyUSB on my other laptop when i plug the cabel in
<stikonas>hmm, no idea why...
<janneke>stikonas: i already much appreciate your help, i'm /so/ lost here
<stikonas>ttyUSB device node should appear as soon as you plug USB device in... Even if serial wires are not connected
<janneke>it will all make perfect sense, once it works
<stikonas>hmm, dmesg | grep tty ?
<stikonas>I get something like [51749.388545] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
<stikonas>well, when I unplugged it...
<stikonas>[51757.028214] usb 1-6.3: FTDI USB Serial Device converter now attached to ttyUSB0
<janneke>stikonas: hm, i have a tty20
<fossy>weird
<stikonas>maybe different drivers create different device nodes...
<janneke>hmm, but that's still listening even when i unplug the usb cable
<fossy>should be a ttyUSB?
<stikonas>oh, I have a lot of /dev/tty##
<stikonas>those are probably something else
<fossy>those are normal ttys
<fossy>like virtual terminal 1 is TTY1
<dddddd>I used a raspberry pi, no usb involved. I did check the volts, to match. Not pinebook, but "similar" (teres)
<dddddd>... just as an option
<stikonas>janneke: can you check lsmod | grep usbserial
<janneke>stikonas: ah, that's empty
<janneke>inserted
<janneke>hmm, nothing
<janneke>hmm, i might need udev rules; wow
*janneke flipped the uart switch
<vagrantc>janneke: i don't think qemu supports emulating a the pinebookpro
<vagrantc>janneke: but exciting regarding your guix on it!
<janneke>vagrantc: oh, okay -- yeah
<stikonas>vagrantc: can't it emulate generic cortex A72 or something like that
<vagrantc>stikonas: probably ... which doesn't really emulate a pinebookpro :)
<janneke>i just flipped the uart switch for serial output...but after re-assembling it does not turn on again :-(
<janneke>must have touched something...ugh
<vagrantc>:/
<janneke>ah, opening the back cover disconnected the battery cable
<janneke>i was wondering about that loose connector when i opened it
<stikonas>at least it's not broken then
<dddddd>OriansJ, fossy, M1 hex literal uses double quotes, not single (which is string instead) wrt the example of some days ago.
<OriansJ>dddddd: you have that backwards; "raw string" 'hex literal'
<dddddd>I think you called '0280284849' a hex literal.
<OriansJ>as raw strings are converted to hex and hex literals are just passed to hex2 to deal with
<dddddd>but, being not processed at all... I see it just as string.
<OriansJ>dddddd: what does it look like when processed by hex2
<dddddd>My point of view is M1, I guess.
<OriansJ>"hello world" becomes 68656C6C6F20776F726C6400 in M1 but hex2 turns back into hello world in the binary
<OriansJ>'68656C6C6F20776F726C6400' is processed as 68656C6C6F20776F726C6400 in M1 but hex2 is where it becomes what we really want
<OriansJ>it is the literal hex we want written
<janneke>hmm, it seems that ttyUSB is only a courtesy symlink, created by a udev rule?
<janneke>so i'm trying /gnu/store/yz4rkj6pnx4md4izszaj2jndnhx5jhd5-screen-4.8.0/bin/screen /dev/bus/usb/001/001 15000000
<janneke>
<janneke>but that says: /var/run/utmp: No such file or directory
<janneke>i'll take that to #guix
<OriansJ>Unlike various other systems, where utmp logging can be disabled by removing the file, utmp must always exist on Linux.
<OriansJ>see if touch /var/run/utmp fixes the problem
<janneke>oh...
<janneke>nah, "screen is terminating"
<janneke>it seems that minicom runs...haven't run that in > 25y
<dddddd>OriansJ, makes some sense if one thinks of what happens after hex2 does its thing, Just a bit weird in the context of M1 itself. OK