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> <Werner> @NicoD got these boxes I think but he's on the road too 😄
<DC-IRC> <rpardini> Hmm. I've an R58X-4G, and mine has front-acessible buttons for recovery (maskrom) & reset, you can push them with a small pin.
<DC-IRC> <gambl0r> Is it a bad idea to build bullseye with an edge kernel?
<DC-IRC> <Tenkawa> Thats a vrery relative question
<DC-IRC> <srepac> If you want to be a beta tester, sure. But your name says it all so go for it
<DC-IRC> <Tenkawa> Thats a very relative question
<DC-IRC> <gambl0r> I've already built it, wifi is dropping off 🙂
<DC-IRC> <srepac> 🤣
<DC-IRC> <Tenkawa> Some of these boards kernel/drivers are ancient unless you use edge
<DC-IRC> <gambl0r> it's for an orange pi 4 lts
<DC-IRC> <Tenkawa> I usually build all edge however I'm an old kernel developer..
<DC-IRC> <IgorPec> wifi driver is broken regardless of kernel
<DC-IRC> <gambl0r> that bad is it
<DC-IRC> <IgorPec> well, those chip makers drop driver code and its up to you to fix it
<DC-IRC> <gambl0r> that doesn't seem sustainable at all
<DC-IRC> <IgorPec> yeah
<DC-IRC> <gambl0r> I can say it's stable on the bullseye image with 5.x kernel
<DC-IRC> <gambl0r> ... wifi is stable anyway
<DC-IRC> <mariob> yeah that recovery button is loader mode which depends on the bootloader
<DC-IRC> <rpardini> untrue
<DC-IRC> <rpardini> it goes into loader mode if the bootloader is there / works
<DC-IRC> <rpardini> otherwise goes into Maskrom mode
<DC-IRC> <mariob> i flashed a custom bootloader without loader mode
<DC-IRC> <mariob> pressing that button does nothing anymore
<DC-IRC> <rpardini> if you wanna force it to go into Maskrom:
<DC-IRC> <rpardini> - plug usb-c cable
<DC-IRC> <rpardini> - hold recovery, press reset, hold recovery a bit more
<DC-IRC> <rpardini> - wait
<DC-IRC> <rpardini> - remove the usb-c cable
<DC-IRC> <rpardini> - insert usb-c cable again
<DC-IRC> <rpardini> - you're now in Maskrom mode
<DC-IRC> <mariob> yeah that's not working
<DC-IRC> <mariob> Recovery is only meant for loader mode in u-boot
<DC-IRC> <mariob> if you change the bootloader and it doesn't fail booting, no way to get into maskrom
<DC-IRC> <mariob> just got the instructions back from meko
<DC-IRC> <mariob> need to short those 2 pins before powering on for Maskrom
<DC-IRC> <mariob> can probably solder a wire to the Recovery button to have double functionality: maskrom before boot, Loader mode after u-boot loads
<DC-IRC> <rpardini> hmm guess you frakked up your uboot more than I did then.
<DC-IRC> <rpardini> very useful / interesting to know, thanks.
<DC-IRC> <rpardini> btw what u-boot are you using @mariob ? I've done most of my stuff with rock-5a's uboot, but ofc usb doesnt' work, etc.
<DC-IRC> <mariob> i'm not actually sure what version it is
<DC-IRC> <mariob> it's shipped with the uefi, used to jump to it basically
<DC-IRC> <mariob> prob loader mode is not working there
<DC-IRC> <mariob> i'm not sure if it's even u-boot handling loader mode
<DC-IRC> <rpardini> heh, go plug those in...
<DC-IRC> <rpardini> mine came with some random uboot, and I replaced with `rock-5a` from Radxa's uboot repo.
<DC-IRC> <rpardini> eMMC / UART works, nothing else.
<DC-IRC> <rpardini> also, `rock-5b` doesn't even start.
<DC-IRC> <rpardini> bottom is GND, middle is RX and top is TX
<DC-IRC> <mariob> got a header solderee to those pads :p
<DC-IRC> <mariob> got a header soldered to those pads :p
<DC-IRC> <mariob> yeah i have serial out
<DC-IRC> <rpardini> in the end, Meko's gotta give us an uboot or it's DTS so we can boot off USB and such.
<DC-IRC> <rpardini> I've asked more than once, u-boot, schematics, anything, and nothing yet.
<DC-IRC> <rpardini> This is also pending schematics from Meko... https://github.com/armbian/linux-rockchip/pull/14
<DC-IRC> <Tenkawa> Sounds like you wiped out your SPI
<DC-IRC> <Tenkawa> That's why I think he's having to short the pins
<DC-IRC> <rpardini> there's no SPI flash in _any_ Meko's AFAIK.
<DC-IRC> <rpardini> He's having to short the eMMC cos he managed to put some half-working u-boot there, that can take it from the bootrom, but not working-enough to put it into Loader mode.
<DC-IRC> <Tenkawa> Yeah... indeed no NOR
<DC-IRC> <Tenkawa> Annoying in a way but safer in a way
<DC-IRC> <rpardini> it's probably worth investing time into edk2 for this, since it could probably boot off NVMe?
<DC-IRC> <mariob> i have the schematic, not sure if they allow sharing it
<DC-IRC> <mariob> just let me know what details you need from it
<DC-IRC> <mariob> i have the schematic, not sure if they allow sharing it though
<DC-IRC> <rpardini> Oh awesome. It's about `hdmirx-det-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; //gpio1_d5`
<DC-IRC> <mariob> it can sort of do that, but it's a bit buggy
<DC-IRC> <rpardini> this is supposedly the HDMI-In "is-something-plugged" detection pin, which is probably wrong pin, or active_high
<DC-IRC> <rpardini> (eg, Rock-5b's equivalent is `hdmirx-det-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>` )
<DC-IRC> <mariob> GPIO1_D5_d
<DC-IRC> <rpardini> thanks, does it confirm that `HDMIIRX_DET_L` is `GPIO_D5_d` ?
<DC-IRC> <mariob> yes
<DC-IRC> <rpardini> if so then it's that `29` that is in question, or some error in the PCB... 😐
<DC-IRC> <mariob> can't you do RK_PD5?
<DC-IRC> <mariob> not sure if that maps to 29
<DC-IRC> <mariob> yeah it's 29
<DC-IRC> <rpardini> yeah I dunno then...
<DC-IRC> <mariob> it's also not possible to boot from sd card or flash it from maskrom it seems
<DC-IRC> <mariob> so the only natively supported storage here is the soldered emmc
<DC-IRC> <mariob> yeah this doesn't work as intended
<DC-IRC> <mariob> you can enter maskrom but not loader mode anymore
<DC-IRC> <rpardini> Oh yours has an SDCard slot?
<DC-IRC> <rpardini> Mine is eMMC-only
<DC-IRC> <mariob> yeah on a daughter board
<DC-IRC> <Tenkawa> @mariob yours is a third party SOM version isn't it?
<DC-IRC> <mariob> no
<DC-IRC> <rpardini> oh wow thats even more extravagant. Meko's very cool
<DC-IRC> <mariob> i also got the mini version
<DC-IRC> <mariob> full rk3588 but no pcie slot whatsoever
<DC-IRC> <mariob> xD
<DC-IRC> <rpardini> damn @mariob can you check the pinout of those "GPIO 01" and "GPIO 02"? I'd love to know whats in those
<DC-IRC> <Tenkawa> Even harder to find documentation than Khadas though
<DC-IRC> <rpardini> I'd very much love if there was an i2c in there
<DC-IRC> <rpardini> or a pwm? 😄
<DC-IRC> <Tenkawa> Radxa has docs out there for their stuff but its bad.... Khadas doesn't release a lot but its good...
<DC-IRC> <Tenkawa> I haven't read Meko's
<DC-IRC> <rpardini> Meko's is nowhere to be seen, except @mariob somehow got schematics
<DC-IRC> <rpardini> so I'm here begging him for _what are those?_ heh
<DC-IRC> <Tenkawa> I like Starfive's too although it feels like reading a novel
<DC-IRC> <mariob> seems to be this
<DC-IRC> <rpardini> Unfortunately it seems they're all dumb gpios... 2 are MOSI/MISO and I2S/UARTs but on different connectors, lol
<DC-IRC> <rpardini> so yeah "dumb GPIO 01" would be a better label
* DC-IRC <rpardini> where are my I2C's!!!
<DC-IRC> <rpardini> no SBC is complete without 128x64 OLED.
<DC-IRC> <rpardini> either way super thanks @mariob
<DC-IRC> <mariob> no problem. if you need something else let me know