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
vagrantc has quit [Quit: leaving]
Darkmatter66 has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
vicencb has quit [Quit: Leaving.]
_whitelogger has joined #linux-amlogic
Lyude has quit [Ping timeout: 260 seconds]
Lyude has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
buzzmarshall has quit [Remote host closed the connection]
_whitelogger has joined #linux-amlogic
brads has quit [Ping timeout: 246 seconds]
brads has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
kaspter has joined #linux-amlogic
cmeerw has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
zkrx has quit [Quit: I'm done]
zkrx has joined #linux-amlogic
cmeerw has quit [Ping timeout: 272 seconds]
cmeerw has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 260 seconds]
Darkmatter66 has joined #linux-amlogic
lucastanure has joined #linux-amlogic
<lucastanure> Hi, is git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git the best kernel to use with vim3, or there is another tree to be used?
<lucastanure> also, which configuration should be used?
<lucastanure> for vim3 board
PurpleCow4u has joined #linux-amlogic
sputnik__ has quit [Remote host closed the connection]
<narmstrong> lucastanure: yes
<narmstrong> lucastanure: Khadas also provides the mainline kernel in their fenix build system and prebuilt images
<chewitt> @lucastanure unless you're one of the ~10 people with the S992X version of VIM3 this is the one to use:
<lucastanure> and the config for the kernel? /proc/config.gz from VIM3_Ubuntu-server-focal_Linux-5.7-rc7_arm64_SD-USB_V0.9-20200530 ?
<brads> chewitt: looks like you might have a potential fix on the mailing list for you usb issue
<chewitt> lucastanure what kernel do you want to build? .. and what use-case for the VIM3?
<chewitt> brads sadly didn't work, but some email convo now taking place
<chewitt> narmstrong just reminded me the GT-King Pro randomly has a huge RS232 port on the rear so no need for UART pins :)
<brads> :)
<narmstrong> lucastanure: defconfig :-)
<chewitt> but this is a bit minimal compared to a desktop oriented config, e.g. Armbian
sputnik_ has joined #linux-amlogic
The_Coolest has quit [*.net *.split]
sputnik_ has quit [Ping timeout: 272 seconds]
The_Coolest has joined #linux-amlogic
bas25 has quit [Quit: Connection closed for inactivity]
Darkmatter66 has quit [Ping timeout: 240 seconds]
Darkmatter66 has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
hexdump0815 has joined #linux-amlogic
<hexdump0815> just in case anyone is interested i managed to get a mainline u-boot working on a s905x3 tv box (x96 air 2/16) with directly booting u-boot
<hexdump0815> i.e. no chainloading but replacing the legacy one instead
<hexdump0815> i also gave the g12a mainline atf a try, but this does not seem to work: https://pastebin.com/raw/jPfHmRkR
ldevulder_ has joined #linux-amlogic
<hexdump0815> i guess there really needs to be some sm1 specific code written to support this soc in mainline atf - with the original atf it works
<hexdump0815> i used the meson64-tools from angermann: to assemble the pieces and had to dd edit out the proper ddr timings from mmcblkboot1 (from which most tv boxes seem to read it) to put it into an an acs.bin
ldevulder has quit [Ping timeout: 265 seconds]
<hexdump0815> btw. regarding my mainline atf try: it also complains about "NO BL2z!" - does anyone know what BL2z is? - seems to no be part of bl2 as for that i used an original sm1 blob (odroid c4)
<lucastanure> <chewitt> I just want to build the default kernel and start lokking around to help vim3 mainline
<lucastanure> as narmstrong said, I will just use arm64 defconfig from mainline
<lucastanure> to change the kernel uboot points to dtb.img, but just say which kernel image is using
<lucastanure> but at /boot there only one
<lucastanure> zImage
<lucastanure> so, I will replace that
<lucastanure> the target Image works, but not the Zimage one for vim3
hexdump0815 has quit [Quit: Ping timeout (120 seconds)]
kaspter has quit [Quit: kaspter]
sputnik_ has joined #linux-amlogic
warpme_ has quit [Quit: Connection closed for inactivity]
lucastanure has quit [Remote host closed the connection]
<narmstrong> Damn hexdump0815 always leaves :-/
<narmstrong> It should be a55 for sm1
probono has quit [Quit: The Lounge - https://thelounge.github.io]
probono has joined #linux-amlogic
hexdump0815 has joined #linux-amlogic
<hexdump0815> narmstrong: sorry - i'm back again - i'm always following the irc logs even if i'm not online, so i usually see if there is anything for me even then
<hexdump0815> narmstrong: good info - will give that a try then
<hexdump0815> narmstrong: repk: or maybe others too - is there somewhere documented what the FEAT: flags mean on the amlogic initial boot line? i ran across: https://forum.libreelec.tv/thread/21895-install-le-on-dead-a95x-max-v81/?postID=139979#post139979 so looks like the know how must be somewhere :)
<hexdump0815> i'm asking because ia lso tried getting native mainline u-boot working on a g12a tv box and failed with https://github.com/hexdump0815/u-boot-misc/blob/gxm-experiments/misc.gxy/debug-info/g12a-non-working-boot.txt and today i realized that the original boot blocks are just kind of random data
<hexdump0815> so i guess this box is using a signed/crypted boot chain and this would mean i guess no self built u-boot can be used on it - so it would be nice to know if signing and or encryption is required there or optional
<hexdump0815> or it is simply that g12a simply needs some other magic number somewhere in the regular boot blocks to be properly recognized by bl1 (i.e. CHK:1F which i guess means error)
B1oHazard has joined #linux-amlogic
<B1oHazard> narmstrong hi, do you know how to check locked or not bootloader on G12A device? can't run mainline u-boot on X96 Max Plus, chainloading from vendor u-boot works fine. thanks
<hexdump0815> narmstrong: looks like for a55 some more changes are required, i.e. changing USE_COHERENT_MEM to HW_ASSISTED_COHERENCY
<hexdump0815> B1oHazard: oh the x96maxplus is locked too - so you do not have any @AML in there if you do a hexdump -C /dev/youremmcdevice?
<B1oHazard> hexdump0815 1 minute, checking
<B1oHazard> hexdump0815 yeah, @AML in 0x210
angelsl has joined #linux-amlogic
<hexdump0815> BioHazard: then i think its not locked
<B1oHazard> hexdump0815 can you share your binary please?
<angelsl> does anyone have any background/leads on the issue with usb on odroid-c2? https://forum.odroid.com/viewtopic.php?p=293439#p293439
<hexdump0815> narmstrong: it works :) - https://pastebin.com/raw/b38KcMrm - with the diff and cmdline at the top of the pastebin ... is the "NO BL2z!" something to worry about? ... so i guess sm1 is then supported by mainline atf too - very nice!
<B1oHazard> hexdump0815 chainloading mainline u-boot with odroidc4 defconfig works well for me, but after I add fip packages, erasing emmc and burn it to sdcard, box didn't start
<hexdump0815> B1oHazard: yes i ran into that too - tv boxes seem to read the ddr timings from mmcblkXboot0 - i guess they use worse memory then what the timing in the blob acs.bin assumes - i dd edited out the acs.bin part from boot0 and replaced the acs.bin blob with that and then it worked
<B1oHazard> hexdump0815 erasing emmc and writing u-boot to sdcard will work ok?
<B1oHazard> hexdump0815 and where i can find fip? from odroid c4 will ok?
<hexdump0815> BioHazard: you might give this one a try: https://github.com/hexdump0815/u-boot-misc/releases/download/200926-01/boot-amlogic_gxy_atf-aarch64-x96-air.dd ... i'm testing it with that magic hdmi dongle to force booting from sd card and this way it works
sputnik_ has quit [Ping timeout: 264 seconds]
<hexdump0815> narmstrong: do you maybe also have a similarly simple solution for gxm mainline atf as well to fix this one: https://github.com/repk/gxlimg/issues/8 ?
<B1oHazard> hexdump0815 can you give any info about that hdmi dongle?
<narmstrong> hexdump0815: it would need more work since it supports 2 cpu clusters
<narmstrong> hexdump0815: so maybe the pcsi calls should be modified
<narmstrong> I don’t think the NO BL2z is an issue
<hexdump0815> narmstrong: let me know whenever you have an idea for gxm to test
<narmstrong> hexdump0815: sorry i don’t...
<hexdump0815> narmstrong: np - i guess you already do more than enough for open sourcing amlogic stuff :)
<B1oHazard> hexdump0815 can you share acs.bin that you used? seems your u-boot works well, but with broken hdmi. want to rebuild on odroid-c4 defconfig
zkrx has quit [Read error: Connection reset by peer]
zkrx has joined #linux-amlogic
<hexdump0815> BioHazard: its all here now - i've also just rebuilt the mainline atf with proper a55 errata - https://github.com/hexdump0815/u-boot-misc/releases/tag/200926-01
zkrx has quit [Quit: I'm done]
<B1oHazard> hexdump0815 i dump my bootloader and find acs part, so I can strip all before 0xF200 and use it as acs.bin?
zkrx has joined #linux-amlogic
<hexdump0815> BioHazard: no - dump /dev/mmcblkXboot0 and then dump the part of it which looks like the regular acs.bin in hexdump -C :) ... only makes sense if you have this in your legacy boot: https://github.com/hexdump0815/u-boot-misc/blob/gxm-experiments/misc.gxy/debug-info/sm1-working-ddr.txt#L38-L46
<hexdump0815> BioHazard: btw. in case you have reliable hdmi output and usb kbd input working on your sm1 u-boot i would be interested in your u-boot config and if needed patches ...
<hexdump0815> i have updated my notes regarding mainline atf & u-boot on s905x3 = sm1 to my current state: https://github.com/hexdump0815/u-boot-misc/blob/gxm-experiments/readme.gxy
hexdump0815 has quit [Remote host closed the connection]
B1oHazard has quit [Remote host closed the connection]
zkrx has quit [Quit: I'm done]
zkrx has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
khilman has quit [Ping timeout: 260 seconds]
saintdev has quit [Ping timeout: 272 seconds]
khilman has joined #linux-amlogic
saintdev has joined #linux-amlogic
PurpleCow4u has quit [Quit: geht mal an die frische Luft...]
cmeerw has quit [Ping timeout: 260 seconds]