Rock Pi S OTG in Host Mode

Hello friends,

I want to connect a USB flash drive via OTG port on Rock Pi S. I have used a type C OTG connector as shown in picture

image

But after connecing it and using “lsusb” command it does not show any device connected.

Any idea what I’m doing wrong??

Hi, to configure ROCK Pi S Type-C port to work in host mode, you can check these two guides.

https://wiki.radxa.com/RockpiS/Ubuntu#USB or https://wiki.radxa.com/RockpiS/Debian#USB.

Hi Stephen,

That solution did not worked.

First of all, there is no overlay file named “rk3308-usb20-host” in my /boot/dtbs/4.4.143-48-rockchip-geacd15ae244f/rockchip/overlay folder

This I can understand because my Kernel version is 4.4.143-48 but the guide you mentioned recommends version >=4.4.143-51.

So I followed the commands mentioned at https://wiki.radxa.com/RockpiS/Debian#Update_necessary_packages
but again it failed the kernel update command “sudo apt-get install -y linux-4.4-rockpis-latest” mid-process with the error that the required file was not found in the repository (shown in below image)

not to mention that even the above command was trying to install kernel version 4.4.143-49 and not the recommended 4.4.143-51.

I am using the latest Debian Buster image from Radxa (image dated: 28/05/2020)

Try

sudo su
apt-get update
apt-get install linux-4.4-rockpis-latest

And the following information should be shown.

root@rockpis:/home/rock# apt-get install linux-4.4-rockpis-latest
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-firmware-image-4.4.143-51-rockchip-gb2a02deb3cbd linux-headers-4.4.143-51-rockchip-gb2a02deb3cbd
  linux-image-4.4.143-51-rockchip-gb2a02deb3cbd
The following NEW packages will be installed:
  linux-firmware-image-4.4.143-51-rockchip-gb2a02deb3cbd linux-headers-4.4.143-51-rockchip-gb2a02deb3cbd
  linux-image-4.4.143-51-rockchip-gb2a02deb3cbd
The following packages will be upgraded:
  linux-4.4-rockpis-latest
1 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.9 MB of archives.
After this operation, 107 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Just a question - does using USB OTG in Host mode on Pi S works on the latest images with kernel 6.1? I don’t see any specific overlay in the images here https://github.com/radxa-build/rock-pi-s/releases

This overlay works if someone needs:

/dts-v1/;
/plugin/;

/ {
	compatible = "rockchip,rk3308";

	fragment@0 {
		target = <&usb20_otg>;

		__overlay__ {
			dr_mode = "host";
			status = "okay";
		};
	};
};