openwrt
移植lte模組
1.增加具體裝置驅動
文件位置:
/drivers/usb/serial/option.c
注意:是
target
開頭目錄下的檔案
在檔案中新增如下內容:
static conststruct usb_device_id option_ids = ,
... }
0x19d2 和 0x0536 是模組裝置的vid 和 pid
可以插入到linux系統上lsusb可以檢視其vid和pid的值。
3.編譯核心
驅動新增需要配置系統
linux
系統核心,配置方法如下:
make menuconfig
kernel modules—->
usb support --->
kernel modules —> usb support —> kmod-usb-acm.
kernel modules —> usb support —> kmod-usb-core.
kernel modules —> usb support —> kmod-usb-net.
kernel modules —> usb support —> kmod-usb-net-asix.
kernel modules —> usb support —> kmod-usb-net-cdc-eem.
kernel modules —> usb support —> kmod-usb-net-cdc-ether.
kernel modules —> usb support —> kmod-usb-net-cdc-mbin
kernel modules —> usb support —> kmod-usb-net-cdc-ncm
kernel modules —> usb support —> kmod-usb-net-cdc-subset
kernel modules —> usb support —> kmod-usb-net-dm9601-ether.
kernel modules —> usb support —> kmod-usb-net-hso.
kernel modules —> usb support —> kmod-usb-net-ipheth.
kernel modules —> usb support —> kmod-usb-net-kalmia.
kernel modules —> usb support —> kmod-usb-net-kaweth.
kernel modules —> usb support —> kmod-usb-net-mcs7830.
kernel modules —> usb support —> kmod-usb-net-pegasus.
kernel modules —> usb support —> kmod-usb-net-qmi-wwan.
kernel modules —> usb support —> kmod-usb-net-sierrawireless.
kernel modules —> usb support —> kmod-usb-ohci.
kernel modules —> usb support —> kmod-usb-serial.
kernel modules —> usb support —> kmod-usb-serial-ark3316.
kernel modules —> usb support —> kmod-usb-serial-ch341.
kernel modules —> usb support —> kmod-usb-serial-belkin.
kernel modules —> usb support —> kmod-usb-serial-cp210x.
kernel modules —> usb support —> kmod-usb-serial-cypress-m8.
kernel modules —> usb support —> kmod-usb-serial-ftdi.
kernel modules —> usb support —> kmod-usb-serial-ipw.
kernel modules —> usb support —> kmod-usb-serial-keyspan.
kernel modules —> usb support —> kmod-usb-serial-mct.
kernel modules —> usb support —> kmod-usb-serial-mos7720.
kernel modules —> usb support —> kmod-usb-serial-motorola-phone.
kernel modules —> usb support —> kmod-usb-serial-oti6858.
kernel modules —> usb support —> kmod-usb-serial-option.
kernel modules —> usb support —> kmod-usb-serial-p12303.
kernel modules —> usb support —> kmod-usb-serial-qualcomm.
kernel modules —> usb support —> kmod-usb-serial-sierrawireless.
kernel modules —> usb support —> kmod-usb-serial-ti-usb.
kernel modules —> usb support —> kmod-usb-serial-visor.
kernel modules —> usb support —> kmod-usb-serial-wwan.
kernel modules —> usb support —> kmod-usb-storage.
kernel modules —> usb support —> kmod-usb-storage-extras.
kernel modules —> usb support —> kmod-usb-serial-uhci.
kernel modules —> usb support —> kmod-usb-wdm
kernel modules —> usb support —> kmod-usb2.
kernel modules —> usb support —> kmod-usb2-pci
kernel modules —> usb support —> kmod-usb3.
這些可以多選,例如我就選了很多,可能我有的沒有選全,根據需求自己選擇需要的。
然後還需要進入核心編譯配置:
makekernel_menuconfig
進入配置介面
然後設定
ppp撥號的配置項:
注意上面選不出
*號的話選
m就行了 執行
make v=s
編譯成功截圖:
如果想在原始碼中一鍵編譯實現該功能,首先在原始碼
dl目錄下解壓
linux-3.10.14-p112871.tar.xz
然後重複上訴修改
option.c
,然後重新打包後,同時修改
.config
檔案,這樣就可以實現一鍵編譯了。
openwrt下載入snmp模組
加snmp 模組到openwrt 中去的解壓包檔案 net snmp 5.4.2.1.tar.gz 2 拷貝到伺服器z package 目錄下 在目錄下建立 netsnmp 檔案 192.168.2.32 home hbg openwrt a3 307 package netsnmp 3 解壓snm...
Openwrt移植IMX6之增加u boot支援
openwrt已經支援 imx6的 u boot,u boot位於 package boot uboot imx6,只需要針對自己的 u boot新增補丁,openwrt使用 quilt管理補丁 以下是製作補丁的全過程。參考文件 cat quiltrc quilt refresh args no t...
openwrt增加核心模組的方法
下面就是增加核心模組的方法了 進入package目錄,建立模組目錄 cd backfire package mkdir example 進入example目錄,建立makefile檔案和 路徑 cd example touch makefile mkdir src makefile具體內容如下 th...