ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
ftg has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
aggi has quit [Ping timeout: 480 seconds]
aggi has joined #linux-sunxi
junari_ has joined #linux-sunxi
junari_ has quit []
cnxsoft has joined #linux-sunxi
dlan has joined #linux-sunxi
<Lightsword> should ethernet work from uboot on h616 boards like mine?
Schimsalabim has quit [Read error: No route to host]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
hexdump02 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest13291
dsimic has joined #linux-sunxi
Guest13291 has quit [Ping timeout: 480 seconds]
colinsane has joined #linux-sunxi
colinsane has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Quit: WeeChat 4.6.1]
bauen1 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
paulk-bis has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
paulk has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
apritzel has joined #linux-sunxi
warpme has quit [Quit: Textual IRC Client: www.textualapp.com]
ungeskriptet has quit [Remote host closed the connection]
<jernej> Lightsword: so you have everything figured out and there is no issue with DRAM driver? :)
<Lightsword> jernej, seems ok on my system at least after I fixed dram params, but I think in next it may incorrectly think it detected a lot more ram than is even possible, so may make sense to clean things up to better handle detection failures
<jernej> well, code in next actually fixed all of the reported cases of DRAM size misdetection, including cases found by my own experimenting on H616 and A523
<Lightsword> jernej, so if the loop never detects anything, I think you end up with bad settings
<jernej> yes, but that should never happen, right?
<Lightsword> jernej, well if you have the wrong dram parameters configure...it can happen it seems
<jernej> correct, code is no bringup safe (during development), but it should be once correct parameters are set
<jernej> note that I don't object adding some more error handling if there is no match
<Lightsword> jernej, yeah, might make sense to have more clear error messages rather than just using completely wrong values
<Lightsword> jernej, for example with wrong dram params in next it detects 16GB ram: https://gist.github.com/jameshilliard/5de329cc67584ecefcb96ecffacaffd3
<jernej> yeah, with wrong parameters anything can happen :)
<jernej> what I mean to say is that you can't fully error proof DRAM code
<Lightsword> jernej, any easy way to prevent false detections like those for example?
<Lightsword> I think one would normally assume if dram params are misconfigured they would generally only see less ram than exists, not more
<jernej> yes, in this case if DRAM size is bigger than supported on the platform, it can report the error and hang instead of continue
radxanaoki has quit [Remote host closed the connection]
radxanaoki has joined #linux-sunxi
<jernej> but you have to account for H6, which supports max. 3 GB of RAM, but usually this is done by installing 4 GB of RAM
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<jernej> which is properly detected as 4 GB
<jernej> so the easiest and the only error handling, which I would put in, is the one you mentioned. if for loop doesn't detect any row or column, hang the boot.
junari has joined #linux-sunxi
bauen1 has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
hramrach has quit [Ping timeout: 480 seconds]
dfas has joined #linux-sunxi
sdfgsdfs has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
paulk-bis has quit []
paulk has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> Lightsword: btw: since there was a U-Boot release on Monday, next now became the new master. So if there is anything wrong with jernej's fixes, now would be the time to complain, so that we can fix it
<apritzel> also for everyone else: if you have any U-Boot changes, now would be a good time to push for them, as the merge window is open. I will try to push as much of the A523 and A133 code in as possible
<jernej> apritzel: I have half ready series for merging H6 and H616 DRAM size detection code. I can finish it over the weekend, but I won't be able to test it on HW.
<jernej> should I post it anyway?
<apritzel> jernej: that's much appreciated, I was hoping for you to merge that! I can surely do some testing
<apritzel> yes please
<jernej> I can squeeze Lightsword suggestion in too
<apritzel> the next release is in July, so we have plenty of time to fix things
evgeny_boger has joined #linux-sunxi
<apritzel> jernej: many thanks for the U-Boot reviews, much appreciated!
<apritzel> I figured lately that USB was broken in U-Boot on most A10/A20 boards since about November, with no simple fix, so we need this code to get this going again
evgeny_boger1 has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
evgeny_boger1 has quit [Remote host closed the connection]
bauen1 has joined #linux-sunxi
tiop has joined #linux-sunxi
munchaus1n has quit [Ping timeout: 480 seconds]
cnxsoft has quit [Remote host closed the connection]
munchausen has joined #linux-sunxi
hramrach has joined #linux-sunxi
radxanaoki has quit [Quit: radxanaoki]
ungeskriptet has joined #linux-sunxi
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-sunxi
tiop has quit []
cnxsoft has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
szemzoa_ has joined #linux-sunxi
kasesag_ has joined #linux-sunxi
ynezz_ has joined #linux-sunxi
rtp_ has joined #linux-sunxi
dsimic_ has joined #linux-sunxi
igraltist_1 has joined #linux-sunxi
DuClare_ has joined #linux-sunxi
mripard_ has joined #linux-sunxi
montjoie has quit [reticulum.oftc.net helix.oftc.net]
dsimic has quit [reticulum.oftc.net helix.oftc.net]
mripard has quit [reticulum.oftc.net helix.oftc.net]
kasesag has quit [reticulum.oftc.net helix.oftc.net]
szemzoa has quit [reticulum.oftc.net helix.oftc.net]
linkmauve has quit [reticulum.oftc.net helix.oftc.net]
psydroid has quit [reticulum.oftc.net helix.oftc.net]
hlauer[m] has quit [reticulum.oftc.net helix.oftc.net]
gamiee has quit [reticulum.oftc.net helix.oftc.net]
igraltist has quit [reticulum.oftc.net helix.oftc.net]
rtp has quit [reticulum.oftc.net helix.oftc.net]
rellla has quit [reticulum.oftc.net helix.oftc.net]
immibis has quit [reticulum.oftc.net helix.oftc.net]
ynezz has quit [reticulum.oftc.net helix.oftc.net]
Tooniis[m] has quit [reticulum.oftc.net helix.oftc.net]
DuClare has quit [reticulum.oftc.net helix.oftc.net]
Newbyte has quit [reticulum.oftc.net helix.oftc.net]
barni2000[m] has quit [reticulum.oftc.net helix.oftc.net]
montjoie_ has joined #linux-sunxi
gamiee has joined #linux-sunxi
rellla has joined #linux-sunxi
psydroid has joined #linux-sunxi
Newbyte has joined #linux-sunxi
hlauer[m] has joined #linux-sunxi
Tooniis[m] has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.6.1]
cnxsoft has quit [Ping timeout: 480 seconds]
barni2000[m] has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
dok has quit [Remote host closed the connection]
dok has joined #linux-sunxi
junari has quit [Remote host closed the connection]
warpme has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
paulk-bis has joined #linux-sunxi
<gamiee> apritzel : the DTS you made for Banana Pi M4 Berry seems to be done according to PCB V00. V10 (which I have) have different RAM (the same one as on Orange Pi Zero 3, but 2GiB version instead of 4GiB), and WiFi is now connected through USB hub. BTW do you have downloaded the V00 schematics? The Google Drive link is dead.
paulk has quit [Ping timeout: 480 seconds]
linkmauve has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
alikates has quit [Remote host closed the connection]
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
vagrantc has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
ftg has joined #linux-sunxi
tiop has joined #linux-sunxi
apritzel has joined #linux-sunxi
<Lightsword> is there a good h616 minimal defconfig for mainline kernel that's a good starting point to base off of?
<apritzel> Lightsword: make defconfig or use a distro config
<Lightsword> apritzel, know any good minimal distro configs? I found https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/kernel/linux-6.1-sun50iw9-next.config but it still seems to have a bunch of drivers that would never be usable on a h616 board
<apritzel> Lightsword: you cannot really use a config for an older BSP kernel on a recent mainline kernel
<apritzel> besides: configuring a tailored kernel from scratch is non-trivial in these days, this is not the 90s anymore
<apritzel> I'd recommend you start with defconfig, then disable the stuff you don't need, for instance other platforms, PCIe, and stuff. And keep notes of what you disabled, as you probably need to repeat this exercise
<Lightsword> apritzel, ok, yeah, was hoping to avoid having to do most of that, I thought that kernel config I linked was based on mainline however
<apritzel> the Allwinner BSP kernel is a nightmare. Sure, it was forked from mainline at some point, but they butchered it heavily afterwards
<apritzel> plus v6.1 is now more than two years old
<Lightsword> apritzel, btw should it be possible to enable networking in uboot on h616 boards like mine? was messing with various device tree configs but couldn't get anything to actually work
<apritzel> no, not easily. We don't support the integrated PHY in the H616 in mainline, neither in Linux nor U-Boot. We don't even have any DT bindings agreed on.
<apritzel> There are patches floating around, and some downstream distros have picked them up, but that's not mainline
<Lightsword> how do I know if my h616 is even using the integrated phy?
<apritzel> yes, the OrangePis use external Gigabit PHYs. The best way to check is to look at the board, to see if there is a chip close to the Ethernet jack
<Lightsword> apritzel, I see a chip labeled PSF-16211
<apritzel> if the board uses 100MBit/s, it's a high chance it's using the internal PHY
<Lightsword> apritzel, on vendor BSP it looks like it's using this https://gist.github.com/jameshilliard/09db9dc4ab4ee09880f37a05808fab15#file-h616-wm-dts-L4705-L4726
<apritzel> this chip is just the magnetics/transformers, not a PHY
<Lightsword> all the mainline stuff appears to be using 05020000 as the register address, while this is using 05030000, which is a bit confusing as well
<Lightsword> apritzel, those patches floating around on the uboot/kernel mailing lists somewhere?
<apritzel> 502 is the MAC which exposes the RGMII pins, to use an external (Gigabit) PHY. 503 is a 2nd MAC, which is connected straight to the internal PHY only
<Lightsword> apritzel, ah, so mine would have to then be using the internal PHY
<apritzel> I don't think those patches have been posted, as they are not ready yet. They live in various github repos, I believe, don't know of a good example, and it's unreviewed and prone to change at best anyway
<Lightsword> apritzel, did the patches work at all?
<apritzel> yes, they did, but there is a big difference between "works for me" and "ready for mainline"
<Lightsword> apritzel, remember who was working on them or where I might find those patches to test out?
<apritzel> we will come back to them at some point in the next months, I think (since I want them too), but it's not high priority
<apritzel> search for AC200 or AC300, that's the name of the chip co-packaged on the recent Allwinner SoCs providing the internal PHY functionality
<Lightsword> apritzel, does this look like the most recent version of the kernel driver work on it? https://github.com/codekipper/linux-sunxi/commits/sunxi-wip
<apritzel> I don't know, it's one of those various branches, with unreviewed and WIP patches. The first one looks like to be against some mainline kernel, but the U-Boot one looks very hackish
tiop has quit []
junari has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
hentai has joined #linux-sunxi
radxanaoki has joined #linux-sunxi