buzzmarshall has quit [Remote host closed the connection]
efqw has quit [Quit: Connection closed for inactivity]
Elpaulo1 has joined #linux-amlogic
asdf28 has joined #linux-amlogic
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo1 is now known as Elpaulo
vagrantc has quit [Quit: leaving]
drieschel has joined #linux-amlogic
drieschel has quit [Client Quit]
_whitelogger has joined #linux-amlogic
cmeerw has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
drieschel has joined #linux-amlogic
drieschel has quit [Quit: drieschel]
drieschel has joined #linux-amlogic
<asdf28>
:->
sputnik__ has quit [Ping timeout: 265 seconds]
kaspter has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
warpme_ has quit [Quit: Connection closed for inactivity]
kaspter has quit [Quit: kaspter]
vagrantc has joined #linux-amlogic
warpme_ has joined #linux-amlogic
efqw has joined #linux-amlogic
niceplace has quit [Ping timeout: 256 seconds]
niceplace has joined #linux-amlogic
<efqw>
Hello everyone, I'm trying to get linux running on an S905L2 box.
<efqw>
Lately the architecture acronyms have became quite confusing. According to the stock dtb, this is "gxlx". Is this related to "g12a" in any way?
<efqw>
I compiled mainline u-boot for gxl (p212_defconfig) and managed to chainload it from the stock u-boot without any issues, but I get a kp whenever I try to boot a pre-built arm64 image from the armbian forum (using the same p212 dtb).
sputnik__ has joined #linux-amlogic
sputnik__ has quit [Remote host closed the connection]
sputnik__ has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 265 seconds]
drieschel has quit [Quit: drieschel]
asdf28 has quit [Ping timeout: 258 seconds]
hexdump0815 has joined #linux-amlogic
asdf28 has joined #linux-amlogic
<hexdump0815>
efqw: gxlx seems to be a lower end s905w - for me it worked perfectly with the gxl-s905w-p281.dtb ... one difference i found so far is that the mapi only has 2 pp cores instead of 3 usually, so be prepared for potential trouble if you want to use mali
<efqw>
hexdump0815: Cool, I'll try that image in a bit. By the way, how was the u-boot.bin.usb.tpl files generated?
sputnik__ has joined #linux-amlogic
<efqw>
I dumped the first bit of the emmc and have the ATF binaries extracted with gxlimg already
<efqw>
u-boot.bin.usb.bl2 seems to be just bl2.sign, but I'm not sure how to merge the bl3x blobs into one.
<hexdump0815>
and please keep in mind that for usb booring via paymlboot you'll have to either erase the emmc, ground the emmc clock pin or use some special hdmi dongle to force usb boot
<efqw>
yes, I've got one of those hdmi eeprom dongles
<xdarklight>
efqw: I don't know if it's related but hexdump0815 mentioned that the Mali GPU only has 2 PP cores on that SoC. since it's crashing inside lima: try removing the "incorrect" PP interrupt lines from arch/arm64/boot/dts/amlogic/meson-gx-mali450.dtsi
<xdarklight>
efqw: this is especially important with newer lima versions (I think starting with Linux 5.9) where we also have runtime power management (where cores are turned on/off for power saving reasons)
<efqw>
Good idea, but I'm not really familiar with it, which lines should I remove?
<efqw>
There are 10 entries in the interrupts cell
<xdarklight>
efqw: I am going with the assumption that PP core 2 was removed. so this would be the patch for that: https://pastebin.com/DeFXEEJm
<xdarklight>
(I have no evidence or information whether PP core 2 is really the one which was removed though)
<efqw>
cool, I'll give it a shot, thanks
hexdump0815 has joined #linux-amlogic
<efqw>
xdarklight: your assumption was correct, I decompiled the p212 dtb because I was lazy, took out the relevant entries, and the kernel is not panicking anymore
<hexdump0815>
efqw: sorry i got dropped - your patch looks good to me - i removed pp2 and it worked for the legacy mali driver, so i assume it should work for lima too
<hexdump0815>
i got two of those x7g5 boxes which i bought as 4g+32g from the same dealer and both were only 1g+8g plus both were even different hw (wifi ship, memory)
<efqw>
ouch, that was awful
<hexdump0815>
on one box i looked at the soc and it only had a small 2 at the bottom
<hexdump0815>
i had a dispute with the dealer and at least they ended up very cheap this way, but anyway they are complete garbage
<efqw>
What should we do about this mali thing moving forward? Perhaps a new special dtsi?
<hexdump0815>
you still seem to use the p212 dtb - better use the p281 one - not sure if that really makes a significant difference - xdarklight: might know as he added s905w support i think
<xdarklight>
from the top of my head I don't remember the differences between p212 and p281
<hexdump0815>
p281 has the scpi freq limited to 1.2ghz and i thinkg there was some special cases somewhere in the code - i think p212 boards run fine with the p281 dtb but not vice versa, but i might be wrong
<hexdump0815>
efqw: my board inside looked very similar to the one from your picture, also without sd card - i think they produced a lot of those as cheap as possible and put it into a bunch of different boxes
<efqw>
Thanks to pyamlboot at least we have a reliable way to revive these devices without MicroSD card slots now.
<efqw>
As long as you have an ATF dump and console access, it's not to brick the device anymore :P
<efqw>
*not possible
Darkmatter66 has quit [Ping timeout: 258 seconds]
Darkmatter66 has joined #linux-amlogic
asdf28 has quit [Ping timeout: 260 seconds]
<hexdump0815>
yes - i was also very happy about pyamlboot in this case :) ... i have meanline simply created a mainline u-boot and put that onto emmc directly to get rid of all the lagacy stuff on emmc and it works very well
<efqw>
Previously I was always wary of these cheap stuff without MicroSD card slots, because if I somehow manage to break u-boot, it will be impossible to recover without using the usb burner tool and the vendor's android based firmware bundle, which is usually quite hard to find in the wild.
<hexdump0815>
i'm even running with mainline atf, but bl2 and bl30 are still the blobs extracted with gxlimg
<efqw>
I tried using mainline atf on a gxm device as well, obviously that didn't work out, 4 out of the 8 cores failed to start :P
<hexdump0815>
for me it even crashed in the gxm case - but it works well for gxbb, gxl, gxlx, g12a and with some minor tweaks sm1
<efqw>
By the way, how did you manage to enable the HDMI console in u-boot?
<efqw>
I tried digging for this a while ago but didn't find anything
<hexdump0815>
otherwise i very often got noise from the serial console giving me ghost input on the hdmi/usb kbd console so that it was unuseable ... those patches are working for gxl and gxm, for gxbb i have it working too, but not yet for g12a and sm1
<efqw>
I've also been trying to use efi but so far it's unsuccessful. Seems like every step of the way is broken for some reason. shim has a long-standing bug that makes it fail to read the next efi binary that it needs to chainload (grub), grub will start if I boot it directly but will not start the kernel, it just dumps me back to the grub menu without telling me why it failed.
<efqw>
If I boot the kernel (with efi stub) in u-boot with bootefi, I'll get that dreadful "synchrnous abort" thing again.
<efqw>
I saw the patches, will probably give them a shot next week.
<efqw>
It's unfortunate that uart has to be disabled, because I'd rather keep it for obvious reasons.
<hexdump0815>
yes - but compared to some years ago the situation is already quite good with all the open sourcing efforts going on - it simply takes ages until it is really ready ... like with lima and panfrost too, but they start to be useable now after years (although still have quite a few bugs and problems in them)
<efqw>
fwiw efi boot seems to work on sunxi
<efqw>
(with mainline u-boot)
<efqw>
I have an interest in this because some linux distributions insist on using UEFI for arm64, such as Fedora and openSUSE
<efqw>
If u-boot can at least load grub, and grub can successfully boot the kernel, this would make more distros available on this platform with relatively minimal tinkering required.
<efqw>
In practice efi boot will slow down the boot time for quite a bit (especially on slow platforms like the RaspberryPi3), but the slightly better compatibility is an acceptable tradeoff imo.
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
hexdump0815 has quit [Ping timeout: 245 seconds]
emOne[m] has joined #linux-amlogic
<emOne[m]>
narmstrong: is it just me or has there been HEVC video decoding since Linux 5.7?
<emOne[m]>
Or anyone else for that matter
<efqw>
It would be nice if someone can post some basic instructions on how to utilize the hw vdec support with players such as mpv.
emOne has joined #linux-amlogic
<emOne>
efqw I didn't even know that there was a h265 driver
<efqw>
I was mostly referring to h264 :P
<emOne>
What os do you use?
<emOne>
"mpv has good hardware acceleration support, although it is not enabled by default. To enable it, use the –hwdec command line switch"
<emOne>
Efqw have you tried that?
emOne[m] has quit [Ping timeout: 240 seconds]
<emOne>
@efqw I didn't even know that Hardware acceleration was disabled by default in mpv
<emOne>
That would explain the sluggish performance and screen tearing of even low res video
<emOne>
Hmm
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #linux-amlogic
<brads>
emOne: for mpv make sure ffmpeg is at least version 4.3 and use mpv --hwdec=auto