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
elastic_dog is now known as Guest1481
elastic_1 has joined #linux-amlogic
Guest1481 has quit [Killed (copper.libera.chat (Nickname regained by services))]
elastic_1 is now known as elastic_dog
jelly has quit [Excess Flood]
jelly has joined #linux-amlogic
f_ has joined #linux-amlogic
<f_> I just discovered something.
<f_> Meson HDMI support broke between 2022.10 and master.
<f_> There's no HDMI output while booting up..
<f_> (u-boot)
<lvrp16> f_: I'm using 2023.04 and it works just fine.
<lvrp16> Only on GXL though.
<f_> That's on gxbb and while booting up.
<f_> When control is passed to linux HDMI works.
<f_> Let me try 2023.04
<f_> Ok..
<f_> Seems like it actually is my fault..
<f_> Let me update my defconfig real quick...seems like CONFIG_VIDEO wasn't set...
<f_> Well
<f_> ¯\_(ツ)_/¯ updated my defconfig and magically it works
<f_> That is by using my fork located here -> https://git.vitali64.duckdns.org/misc/u-boot-kii-pro.git/
<f_> (that's running U-Boot on bare metal, as the primary bootloader)
ldevulder has joined #linux-amlogic
<f_> One thing though..
<f_> I noticed that when using https://git.vitali64.duckdns.org/misc/u-boot-kii-pro.git/ U-Boot is unable to reset itself..
<f_> (anyone using a KII Pro who wants to try, wipe the eMMC and build as described here -> https://wiki.postmarketos.org/wiki/Videostrong_KII_Pro_(videostrong-kii-pro)/U-Boot_as_primary_bootloader)
<f_> (be sure that you have the exact same RAM chips before doing anything)
<f_> (that is, 4 Nanya NT5CB256M16DP-EK chips)
<f_> <lvrp16> between u-boot 2023.01 and 2023.04, reset broke :(
<f_> Well lvrp16 =)
<f_> Seems like you have the same issue as I do.
<f_> lvrp16: So....I've got the same issue as yours....`reset` hangs. You did say that you were going to investigate, did you get it to work again?
<HackerKkillinghi> reset ?
<HackerKkillinghi> Are you mean the reset command in uboot
<HackerKkillinghi> I have gxl
<f_> It broke on gxbb on master.
<f_> Just run `reset` and see it hang.
<f_> lvrp16: I'm guessing you have gxl, right?
<HackerKkillinghi> Hey f{
<f_> ¿
<HackerKkillinghi> *f+
<f_> fail
<HackerKkillinghi> *f_
<f_> success
<f_> ¯\_(ツ)_/¯ fun
<HackerKkillinghi> Is the uart work on kill pro
<f_> *KII Pro ??
<HackerKkillinghi> Yes
<f_> No idea. Never hooked up UART.
<f_> I just use my VGA/DVI monitor with a DVI-HDMI cable =)
<HackerKkillinghi> So how u run reset
<f_> And hook up a USB keyboard.
<f_> https://git.vitali64.duckdns.org/misc/u-boot-kii-pro.git/ HDMI and the USB keyboard both work fine on my branch (wip/kii-pro)
<f_> HackerKkillinghi: That's easy:
<f_> * skip autoboot
<f_> * enter command prompt
<f_> * type `reset` and press enter
<HackerKkillinghi> I know
<HackerKkillinghi> I thought the hdmi isnt working
<f_> Well. It seems like it actually works.
<f_> Just be sure to set CONFIG_VIDEO or CONFIG_DM_VIDEO (depending on which U-Boot revision you use)
<HackerKkillinghi> Ok so those be branch atin based 2022.10 or newer version of uboot
<HackerKkillinghi> *based on
<f_> What does atin mean?
<HackerKkillinghi> isnt
<f_> (sorry)
<f_> The wip/kii-pro branch (in which I included support for the KII Pro) is based on master.
<HackerKkillinghi> Ok
<HackerKkillinghi> > Meson HDMI support broke between 2022.10 and master.
<HackerKkillinghi> > There's no HDMI output while booting up..
<f_> Seems like HDMI only works when U-Boot is ran as the primary bootloader (which in this case it is)
<f_> HackerKkillinghi: See my messages after that.
<HackerKkillinghi> Ah i get it
<f_> < f_> ¯\_(ツ)_/¯ updated my defconfig and magically it works
<HackerKkillinghi> Is your config based on other config?
<f_> Yes
<f_> It's based on chewitt's wetek-play2 config.
<HackerKkillinghi> which config that u based on
<f_> With a few modifications, mainly to change the board name and use the p201 board files.
<HackerKkillinghi> it is exactly what i done to port uboot as a primary bootloader on amlogic based device
<HackerKkillinghi> Btw
<f_> I see.
rockosov has quit [Ping timeout: 276 seconds]
rockosov has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
gabes has quit [Quit: The Lounge - https://thelounge.chat]
gabes has joined #linux-amlogic
elastic_dog has quit [Read error: Connection reset by peer]
elastic_dog has joined #linux-amlogic
naoki has quit [Ping timeout: 255 seconds]
camus has quit [Quit: camus]
<f_> Is it possible to build the FIPs by using only libre tools?
<HackerKkillinghi> no
<f_> HackerKkillinghi: You sure?
<f_> Specifically, I'd like to replace fip_create
<f_> It doesn't work in pmbootstrap
vagrantc has joined #linux-amlogic
<HackerKkillinghi> Ah
<HackerKkillinghi> u mean that
<HackerKkillinghi> there are but
<HackerKkillinghi> idk how to use it
<f_> Ok..where?
<HackerKkillinghi> somewhere on github i need to find it
<HackerKkillinghi> Ah here is it
<f_> ..that's for g12a
<HackerKkillinghi> yes that is only the only thing
<f_> And that replaces aml_encrypt
<HackerKkillinghi> that is foos
<HackerKkillinghi> yes
<f_> HackerKkillinghi: ...
<f_> """
<f_> Open-source tools exist to replace the binary-only Amlogic tools:
<f_> https://github.com/afaerber/meson-tools (GXBB, GXL & GXM only) https://github.com/repk/gxlimg (GXBB, GXL, GXM & AXG only) https://github.com/angerman/meson64-tools (developed for G12B, should work on G12A & SM1)
<f_> """
<f_> Maybe gxlimg may work..
<HackerKkillinghi> Ah sry
<f_> Maybe others could know.
<HackerKkillinghi> yeah
<narmstrong> for gxl, gxlimg definitely works, for g12 I did the port byt I had some feeback it doesn't work on the odroid-c4 and I havn't got time to look at it...
<f_> narmstrong: What about gxbb?
<narmstrong> GXBB is totally different, only meson-tools implements it
<f_> I'd preferably would like to replace all proprietary binaries.
<f_> Is that possible?
<HackerKkillinghi> i know someone want to try
<f_> HackerKkillinghi: What do you mean?
<HackerKkillinghi> i saw somene (on github project) said they wannt to replace all proprietary blob (fip)
<HackerKkillinghi> *on github project's read me
<f_> Where?
<HackerKkillinghi> but i dont think they started this yet
<HackerKkillinghi> i forgot the github project
<f_> narmstrong: I guess that's not possible right now is it?
<f_> meson-tools doesn't implement anything related to fip_create
<narmstrong> I'm not aware of a current rewite
<narmstrong> it seems you can use the TF-A version
<f_> fip_create is derived from TF-A?
<narmstrong> it is the TF-A FIP structure, but with some custom UUIDs
<narmstrong> they used their own custom FIP structure starting from GXL
<f_> So gxbb uses a standard FIP structure, and thus I can use TF-A?
<narmstrong> well, you'll need to reverse-engineer BL2 & BL301, but you can use the open source BL31
<f_> Great start!
<f_> Merci!
<f_> =)
<HackerKkillinghi> hey f_
<HackerKkillinghi> keep in mind alpine packaged tf-a for some soc
<f_> k
<f_> narmstrong: I'll assume that I have the right to reverse-engineer. (some licenses forbid that)
<narmstrong> I'm french, and it's allowed for compatibility reasons :-p
<HackerKkillinghi> :)
JohnnyonFlame has quit [Read error: Connection reset by peer]
JohnnyonFlame has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
vagrantc has joined #linux-amlogic
<f_> Also what's the difference between u-boot.bin.sd.bin and u-boot.bin?
* vagrantc wild guesses one is an intermediary step to the other
<f_> u-boot.bin is for the eMMC right?
<HackerKkillinghi> no
<HackerKkillinghi> use u-boot.bin.sd.bin
<HackerKkillinghi> f_ dont u take a look my x96 mini uboot apkbuild and the device package apk build
<f_> Yes I did.
<f_> It doesn't work.
<HackerKkillinghi> Ah
<HackerKkillinghi> ;)
<HackerKkillinghi> *;(
<f_> There's no header IIRC
<HackerKkillinghi> Ok
f_ has quit [Quit: Lost terminal]
jacobk has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
Terry137322934 has quit [Quit: Bye Bye]
Terry137322934 has joined #linux-amlogic
naoki has joined #linux-amlogic
jacobk has quit [Ping timeout: 252 seconds]