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
vagrantc has quit [Quit: leaving]
vagrantc has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
buzzmarshall has quit [Quit: Konversation terminated!]
cyrozap-ZNC has quit [Quit: Client quit]
cyrozap has joined #linux-amlogic
tolszak has joined #linux-amlogic
<tolszak> chewitt: Thanks for that. I've noticed that 5.15 kernel from hardknot allows aplay to list devices. I'm in the middle of update as boot procedure has changed a bit and I need to adapt. Will let you know soon if it works with 5.15 and hardknott
tolszak has quit [Remote host closed the connection]
tdebrouw has joined #linux-amlogic
camus1 has joined #linux-amlogic
camus has quit [Ping timeout: 256 seconds]
camus1 is now known as camus
mkorpershoek has quit [Remote host closed the connection]
mkorpershoek has joined #linux-amlogic
warpme___ has joined #linux-amlogic
tolszak has joined #linux-amlogic
<tolszak> narmstrong: newest hardknott image with 5.15 kernel doesn't seems to handle USB devices. There is nothing in dmesg when I plug in usb stick, bluetooth adapter etc
<tolszak> nothing
<tolszak> MACHINE is hardkernel-odroidn2plus
<narmstrong> tolszak: a config must be missing, can you share the dmesg output ?
<tolszak> narmstrong: Sure, give me a sec
<tolszak> That's the config: https://pastebin.com/pr2eQ0dy
<tolszak> That's dmesg: https://pastebin.com/KN0PJSaX
<tolszak> Perhaps that's the case: [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
<chewitt> that message is harmless
<chewitt> tolszak If you want to test a known working image https://chewitt.libreelec.tv/testing/LibreELEC-AMLGX.arm-10.85.0-odroid-n2.img.gz
<chewitt> put on SD card .. boot switch to the right
<tolszak> chewitt: Thanks, but I preparing custom distro based on yocto and meta-meson
<chewitt> sure, but sometimes it helps to eliminate PEBKAC from the investigation :)
<tolszak> chewitt: hmm Does it use fitImage as kernel?
<tolszak> chewitt: Will look at it, need to find 6th(!) sd card
<chewitt> it's uImage with either gzip or zstd compression
<chewitt> I'll plead ignorance on what a fitImage is
<narmstrong> Ok weird the usb driver probe fails, weird
<chewitt> (people occasionally confuse me for a developer..)
<tolszak> chewitt: fit image is what newest meta-meson uses, as I understand it has device tree compiled into kernel and suited for extlinux
<tolszak> narmstrong: I thought that might be hw issue
<tolszak> but the old 5.14 image works
<chewitt> tolszak we use separate dtb, but KERNEL file includes kernel and initraamfs
<tolszak> chewitt: That's the same as meta-meson in November. Anyways let me look at your image
<narmstrong> tolszak: which meta meson branch ? Did you add some kernel patches and/or change kernel confit ?
<tolszak> hardknott, I think I've build clean amlogic image sato based on latest meta-meson hardknott
<chewitt> will be too minimal for anything needing desktop or such, but has all the bits for Amlogic enabled
<tolszak> narmstrong: I can double check that and build again
<tolszak> chewitt: Thanks
<chewitt> dmesg from working box http://ix.io/3M3Z
<tolszak> chewitt: What's the OS user to log in through ssh?
<chewitt> root / libreelec
<tolszak> Thanks
<tolszak> chewitt: Ive connected hdmi screen with speakers but no sink appeared in pulseaudio
<chewitt> we don't use pulseaudi
<chewitt> only alsa direct
<chewitt> and Kodi won't autodetect things after it starts
<tolszak> It works after reboot
<chewitt> usb is working?
<tolszak> Yes
<tolszak> it is
<tolszak> I'm building plain amlogic-image-sato from scratch to double check USB
<chewitt> at least you know it's not hardware now
<tolszak> Thanks for that
<chewitt> only a layer 8 networking problem ;)
<tolszak> chewitt: Does LibreElec support bluetooth speakers?
<chewitt> yes/no
<chewitt> You should be able to pair a BT speaker and then switch Kodi to pulse output and stream to the speaker
<tolszak> Pulseaudio was the only one supported that few years ago, I haven't tested plain alsa since then
<chewitt> we have pulse too, but only for that use-case
<chewitt> normal PCM or HDMI output are alsa only
<tolszak> Yeah sometimes pulse needs some tweaks in configuration to be reliable especially with usb speakers
<tolszak> pulse tend to power save to much and depending on speakers it might result in first ms of stream not being played
<chewitt> I see occasional mentions of improvements in release notes, but I'd always be wary of the delays introduced by BT
<tolszak> first miliseconds
<tolszak> sometimes 100 sometimes 200 :)
<chewitt> at this point in the Amlogic upstream world we're happy we have audio :)
<chewitt> there's an unresolved oddity with speaker placement when using more than 2.0
<chewitt> certain channels will be in the wrong positions
<chewitt> otherwise it all seems to work
<tolszak> narmstrong: That's new dmesg from clean amlogic-image-sato: https://pastebin.com/Gc3h4ptT
tafa has quit [Quit: ZNC - https://znc.in]
<tolszak> narmstrong: On my custom layer I added 3 patches changing dts to kernel, one is adding power button handling, one addin gpio wakeup support and one adding custom led that's it. But the dmesg I provided above are from meta-meson, my layer is not included
tafa has joined #linux-amlogic
<narmstrong> tolszak: usb doesn't work ?
<narmstrong> tolszak: previous dmesg was using linux-meson64, this one uses linux-yocto
<tolszak> narmstrong: Yes it doesn;t work
<tolszak> narmstrong: no this one uses linux-meson64
<tolszak> I've grabbed plain harknott brnach from meta-meson
<tolszak> added odroidn2 as machine
<tolszak> and built amlogic-image-sato
<tolszak> That's it
<tolszak> I will test it with another odroid I have just to ensure it is not HW issue
<narmstrong> the dmesg is ok, usb ports are correctly initialized
<narmstrong> except if dwc3 isn't enabled
<narmstrong> it's in the defconfig file
<tolszak> CONFIG_USB_DWC3=y
<tolszak> # CONFIG_USB_DWC3_ULPI is not set
<tolszak> # CONFIG_USB_DWC3_HOST is not set
<tolszak> # CONFIG_USB_DWC3_GADGET is not set
<tolszak> CONFIG_USB_DWC3_DUAL_ROLE=y
<tolszak> #
<tolszak> # Platform Glue Driver Support
<tolszak> #
<tolszak> CONFIG_USB_DWC3_MESON_G12A=y
<tolszak> CONFIG_USB_DWC3_OF_SIMPLE=y
<tolszak> CONFIG_USB_DWC2=y
<tolszak> Seems like enabled, I will check with other odroid now
<tolszak> narmstrong: When I connect camera with LED lights the lights are on so the power is there
<tolszak> but nothing on dmesg
<tolszak> Different device does that too
<tolszak> There were power differences on GPIO between n2 plus board revisions but I suppose it should have impact. E.g. 3V gpio pin stayed 3V after shutdown on some and on some dropped below 2V.
<tolszak> I mean shouldn't have impact on USB
<narmstrong> what lsusb reports ?
<tolszak> Need to install it on sato
<tolszak> give me a sec
<narmstrong> and `dmesg -l8` ?
<tolszak> lsusb -t is empty
<tolszak> dmesg: unknown level '8'
<tolszak> narmstrong: "chewitt said: only a layer 8 networking problem ;)". I'm not familiar with it at all but now it looks like I should not treat it as a joke :)
<chewitt> aka PEBKAC .. aka ID10T .. aka Layer8 issue
<tolszak> chewitt: Everyday learn something new...
<narmstrong> tolszak: is lsusb is empty this means dwc3 driver hasn't loaded
<narmstrong> tolszak: I'll have a look maybe tommorow
<tolszak> narmstrong: No worries thanks, dmesg show it is loaded I think
<tolszak> [ 4.185593] dwc3-meson-g12a ffe09000.usb: USB2 ports: 2
<tolszak> [ 4.190850] dwc3-meson-g12a ffe09000.usb: USB3 ports: 1
<tolszak> [ 4.220336] dwc3-meson-g12a ffe09000.usb: switching to Device Mode
<tolszak> The only non stock bit I used is SSTATE_DIR in conf file that I share across different builds but it should be safe
<tolszak> I will remove it from local.conf file and build again from scratch
<Tartarus> sharing SSTATE_DIR and DL_DIR is safe
<Tartarus> you can nuke the build dir to re-sanity check things
buzzmarshall has joined #linux-amlogic
<narmstrong> tolszak: this is the glue, it doesn't mean DWC3 has loaded
<narmstrong> I think xhci stuff is missing
<narmstrong> weird because dwc3 should enable the right xhci config
tdebrouw has quit [Quit: Leaving.]
<narmstrong> yep CONFIG_USB_XHCI_HCD=y is prob missing
<narmstrong> it's enabled in linux-yocto kmeta
<gbisson> hi, any known issue with sd cards? I have 2 class 10 here (1 Kingston 4GB & 1 AData 16GB), with only 'cap-sd-highspeed' only the 4GB one works, with all the speeds (sdr104, ddr50 etc) only the 16GB works
<gbisson> note taht I have a vqmmc regulator that allows switching from 3.3 to 1.8V
<gbisson> another interesting note: on i.MX8 platform, the 4GB SD enumerates as DDR50 whereas the 16GB shows as SDR104
tolszak has quit [Ping timeout: 245 seconds]
jernej has joined #linux-amlogic
mkorpershoek has quit [Ping timeout: 256 seconds]
jernej has quit [Ping timeout: 256 seconds]
vagrantc has joined #linux-amlogic
jernej has joined #linux-amlogic
jernej has quit [Quit: Konversation terminated!]
Guest27 has joined #linux-amlogic
Guest27 has quit [Quit: Client closed]
valdikss has quit [Quit: Bye!]
valdikss has joined #linux-amlogic