<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)
<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
<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
<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