lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC>
[Discord] <mecoblock> Got a Rock5B+ now, gonna check later if everything works. If yes I'd like to start maintaining it for armbian
<DC-IRC>
[Discord] <nagatoronyan> yes, profiling. Just like `intel_gpu_top`, `nvidia-smi` and windows taskmg.
<DC-IRC>
[Discord] <nagatoronyan> yes, profiling. Just like `intel_gpu_top`, `nvidia-smi` and windows taskmgr.
<DC-IRC>
[Discord] <mecoblock> I might look into writing a small cli tool maybe call it rockchip-top
<DC-IRC>
[Discord] <nagatoronyan> IIRC someone has posted a similar tool in the radxa forum? Not in the cli, but in the gui.
<DC-IRC>
[Discord] <mecoblock> i think the one you mean was just for cpu info and maybe gpu util not sure
<DC-IRC>
[Discord] <nagatoronyan> Since many people run SBC headlessly, the CLI tool may be more popular.
<DC-IRC>
[Discord] <mecoblock> think so too
<DC-IRC>
[Discord] <mecoblock> rkdeveloptool being so so much more seamless than genio-flash is beyond me. Mediatek really needs to abandon that python mess and just copy whatever rockchip did lol
<DC-IRC>
[Discord] <mecoblock> Up and running 🔥
<DC-IRC>
[Discord] <mecoblock> over wifi and usb c dp alt mode. (Sadly I have to provide power via a separate usb c cable to the power usb c port)
<DC-IRC>
[Discord] <mecoblock> ubuntu-desktop also works but from cli image but it’s using the software renderer. What would be the armbian way of adding the mali driver to rk3588?
<DC-IRC>
[Discord] <fridtjof> Did you actually get it to work on your 5b+? I gave up on it
<DC-IRC>
[Discord] <mecoblock> How come? I just build a image with upstream armbian build and flashed it onto the emmc
<DC-IRC>
[Discord] <fridtjof> oh mine doesn't have emmc
<DC-IRC>
[Discord] <fridtjof> i hope that's not actually mandatory for it to work at all?
<DC-IRC>
[Discord] <mecoblock> SD card should work just as fine. What did you try ?
<DC-IRC>
[Discord] <fridtjof> It's breaking down on the USB communication level for me
<DC-IRC>
[Discord] <fridtjof> Hold on let me boot up my desktop
<DC-IRC>
[Discord] <mecoblock> Your desktop isn’t by any chance AM4 based?
<DC-IRC>
[Discord] <fridtjof> ...yes it is
<DC-IRC>
[Discord] <fridtjof> uh oh
<DC-IRC>
[Discord] <mecoblock> I had this issue with my mediatek recently and basically AMD’s AM4 has massive usb issues which result in stuff like that
<DC-IRC>
[Discord] <mecoblock> You should probably have no issue just flashing in onto sd card and then from there to m.2 if you like. How do you want to run it?
<DC-IRC>
[Discord] <fridtjof> oh sd card has been working fine it's just a hassle in terms of iteration time
<DC-IRC>
[Discord] <fridtjof> "it" refers to rkdeveloptool, not the entire board
<DC-IRC>
[Discord] <mecoblock> if you don’t have emmc what did you try with rkdeveloptool?
<DC-IRC>
[Discord] <fridtjof> just a basic read chip info
<DC-IRC>
[Discord] <fridtjof> basically, i'd like to write to the sd card through maskrom which i think should be possible?
<DC-IRC>
[Discord] <fridtjof> ...okay maybe i misread the collabora notes
<DC-IRC>
[Discord] <fridtjof> i think i did oof
<DC-IRC>
[Discord] <mecoblock> yeah you can write to SPI and EMMC I think but not to sd card
<DC-IRC>
[Discord] <fridtjof> i see
<DC-IRC>
[Discord] <fridtjof> then still, even writing to SPI does not work
<DC-IRC>
[Discord] <fridtjof> so it obviously enumerates, but talking to it does not seem to work
<DC-IRC>
[Discord] <fridtjof> on another note, is this unmodified rock-5b-plus.csc? I could never get it to boot from an SD card with the vendor kernel and u-boot
<DC-IRC>
[Discord] <mecoblock> it is
<DC-IRC>
[Discord] <fridtjof> that's strange!
<DC-IRC>
[Discord] <fridtjof> i remember trying it unmodified and it would just get stuck in u-boot iirc
<DC-IRC>
[Discord] <mecoblock> that’s bc you need to flash the rk3588 loader bin to make commands in rkdeveloptool available
<DC-IRC>
[Discord] <fridtjof> 2) what do you mean by usable? I see two OTG ports (aka connected to dual role dwc3 IPs) and one host port, which one of them is usable?
<DC-IRC>
[Discord] <menu> i'd expect only the host port to be usable, but their labels do not actually match the USB spec labels, and the USB spec doesn't match any real-world implementation
<DC-IRC>
[Discord] <fridtjof> so what they mean by OTG from what i've learned is just that you can switch roles for e.g. gadget mode
<DC-IRC>
[Discord] <fridtjof> which makes less sense on the USB-A port, but a lot of sense on the USB-C port
<DC-IRC>
[Discord] <fridtjof> otherwise they're all configured as host ports by default
<DC-IRC>
[Discord] <menu> the expectation is that you'll use a male-to-male cable and completely disregard the USB spec
<DC-IRC>
[Discord] <fridtjof> yeah :D
<DC-IRC>
[Discord] <menu> USB-C doesn't *have* OTG, because USB-C is dual-role by default
<DC-IRC>
[Discord] <fridtjof> i see what you're getting at i think
<DC-IRC>
[Discord] <fridtjof> so yeah the labels more or less refer to the SoC blocks the ports are wired up to, not the physical ports themselves?
<DC-IRC>
[Discord] <menu> i'd assume so, but don't quote me on that, i haven't got the schematic to hand
<DC-IRC>
[Discord] <fridtjof> it does check out from a lot of testing
<DC-IRC>
[Discord] <fridtjof> i wrote down a map of which block is which port, and looking at the rk3588 trm it checks out
<DC-IRC>
[Discord] <menu> if anything, i'm more confused now
<DC-IRC>
[Discord] <fridtjof> okay just verified, type-c works both ways on the vendor kernel
<DC-IRC>
[Discord] <menu> ooh it is at least connected properly then
<DC-IRC>
[Discord] <fridtjof> yeah i think
<DC-IRC>
[Discord] <fridtjof> it's more just a challenge of orchestrating all the gpio/sideband stuff
<DC-IRC>
[Discord] <fridtjof> fusb302 is also involved
<DC-IRC>
[Discord] <menu> USB makes me incredibly frustrated, it's honestly mind-boggling that it works at all
<DC-IRC>
[Discord] <fridtjof> the port didn't work at all until i added mode/orientation/role switch stuff from looking at vendor 5b+ and mainline rock 5 ITX trees
<DC-IRC>
[Discord] <fridtjof> lol yeah
<DC-IRC>
[Discord] <fridtjof> the whole reason i'm doing this to myself is because gadget mode on a pi5's dwc2 seems to have performance issues for my use case
<DC-IRC>
[Discord] <fridtjof> and i didn't want to bother finding out where the fault lies in that mess involving rp1 and so on
<DC-IRC>
[Discord] <fridtjof> yeah that diagram is a bit confusing, this is what it's actually like:
<DC-IRC>
[Discord] <mecoblock> did your usecase work in vendor and you now want it in mainline?
<DC-IRC>
[Discord] <fridtjof> i actually haven't fully tried it in vendor yet. But mainline is an eventual goal anyway, because I'd really like to have 6.12 for PREEMPT_RT
<DC-IRC>
[Discord] <fridtjof> (my usecase involves audio, and i'm gunning for lowest possible latencies)
<DC-IRC>
[Discord] <fridtjof> ok i think i found the secret third usb3
<DC-IRC>
[Discord] <fridtjof> (sort of)
<DC-IRC>
[Discord] <fridtjof> it's hidden in the "3x SATA/PCIe2.1" because it's hooked up to a usb3/pcie/sata combo phy
<DC-IRC>
[Discord] <fridtjof> you have a good point though, maybe i should get back on track with my initial stuff before getting stuck any longer on the edge kernel stuff :D
<DC-IRC>
[Discord] <menu> combos can get real confusing
<DC-IRC>
[Discord] <fridtjof> yeah all the routing/configuration complexity is crazy
<DC-IRC>
[Discord] <mecoblock> @amazingfate
<DC-IRC>
[Discord] <amazingfate> armbian is using an extension mesa-vpu
<DC-IRC>
[Discord] <amazingfate> mesa-vpu will enable a dt overlay to enable panthor driver, and add a ppa to install mesa with panthor userspace driver
<DC-IRC>
[Discord] <fridtjof> I'd also volunteer for some testing, if time allows :)
<DC-IRC>
[Discord] <mecoblock> Yes I do just need to make the jira account later
<DC-IRC>
[Discord] <mecoblock> I'll test an image later with the extension, what would be the go to way to add an extension to a running image if there even is a way?
<DC-IRC>
[Discord] <amazingfate> add option `ENABLE_EXTENSION=mesa-vpu` when compiling
<DC-IRC>
[Discord] <amazingfate> add option `ENABLE_EXTENSIONS=mesa-vpu` when compiling
<DC-IRC>
[Discord] <mecoblock> I thought the integrated mali from Vendor BSP also supported also supports desktop accel or am I mixing those two up?
<DC-IRC>
[Discord] <amazingfate> I have not tried running mali blob with desktop
<DC-IRC>
[Discord] <beohoff3174> Guess i need to start lurking on Radxa's forum more, this is pretty neat
<DC-IRC>
[Discord] <igorpec> i can build a full release image and you test that?
<DC-IRC>
[Discord] <beohoff3174> what problems are you having?
<DC-IRC>
[Discord] <fridtjof> on pi5?
<DC-IRC>
[Discord] <beohoff3174> yeah
<DC-IRC>
[Discord] <fridtjof> unstable audio when it's going from a host to the pi in gadget mode, then to a USB audio interface from the pi and back again
<DC-IRC>
[Discord] <fridtjof> unstable meaning clicks and pops even at relatively ludicrous buffer sizes on both hosts
<DC-IRC>
[Discord] <beohoff3174> I'm using pipewire to help pipe my audio around, are you using that? Or alsa?
<DC-IRC>
[Discord] <fridtjof> yeah, pipewire
<DC-IRC>
[Discord] <beohoff3174> which version?
<DC-IRC>
[Discord] <fridtjof> 1.2.whatever on desktop and pi
<DC-IRC>
[Discord] <beohoff3174> hmm, I had thought upgrading my pipewire version got rid of some popping and click for me
<DC-IRC>
[Discord] <beohoff3174> Did you do any configuration?
<DC-IRC>
[Discord] <beohoff3174> I think I enabled a realtime audio thingy
<DC-IRC>
[Discord] <fridtjof> i was gonna measure roundtrip latencies with jack_iodelay, but noticed it regularly annotating results with "??"
<DC-IRC>
[Discord] <beohoff3174> I can drop the config file if it's helpful
<DC-IRC>
[Discord] <fridtjof> sure
<DC-IRC>
[Discord] <beohoff3174> k, one sec
<DC-IRC>
[Discord] <fridtjof> actually building a 6.12 kernel with preempt_rt helped a surprising lot, but didn't eliminate it altogether
<DC-IRC>
[Discord] <fridtjof> actually lets take this into either a thread or -offtopic, not really rockchip related anymore :D
<DC-IRC>
[Discord] <beohoff3174> The filepath is `wireplubmer/wireplumber.conf.d/51-alsa-pro-audio.conf`
<DC-IRC>
[Discord] <beohoff3174> Yeah, I only asked and am trying to help because I had issues going from usb-c to usb-c on my laptop. Surprisingly, when I switched to usb-A port on my laptop the problems stopped. I had put it in my "things to dig into later bucket"
<DC-IRC>
[Discord] <beohoff3174> Yeah, I only asked and am trying to help because I had issues going from usb-c to usb-c on my laptop in USB gadget mode.
<DC-IRC>
[Discord] <beohoff3174> Surprisingly, when I switched to usb-A port on my laptop the problems stopped. I had put it in my "things to dig into later bucket"
<DC-IRC>
[Discord] <mecoblock> just did
<DC-IRC>
[Discord] <fridtjof> @igorpec not sure i'd have the time to count as maintainer, but I do have a potential PR for edge kernel support on 5b+. Would that be fine to submit? If just so people can find it easily and improve on it
<DC-IRC>
[Discord] <Werner> You don't need to be maintainer to submit support for a board. Such can always be added as csc
<DC-IRC>
[Discord] <Werner> Also saw mainline dts sent for opi5max in mailing list earlier today
<DC-IRC>
[Discord] <fridtjof> ah nice
<DC-IRC>
[Discord] <fridtjof> wasn't 100% sure about the definition of csc
<DC-IRC>
[Discord] <fridtjof> marked my PR as RFC because this is my first time working with device trees and all that and honestly i have no clue what i'm really doing :D
<DC-IRC>
[Discord] <beohoff3174> Haven't validated that the NPU and RGA monitoring works, but GPU and CPU seem to
<DC-IRC>
[Discord] <igorpec> if maintaining burden is shared among more people its better for all. If you can help a little, what you just did, helps. I encourage you to apply to help @meco out.
<DC-IRC>
[Discord] <fridtjof> thanks, that is good to hear :) and glad to help as well as i can!
<DC-IRC>
[Discord] <mecoblock> Where can I define the Extensions for Desktop (not for manual build) but for the automatic generation? We "need" Mesa-VPU also for Rock5B-Plus which was missing on the recent batch of images you shared with me
<DC-IRC>
[Discord] <mecoblock> I don't see it configured in any of the board or family configs but the images are built with mesa-vpu on Rock5B for example
<DC-IRC>
[Discord] <menu> should my oPi5 not boot from the SD card if the SPI flash is zeroed?
<DC-IRC>
[Discord] <igorpec> it should, yes
<DC-IRC>
[Discord] <menu> it's booting the nvme regardless
<DC-IRC>
[Discord] <menu> i am confused
<DC-IRC>
[Discord] <igorpec> i had the same situation here 😉 just testing bookworm ... i unscrew nvme as i didn't want to mess up with spi
<DC-IRC>
[Discord] <menu> i need the nvme, i'm trying to reinstall on it 🤣
<DC-IRC>
[Discord] <menu> what purpose does the bootloader serve if it is ignored anyway?
<DC-IRC>
[Discord] <igorpec> dunno, must be some bug
<DC-IRC>
[Discord] <igorpec> i found some in network config, so i'll deal with this tomorrow
<DC-IRC>
[Discord] <igorpec> for the auto-net config, i would propose to fix script instead of docs
<DC-IRC>
[Discord] <menu> honestly it needs reworking completely, it doesn't make sense to derive a netplan from another file, would it not make sense to simply *provide the netplan*?
<DC-IRC>
[Discord] <igorpec> you mean this autoconfig?
<DC-IRC>
[Discord] <igorpec> yes, probably that would be better
<DC-IRC>
[Discord] <igorpec> 1st run and its config is also some spagheti code by now
<DC-IRC>
[Discord] <menu> long-term it probably wants removing entirely, and the documentation should explain where to put config files
<DC-IRC>
[Discord] <igorpec> yeah ... long-term. right now, bugz 😉
<DC-IRC>
[Discord] <igorpec> more specific right now ... break. later
<DC-IRC>
[Discord] <mecoblock> getting Bluetooth "Failed to set mode: Failed (0x03)" on Rock5B+ with Azurewave AW-XM548NF hmm
<DC-IRC>
[Discord] <mecoblock> everything else works 🎉
<DC-IRC>
[Discord] <menu> i think it needed an actual power cycle
<DC-IRC>
[Discord] <menu> i'm losing my mind, now `reboot` doesn't work