rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
janhenrik_ has joined #linux-sunxi
<janhenrik_> Hey, any Sochip S3 experts here? :) I ran into a (documentation) problem. I would like to use the I2S interface mentioned in the datasheet. Usual/Required pins for I2S are: BCLK LRCK SDO[3:0] SDI. Those are mentioned on page 344 in the I2S/PCM block diagram, however that is the only occurance. As physical I2S pins the Datasheet lists PCM_DIN (SDI?), PCM_DOUT (SDO?), PCM_BCLK (BCLK?) and PCM_SYNC. What am I missing? Does the S3
<janhenrik_> not feature a full I2S interface (as in the A13 does but it is not broken out on the S3) or are pins names missing in the documentation? Or is PCM_SYNC simply LRCK and there is only one SDO?
<janhenrik_> "(as in the A13 does but it is not broken out on the S3)" huh, i recon that the S3 was based on the A13, but I cannot find the source or any information anymore, so nevermind this statement
<apritzel> smaeul: ah, nice one, many thanks!
<smaeul> ... and now I know why people complain about the OpenSSL C API :). but it can (almost) do the certificate generation, so I'll give it a pass
<smaeul> apritzel: any ideas about what to do for the SPL header? throw it inside the firmware item? between the headers and the first item? use the existing format or something new?
<smaeul> the problem with wrapping eGON inside TOC0 is that it gets padded twice. otherwise it fits in 32k still
<apritzel> smaeul: haven't thought about that too hard, but wasn't the embedded eGON just something which made the conversion script easier? Do we actually really need this?
yoq has joined #linux-sunxi
<apritzel> now that we have proper mkimage support, why do we need eGON? I mean if the magic reads TOC0, we just can use different code (or just a different offset) to get what we want?
<smaeul> apritzel: no, we don't need embedded eGON. the changes I pushed are all that's needed to boot. but it breaks DT selection because we lose the extra SPL header stuff
<apritzel> smaeul: ... which is something we invented, and guarded by the eGON magic
ChriChri_ has joined #linux-sunxi
<apritzel> so I would say we have an alternative when we read TOC0
<apritzel> or does the BROM throw away all the TOC0 headers?
<smaeul> it doesn't throw away anything, no. unless you choose a load address that overwrites them, they will be left at the start of SRAM A1
<smaeul> with https://github.com/smaeul/u-boot/commit/fb3040a0844fbc73f2807bc3353ede9cefad1cd2, the load address is SRAM A1 + 0x60, which means there are 0x30 bytes we can put stuff in between the main header and what gets overwritten by the SPL
<smaeul> but anything we put there isn't signed. only the items themselves are signed
<smaeul> there are a couple hundred free bytes in the key item, and we can make the certificate arbitrarily large
ChriChri has quit [Ping timeout: 260 seconds]
ChriChri_ is now known as ChriChri
<smaeul> bauen1 wants to rearrange the headers so that the firmware item actually starts before its item header, so the load address is also signed
<apritzel> smaeul: does it work on the A64? I need to play with it to understand it better (but not today anymore)
<smaeul> apritzel: uh, just H6 at the moment. I'll investigate and fix H5 compatibility (that should be equivalent to A64, I don't have any secure A64 devices)
<smaeul> I hoped it would Just Work, but apparently there's some difference between the SBROMs
<yoq> janhenrik_: afaik other allwinner chips have the same 4 pin (single data line) interface for I2S. the S3 peripheral looks pretty similar to the one on the H3 which has been usable for quite some time. frame sync = word select = L/R clock, just different names for the same thing
<apritzel> smaeul: if you don't have time, I can try to work it out. I have one secure H64 (Remix Mini) and one secure Pine64, so both are A64
<janhenrik_> thanks yoq! I just found AN12202 by NXP stating "Word Select (WS), Frame Sync (FS) or Word clock (WCLK) indicates the channel being
<janhenrik_> transmitted"
<yoq> janhenrik_: btw, here's a watermark-free version of the datasheet https://linux-sunxi.org/File:S3_Datasheet_V1.0_cleaned.pdf
<apritzel> smaeul: but having some version of TOC0 mkimage is a huge step forward, many thanks for that!
<janhenrik_> Thanks, much cleaner :3
<janhenrik_> It seems that Allwinner generally likes to call "LRCLK" "SYNC", quite confusing.
<janhenrik_> Another question, Datasheet does not specify which TWI interface to use for setup. I assume both work and can be selected in the device tree
<janhenrik_> But yay! Got scared there for a seccond, I am working on an Open Source Chromecast audio alternative/alike based on the S3 + SSM2603 and I drew the audio part at last ^^
<smaeul> apritzel: you're welcome, it was quite an interesting exercise
apritzel has quit [Ping timeout: 256 seconds]
\\Mr_C\\ has quit [Excess Flood]
\\Mr_C\\ has joined #linux-sunxi
<yoq> by nesting it in the correct i2c bus
yoq has quit [Remote host closed the connection]
jstein has quit [Ping timeout: 240 seconds]
ganbold_ has joined #linux-sunxi
ganbold__ has quit [Remote host closed the connection]
gaston1980 has quit [Ping timeout: 272 seconds]
kaspter has joined #linux-sunxi
azend has joined #linux-sunxi
victhor has quit [Ping timeout: 256 seconds]
vagrantc has quit [Quit: leaving]
gediz0x539 has joined #linux-sunxi
gediz0x539 has quit [Remote host closed the connection]
gediz0x539 has joined #linux-sunxi
gediz0x539 has quit [Client Quit]
gediz0x539 has joined #linux-sunxi
gediz539 has joined #linux-sunxi
gediz0x539 has quit [Ping timeout: 240 seconds]
nga0x539 has joined #linux-sunxi
gediz539 has quit [Ping timeout: 246 seconds]
gediz539 has joined #linux-sunxi
nga0x539 has quit [Ping timeout: 265 seconds]
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
ddlstwrr has joined #linux-sunxi
nga0x539 has joined #linux-sunxi
gediz539 has quit [Ping timeout: 256 seconds]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 260 seconds]
jstein has joined #linux-sunxi
gediz539 has joined #linux-sunxi
nga0x539 has quit [Ping timeout: 240 seconds]
ddlstwrr has quit [Quit: Leaving.]
ddlstwrr has joined #linux-sunxi
jstein has quit [Quit: quit]
agraf has quit [Ping timeout: 260 seconds]
agraf has joined #linux-sunxi
libv has quit [Ping timeout: 260 seconds]
libv has joined #linux-sunxi
nga0x539 has joined #linux-sunxi
gediz539 has quit [Ping timeout: 260 seconds]
apritzel has joined #linux-sunxi
gediz539 has joined #linux-sunxi
ddlstwrr has quit [Quit: Leaving.]
nga0x539 has quit [Ping timeout: 246 seconds]
JohnDoe_71Rus has joined #linux-sunxi
ddlstwrr has joined #linux-sunxi
apritzel has quit [Ping timeout: 260 seconds]
ldevulder_ is now known as ldevulder
cmeerw has joined #linux-sunxi
ddlstwrr has quit [Quit: Leaving.]
AneoX has quit [Ping timeout: 264 seconds]
AneoX has joined #linux-sunxi
kaspter has quit [Ping timeout: 260 seconds]
nga0x539 has joined #linux-sunxi
kaspter has joined #linux-sunxi
gediz539 has quit [Ping timeout: 272 seconds]
nga0x539 has quit [Ping timeout: 260 seconds]
tuxillo has quit [Remote host closed the connection]
hanni76 has joined #linux-sunxi
indy has quit [Ping timeout: 246 seconds]
indy has joined #linux-sunxi
apritzel has joined #linux-sunxi
tuxillo has joined #linux-sunxi
Danct12 has joined #linux-sunxi
eduardas has joined #linux-sunxi
ddlstwrr has joined #linux-sunxi
ddlstwrr has quit [Client Quit]
fourkbomb has joined #linux-sunxi
qschulz has quit [Ping timeout: 246 seconds]
forkbomb has quit [Ping timeout: 264 seconds]
Kooda has quit [Ping timeout: 264 seconds]
maz_ has joined #linux-sunxi
maz has quit [Ping timeout: 264 seconds]
Kooda has joined #linux-sunxi
maz_ is now known as maz
qschulz has joined #linux-sunxi
bauen1 has quit [Ping timeout: 256 seconds]
matthias_bgg has joined #linux-sunxi
bauen1 has joined #linux-sunxi
jelly has quit [Remote host closed the connection]
florian_kc has joined #linux-sunxi
jelly-home has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
florian_kc is now known as florian
gediz0x539 has joined #linux-sunxi
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
victhor has joined #linux-sunxi
gediz0x539 has quit [Ping timeout: 246 seconds]
DuClare has quit [Ping timeout: 240 seconds]
ddlstwrr has joined #linux-sunxi
gediz0x539 has joined #linux-sunxi
andy25225 has quit [Ping timeout: 240 seconds]
gediz539 has joined #linux-sunxi
gediz0x539 has quit [Ping timeout: 256 seconds]
DuClare has joined #linux-sunxi
andy25225 has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
matthias_bgg has quit [Ping timeout: 240 seconds]
matthias_bgg has joined #linux-sunxi
ddlstwrr has quit [Quit: Leaving.]
jelly-home is now known as jelly
ddlstwrr has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
gediz539 has quit [Ping timeout: 264 seconds]
<bauen1> smaeul: nice work
<bauen1> smaeul: toc0 previous to H6 lacks the 0x10303 item (but should ignore it just fine) and compares the sha256 of the 0x10101 cert to the sid efuse rotpk hash
<bauen1> so it might be possible to generate toc0 that works for both H6 and pre-H6 ; you just need to figure out the correct rotpk hash
<bauen1> but not possible anymore if using the method that includes the items / header in the signature since the run address varies between pre-H6 ; H6
daregap has quit [Quit: daregap]
popolon has joined #linux-sunxi
daregap has joined #linux-sunxi
daregap has quit [Quit: daregap]
matthias_bgg has left #linux-sunxi ["Leaving"]
gediz0x539 has joined #linux-sunxi
gediz0x539 has quit [Client Quit]
ddlstwrr has quit [Quit: Leaving.]
alexxy has quit [*.net *.split]
alexxy has joined #linux-sunxi
psydread has joined #linux-sunxi
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 256 seconds]
psydread has left #linux-sunxi [#linux-sunxi]
psydread has joined #linux-sunxi
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
ldevulder_ is now known as ldevulder
luke-jr has joined #linux-sunxi
forkbomb has joined #linux-sunxi
fourkbomb has quit [*.net *.split]
ddlstwrr has joined #linux-sunxi
eduardas has quit [Quit: Konversation terminated!]
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #linux-sunxi
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 272 seconds]
kaspter has joined #linux-sunxi
Danct12 has quit [Ping timeout: 246 seconds]
hanni76 has quit [Remote host closed the connection]
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
ddlstwrr has quit [Quit: Leaving.]
vagrantc has joined #linux-sunxi
apritzel has quit [Ping timeout: 246 seconds]
florian has quit [Quit: Leaving]
psydread has quit [Read error: Connection reset by peer]
nashpa has quit [Ping timeout: 265 seconds]
nashpa has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
<hexdump0815> i did play around a bit with a h313 and a h616 tv box running the 4.9 bsp kernel from the opi zero 2 with an adjusted dtb and it looks like those socs have quite a bit headroom
<hexdump0815> the h313 runs stable up to 1.7ghz and the h616 up to 1.8ghz (did not test any higher yet) and the temperature is still around 80 c celsius under full load in the box without any extra cooling
<hexdump0815> does anyone know any more detail about the process this soc is produced in? according to what i found its 28nm but from the thermals it looks very similar to the amlogic s905x2 also going up to 1.8ghz with ok temperature which is 12nm for the cpu cores and 28nm for the gpu as far as i know - maybe the h313/h616 is similar?
<hexdump0815> ok that was too quick - looks like i see thermal throttling now on the h616 which does not seem to be exposed via cpufreq values, i.e. there it still shows 1.8ghz but performance drops to about 50-60% which looks more like a h6 :)
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #linux-sunxi
apritzel has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
<hexdump0815> sorry, my fault again: it is really running thermally stable - what pushed the performance down was not thermal throttling but the firefox with about 20 tabs which i started in parallel to increase the memory pressure a bit :) ... so looks like this is a pretty nice soc actually
camus1 has joined #linux-sunxi
kaspter has quit [Read error: Connection reset by peer]
camus1 is now known as kaspter
<sunshavi> mmm. firefox on h3 jus support 4 tabs
<hexdump0815> sunshavi: i think its just a matter of memory and maybe patience to get even more out of a h3 :)
bauen1 has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
hexdump0815 has quit [Remote host closed the connection]
hanni76 has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
<sunshavi> hexdump0815: javascript is very demanding. BTW. amazon gives the mobile version to firefox. also google gives the mobile version to firefox
lurchi__ is now known as lurchi_
hanni76 has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
lurchi__ is now known as lurchi_
vagrantc has quit [Quit: leaving]
lurchi_ is now known as lurchi__
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #linux-sunxi
jstein has joined #linux-sunxi
indy has quit [Quit: ZNC - http://znc.sourceforge.net]
indy has joined #linux-sunxi
bauen1 has joined #linux-sunxi
maz has quit [Remote host closed the connection]
maz has joined #linux-sunxi
qschulz has quit [Ping timeout: 240 seconds]
maciejjo has quit [Ping timeout: 240 seconds]
qschulz has joined #linux-sunxi
maciejjo has joined #linux-sunxi
jbrown has quit [Ping timeout: 240 seconds]
gaston1980 has joined #linux-sunxi
cmeerw has quit [Ping timeout: 260 seconds]