narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
afaerber has quit [Ping timeout: 252 seconds]
afaerber has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
nemunaire has quit [Quit: quit]
nemunaire has joined #linux-amlogic
Xogium has quit [Remote host closed the connection]
Xogium has joined #linux-amlogic
Xogium has quit [Client Quit]
Xogium has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Client Quit]
sputnik_ has joined #linux-amlogic
Ntemis has quit [Remote host closed the connection]
<wens> lol
<wens> IIRC proprietary tools are still needed to make the u-boot image bootable on meson?
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
Barada has quit [Read error: Connection reset by peer]
Barada has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
<afaerber> wens, for S905 I have the meson-tools but for the others they haven't been adapted yet
Xogium has quit [Client Quit]
Xogium has joined #linux-amlogic
<wens> afaerber: reverse engineered I see
<wens> afaerber: thanks
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 252 seconds]
Elpaulo1 has joined #linux-amlogic
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo1 is now known as Elpaulo
<narmstrong> The fip structure and headers have been completely changed for s905x and later, this needing new tools, our only option now it use the tools delivered by Amlogic
Xogium has quit [Quit: Leaving.]
<afaerber> narmstrong, I was still planning to have that as command line option in my tool or at least an ifdef to share code
Xogium has joined #linux-amlogic
<afaerber> but mainly it needs input files and time for the RE effort
<narmstrong> anyway, it's good to have GXBB support, but this SoC is now legacy and S905X/S905D/S912 deserves some love aswell !
Darkmatter66 has quit [Ping timeout: 252 seconds]
rtp_ is now known as rtp
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
Darkmatter66 has joined #linux-amlogic
AntonioND has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
sheepman has quit [Read error: Connection reset by peer]
sheepman has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
<Darkmatter66> Hi narmstrong, I've built gstreamer1.0-plugins-good from the topic/v4l2-m2m branch but the resulting libgstvideo4linux2.so doesn't have v4l2video0dec
<Darkmatter66> narmstrong, only v4l2deviceprovider, v4l2radio, v4l2sink and v4l2src
<narmstrong> Darkmatter66: from which poky version ?
<Darkmatter66> narmstrong, sumo, does this branch target a different version ?
<narmstrong> nop, sumo works
<Darkmatter66> narmstrong, well when I built from the sumo branch of meta-meson I used to have the v4l2video0dec but the topic branch is messing something
<Darkmatter66> narmstrong, maybe one of the patches you add in the bbappend is causing this
<narmstrong> Darkmatter66: should not
<Darkmatter66> narmstrong, does it work for you on the topic branch ? i cleaned the recipe and rebuilt multiple times and the issue remains
<narmstrong> Darkmatter66: it worked last time I tried, I need to retry
<Darkmatter66> narmstrong, sure, take your time
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
<mjourdan> AntonioND: that's really cool, nice work
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
<brads> How about the M4 in the S905 on C2? illegal instruction errors seem to be the theme on random kernel/ userspace processes when A53 is overclocked above 1.7Gh even with 1 only core enabled. Cooling is not the problem or even overvolt / undervolt nor seem memory freq. Can the M4 be hinted to run a little faster to get the instructions in the right place at the right time? Can its
<brads> microcode be ammended on boot through the BL blobs?
<xdarklight> I think it's a Cortex-M3 in GXBB (S905), GXL (S905X, S905D, ...) and GXM (S912)
default__ has joined #linux-amlogic
<xdarklight> but I don't know anything about it (so sorry for the noise)
ldevulder_ has quit [Ping timeout: 245 seconds]
brads has quit [Ping timeout: 252 seconds]
Xogium has quit [Quit: Leaving.]
<AntonioND> well, that was something else I was thinking about. when the TF is in a nice shape, usptreamed and working nicely with uboot and the kernel, it would be nice to take a look at bl30.bin and see what's going on in there
<AntonioND> but I'm sure it's going to be way more obscure than the TF
Xogium has joined #linux-amlogic
<mjourdan> AntonioND: is bl31 acting as secure monitor on gxbb ?
Xogium has quit [Quit: Leaving.]
<AntonioND> yes
Xogium has joined #linux-amlogic
<AntonioND> they are using a weirdly modified bootflow
<AntonioND> bl30 is the scp binary
<AntonioND> bl301 is non standard, but I think that it is actually open
<AntonioND> bl31 is the runtime part of the firmware
<AntonioND> I'm actually not sure of how many services are needed from the TF
<AntonioND> PSCI for sure
<AntonioND> but, for example, uboot uses some system monitor calls to get the serial number to generate the mac address using it
<AntonioND> this is obviously not critical
<AntonioND> but nice to have
Xogium has quit [Client Quit]
<mjourdan> Thanks :)
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
<AntonioND> np
Xogium has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
afaerber has quit [Quit: Leaving]
Barada has quit [Quit: Barada]
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
Xogium has quit [Client Quit]
afaerber has joined #linux-amlogic
default__ is now known as ldevulder
jakogut has quit [Read error: Connection reset by peer]
chewitt has joined #linux-amlogic
vagrantc has joined #linux-amlogic
AntonioND has quit [Quit: :wq]
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-amlogic
afaerber has quit [Quit: Leaving]
return0xe has quit [Remote host closed the connection]
return0e has joined #linux-amlogic
AntonioND has joined #linux-amlogic
Darkmatter66 has quit [Quit: ZNC 1.7.1 - https://znc.in]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Quit: ZNC 1.7.1 - https://znc.in]
Darkmatter66 has joined #linux-amlogic
<AntonioND> can turn on and off cpus from linux! :P
<AntonioND> echo 0 > /sys/devices/system/cpu/cpu3/online
<AntonioND> etc
<AntonioND> lscpu lists them nicely
<vagrantc> yeah :)
<AntonioND> meh, cpu0 doesn't want to be nice
<AntonioND> the psci interfaces in the firmware aren't exactly intuitive
<AntonioND> ok, so I can turn on/off at will, except for cpu0, which can only be turned off, and if I try to turn it on it fails and then I get an endless loop of "can't change cpu frequency" messages lol
<AntonioND> it will eventually work
jakogut has joined #linux-amlogic
Xogium has joined #linux-amlogic
<xdarklight> not sure about ARMv8 but with older 32-bit cores you can't turn off CPU 0 because some interrupts are tied to it
<AntonioND> i'm not sure if linux understands that, though
<AntonioND> it hasn't blocked me from trying
<AntonioND> and it has actually succeeded
<AntonioND> so cpu0 isn't critical
<AntonioND> the problem is that the psci implementation I have in assembly code is a really old one that I have to reverse engineer + migrate to the new psci interfaces
<AntonioND> and this is a bit crazy
<AntonioND> the arguments of the hooks are different, etc
<narmstrong> You can turn off/on the cpu0 on amlogic implementation, at least the latest one...
<AntonioND> I can actually do it, but I think that when I try to power it on again it fails, but it doesn't fail to setup the gic
<AntonioND> so that's why I get error messages probably
<AntonioND> at least I don't have to worry about cluster on/off states
<AntonioND> lol
<AntonioND> okay
<AntonioND> with the original TF that command turns off the full board
<AntonioND> that makes me feel a lot better about my problems :P
<AntonioND> echo 0 > /sys/devices/system/cpu/cpu0/online
<AntonioND> this, I mean
<AntonioND> the other cpus work fine
<AntonioND> but cpu 0 turns off the full system
<AntonioND> i mean, even if the other cpus are on
<AntonioND> hmmm I guess they couldn't get it to work either. there is a workaround, I could just handle cpu0 differently and keep it in a wfi loop instead of trying to actually turn it off
vagrantc has quit [Quit: leaving]
<AntonioND> i think that their scp code may have a bug and that's why this happens... interesting
return0xe has joined #linux-amlogic
return0e has quit [Ping timeout: 252 seconds]
<AntonioND> ok, so I've implemented a hacky way to have cpu off in CPU0 for consistency
<AntonioND> when entering off state I enter a wfe loop
<AntonioND> and I wait for a flag to be set to 1
<AntonioND> but well, linux really doesn't like this. it shows messages that it tries to change the cpu freq and it fails, so well, I guess this workaround is really not great
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
afaerber has joined #linux-amlogic
Xogium has quit [Client Quit]
Xogium has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
Xogium has quit [Quit: Leaving.]
Xogium has joined #linux-amlogic
tlwoerner has quit [Ping timeout: 245 seconds]
tlwoerner has joined #linux-amlogic
AntonioND has quit [Quit: Quit]