Think && Act
  • Welcome
  • OpenWRT系统
    • Remote Command Execution on GL.iNet's mini-routers
    • 配置DTS支持USB存储
    • OpenWRT procd启动过程
    • udhcpc如何绑定网络接口
    • 提交新平台补丁到OpenWRT社区
  • 无线WiFi技术
    • WiFi 四次握手分析
    • mac80211框架基础
    • How to get wirelss assoclist on MT7628
    • WPS on GL.iNet's OpenWRT
  • 密码学与安全
    • Feistel Cipher
    • 数据加密标准(DES)
    • Data Encryption Standard(DES)
    • Advanced Encryption Standard(AES)
  • 数据结构与算法
  • VPN技术
    • Using Tor on GL.iNet's mini-routers
    • Using Softether VPN on GL.iNet's mini-routers
    • Using ZeroTier on GL.iNet's mini-routers
  • Go语言
    • A Quick Guide for Go Modules
  • Shell脚本
    • Parameter Expansion ${}
    • User's Guide for Awk
  • Python语言
    • Python in Visual Studio Code
  • 投资理财
    • 【入门】股票入门基础
    • 【股初】找准股票入场时机
    • 【股初】合理规避风险
    • 【股初】“好公司”投资法
    • 【股初】财务三表分析
    • 【股初】“捡烟蒂”投资法
    • 【股初】构建白马组合
    • 【股进】选择好生意
    • 【股进】好公司——商业逻辑
  • 工具箱
    • A Guide of Visual Studio Code
    • hexo搭建博客
Powered by GitBook
On this page
  • Support USB on LEDE
  • Step 1: Ensure dts file has enabled ehci and ohci
  • Step 2: Enable usb support on linux kernel
  • Step 3: Select usb kernel module and dependency libraries
  • Step 4: Support automatic mount and led indicator
  • Step 5: Rebuild firmware
  • Support SD Card on LEDE
  • Step 1: Ensure dts file has enabled sdhci
  • Step 2: Select SD card kernel module

Was this helpful?

  1. OpenWRT系统

配置DTS支持USB存储

Support USB on LEDE

Step 1: Ensure dts file has enabled ehci and ohci

&ehci {
    status = "okay";
};

&ohci {
    status = "okay";
};

Step 2: Enable usb support on linux kernel

$ make kernel_menuconfig

Select in turn:

Device Drivers  --->
    [*] USB support  --->

Step 3: Select usb kernel module and dependency libraries

$ make menuconfig

Select in turn:

Kernel modules  --->
    USB Support  --->  
        -*- kmod-usb-core  
        <*> kmod-usb-ledtrig-usbport  
        <*> kmod-usb-ohci 
        <*> kmod-usb-storage 
        <*> kmod-usb2
    Filesystems  --->
        <*> kmod-fs-exfat  
        <*> kmod-fs-ext4  
        <*> kmod-fs-vfat  
Utilities  --->  
    Filesystem  --->  
        -*- ntfs-3g  
        <*> ntfs-3g-utils
Libraries  --->  
    <*> libblkid  
    -*- libuuid

Step 4: Support automatic mount and led indicator

Related files on the toplevel directory of the buildroot, as follow:

files/
├── etc
│   ├── config
│   │   └── system
│   └── hotplug.d
│       └── block
│           └── 10-mount
└── usr
    └── sbin
        └── blkid

Step 5: Rebuild firmware

$ make V=s

Support SD Card on LEDE

Step 1: Ensure dts file has enabled sdhci

&sdhci {
    status = "okay";
};

Step 2: Select SD card kernel module

Kernel modules  --->
    Other modules  ---> 
        -*- kmod-mmc  
         -*- kmod-sdhci  
        <*> kmod-sdhci-mt7620

Besides, it also needs to add filesystem module and dependency libraries and so on which has done on supported USB of Step 3 and Step 4. If you have done supported USB, then you should rebuild the firmware directly, otherwise, please repeat the above Step 3 and Step 4.

PreviousRemote Command Execution on GL.iNet's mini-routersNextOpenWRT procd启动过程

Last updated 5 years ago

Was this helpful?