sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
chewitt has quit [Ping timeout: 252 seconds]
mag has quit [Quit: Bye]
chewitt has joined #linux-amlogic
chewitt has quit [Quit: Zzz..]
return0e has joined #linux-amlogic
return0xe has quit [Ping timeout: 244 seconds]
sputnik_ has quit [Remote host closed the connection]
chewitt has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
Barada has joined #linux-amlogic
Barada has quit [Ping timeout: 245 seconds]
Barada has joined #linux-amlogic
Barada has quit [Ping timeout: 252 seconds]
Barada has joined #linux-amlogic
default__ is now known as ldevulder
Darkmatter66 has joined #linux-amlogic
Darkmatter66_ has quit [Ping timeout: 272 seconds]
sputnik_ has quit [Ping timeout: 268 seconds]
sputnik_ has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 252 seconds]
AntonioND has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
ldevulder_ is now known as ldevulder
chewitt has quit [Quit: Zzz..]
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-amlogic
chewitt has joined #linux-amlogic
chewitt has quit [Ping timeout: 245 seconds]
Barada has quit [Quit: Barada]
chewitt has joined #linux-amlogic
<AntonioND>
hey! I think I've spent enough time cleaning the port and it's in a fairly decent shape. there are still things to be done, but I think that it is useful enough in its current state to replace the binary blob. if anyone wants to review it: https://github.com/ARM-software/arm-trusted-firmware/pull/1616 I will have to leave the channel in 20 min, but I'll be back tonight at some point if someone has any comments (or leave them in the
<AntonioND>
PR!)
<lvrp16>
AntonioND: very nice
<lvrp16>
wish it was for GXL XD
AntonioND has quit [Ping timeout: 252 seconds]
Darkmatter66 has quit [Quit: ZNC 1.7.1 - https://znc.in]
<wens>
amlogic keeps putting out S905xyz chips, so confusing
Darkmatter66 has joined #linux-amlogic
AntonioND has joined #linux-amlogic
<ldevulder>
AntonioND, is it possible to adapt if for s905x? I know there are different in some point but also close in other
<ldevulder>
but very good work! A new step for something completely opensource!
<AntonioND>
i have no idea, tbh. to begin with, I don't know if you can replace bl31 in any board with that soc
<AntonioND>
if you can... in theory it should be easy to adapt
<AntonioND>
and thanks!
vagrantc has joined #linux-amlogic
<narmstrong>
For only cpu related stuff, s905 and s905x should be very close
<narmstrong>
It’s worth trying
<narmstrong>
Bl2 would be very different, bl30 also, but bl31 would be very similar
<AntonioND>
the first step is to see if trusted board boot is enabled or not. Just look for any of the strings that are shown during boot and modify it
<AntonioND>
that's what I did for the odroid c2
<AntonioND>
if that can be done, adapting it should be easy
<AntonioND>
the only board I have at home is the odroid, that's why I have only done it for it
<poulecaca>
AntonioND: ldevulder IIUC bl3* binary are aes-256-cbc encrypted. So changing a string won't do I guess.
<AntonioND>
odroid c2 is really nice in that way. I haven't checked bl2 or bl1, but I'd say that they aren't signed either. in any case, I don't care much about them, I mostly care about having open runtime software
<AntonioND>
having a closed source bootloader in rom or in the sd card makes very little difference
<AntonioND>
bl31 and bl30 are the two main problems
chewitt has quit [Max SendQ exceeded]
chewitt has joined #linux-amlogic
<AntonioND>
in any case, I'd be interested in similar boards without trusted boot, so yeah, if there is any, please tell me
<poulecaca>
on the other hand on baylibre's uboot git repository (https://github.com/BayLibre/u-boot) it seems that uses a binary aml_encrypt_gxl to sign a bl2.bin which at first glance seems to be genuine aarch64 binary. So I guess It could be possible to sign anything ?
<narmstrong>
Replacing bl32 would be a nightmare since it handles all the ddr init stuff
<narmstrong>
*bl2
<narmstrong>
Bl30 looks doable, but you need to figure out how to load the bl301 binary to the scp
mag_ has joined #linux-amlogic
<narmstrong>
poulecaca: i think you can sign anything with the amlogic tools
<narmstrong>
I’m not sure about the bl31, I think you need to convert it to a .img
<poulecaca>
narmstrong: seems so, I havn't tested yet though. But was planning to.
<narmstrong>
But all this is in the amlogic u-boot code...
<narmstrong>
AntonioND: the binaries they ship are the ones used for trusted boot for actual products, the aml_encrypt_gxl can be used to do a full trusted + encrypted boot with the correct args
<narmstrong>
I suppose they can ship custom ones for big customers, but basic products use these by default
<afaerber>
poulecaca, gxl is not yet implemented in the tool, but contributions welcome