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*
jstein has joined #linux-sunxi
jstein has quit [Quit: quit]
jstein has joined #linux-sunxi
<smaeul> bauen1: the earlier SPC is a BP147, which has groups of 3 registers, so each "SET" register is 0xc above the last. the new one has groups of 4 registers
<smaeul> apritzel: I'm surprised that RVBAR appears to be ignored in AArch32. I will do some playing around in crust (that is, from the outside) to verify that
<smaeul> there's also the option of bringing up a second CPU to run your aarch64 code, then killing it and returning to FEL on CPU0
ChriChri_ has joined #linux-sunxi
<smaeul> the hotplug and super standby flags are documented in those flowcharts at the beginning of the manual that you always scroll past :)
jstein_ has joined #linux-sunxi
jstein is now known as Guest84970
Guest84970 has quit [Quit: quit]
<smaeul> apritzel: even if they are backed by SRAM, there is definitely extra logic in the standby/hotplug/related registers. the standby flag requires 2(!) consecutive keys in the high word to write the low word
ChriChri has quit [Ping timeout: 265 seconds]
ChriChri_ is now known as ChriChri
Mangy_Dog has quit [Ping timeout: 272 seconds]
jstein_ has quit [Quit: quit]
<apritzel> smaeul: yeah, (ab)using a second core was something I also thought about
<apritzel> but tbh I was hoping for some solution that's not too crazy
KotCzarny has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
<apritzel> smaeul: btw: my understanding is that RVBAR is really different from MVBAR
<apritzel> according to the A53 TRM the content of RVBAR is sampled at processor reset from some signals (RVBARADDRx[39:2]), which AW chose to back by this CPUCFG MMIO register
apritzel has quit [Ping timeout: 260 seconds]
victhor has quit [Ping timeout: 246 seconds]
gaston1980 has quit [Quit: Konversation terminated!]
KotCzarny has quit [Ping timeout: 256 seconds]
vagrantc has quit [Quit: leaving]
TheSeven has quit [Ping timeout: 260 seconds]
[7] has joined #linux-sunxi
lkcl has quit [Ping timeout: 246 seconds]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 260 seconds]
lkcl has joined #linux-sunxi
KotCzarny has joined #linux-sunxi
s_frit has quit [Ping timeout: 240 seconds]
iamfrankenstein has joined #linux-sunxi
xzz53 has quit [Quit: ZNC 1.7.3 - https://znc.in]
xzz53 has joined #linux-sunxi
AneoX has quit [Ping timeout: 265 seconds]
AneoX has joined #linux-sunxi
lurchi_ has quit [Read error: Connection reset by peer]
lurchi_ has joined #linux-sunxi
lurchi_ is now known as lurchi__
iyzsong has quit [Quit: ZNC 1.7.5 - https://znc.in]
cmeerw has joined #linux-sunxi
<bauen1> hm, so writing 0x9 (FIQEn=1, En=1) to GICC_CTLR (0x03022000) from fel "breaks" fel
<bauen1> so there's definietly a chance that setting the BOOTROM_CONFIG.FEL_MAGIC flag in the SID could be used to "brick" fel
<bauen1> so in theory that allows "bricking" FEL but still allows using the USB2.0 OTG port, e.g. from linux
msimpson has joined #linux-sunxi
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
msimpson has quit [Client Quit]
warpme_ has joined #linux-sunxi
apritzel has joined #linux-sunxi
iyzsong has joined #linux-sunxi
lurchi__ is now known as lurchi_
lurchi_ has quit [Quit: Konversation terminated!]
lurchi__ has joined #linux-sunxi
apritzel has quit [Ping timeout: 258 seconds]
lurchi__ has quit [Ping timeout: 272 seconds]
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
jstein has joined #linux-sunxi
victhor has joined #linux-sunxi
apritzel has joined #linux-sunxi
<bauen1> smaeul: have you actually tried loading an toc0 that is >= ~28Kb ?
<bauen1> from what i'm seeking in the sbrom the raw image is loaded to 0x00020000, which is the SRAM A1 that is limited to 32Kb
<bauen1> before processing eve
<bauen1> *even
<bauen1> and at the end of SRAM A1 at 0x27ffc is the stack ...
<bauen1> or it isn't, but some sort of stack for something starts at 0x27ffc
<bauen1> yes, the stack starts at 0x42e00
gaston1980 has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
Net147_ has joined #linux-sunxi
iyzsong- has joined #linux-sunxi
book`_ has joined #linux-sunxi
iyzsong has quit [*.net *.split]
juri_ has quit [*.net *.split]
andy25225 has quit [*.net *.split]
Net147 has quit [*.net *.split]
egbert has quit [*.net *.split]
book` has quit [*.net *.split]
montjoie has quit [*.net *.split]
Wizzup has quit [*.net *.split]
jelly has quit [*.net *.split]
[TheBug] has quit [*.net *.split]
alexxy has quit [*.net *.split]
Ecco has quit [*.net *.split]
aib has quit [*.net *.split]
Ashleee has quit [*.net *.split]
agraf has quit [*.net *.split]
iyzsong- is now known as iyzsong
Wizzup has joined #linux-sunxi
Ecco has joined #linux-sunxi
montjoie has joined #linux-sunxi
agraf has joined #linux-sunxi
aib has joined #linux-sunxi
andy25225 has joined #linux-sunxi
[TheBug] has joined #linux-sunxi
Ashleee has joined #linux-sunxi
z3ntu has quit [*.net *.split]
davidebeatrici has quit [*.net *.split]
alexxy has joined #linux-sunxi
djakov has quit [*.net *.split]
jelly-home has joined #linux-sunxi
juri_ has joined #linux-sunxi
egbert has joined #linux-sunxi
z3ntu has joined #linux-sunxi
davidebeatrici has joined #linux-sunxi
djakov has joined #linux-sunxi
thefloweringash has quit [Ping timeout: 244 seconds]
davidebeatrici has quit [Ping timeout: 246 seconds]
insep_ has quit [Ping timeout: 240 seconds]
psydruid has quit [Ping timeout: 240 seconds]
fevv8[m] has quit [Ping timeout: 240 seconds]
clementp[m] has quit [Ping timeout: 240 seconds]
TiD91 has quit [Ping timeout: 244 seconds]
z3ntu has quit [Ping timeout: 246 seconds]
solderfumes[m] has quit [Ping timeout: 246 seconds]
Irenes[m] has quit [Ping timeout: 244 seconds]
MartijnBraam has quit [Ping timeout: 240 seconds]
Ke has quit [Ping timeout: 268 seconds]
mahoux has quit [Ping timeout: 268 seconds]
Jeremy_Rand_DT[m has quit [Ping timeout: 240 seconds]
hpagseddy[m] has quit [Ping timeout: 240 seconds]
koty0f has quit [Ping timeout: 264 seconds]
davidebeatrici has joined #linux-sunxi
z3ntu has joined #linux-sunxi
solderfumes[m] has joined #linux-sunxi
psydruid has joined #linux-sunxi
TiD91 has joined #linux-sunxi
thefloweringash has joined #linux-sunxi
jelly-home is now known as jelly
insep_ has joined #linux-sunxi
Irenes[m] has joined #linux-sunxi
fevv8[m] has joined #linux-sunxi
apritzel has quit [Ping timeout: 256 seconds]
mahoux has joined #linux-sunxi
clementp[m] has joined #linux-sunxi
Jeremy_Rand_DT[m has joined #linux-sunxi
MartijnBraam has joined #linux-sunxi
hpagseddy[m] has joined #linux-sunxi
Ke has joined #linux-sunxi
apritzel has joined #linux-sunxi
ldevulder__ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 256 seconds]
apritzel has quit [Ping timeout: 272 seconds]
AneoX has joined #linux-sunxi
montjoie has quit [Ping timeout: 265 seconds]
montjoie has joined #linux-sunxi
montjoie has quit [Ping timeout: 264 seconds]
jemk_ has quit [Ping timeout: 272 seconds]
montjoie has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
apritzel has joined #linux-sunxi
jemk has joined #linux-sunxi
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
Kwiboo has quit [Quit: .]
Kwiboo has joined #linux-sunxi
The_Loko has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
Kwiboo has quit [Ping timeout: 265 seconds]
Kwiboo has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 260 seconds]
iamfrankenstein has quit [Quit: iamfrankenstein]
gnarface has quit [Remote host closed the connection]
lurchi__ has joined #linux-sunxi
apritzel has quit [Ping timeout: 240 seconds]
gnarface has joined #linux-sunxi
niceplace has quit [Ping timeout: 264 seconds]
hanni76 has joined #linux-sunxi
tuxillo has quit [Ping timeout: 256 seconds]
tuxillo has joined #linux-sunxi
<smaeul> bauen1: yes, I've booted a TOC0 with a 39KiB payload. SRAM C immediately follows SRAM A1 and is configured by the SBROM. SBROM moves its stack to the end of SRAM A2 in the middle of processing
tuxillo has quit [Remote host closed the connection]
tuxillo has joined #linux-sunxi
tuxillo has quit [Remote host closed the connection]
tuxillo has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
tuxillo has quit [Remote host closed the connection]
vagrantc has joined #linux-sunxi
Net147_ is now known as Net147
apritzel has joined #linux-sunxi
<bauen1> smaeul: actually it moves the stack after deciding it should follow the "normal" boot sequence (i.e. before calling "main")
<bauen1> wait, the toc0 size is limited to 64Kb
<bauen1> so overwriting the stack shouldn't be possible
apritzel has quit [Ping timeout: 264 seconds]
<bauen1> no it isn't 4 bytes -> 4GB
<bauen1> i should read a bit more carefully before jumping to conclusions
AneoX has joined #linux-sunxi
<bauen1> i think it might be time to burn my h64s secure boot fuse
lucascastro has quit [Ping timeout: 260 seconds]
<smaeul> bauen1: I just tried 3072 bit RSA key and it dies with 0x8904000b (failure to check the key item against the ROTPK)
<smaeul> unfortunately, I was expecting that, because the RSA decryption function hardcodes a 2048 bit RSA operation length when constructing the CE task
<smaeul> it sets "asymmetric control" to 0x40 at 0x2490
<smaeul> and I don't think there's a "switch to software RSA" chicken bit in BROM_CONFIG
<bauen1> smaeul: there is no bit in the BROM_CONFIG that influences the RSA decryption function
<bauen1> in fact only BROM_CONFIG, VENDORID, ROTPK_HASH are used by the sbrom
<bauen1> in any case the sbrom forces the length of the key to be below < 0x201 and all buffers are >= that so there's no issues in part#
<bauen1> smaeul: if you want to try, a toc0 of size ~152KiB, that just has a valid name, magic and length might be able to put the H6 into a reset loop
<smaeul> bauen1: right, I think that's the *only* part of the BROM that would not work with 3072 bit keys (for either key)
<smaeul> specifically, all of the buffers for key material are at least 384+32 bytes long (the 32 for alignment)
<bauen1> yeah
<bauen1> it's like the idea to support 3072 bit keys was there but it was never tested
<smaeul> do you have a specific size you want me to try? Note that TOC0 size must be aligned to 512 bytes
<bauen1> smaeul: from where do you have the 0x8904000b value
<bauen1> smaeul: not really, just bigger equal than SRAM A1 + SRAM C
<smaeul> bauen1: 0x30000d0, the SRAM switch / error log register
<smaeul> s/SRAM/BROM/
<bauen1> i need to get my monitor working with linux again if i want to do test since my macbook air only has 2 usb ports with one taken by ethernet
hanni76 has quit [Quit: Leaving]
<smaeul> FEL only needs one USB port...
<bauen1> right, but uart is easy to use
<smaeul> hmm, yeah, on Linux I use FEL USB device appeared => failure; no FEL device => success
<smaeul> if I don't want to bother looking at UART output
<smaeul> bauen1: I will prepare a table of H6 SBROM error codes
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
<smaeul> though now that (I think) I have the ASN.1/BER generated correctly, things should Just Work
cmeerw has quit [Ping timeout: 260 seconds]
ganbold has quit [Read error: Connection reset by peer]
ganbold has joined #linux-sunxi
bauen1 has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
victhor has quit [Quit: Leaving]
apritzel has joined #linux-sunxi
tuxillo has joined #linux-sunxi
bauen1 has joined #linux-sunxi
lucascastro has quit [Ping timeout: 240 seconds]
<bauen1> the h6 dtsi in the linux kernel also has `cpu_speed_grade: cpu-speed-grade@1c { reg = <0x1c 0x4>; };`
<bauen1> introduced by commit 905434e0b544ee220bcce6da16a6857c0274b8ba says that is related with dynamic voltage and frequency scaling
lucascastro has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
qschulz has quit [Remote host closed the connection]
qschulz has joined #linux-sunxi