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
TheAssassin has quit [Quit: No Ping reply in 180 seconds.]
The_CooIest has quit [Ping timeout: 246 seconds]
TheAssassin has joined #linux-amlogic
The_Coolest has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
ldevulder has quit [Ping timeout: 246 seconds]
ldevulder has joined #linux-amlogic
pionen has joined #linux-amlogic
tlwoerner has quit [Quit: Leaving]
tlwoerner has joined #linux-amlogic
nashpa has quit [Ping timeout: 250 seconds]
nashpa has joined #linux-amlogic
pionen has quit [Ping timeout: 240 seconds]
vagrantc has joined #linux-amlogic
drieschel has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
<TheAssassin> xdarklight: so, this boots, but produces garbage HDMI after changing the console font https://projects.milankragujevic.com/amlogic/s805/2018-10-28/Armbian_5.44_S805_Ubuntu_xenial_3.10.108_server.7z
<xdarklight> TheAssassin: (I'm serious about this) have you tried rebooting? the HDMI driver in 3.10 needs a reboot after virtually every change
<TheAssassin> yeah, ofc
<TheAssassin> I'll quickly upload a picture of the output, should help understanding my issue
<TheAssassin> I also built a 3.10 kernel image for ubuntu 18.04, just to see whether it's just the kernel
<TheAssassin> the thing is, it works at first
<xdarklight> are you using a .dtb which is configured for 512MB RAM?
<TheAssassin> nope, reboot didn't fix the issue
<TheAssassin> right now I'm using that image as-is
<TheAssassin> i don#t seem to get any messages over the serial interface either... neither using 9600 baud nor 115200 (the two most common ones I had to use in other hardware)
<xdarklight> 115200 is used on virtually all Amlogic boards
<xdarklight> you have connected the device's RX to your adapters TX and your device's TX to your adapter's RX, right?
<TheAssassin> I just tried again with cu instead of minicom, et voila... all this embedded hardware stuf f:D
<TheAssassin> yeah well, the kernel output stops after [ 16.143100@3] systemd[1]: Started Create Static Device Nodes in /dev.
<TheAssassin> might really be the dtb img...
<TheAssassin> suddenly, we have a login over serial ... strange stuff, but a lot farther than I got before
<TheAssassin> can't get any characters sent over serial tho
<xdarklight> I'd reboot and see if I can get into u-boots command prompt
<TheAssassin> xdarklight: so, that image I linked to above doesn't have a dtb.img on its BOOT, but a lot of them in directories
<TheAssassin> I'm trying to understand this dtb.img stuff -- any ideas how it behaves when there's no dtb image in the dir?
<xdarklight> typically u-boot decides which dtb to load
<TheAssassin> okay
<xdarklight> you should see which one when you reboot and watch the output from before Linux is started
<TheAssassin> "getting into the command prompt" what do I have to do over serial when it boots
<TheAssassin> kk
<xdarklight> typically pressing enter or space (keep hammering on these keys ;)) will make it enter the prompt
<TheAssassin> hehe will try next time
<TheAssassin> here's a boot log
<TheAssassin> yeah
<TheAssassin> "hit enter key to stop autoboot
<TheAssassin> "
<TheAssassin> I'll have to see whether there's a connection issue with my tx...
<xdarklight> also check your GND
<TheAssassin> well
<TheAssassin> why not right
<TheAssassin> where's my multimeter
<probono> ** Unable to read "dtb.img" from mmc 0:1 **
<TheAssassin> nope, everything's connected as it should...
<TheAssassin> aaaah
<TheAssassin> screen works
<TheAssassin> thanks, probono
<TheAssassin> okay
<TheAssassin> seems to work, I'm in a shell
<TheAssassin> the thing itself identifies as m8b_m201_1G
<TheAssassin> booting normally, to see what that linux does internally
<TheAssassin> it's quite awkward that you can only make this usable from a serial console
<xdarklight> I guess "your mileage may vary" with these random armbian images :/
<TheAssassin> yep, sorta
<TheAssassin> oh, my own image build finished 20min ago...
<TheAssassin> wondering what root pass they used
<probono> i have a same/similar box:
<probono> can you please check the amount of RAM
<probono> m8b_m201_1G#reset
<probono> then find "DDR size: "
<TheAssassin> sure thing
<TheAssassin> probono: DRAM: 512MiB
<TheAssassin> it's in that boot log even that I shared earlier
<TheAssassin> let me try with a suitable DTB from that dtb images dir
<probono> ok so I think the "1GB" is false advertising or not all RAM is recognized
<probono> i am still not sure which is correct
<TheAssassin> meson8b_m201C_512M.dtb this one perhaps
<TheAssassin> that serial interface helps understanding whats going on
<probono> I can boot with meson8b_m201d.dtb
<probono> btw, the preinstalled Android was compiled using SDK "s805_0701_512M/aml-m8-0823_patch_20150113" so I think 512 is correct
<TheAssassin> hah
<TheAssassin> that one works!
<TheAssassin> finally!
<probono> :-))))
<TheAssassin> I've tried others with the exact same name before....
<TheAssassin> botted with the m201C
<TheAssassin> *booted
<TheAssassin> gonna try the same one with my self-built image in a couple of seconds (downloading from the server)
<TheAssassin> thanks, xdarklight
<TheAssassin> and probono ofc :D
<TheAssassin> so, xdarklight, got a couple minutes for these experiments you mentioned?
<xdarklight> TheAssassin: I'll get out running in a minute. will you still be around later?
<TheAssassin> sure, xdarklight, I'll continue debugging some AppImage stuff with probono then :D
<xdarklight> :D
<xdarklight> narmstrong: https://file.io/x61vbx https://file.io/z7rzEE https://file.io/j6WkqC https://file.io/CE34vN https://file.io/zoaers - just rendered these (off-screen) on my Odroid-C1 :)
<TheAssassin> probono: re. serial consoel clients
<TheAssassin> just re-discovered tio, the best IMO tool for this
<TheAssassin> just forgot the name but 1 min of google got me back to this
<narmstrong> xdarklight: I want to see this but I get 404 zeros for all links !
<xdarklight> narmstrong: ah, need to re-upload these files later: kmscube on Meson8b :)
<narmstrong> xdarklight: pretty cool ! How do you render offscreen ?
<xdarklight> narmstrong: https://gitlab.freedesktop.org/lima/web/wikis/home says "./kmscube -d -D /dev/dri/renderD128", then it stores some .png files in $(pwd)
<narmstrong> Ah yeah so you uses Lima then ! Even cooler !
<xdarklight> I'm trying on-screen rendering with my hacked CVBS output code on Meson8m2 now
<narmstrong> I’m sure it will work perfectly :-D
<xdarklight> narmstrong: https://abload.de/img/vlcsnap-2018-12-08-16tmd7q.png that's the "fbv" output of some some random PAL test image I found online. colors are way off, but I didn't expect more from my HACK :)
<narmstrong> Hehe you are not so far from something working !
<xdarklight> it's a bit strange because I'm now sure that my Meson8m2 board uses OSD2 for CVBS video output
<xdarklight> could not open drm device
<xdarklight> :(
<narmstrong> Hmm it should be the same, or osd1 is broken on meson8m2
<narmstrong> xdarklight: yeah you need to force the device since lima probes first
<xdarklight> ah
<xdarklight> drmModeGetResources failed: Operation not supported
<xdarklight> https://transfer.sh/14jgJu/dump0.png off-screen rendered on Meson8m2
drieschel has quit [Quit: drieschel]
drieschel has joined #linux-amlogic
drieschel has quit [Client Quit]
_whitelogger has joined #linux-amlogic
Darkmatter66_ has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 246 seconds]
random_yanek has quit [Ping timeout: 250 seconds]
random_yanek has joined #linux-amlogic
drieschel has joined #linux-amlogic
dswizly has joined #linux-amlogic
<dswizly> hello?
<ccaione> hello!
<dswizly> i was wondering if i could get a little guidance with a T95Z Max s912 3/32 box i got :x
<ccaione> it really depends on the kind of guidance you need
<dswizly> i had an m8s pro+ and easily flashed a tvstock rom with twrp, but i cant find a flashable zip of decent rom for the t95z.. i looked into atvxperience but they both require using the usb burn tool or a burn card
<dswizly> wasnt too sure where to ask for help so i looked up amlogic on freenode lol
<ccaione> yeah, this is a channel for mainline kernel dev
<dswizly> thats what i figured, just checking
<dswizly> thanks for responding (:
<dswizly> and thanks to everyone doing development on the kernel for these devices
dswizly has quit [Remote host closed the connection]
dswizly has joined #linux-amlogic
dswizly has quit [Quit: Leaving]
drieschel has quit [Quit: drieschel]
sputnik_ has joined #linux-amlogic
<TheAssassin> xdarklight: got time now?
ldevulder has quit [Ping timeout: 268 seconds]
nashpa has quit [Quit: Going away]
nashpa has joined #linux-amlogic
<xdarklight> I don't have much time left today, but what you need to do is:
<xdarklight> - build your own kernel, if you want the most features (this also means you'll have the highest chance to hit bugs - which is good because then we can fix them ;) ) then I suggest you build a kernel using https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/
<xdarklight> - then follow these steps to get the uImage: http://linux-meson.com/doku.php#bit_socs_meson8b_s805_or_older
<xdarklight> Armbian probably has an "uInitrd" instead of "rootfs.cpio.uboot" - different name, same thing
<xdarklight> (I've never tried the Armbian initramfs though, your mileage may vary)
<xdarklight> in the "setenv bootargs" command you can also pass your SD card partition to the kernel so it'll use that as rootfs, for example: setenv bootargs "console=ttyAML0,115200 root=/dev/mmcblk1p2"
adema_ has quit [Ping timeout: 264 seconds]
<xdarklight> expected result with linux-next and on top of that the updated .dts from above: SD card works, all USB ports are working (if the USB device is plugged in *prior* to booting Linux), all four CPU cores come up and CPU frequency scaling works, Ethernet works
adema has joined #linux-amlogic
<TheAssassin> xdarklight: kk, will do as soon as Ifind time (might be tomorrow, but I got the instructions :))
vagrantc has quit [Quit: leaving]