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
jakogut has quit [Remote host closed the connection]
sputnik_ has quit [Ping timeout: 250 seconds]
jakogut has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
nsaenz has quit [Ping timeout: 268 seconds]
sputnik_ has quit [Remote host closed the connection]
random_yanek has quit [Ping timeout: 246 seconds]
sputnik_ has joined #linux-amlogic
random_yanek has joined #linux-amlogic
sputnik_ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
vagrantc has quit [Ping timeout: 250 seconds]
jakogut has quit [Remote host closed the connection]
sputnik_ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
default__ has quit [Ping timeout: 255 seconds]
Barada has joined #linux-amlogic
ldevulder_ has quit [Read error: Connection reset by peer]
brads has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
<brads> narmstrong: do you have an idea how difficult it would be to implement kernel side mali driver for the g12b branch of your gitlab for testing? ie something based on this: https://developer.arm.com/products/software/mali-drivers/bifrost-kernel
<brads> hardkernel have released some wayland userspace patches to try https://dn.odroid.com/S922X/ODROID-N2/Wayland/
<narmstrong> Never tested but should work
<brads> that would be it :) awsome
<brads> Thanks!
<narmstrong> It works fine on g12a and the integration is the same
<brads> ok great ill give it a try, most other basic things working quiet well on g12b as well
ldevulder_ is now known as ldevulder
<brads> narmstrong: kernel driver worked well, only needed a small version check change (due to it technically being against the 5.0-rc+ kernel rather than 5.1).
<brads> I also tried the hardkernel/ malogic wayland drivers and weston has no issues detecting and utilsing the gpu :)
<brads> I had some issues with mutter / gnome but that is another story
<brads> or rather have
<memeka> brads: Ping
<memeka> brads: download the so from https://oph.mdrjr.net/memeka/bionic/gbm_compat/
<memeka> Set in /etc/environment LD_PRELOAD=/path/gbm_compat.so
<memeka> Reboot and run gnome
<brads> memeka: thanks I will give this a try in a bit
nsaenz has joined #linux-amlogic
<narmstrong> brads: cool pretty good news !!
ldevulder has quit [Quit: Leaving]
nashpa has quit [Ping timeout: 250 seconds]
sputnik_ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
<brads> memeka: (wrong ELF class: ELFCLASS32)
<brads> I will have to try a compile
nashpa has joined #linux-amlogic
<memeka> brads: haha yes sorry it’s from armhf (xu4)
<memeka> Compile the c file as .so :)
<memeka> brads: did it work?
<brads> im about to reboot and try
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
<brads> memeka: now I can start gdm3 to the login screen (no longer an "on wayland" option thought to choose from). If I try to login it just resets to the login screen again so I have to see what might be missing and get some logs
<memeka> brads: try from console (no gdm): mutter —wayland —displayserver
<memeka> Check mutter —help maybe I have misspelled
<memeka> If you get a brown background => all good
<brads> memeka: clutter has a problem - Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
<brads> I might simply be missing some libraries
<memeka> brads: I think it’s trying gl
<memeka> There is an env var
<memeka> CLUTTER_BACKEND=gles2 mutter —wayland —
<memeka> —displayserver
<memeka> CLUTTER_DRIVER :)
<memeka> CLUTTER_DRIVER=gles2 mutter —wayland —display-server ?
<memeka> brads: ^^^
<memeka> brads: any luck?
<brads> memeka: no luck the same error
sputnik_ has quit [Remote host closed the connection]
<brads> glmark-es2-wayland works inside weston, glmark2 Score: 1119
rossbcan has joined #linux-amlogic
Barada has quit [Quit: Barada]
afaerber has quit [Quit: Leaving]
afaerber has joined #linux-amlogic
ldevulder has joined #linux-amlogic
<narmstrong> wow
<narmstrong> brads: in fact, the right branch to use was `amlogic/v5.1/g12b-odroid-n2-integ`
<narmstrong> it contains all the fixes and current work on g12a
<narmstrong> but I forgot to push the branch...
<narmstrong> brads: can you check if it still works ?
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-amlogic
vagrantc has joined #linux-amlogic
nashpa has quit [Ping timeout: 268 seconds]
<xdarklight> narmstrong: congrats for getting the G12A PHY patches merged :). I hope the USB/dwc3 maintainers will comment on the other patches this week
nashpa has joined #linux-amlogic
afaerber has quit [Quit: Leaving]
hexdump0815 has joined #linux-amlogic
<hexdump0815> i have successfully chainloaded mainline uboot in legacy uboot, did load kernel, initrd and dtb from usb in it and then tried to boot it but always got either "Bad Linux ARM64 Image magic!" or "Wrong Image Format for bootm command" with various combinations of bootm/booti and the Image from a kernel build or a uImage created via mkimage
<hexdump0815> what would be the proper image format and boot command to use for mainline uboot and mainline kernel?
<hexdump0815> all the above is on a s905w box using the khadas vim uboot chainloaded
nashpa has quit [Ping timeout: 255 seconds]
<narmstrong> hexdump0815: the plain Image from the kernel build is the most appropriate
<narmstrong> hexdump0815: beware where you load it, maybe you load it over a reserved memory area
nashpa has joined #linux-amlogic
<narmstrong> xdarklight: thanks for your reviews !!
<hexdump0815> narmstrong: thanks a lot - what address would be good? - i used 0x11000000 or 0x01080000 with uboot at go 0x01000000
<hexdump0815> for the plain kernel build image it would be booti then - right?
tlwoerner has quit [Quit: Leaving]
<narmstrong> We use 0x8080000 in pyamlboot
<narmstrong> And 0x13000000 for the initrd
tlwoerner has joined #linux-amlogic
<xdarklight> narmstrong: you're welcome - you're now part of the very exclusive club of Amlogic PHY mainline driver authors :)
<xdarklight> narmstrong: also the PWM discussion went in a totally different direction than I initially thought it would :/ I didn't think someone would find issues with the existing code (apart from what Jerome already noticed before: that we don't pass the clock inputs in .dts and some "I can replace this with a bit from the PWM core" changes that I already made)
<brads> narmsrong: I will try the g12b-odroid-n2-integ later today
<brads> memeka: I will do some more debug with mutter and see if I can work out why it is failing
<memeka> brads: i have a pretty good suspicion :)
<memeka> you need to compile it again, with different flags
<memeka> to disable GL and enable EGL/gles2
<brads> ok, I think I remmember this Rabbit hole on the C2 :|
<memeka> brads: that's ok, if weston is working, then mutter/gnome should work too
<memeka> i have more experience with it, i'll try to make it work
<memeka> provided I can get my monitor to show something :(
<brads> Awsome, would be very helpful :)
<memeka> narmstrong: any ideas about the monitor thing? :( i tried with video=HDMI...1080p@60 but didn't work :(
<memeka> all i get is a black screen :(
<brads> memeka: I still have an issue of needing to boot to text mode console only (or I get a black screen on boot).
<brads> I can start up weston after logging into the console
afaerber has joined #linux-amlogic
vagrantc_ has joined #linux-amlogic
<hexdump0815> narmstrong: with your addresses it boots perfectly - thanks - as a nice side effect the chainloaded mainline uboot does not eat up as much memory as the legacy one - about 120m saved this way for free :)
ldevulder has quit [Quit: Leaving]
sputnik_ has joined #linux-amlogic
ldevulder has joined #linux-amlogic
<memeka> anyone can help with debugging why i get no output on my monitor?
hexdump0815 has quit [Ping timeout: 256 seconds]