mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
stikonas has quit [Quit: Konversation terminated!]
raster has quit [Quit: Gettin' stinky!]
qschulz has quit [Remote host closed the connection]
qschulz has joined #linux-rockchip
hexdump02 has quit [Ping timeout: 250 seconds]
desuua_ has joined #linux-rockchip
desuua_ has quit [Max SendQ exceeded]
desuua_ has joined #linux-rockchip
desuua_ has quit [Remote host closed the connection]
naoki has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
naoki has quit [Quit: naoki]
naoki has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
naoki has quit [Quit: naoki]
_whitelogger has joined #linux-rockchip
Boohumbug has quit [Ping timeout: 612 seconds]
<dsimic> walter: (there's U4 connected to CC1 & CC2. It's a CH224.) I'm wondering what schematic you referred to? perhaps ROCK 5A, which does use CH224D
<dsimic> wens: as sre explained it already, ROCK 5B uses a full-fledged PD controller that's "prodded" by the CPU
<dsimic> Dex2x: (re: do you have a desktop card reader that supports A2) frankly, I don't know do I... :) specifically, I've got a couple of fancy card readers, made by Kingston and SanDisk, but their specs are basically useless
<dsimic> pinchartl: (re: I've replied to the mail thread) nice, thanks! I just went through the resulting discussion
psydroid2 has joined #linux-rockchip
<dsimic> Dex2x: (re: now everything is moving to SD Express) frankly, I don't care about SD Express, because no boards I'm interested in support it :)
<dsimic> wens: for completeness' sake, ROCK 5C also employs a simple way to perform PD triggering, using juat a couple of resistors, but it actually pulls 5 V only
naoki has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
pooyam has quit [Quit: WeeChat 4.7.1]
<walter> Yes, I was looking at ROCK 5A.
pooyam has joined #linux-rockchip
stikonas has joined #linux-rockchip
raster has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
franoosh has joined #linux-rockchip
<wens> dsimic: the resistor network method gives 5V 3A
franoosh has quit [Remote host closed the connection]
franoosh has joined #linux-rockchip
naoki has quit [Quit: naoki]
raster has joined #linux-rockchip
<dsimic> wens: I'm not sure that 3 A at 5 V, i.e. 15 W, would be enough for the ROCK 5C to work reliably, which is the reason why Radxa sells a somewhat custom USB PSU that's capable of delivering 5 A at 5 V
<CounterPillow> without power hungry peripherals it is
<dsimic> perhaps
<linkmauve> Hi, my rock5b is now stuck in a loop of these two messages in dmesg, I’ve tried a different Ethernet cable:
<linkmauve> [ 26.305145] r8169 0004:41:00.0 enP4p65s0: Link is Up - 1Gbps/Full - flow control rx/tx
<linkmauve> [ 29.080819] r8169 0004:41:00.0 enP4p65s0: Link is Down
<linkmauve> It happens roughly every five seconds.
<linkmauve> And it makes Ethernet unusable, so I only have the serial connection now.
<linkmauve> Oh, if I set the link down then up again, [ 225.684989] r8169 0004:41:00.0: Unable to load firmware rtl_nic/rtl8125b-2.fw (-2)
<dsimic> hello! I'd assume that the other end of the Ethernet connection isn't capable of providing some diagnostics? also, are you in a position to try rebooting the board, to see will the issue go away that way, or will it start occuring again?
<linkmauve> I’ve rebooted the board already; the other side is a proprietary router with no debug whatsoever but I could plug it in another computer if that could help.
<linkmauve> I do have /lib/firmware/rtl_nic/rtl8125b-2.fw.zst though.
<dsimic> maybe trying with another computer at the other end would be good, to eliminate any possibility that it's the current peer's fault
<dsimic> regarding the firmware message, it's perhaps some bug in the NIC driver
<linkmauve> Ok, I probably forgot to build my kernel with Zstd support for loading modules, if I uncompress the firmware the thing is now stable.
<linkmauve> I wonder why it was working previously.
<dsimic> hmm, it seems that the driver doesn't like the firmware image, this triggers the firmware error from above:
<dsimic> 222 if (!rtl_fw_format_ok(rtl_fw) || !rtl_fw_data_ok(rtl_fw)) {
<dsimic> 223 release_firmware(rtl_fw->fw);
<dsimic> 224 rc = -EINVAL;
<dsimic> 225 goto out;
<dsimic> 226 }
<dsimic> (taken from drivers/net/ethernet/realtek/r8169_firmware.c)
<dsimic> ah, alright, so it indeed didn't like the firmware image, but for another reason :)
<linkmauve> I was missing FW_LOADER_COMPRESS=y and FW_LOADER_COMPRESS_ZSTD=y.
hramrach has quit [Ping timeout: 260 seconds]
Bahhumbug has joined #linux-rockchip
Bahhumbug has quit [Quit: leaving]
Bahhumbug has joined #linux-rockchip
Bahhumbug is now known as Boohumbug
<walter> "It happens roughly every five seconds." --- linkmauve: that could be a PowerDelivery issue. Are you using a PD-enabled PoE addapter?
<dsimic> walter: if those were power-related issues, the entire board would be resetting in such a fashion
<walter> Oh, I thought you were talking about the whole board.
<dsimic> BTW, those PoE "ejectors" with USB-C plugs and PD support are quite neat
<dsimic> but the inherent complexity at both ends of such PoE setups is amazing, or even horrifying :)
<walter> yeah, I'm waiting for the day when we hear about a poorly designed device that has been exploited by a cable via the CC pins.
<linkmauve> No, I’m using a good GAN power adapter, which can deliver 100W at up to 20V AFAIK.
<dsimic> walter: that actually already exists, in form of smartphones that expose their debugging interfaces over USB-C's debug-access mode (DAM)
<dsimic> basically, whenever such a phone is plugged into a "random" charger, it's at the "charger's" mercy
<walter> Nice!
<dsimic> actually, it's debug accessory mode or whatever it's called, I can't remember exactly
franoosh has quit [Ping timeout: 240 seconds]
franoosh has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
psydroid2 has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
franoosh has quit [Remote host closed the connection]
_whitelogger has joined #linux-rockchip
<diederik> linkmauve: I never knew firmware could be compressed (and be usable for the kernel), so thanks for that :)
<diederik> ... turns out it was already enabled in my (and Debian's) kernel