Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duo-buildroot-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
duo-buildroot-sdk
Commits
0caef942
Commit
0caef942
authored
Aug 07, 2023
by
carbon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add usb-host.sh to enable usb-hub on IO Board
parent
5dc56824
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
1 deletion
+42
-1
README.md
README.md
+37
-0
milkv/overlay/mnt/system/usb-host.sh
milkv/overlay/mnt/system/usb-host.sh
+4
-0
milkv/overlay/mnt/system/usb-rndis.sh
milkv/overlay/mnt/system/usb-rndis.sh
+0
-0
milkv/overlay/mnt/system/usb.sh
milkv/overlay/mnt/system/usb.sh
+1
-1
No files found.
README.md
View file @
0caef942
...
...
@@ -157,6 +157,43 @@ mv /mnt/system/blink.sh /mnt/system/blink.sh_backup && sync
mv /mnt/system/blink.sh_backup /mnt/system/blink.sh && sync
```
### 使用 IO Board 底板
注意,使用 IO Board 底板时,USB网卡(RNDIS)不可用,如需使用网络功能,请使用底板上的以太网接口
使用底板上的4个USB口,需要修改一下配置,将默认固件中的
`usb-rndis`
功能修改为
`usb-host`
```
rm /mnt/system/usb.sh
ln -s /mnt/system/usb-host.sh /mnt/system/usb.sh
sync
```
修改完,重启或重新上电即可生效
比如底板USB口接入U盘后,可以用
`ls /dev/sd*`
查看是否有检测到设备
挂载到系统中查看U盘中的内容(以/dev/sda1为例):
```
mkdir /mnt/udisk
mount /dev/sda1 /mnt/udisk
```
查看
`/mnt/udisk`
目录中的内容是否符合预期
```
ls /mnt/udisk
```
卸载U盘的命令
```
umount /mnt/udisk
```
不使用底板时,恢复USB网卡(RNDIS)的方法
```
rm /mnt/system/usb.sh
ln -s /mnt/system/usb-rndis.sh /mnt/system/usb.sh
sync
```
修改完,需要重启或重新上电生效
<br>
# 常见问题解答
...
...
milkv/overlay/mnt/system/usb-host.sh
0 → 100755
View file @
0caef942
#!/bin/sh
echo
host
>
/proc/cviusb/otg_role
>>
/tmp/usb.log 2>&1
milkv/overlay/mnt/system/rndis.sh
→
milkv/overlay/mnt/system/
usb-
rndis.sh
View file @
0caef942
File moved
milkv/overlay/mnt/system/usb.sh
View file @
0caef942
rndis.sh
\ No newline at end of file
usb-rndis.sh
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment