<Jookia>
i have dyscalculia so this is really just a big struggle for me :(
<Jookia>
ok i think i've mentally untangled why this is this way and i'll write it up tomorrow
<tokyovigilante>
Jookia: will be worth it.
<Jookia>
hopefully
<tokyovigilante>
For me, I have just realised I've been constantly pushing between a DT in upstream and legacy for u-boot, and then wondering why my patches kept disappearing off the device... sigh
<tokyovigilante>
still, I now have a *very* tidy upstream DT
<Jookia>
i'm not a hardware designer but i think they may have done this to avoid arithmetic math in their counter
<tokyovigilante>
loki666: sorry about the mess in my u-boot tree, have just pushed a totally revised set, with what should be an entirely correct upstream DT in u-boot, rebased on jernej's latest DRAM patches and apritzel's PMIC driver, so should be the absolute latest and best version
<tokyovigilante>
suppose I'd better test it myself now that I've pushed it...
<jernej>
tokyovigilante: I just updated DRAM patches again less than an hour ago :)
<jernej>
and yes, it was for LPDDR4
<jernej>
but I think I'll stop now
<jernej>
tokyovigilante: did those fixes help in any way with DRAM size detection issue?
<tokyovigilante>
I'm just building a fresh kernel and u-boot and will test just that
<tokyovigilante>
thanks, good timing!
<tokyovigilante>
dts/upstream/src/arm64/allwinner/sun50i-h700-anbernic-rg35xx-h.dtb: Warning (graph_endpoint): /panel/port/endpoint: graph connection to node '/soc/tcon-top@6510000/ports/port@1/endpoint@2' is not bidirectional
<tokyovigilante>
No kidding ;) Still have no idea what I'm doing for the LCD, but realistically will need the PWM for that to, so will get these DRAM changes tested
<jernej>
you have hackish H616 PWM driver too in my branch
<tokyovigilante>
oh right, cool. I think that makes 3 ;) macromorgan's and at least one other about
<tokyovigilante>
ok, so first boot detected 1024MB correctly, any other way to test than keeping an eye out for misdetection?
<jernej>
not really
<jernej>
note that I didn't bother that much with PWM driver, good enough for backlight and AC200 clock source
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.2, revision: 5.2.0+git-7584-200e7bcec, build type: debug, sources date: 20160102, built on: 2024-05-13 20:04:01 UTC 5.2.0+git-7584-]
<tokyovigilante>
makes sense, ta
<tokyovigilante>
will hopefully be up and running then swap out for one of the others
<tokyovigilante>
Ok, have rebased my kernel tree against torvalds/master, so pulled in cpufreq, GPADC, NMI etc that got in this window, so should be good to go
<tokyovigilante>
3 boots, so far so good
<jernej>
good to hear
<loki666>
tokyovigilante : no problem which Linux branch should be good to test ?
warpme has quit []
<tokyovigilante>
anbernic-hdmi for linux, and rg35xx-upstream-extras should be good to go, they are both rebased and some bugs fixed. Need to just recheck the issue you found, but my tree has just built here
<tokyovigilante>
[ 1.133711] sun8i-mixer 1100000.mixer: Adding to iommu group 1
<tokyovigilante>
[ 1.140165] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000078
<jernej>
how much RAM has your board?
<tokyovigilante>
1GB
<tokyovigilante>
I had the IOMMU 4GB enable patch wrong, but wasn't seeing it because I had the IOMMU disabled. Could that be the problem?
<jernej>
for 1GB, you don't need 4 GB patch
<jernej>
and you can skip IOMMU altogether, if you won't play videos
<tokyovigilante>
makes sense, I did think I'd had HDMI working previously without it.
<tokyovigilante>
I guess ideally the patch would support up to 4G and ideally I will play video at some point, but ok for now without
<tokyovigilante>
loki666: ok, repushed with that 4G patch deleted, HDMI should work either with IOMMU disabled or the current branch now with your config
<tokyovigilante>
getting *slightly* closer to lcd too
<tokyovigilante>
but the DT compiles and I think I have everything I need driver-wise, minus some potentially bogus panel timings. Will take any feedback on how to wire the backlight too :)
<KREYREN_oftc>
it literally gets requested the address 0x10000 and it boots uboot again
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
ftg has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
warpme has quit []
KREYREN_oftc has quit [Remote host closed the connection]
sddddd has joined #linux-sunxi
sddddd has quit [Remote host closed the connection]
warpme has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
warpme has quit []
<loki666>
tokyovigilante: so I tried, your update branches, it boots (still no wifi), but no hdmi, I tried on two screens, a 1080p TV and a 1080p monitor
<loki666>
on TV no signal, on monitor, i have a screen with garbage
<loki666>
should I call a fbset to change the resolution ?
<jernej>
loki666: add drm.debug=0x1e to kernel arguments and see what it prints in dmesg
<jernej>
you should see messages that hdmi is connected and all supported resolutions on your monitor
<jernej>
if you have 4k monitor, it may be also issue with the cable or with driver
<tokyovigilante>
loki666: thats very annoying! maybe try to fix wifi first, that has been working for a couple of months.
<tokyovigilante>
i can see bluetooth but not wifi in your dmesg, maybe check your wifi module is enabled in your kconfig? you will also need the firmware in your image
<tokyovigilante>
i
<tokyovigilante>
your bluetooth is not loading even with the driver built so i suspect missing firmware
<loki666>
both firmware and rtw88 seems to be there
<tokyovigilante>
not sure if thats easy in buildroot, i would suggest using a distro userspace so you hsve more tools available.
<tokyovigilante>
is it compressed?
<tokyovigilante>
you need support for compressed modules then.
<loki666>
philippe@bob:/media/philippe/rootfs/lib/firmware/rtw88$ ls
<tokyovigilante>
This is your problem, the system can't turn the wifi regulator on
<tokyovigilante>
although clearly detecting a HDMI connector subsequently
<tokyovigilante>
also I recommend you blacklist panfrost for now, that is probably why it isn't working, the GPU driver is crashing because of (another) power issue
dok has quit [Ping timeout: 480 seconds]
<loki666>
ok gonna try to blacklist panfrost
<loki666>
jernej: tv is an old LCD philips 42" model : 42pfl7606h
<loki666>
tokyovigilante: panfrost blacklisted but still no wifi
<loki666>
also, don't know why, but anbernic OFW boot-0 refuse to boot after booting mainline... need to unplug the power completly (unplug battery)
<loki666>
as if mainline powerdown, still keeps something in a reg/mem
<tokyovigilante>
sure, will post it ths evening, sorry at work now
<tokyovigilante>
there is a PMIC reset that I think we are not quite handling correctly, which is blocking the anbernic u-boot which has a much older version, and probably poor support for the AXP
Robot_ has quit [Ping timeout: 480 seconds]
ftg has quit [Read error: Connection reset by peer]