<cyrozap>
As far as I can tell, U-Boot is correctly returning to FEL (enabling debug prints in the SPL shows "Returning to FEL sp=53a18, lr=53ad8").
<cyrozap>
Okay, I went through some old files I had that *did* work, and found that sunxi-fel v1.4.2-116-g6c02224 is able to boot U-Boot 2021.07-rc3-00033-gaab8b17e94. Guess I'll be doing some bisecting...
<cyrozap>
Looks like the problem is in U-Boot, since the latest sunxi-fel is able to work with that older U-Boot version.
<cyrozap>
Wow, okay--building literally the exact same version of U-Boot as the working binary with the exact same build of TF-A (bl31.bin) that I originally built that U-Boot binary with doesn't work.
<cyrozap>
I wonder if it's a compiler issue?
<cyrozap>
Looks like last time I used aarch64-linux-gnu-gcc 10.3.0, and now I'm using 12.1.0.
adjtm has quit [Ping timeout: 480 seconds]
<bauen1>
so i think more things are working now, its still complaining about some voltage regulators but gets to the shell
<bauen1>
i've also found out that debian does build the dwmac-sun8i.ko driver for ethernet but doesn't ship it on the installer
<bauen1>
nevermind, i do get the driver but i don't get the ethernet interface ...
apritzel has joined #linux-sunxi
<bauen1>
apritzel: thanks, it worked, now i'm facing the problem that i can't get ethernet to show up as interface :)
<bauen1>
perhaps a bit more problematic is the `Jan 1 00:05:04 kernel: [ 6.104178] regulator-dummy: Underflow of regulator enable count` seemingly while trying to init axp20x-regulator
<bauen1>
and as far as i've found in the code `Jan 1 00:58:31 kernel: [ 3213.825357] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found` means that the stmmac_platform driver has parsed the device tree and found the ethernet entry
<montjoie>
bauen1: I saw regulator-dummy: Underflow of regulator enable count which is bad
<bauen1>
montjoie: my theory would be that due to `Jan 1 00:05:04 kernel: [ 6.066097] vdd-cpus: failed to get the current voltage: -ETIMEDOUT` `axp20x-regulator` fails, and during failing disables the dummy regulator twice ?
<bauen1>
so in theory if i make the regulator-dummy go away it should work "better" ?
apritzel has quit [Ping timeout: 480 seconds]
<bauen1>
or maybe i should try getting a newer kernel 5.17.3 or something like that from debian unstable
<bauen1>
oh boy, ripping out the sd-card while its in use leads to kernel null ptr deref
<smaeul>
bauen1: for any A64 board with a PMIC (so AFAIK all of them), poweroff should shut down the PMIC, and you should be able to turn the board back on with the power key
<smaeul>
for boards with a GPIO power key / without a PMIC, you do need crust to listen for the power key press
<bauen1>
oh it does work, just need to press a bit longer
bauen1 has quit [Remote host closed the connection]
bauen1 has joined #linux-sunxi
Daanct12 is now known as Danct12
evgeny_boger has joined #linux-sunxi
apritzel has joined #linux-sunxi
<bauen1>
wow, the pine64-lts installing debian with encryption to an external usb device is amazingly slow, the install has been running for 3h+ now, i guess i was expecting this as it's a very suboptimal setup, but i'm still a bit surprised
<bauen1>
installing to the sd-card is probably a much better choice since iirc the speed there isn't limited as much, especially not by usb 2.0
hlauer has joined #linux-sunxi
<apritzel>
bauen1: I'd say it's the other way around: if your USB device isn't one of those cheap sticks, you should get about 35 MB/s out of it
<apritzel>
bauen1: whereas a 3.3V SD card is limited to around 23 MB/s
<apritzel>
but I have seen many USB sticks that write awfully slow (around 5 MB/s)
<apritzel>
also the encryption could be the issue, if the poor A53 has to do it manually
<apritzel>
bauen1: eMMC is much faster, IIRC in the region of 120 MB/s
gsz has quit [Quit: leaving]
hlauer has quit [Ping timeout: 480 seconds]
<cyrozap>
smaeul: Thanks for the suggestion, but unfortunately applying that patch to the older version of U-Boot (that I was able to build with GCC 10.3.0) didn't fix the build with GCC 12.1.0.
evgeny_boger1 has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
<apritzel>
cyrozap: so to summarise: you can FEL boot U-Boot built with GCC 10.3.0, but it fails when using the same source bits with GCC 12.1.0?
<apritzel>
cyrozap: Does booting from SD card work?
<cyrozap>
apritzel: Yes, that's correct. And I haven't tried booting via SD--I'll test that now.
hentai has joined #linux-sunxi
evgeny_boger1 has quit [Ping timeout: 480 seconds]