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 - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
vagrantc has quit [Quit: leaving]
camus has quit [Ping timeout: 240 seconds]
camus has joined #linux-amlogic
dagmcr has quit [Ping timeout: 245 seconds]
dagmcr has joined #linux-amlogic
camus1 has joined #linux-amlogic
camus has quit [Ping timeout: 268 seconds]
camus1 is now known as camus
buzzmarshall has quit [Quit: Konversation terminated!]
<narmstrong> gbisson: the bl32 and the TA apps should work, not sure if the corresponding HALs would still work on aosp
<gbisson> narmstrong: yes exactly, that's why I was wondering if we could use the standard apps from AOSP instead not to deal with outdated HAL
tdebrouw has joined #linux-amlogic
camus has quit [Ping timeout: 268 seconds]
camus has joined #linux-amlogic
<gbisson> narmstrong: just to be sure: I've flashed the EVK bootloader onto my platform and it bootloops as the EVK doesn't include the proper DDR timings in ACS, the HW team forgot to expose EMMC_D5 to force USB recovery, is there any other trick to recover from that state? Otherwise I'll have the eMMC replaced
<narmstrong> gbisson: you can try the hdmi dongle trick
Darkmatter66 has quit [Ping timeout: 256 seconds]
Darkmatter66 has joined #linux-amlogic
<gbisson> narmstrong: Nice! Thanks!
camus1 has joined #linux-amlogic
camus has quit [Read error: Connection reset by peer]
camus1 is now known as camus
<gbisson> narmstrong: do you know if this works with most emulator? or have you seen some emulators where the flash is locked?
<narmstrong> gbisson: yes i had some emulator which eeprom only supported the 0x50 i2c address
<narmstrong> The ones I buy on aliexpress works fine
<gbisson> narmstrong: thanks, then I'm gonna buy a few different ones, I'm gonna try Amazon as I'd like to try it today ;)
<narmstrong> I need to buy some again BTW
<gbisson> yup otherwise I would have bought it from you directly ;)
<narmstrong> If you have some working tell me so I update the wiki with the refs
<gbisson> sure
<gbisson> BTW you link is dead (the aliexpress one)
<narmstrong> It’s expected, I’ll update it with the last one I used
<gbisson> ok I bought 3 different brands out of Amazon, hopefully one will work
<gbisson> is the A1 pin the write protect one? That's why we need to modify it?
<narmstrong> Nop it’s the address bit 1
<narmstrong> To form 0x52 instead of 0x50
<gbisson> oh I see, thanks
<gbisson> Gonna be fun to try that out, and this check happens in the bootrom before trying the DDR training right?
<gbisson> BTW, quick feedback on MIPI, we definitely need to change VIU_OSD_HOLD_FIFO_LINES to 24 to avoid the shaking issue
<gbisson> (I saw that recommendation earlier in the channel)
camus1 has joined #linux-amlogic
camus has quit [Remote host closed the connection]
camus1 is now known as camus
<narmstrong> gbisson: yes the bootrom reads on the HDMI DDC pins, even if no HDMI port before loading anything
<gbisson> perfect, thanks again!
camus has quit [Read error: Connection reset by peer]
camus has joined #linux-amlogic
<narmstrong> my last emulator command was https://fr.aliexpress.com/item/4000494867545.html
camus1 has joined #linux-amlogic
<gbisson> ok noted, hopefully the ones from amazon can easily be opened and contain an eeprom whose address can be changed (that's a lot of if but I get to know tonight)
camus has quit [Ping timeout: 240 seconds]
camus1 is now known as camus
camus has quit [Ping timeout: 240 seconds]
camus has joined #linux-amlogic
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
<tdebrouw> narmstrong: I haven't been able to test your new g12 mipi implementation yet. Currently busy with something else
<tdebrouw> narmstrong: but I have seen (with the older code) a shaking issue every 10 - 20 minutes, even with VIU_OSD_HOLD_FIFO_LINES set to 24
<tdebrouw> of course, it could also be something else
<tdebrouw> I just wanted to note that the issue isn't entirely solved on my side yet.
<tdebrouw> but still, thanks for all the help/code so far.
camus has quit [Quit: camus]
<gbisson> tdebrouw: on my end the shake is gone, but the timings are tricky to get correctly as they don't match the docs of the display (FYI)
<gbisson> narmstrong: I think I know why you had to re-write the B character, it's the CRC byte which should be 0x64 ('d') for an empty block
<gbisson> narmstrong: I'm trying to use my TC358743 HDMI input capture device and upload a custom EDID to it, it changed the 'B' into 'd' to fix the CRC ;)
<narmstrong> tdebrouw: gbisson: lower should probably be fine, anyway I’ll cleanup everything and make it upstreamable so we can solve the remaining issues
<narmstrong> gbisson: weird it was with the first dongles, now the last byte is written correctly
<narmstrong> Maybe an issue with the at24 kernel driver at the time
<gbisson> well actually it shouldn't have happened for you, in my case it's because it goes through the kernel to write the EEPROM knowing that it's an EDID and therefore checking the CRC
<gbisson> in your case it should be a standard EEPROM with data written to it, anyway, I was just surprised to see the last bit being overwritten but then I saw a kernel trace telling me about the CRC
buzzmarshall has joined #linux-amlogic
camus has joined #linux-amlogic
<gbisson> if anyone tries to do the HDMI recovery with a TC358743, the chip has a register to set the "EEPROM" address, but changing this register doesn't change anything, it always shows @0x50, so I'm still desperately waiting for those Amazon dongles
<narmstrong> the soc has a slave i2c HW, and is exposed on the VIm3 header, so soldered to an connector and 5v pullup it should be doable to simulate an eeprom on addr 0x52
<narmstrong> maybe I'll write the i2c slave driver for fun :-p
<gbisson> Yup that could be an option, I most have imx platforms and last time I tried slave I2C (years ago) it was a nightmare
<gbisson> Or an RPi could do the trick I guess
vagrantc has joined #linux-amlogic
<gbisson> BTW, how did you find that info about the bootrom? ;)
<narmstrong> gbisson: it was used to hack a Fire TV dongle, they forgot to enable password for USB boot... and they used this tweak to force USB boot
<gbisson> narmstrong: nice, thanks!
elastic_dog has quit [Ping timeout: 240 seconds]
elastic_dog has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
camus has quit [Remote host closed the connection]
vagrantc has joined #linux-amlogic
tdebrouw has quit [Quit: Leaving.]
tdebrouw has joined #linux-amlogic
tdebrouw has quit [Client Quit]
zaungast has joined #linux-amlogic
zaungast has quit [Quit: Different things to do.]
<gbisson> narmstrong: thanks so so so much! It worked!
<gbisson> out of the 3 references I bought from Amazon, the first one (Qianrenon) doesn't have an EEPROM whose address can be changed
<gbisson> but the other two are identical (ADWITS & eFUTURA) with a standard 24c02 EEPROM
<gbisson> I reworked one of them, updated the EEPROM and it worked right away, nice tutorial
<gbisson> FYI in order to lift the pin I removed the entire thing (was easier as I had no needle around)