<apritzel>
farhan: if it's designed for mainline, and all the devices are supported, this should work: enabling a new board would indeed just involve loading the right DT
<apritzel>
plus a U-Boot defconfig, most likely with the proper DRAM parameters (for newer SoCs)
<farhan>
apritzel: Would you please mention which varient of H616 is under discussion here?
<apritzel>
farhan: do you mean the board tokyovigilante, macromorgan and Raqbit are dealing with? That's the H700 on the Anbernic RG35xx devices
<apritzel>
farhan: what is your board using?
hentai has quit [Ping timeout: 480 seconds]
<farhan>
apritzel: oh ok I went to Raqbit's gist and it was about H616 SUN50i, which is actually my board using
hexdump0815 has quit [Ping timeout: 480 seconds]
<apritzel>
the H616 is very close to the H700, the latter mostly just exposes more pins
hexdump0815 has joined #linux-sunxi
<apritzel>
the both use the same code, and the differences are expressed in the DTS. The little where the chips differ is handled in U-Boot and TF-A, and we autodetect the variants
<farhan>
apritzel: I have a little bit of linux knowledge and love to learn a little about SBC
<apritzel>
farhan: for an H616 board you need the DRAM parameters, you can read them from a vendor image using https://github.com/apritzel/sunxi-fw
<apritzel>
if you look at the recent patches on the lists for enabling new boards (e.g. the Tanix TX1), you should get an idea what you need
<farhan>
apritzel: I was reading here and there, a while back and someone mentioned about using uboot config for orange pie zero which was recently supported back then. I tried my best to give that a shot and asking a little bit one libreelec. But offcource no use, so i put it in the draw and forgot about it.
<farhan>
apritzel: i will certainly give that a try. thank you
apritzel has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
montjoie has joined #linux-sunxi
montjoie_ has quit [Ping timeout: 480 seconds]
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
gsz has joined #linux-sunxi
apritzel has joined #linux-sunxi
warpme has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Quit: WeeChat 4.2.2]
warpme has quit []
warpme has joined #linux-sunxi
ungeskriptet is now known as Guest4474
ungeskriptet has joined #linux-sunxi
Guest4474 has quit [Ping timeout: 480 seconds]
mripard_ has joined #linux-sunxi
mripard has quit [Ping timeout: 480 seconds]
tnovotny has joined #linux-sunxi
koty0f has quit [Ping timeout: 480 seconds]
mripard has joined #linux-sunxi
mripard_ has quit [Ping timeout: 480 seconds]
koty0f has joined #linux-sunxi
apritzel has joined #linux-sunxi
<tokyovigilante>
thanks apritzel, Raqbit definitely worth working through the process manually, good for both debugging and your understanding of the boot process
<tokyovigilante>
March 3-5 is when apritzel talked me through manually loading each component (SPL -> TF-A -> u-boot -> kernel)
<tokyovigilante>
really weird that SD boot works but FEL doesn't with the same binary, given that tree has been running fine here for a month or so, but you'll probably need to pull it apart to figure out why
<tokyovigilante>
you're running a -H right? What board revision?
<tokyovigilante>
that log is a bit later, interestingly acmeplus had the same issue with a binary u-boot I had built, but it turned out to be some sort of Ubuntu USB issue if you read that log
Robot_ has joined #linux-sunxi
vpeter has quit [Ping timeout: 480 seconds]
koty0f has quit [Ping timeout: 480 seconds]
koty0f has joined #linux-sunxi
vpeter has joined #linux-sunxi
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
bauen1_ has quit [Ping timeout: 480 seconds]
koty0f has quit [Read error: Connection reset by peer]
koty0f has joined #linux-sunxi
dsimic is now known as Guest4540
dsimic has joined #linux-sunxi
Guest4540 has quit [Ping timeout: 480 seconds]
koty0f has quit [Read error: Connection reset by peer]
koty0f has joined #linux-sunxi
<Raqbit>
tokyovigilante: Yep, I've got an -H 2024-01-08 V4 as well. The puzzling part is that the uboot-with-spl binary reads back fine, which lead me to believe it can't be a FEL-transport issue.
<Raqbit>
Looking at the wiki, there does seem to be a lot of magic and switcheroo going on when booting u-boot over FEL to accommodate for the BROM application stack: https://linux-sunxi.org/FEL/USBBoot#General_description_of_the_.22sunxi-fel_uboot.22_command_implementation
<apritzel>
Raqbit: yes, but this is purely SoC specific: so if it works on one board with one of H616/H313/H700/T507, it works on all
koty0f has quit [Read error: Connection reset by peer]
koty0f has joined #linux-sunxi
koty0f has quit [Read error: Connection reset by peer]
<apritzel>
so in the past we had issues that only showed with certain newer compilers, I think GCC 11.1 and later, GCC 10 was fine
koty0f has joined #linux-sunxi
<apritzel>
so it might be worth comparing notes on how the components were built, and also mixing and matching the components
bauen1 has joined #linux-sunxi
koty0f has quit [Ping timeout: 480 seconds]
<apritzel>
jernej: do you have any idea why the H616 clock driver has been backported to v5.4 and v5.10?
koty0f has joined #linux-sunxi
koty0f has quit [Read error: Connection reset by peer]
mripard has quit [Remote host closed the connection]
tnovotny has quit [Quit: Leaving]
JohnDoe_71Rus has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
bauen1 has joined #linux-sunxi
ftg has joined #linux-sunxi
<jernej>
apritzel: I believe A100 and H616 drivers are backported so "clk: sunxi-ng: Unregister clocks/resets when unbinding" can be backported.
<jernej>
tokyovigilante: There will be no rage from maintainers, if you don't follow code style. But patches won't be merged either.
<jernej>
tokyovigilante: Is that H616 analog audio driver based on D1 one from smaeul?
<macromorgan>
tokyovigilante: I'm back today and looking at this again. I tried building your latest rg35xx-upstream and booting it on the H, but I'm also getting the same stuck at "Trying to boot from MMC1". Is that what you're getting or are you getting further?
<jernej>
as far as I can tell, D1 and H616 have almost the same analog audio peripheral
<apritzel>
jernej: mmh, but "backporting" the whole file is unnecessary, isn't it? Is this some kind of automatism, because no one could be bothered to remove the h616 file from the patch?
<jernej>
seems so. But you have to understand stable branch managers - unless they know exactly what they're doing, it's much safer to just find dependencies and merge them too.
<jernej>
but that's why they're sending patches for review
<gamiee_>
Hi folks, is anyone here interested in getting SBC with Allwinner T527 SoC for mainlining/reversing/etc...? If yes, please send me DM. Thanks :)
<macromorgan>
should I have a device tree in A-TF or something?
<macromorgan>
I've also pinged Anbernic to see if they set anything that allows the device to be distinguishable in software so that we can maybe use the same bootloader for all devices
<apritzel>
macromorgan: what about the extra buttons? what happens if you read the GPIOs on the other devices?
<macromorgan>
haven't gotten there yet, still trying to figure out why my U-Boot isn't booting
<apritzel>
I once experimented with the pull-up/pull-down settings GPIO registers: a floating pin would follow the PU/PD setting, a fixed pin wouldn't
<macromorgan>
I'm honestly running low on ideas :-(
<macromorgan>
it fails right as it tries to jump to the A-TF image (not sure if it actually gets to A-TF or not, as even with debug I don't see any output from A-TF)
<apritzel>
to unblock you, can't you use tokyovigilante's binaries, for the time being
<apritzel>
or at least his TF-A binary
<apritzel>
and btw: all those TF-A patches are optional, it works fine without them
<macromorgan>
okay
<macromorgan>
well I still need to figure out why my handoff is failing :-(
<apritzel>
what is rg28xx? did they run out of letters already, and named it using a different number, despite it being the same SoC?
<macromorgan>
28 means the screen size is 2.8" instead of 3.5"
<macromorgan>
otherwise it's the same device, yeah
<apritzel>
i see
evadot has quit [Remote host closed the connection]
evadot has joined #linux-sunxi
<Raqbit>
I like how they name it XX, like it's a chip family
<macromorgan>
well XX doesn't matter here, because the very first one was an Actions Semi abomination
<macromorgan>
but each after that has been H700
Robot_ has quit [Ping timeout: 480 seconds]
<macromorgan>
did Tokyo post his BL31.elf on here? I might have missed that conversation
apritzel has quit [Read error: Connection reset by peer]
apritzel has joined #linux-sunxi
<apritzel>
macromorgan: did you mean bl31.bin? For Allwinner we need the binary, not the ELF file (as for Rockchip, IIRC)
<macromorgan>
yeah, I just remembered a few minutes ago and it turns out that made the difference
<macromorgan>
I hate that I spent several hours on it and that was the issue... things are working for me now
<apritzel>
\o/
<macromorgan>
is there a reset function or something on the dram controller? I'm wondering (thinking of ways to approach making ram init more stable) if we reset and pause for a few ms on each boot
ftg has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
<apritzel>
the BSP code has some udelays sprinkled all over the place, but IIRC jernej double checked that and found all of those accounted for in the mainline code
<apritzel>
and there have been some attempts of poking in the dark and adding some random things here and there
<apritzel>
but before I commit to any of them, I would really like an explanation