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
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has quit [Quit: leaving]
ftg has quit [Read error: Connection reset by peer]
Schimsalabim has quit [Ping timeout: 480 seconds]
Danct12 has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
thomass has joined #linux-sunxi
thomass has quit [Remote host closed the connection]
loki6668 has joined #linux-sunxi
loki666 has quit [Ping timeout: 480 seconds]
<eliasbakken> jernej: CPUSLDO is not enabled by default, no. So if the ARISC should be enabled from a clean boot, then the CPUSLDO must be enabled. I don't know the registers for the ARISC clock source, but it might be that the ARSIC is not clocked by default. Also, the MSGBOX has a separate clock.
Danct12 has quit [Ping timeout: 480 seconds]
loki6668 has quit []
loki666 has joined #linux-sunxi
<loki666> On a133p front, we managed to get the kernel to boot (issue was u-boot dram params)
<loki666> On the Zero28
<loki666> SMP is not working (as expected)
<loki666> partiban do you have a branch to test your DE2 update for A100, post on ML is incomplete
Danct12 has joined #linux-sunxi
<jernej> eliasbakken: I can't find anything related about ARISC CPU clock in documentation. I suspect CPUS in documentation is ARISC and MCU is RISC-V, but sometimes it looks CPUS is also RISC-v...
<jernej> apritzel: git version of openocd seems to works nicely with a527. What I've noticed is that we should look into M-BROM for FEL boot issues instead of S-BROM. Hopefully finding aarch32 switch issue won't be hard now.
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
hazardchem has quit [Remote host closed the connection]
hazardchem has joined #linux-sunxi
colinsane has joined #linux-sunxi
<jernej> apritzel: so the reason why sunxi-fel breaks is because soc ends in what it looks like some interrupt or trap handler at address 0x15010, which is just infinite empty loop.
colinsane has quit [Ping timeout: 480 seconds]
<jernej> so it seems to be data abort handler
ftg has joined #linux-sunxi
Danct12 has quit [Quit: WeeChat 4.5.1]
Danct12 has joined #linux-sunxi
Danct12 has quit []
Danct12 has joined #linux-sunxi
Danct12 has quit []
<jernej> apritzel: so reset is done properly and back_in_32 gets executed. From what I can tell, someting restoration of the fel state goes wrong and cpu ends on invalid instruction
<Soupborsh> I'm new and trying to port U-Boot to B288. Everything I did was just guess and logic. I have possibly silly questions I couldn't find answers, this place seem to be most appropriate to ask.
<jakllsch> then ask :-)
<Soupborsh> How do I properly create B288 as new SoC based on H3? I want all things from H3 that work to continue but I want to make changes specific to B288.
<Soupborsh> I tried but GPIO stopped working and code was messy.
szemzoa has quit [Quit: Connection closed for inactivity]
psydroid has quit []
<jernej> apritzel: when cpu goes in data abort handler, it has LR set to 0x1502c, which is right behind call to USB0 device interrupt handler
<jernej> not sure if this helps
psydroid has joined #linux-sunxi
<jernej> apritzel: now I'm pretty sure that something is wrong with GIC. If I load SPL via jtag, it works fine and goes back to some loop in mbrom. But as soon as I execute "sunxi-fel ver" it goes back to data abort trap.
aperezdc has quit [Remote host closed the connection]
aperezdc has joined #linux-sunxi
BroderTuck has joined #linux-sunxi
<BroderTuck> jernej: Progress! (even tho it's not fully solved yet)
<jernej> it's fun! going through tons of assembly without much clue :)
<BroderTuck> remind me, this trouble is because the Avaota (and the Radxa board?) start in secure?
<jernej> neither start in secure
<jernej> and both are problematic
<jernej> apritzel has some third board, which works fine, so I suspect is due die variations
<jernej> there is a lot of SID checks in mbrom
<loki666> Thanks
<BroderTuck> Maybe "start in secure" was a bad description, more like "need Toc0".
<MasterR3C0RD> That's the full DE series for the A133P; I haven't seen parthiban here for a while but I might shoot him an email at some point and see if he would be able to resend it
<jernej> well, none of these boards need toc0, standard egon header...
<BroderTuck> Anyway, I think the device apritzel has that it works on is the same tv box that I have, the X96QPro+
<jernej> BroderTuck: that's H728, right? can you dump sid?
<BroderTuck> It starts out 0300ff00, I can check the rest if you want
<BroderTuck> 0300ff00:81704824:75b09010:147f1cd6 (sunxi-fel sid)
<jernej> hm... actually I'm more interesting what's on 0x03006210
<jernej> so right behind chipid
<jernej> just call sid-dump
<BroderTuck> palvencia.se/sid-dump.txt
<jernej> thanks, so it's zero on both...
dsimic is now known as Guest8472
dsimic has joined #linux-sunxi
Guest8472 has quit [Ping timeout: 480 seconds]
<BroderTuck> Apparently the ff00 part should be enough to identify the H728
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
Net147 has quit [Quit: Quit]
Net147 has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
<BroderTuck> jernej: Just did a small test to see if all the cores were really online. "make -j 6" took about a quarter of the time of a plain "make" when compiling u-boot
<jernej> that's great. Now someone can write dvfs driver to get full speed ;)
eeschalier has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
ats has quit [Quit: new kernel]
<apritzel> Soupborsh: it's a bit involved, and quite tedious to explain here in the chat
<apritzel> Soupborsh: but first: from the kernel point of view, there are some ARM cores and a bunch of drivers, the DT tells you which drivers to use
ats has joined #linux-sunxi
<apritzel> so if the B288 is close to the H3, you just reference the same drivers as the H3 does
<apritzel> there are two devices which are quite SoC specific, so you need special versions for those: the pinctrl and the clock (CCU) driver
<apritzel> Soupborsh: this series should give you some idea how to go about it: https://lore.kernel.org/linux-sunxi/20250205125225.1152849-1-szemzo.andras@gmail.com/T/#u
<apritzel> jernej: so is it failing still in our back_in_32 code? Or when the first interrupt fires, already in BROM code?
<apritzel> BroderTuck: as jernej said: the X96QPro+ is using H728, and it's the same non-secure/eGON boot as the other two boards
<jernej> apritzel: back_in_32 code works just as expected, it fails somewhere in BROM when handling USB afterwards
<apritzel> so either the BROM is doing something differently on H728, or (more likely) we have a bug in our FEL code and somehow get away with it on that chip, but not on the A523/T527
<jernej> along the way I identified 2 brom configs bits which reside in sid. one seems to kill FEL support and other looks like allows high speed USB for fel
<apritzel> regarding more enhanced A523 support (DVFS, for instance): is there someone out there willing to address things? There are plenty of smaller tasks that can be done independently
<apritzel> jernej: ah nice, I think USB2.0 FEL came up some years before, but I guess we have bigger issues to address first - like getting it work at all completely ;-)
<apritzel> jernej: so you got JTAG working, using a MicroSD breakout board, I guess? How do you connect the JTAG signals to your host? Some random USB JTAG adapter, supported by OpenOCD?
<jernej> is there any difference in protocol? I would assume that it is just higher speed
<apritzel> FE 2.0> back then the report was to just flip a few bits, and it would be faster
<apritzel> FEL* 2.0
<apritzel> on the host side it would be about OCHI vs. EHCI, I think, but apparently it's easier on the MUSB side?
<apritzel> jernej: so I guess you have seen the two GICv3 registers I save/restore in the U-Boot code? I checked the other registers, they either should not matter or were the same as on reset
<apritzel> I tried two or three I was not sure about, but they didn't make a difference
<apritzel> but I did this mostly on the H728, because that's the most reliable board for FEL for me
<apritzel> I got an Avaota v1.5 from TL Lim last week, but did not come around to try that yet
<jernej> apritzel: I made this: https://ibb.co/0pncsZY7
<jernej> surprisingly first revision already works. openocd script was a challenge, but mostly because it's first time I was writing it
<apritzel> wow, that's neat! PCBWay?
<jernej> correct
<jernej> I plan to push it to gh
<apritzel> very nice!
<jernej> apritzel: to get back to your gic questions - I identified extra registers that are written
<jernej> icc_sre and icc_grpen0
<apritzel> I scanned the BROM code for GICv3 sysregs written, and think I covered all of them - some are nonsense^Wirrelevant I think
<apritzel> yes, ICC_SRE is RES1, for instance (tested that)
<apritzel> and IIRC saving and restoring igrpen0 didn't change anything
<jernej> correct, I tested that anyway and no difference
<apritzel> it doesn't make much sense anyway, since we are surely using group1 only
<jernej> so what it could be? I can test/check anything, if you can come up with an idea
<jernej> apritzel: is there anything else in GIC600 that could be suspect?
<apritzel> mmh, now that you say GIC-600: there could be some IMPDEF registers, for power saving/bringup, I can check those
vagrantc has joined #linux-sunxi
<jernej> that reminds me, maybe is some design decision on board that makes it work on X96QPro+ (sbc vs. tv box)
apritzel has quit [Ping timeout: 480 seconds]
Jookia has quit [Ping timeout: 480 seconds]
Jookia has joined #linux-sunxi
BroderTuck has quit [Quit: -]
vagrantc has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> well, I thought about this as well, but can't really believe that, since it's just FEL and the BROM, so nothing board specific, and FEL itself works
hentai has joined #linux-sunxi
hentai has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
bauen1 has joined #linux-sunxi