mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
vagrantc has quit [Ping timeout: 245 seconds]
vagrantc has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
naoki has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
warpme has joined #linux-rockchip
franoosh has joined #linux-rockchip
cbeznea has joined #linux-rockchip
raster has joined #linux-rockchip
mripard has joined #linux-rockchip
<warpme> guys: i have board with 8822cs sdio wifi on m2 key. Hw desgin not provides vqmmc to m2 module and instead m2 module has onboard 1v8 requlator for io. So module operates always on 1v8 io. Issue i have is kernel (6.16 mainline) at init checks 1v8 modes and fails with "dwmmc_rockchip 2a320000.mmc: Unexpected CMD11 timeout". Imho this is because kernel has no control on sdio vqmmc level. As module uses always 1v8 (on board regulator)
<warpme> but kernel starts with 3v3 then tries 1v8 then fails with 1v8 level - all fails like here: https://termbin.com/2q66 Is there way to ask kernel to skip 3v3->1v8 switching and directly go with 1v8 modes? I tried mmc-hs200-1_8v and mmc-hs400-1_8v and this removes "Unexpected CMD11 timeout" but still gives very low wifi speeds (so i suspect still issues with sdio bus) Maybe somebody has any ideas here?
diederik has quit [Quit: Going to see what happens IRL, see ya!]
diederik has joined #linux-rockchip
dlg has quit [Server closed connection]
dlg has joined #linux-rockchip
<wens> warpme: which soc is this?
<warpme> rk3576
<wens> doesn't seem to have an I/O domain driver (Documentation/devicetree/bindings/power/rockchip-io-domain.yaml)
<warpme> i played a bit with hacking reusing openrtw hacks: https://github.com/warpme/minimyth2/commit/49b43be98b946deed74a04e8187ffc54995b87da This code works ok for them on 6.12 kernel but on mine 6.16 wifi speeds is still very low....
<wens> IIRC you specify I/O voltage supplies for each pin group here, so that the pin controller gets configured with the correct I/O voltage levels
<wens> because 1.8V signalling is below the logic threshold of 3.3V signalling, this is definitely needed
<CounterPillow> wens: just because it doesn't have its own compatible doesn't mean it doesn't have a driver.
<wens> I don't see anything like it in the dts files either
<CounterPillow> yeah but neither does the rk3588, doesn't mean something is missing here.
<CounterPillow> fwiw, the downstream vendor kernel rk3576 dts doesn't have any io domain voltage node either, whereas the rk356x.dtsi in the vendor kernel does. So it's not a thing missing from mainline, the hardware just works differently.
<wens> I'm just extrapolating
<wens> those are emmc modes, so I suspect they don't really have any effect for an SDIO card
<wens> warpme: you might want to check /sys/kernel/debug/mmc/*/ios and see what mode it is running when you add mmc-hs*
<wens> I guess rockchip might have just did away with the configurable stuff, and it just follows the pingroup's voltage supply
<wens> ok
<wens> so they changed their design, fair enough
<warpme> hmm: per https://wiki.friendlyelec.com/wiki/images/6/60/NanoPi_R76S_LP4X_2411_SCH.pdf is wifi sdio is on vccio3 (page10). supply is VCC_1V8_S3. is it wired to vcc8/buck8. then in my dts it is conencted to dcdc_reg8 (https://github.com/warpme/minimyth2/blob/f29623145727ebeca9073e5bc5d09318f3990147/script/kernel/linux-6.16/files/1282-arm64-dts-add-rk3576-nanopi-r76s-dt.patch#L547) Regulator summary on running bard shows:
<wens> what do you have for vqmmc in the sdio node?
<wens> the only other thing I can think of is that the drive strength on the pins isn't enough for the rate the signals are running at
<robmur01> there is no vqmmc-supply, so the driver presumably believes the voltage stays at the default (3.3V) in the absence of any way to change it
<robmur01> warpme: exactly, you're not specifying any supply regulators there, so how do you expect the MMC layer to know what the voltage is?
System_Error has joined #linux-rockchip
stikonas has joined #linux-rockchip
naoki has quit [Quit: naoki]
<warpme> robmur01 : ah indeed - forgot to add vqmmc-supply = <&vcc_1v8_s3>; now ios looks good i think https://gist.github.com/warpme/1f607482b666713f4ffd5b477106085b But speeds are still 20-40MBps max. Still don't understand why....
<warpme> maybe time to get osciloscope and see what happens on io lanes....
digetx has quit [Ping timeout: 252 seconds]
digetx has joined #linux-rockchip
digetx has quit [Ping timeout: 240 seconds]
digetx has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
golledge has joined #linux-rockchip
psydroid2 has joined #linux-rockchip
eballetbo has joined #linux-rockchip
<golledge> Hi, I am working on rk3566, I have got yocto scathgap using the yoctos meta-rockchip running. I want to enable secure boot, i have built rockchips uboot to flash the keys and the keys are flash so now i can only flash signed loaders, i have built and signed mainline uboot spl which works by manually signing the idbloader.img. my next step is the
<golledge> get the idbloader signed inside of yocto. then work on signing the uboot fit image. has any one else tried this or know of anyone doing the same. Any help would be appreciated. This is very slow going for me at the moment
<qschulz> typ
<qschulz> ically you do not want to sign with Yocto
<qschulz> usually you want air-gapped systems to sign artifacts
<qschulz> for signing U-Boot FIT probably look into https://docs.yoctoproject.org/ref-manual/classes.html#uboot-sign ?
<golledge> not a bad shout, I think with keys stored in online and build VM ran on in house server. It should be enough.
<golledge> I looked at the docs and struggled to find a simple way include the rk_sign_tool. I was hoping someone else has got this far
<qschulz> For signing idbloader.img, probably not as I would assume this to be part of meta-rockchip from the YP git repo
<qschulz> and I am not aware of that
<qschulz> so you'd likely need to add something for that
<qschulz> if you do, please send patches to meta-rockchip, I'm sure Trevor would be happy to see contributions like that :)
<qschulz> and contributions to U-Boot docs to explain how to sign idbloader.img would also be very nice :)
<golledge> Yeah, it looks like i need to create a native recipe to add the rk_sign_tool binary to the SDK, then just figure a way to check if spl is required to be signed then run the sign tool if required. simple :S
<golledge> I am hoping to get some time to create some upstream patches.
<qschulz> do we have the sources for rk_sign_tool?
tlwoerner has quit [Ping timeout: 245 seconds]
<golledge> no released as a binary
<qschulz> yeah that's a bit of an issue for Yocto, don't really like running prebuilt binaries on the host, especially since it could be running on another architecture than the one this binary was built for
<qschulz> I guess maybe fex could be used to run it on incompatible architectures /me shrugs
<qschulz> there seems to be a meta-rk3588 layer you could take inspiration from
vagrantc has joined #linux-rockchip
dsimic has quit [Ping timeout: 245 seconds]
<Kwiboo> golledge: I played around with adding idblock v2 signing to mkimage at https://github.com/Kwiboo/u-boot-rockchip/commit/cb2827f096975a4aa255c3c6915b4fe6f58824af some time ago, the generated signature can be validated with rk_sign_tool, see https://gist.github.com/Kwiboo/6847d4c83ad768bacf47a162f99a24e2 for very limted docs
dsimic has joined #linux-rockchip
<wens> warpme: limitations of the card or access point?
franoosh has quit [Remote host closed the connection]
Dex2x has quit [Quit: ZNC 1.9.1+deb2+b3 - https://znc.in]
Dex2x has joined #linux-rockchip
warpme has joined #linux-rockchip
warpme has quit [Client Quit]
Dex2x has quit [Read error: Connection reset by peer]
Dex2x has joined #linux-rockchip
Dex2x has quit [Read error: Connection reset by peer]
Dex2x has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
Dex2x has quit [Quit: ZNC 1.9.1+deb2+b3 - https://znc.in]
Dex2x has joined #linux-rockchip
stikonas_ has joined #linux-rockchip
rtp has quit [Server closed connection]
rtp has joined #linux-rockchip
stikonas has quit [Ping timeout: 265 seconds]
stikonas_ has quit [Ping timeout: 248 seconds]
raster has quit [Quit: Gettin' stinky!]
stikonas has joined #linux-rockchip
psydroid has quit [Read error: Connection reset by peer]
franoosh has joined #linux-rockchip
psydroid has joined #linux-rockchip
golledge has quit [Quit: Client closed]
psydroid2 has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
cbeznea has quit [Ping timeout: 248 seconds]
vagrantc has quit [Quit: leaving]
franoosh has quit [Remote host closed the connection]
darfo has quit [Ping timeout: 272 seconds]
darfo has joined #linux-rockchip
mx08 has quit [Server closed connection]
mx08 has joined #linux-rockchip
ndufresne4 has quit [Server closed connection]
ndufresne2 has joined #linux-rockchip