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
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Client Quit]
sputnik_ has joined #linux-amlogic
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
<AntonioND> however after https://fredericb.info/2016/10/amlogic-s905-soc-bypassing-not-so.html I suppose that they are more careful
<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 ?
<vagrantc> there was also an attempt at replacing some of the signing stuff with https://github.com/afaerber/meson-tools/
<poulecaca> ah nice news
<AntonioND> it does look like it
<vagrantc> /20/20
<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
<poulecaca> afaerber: nice job reversing amlogic header. It seems you are using the SHA256 signing tricks from https://fredericb.info/2016/10/amlogic-s905-soc-bypassing-not-so.html. Am I right ?
* afaerber is not aware of that link
Darkmatter66 has quit [Quit: ZNC 1.7.1 - https://znc.in]
<AntonioND> yes, bl2 would be hell, and you don't really get much out of it
<AntonioND> ddr drivers are magic code anyway
<AntonioND> loading bl30 should be easy, you just need to replace the bl30 they give you
<AntonioND> and yeah, thanks narmstrong, that explanation makes sense
<AntonioND> also, as far as I know, the differences between gxbb and gxl are quite small, and they don't really affect the firmware
<AntonioND> it is likely that the same binary could run in both
afaerber has quit [Quit: Leaving]
<AntonioND> also I've just realized I've been loading the wrong dtb all this time
sputnik_ has joined #linux-amlogic
afaerber has joined #linux-amlogic
cottsay has left #linux-amlogic [#linux-amlogic]
sputnik_ has quit [Remote host closed the connection]
<ldevulder> AntonioND, I will try to test your ATF code on s905x one of these days :)
sputnik_ has joined #linux-amlogic
<AntonioND> thanks, ldevulder. it may work. if it does, I will rename things there. maybe think of a new folder structure
<AntonioND> because it wouldn't make sense then to have gxbb for both
<AntonioND> at least there should be an alias
<AntonioND> so how different are the different gxl devices?
random_yanek has quit [Ping timeout: 252 seconds]
random_yanek has joined #linux-amlogic
random_yanek has quit [Max SendQ exceeded]
random_yanek has joined #linux-amlogic
random_yanek has quit [Max SendQ exceeded]
random_yanek has joined #linux-amlogic
random_yanek has quit [Max SendQ exceeded]
random_yanek has joined #linux-amlogic
random_yanek has quit [Max SendQ exceeded]
random_yanek has joined #linux-amlogic
random_yanek has quit [Max SendQ exceeded]
random_yanek has joined #linux-amlogic
random_yanek has quit [Max SendQ exceeded]
vagrantc has quit [Quit: leaving]
AntonioND has quit [Quit: Quit]