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