Openwrt

How To Use GPIO to Simulate I2C-Bus

1.Add  kmod-i2c-gpio-custom  # make menuconfig Kernel modules  —>         I2C support  —>                <*> kmod-i2c-gpio-custom.  2.Rebuild the firmware. # make V=s J=8 3.Flash new firmware then insmod module root@OpenWrt:/# insmod i2c-dev [   76.360000] i2c /dev entries driver root@OpenWrt:/# insmod i2c-gpio-custom bus0=0,8,7 [  156.730000] Custom GPIO-based I2C driver… read more »

How to disable the UART console

Default Setting: root@OpenWrt:/# cat /etc/inittab  ::sysinit:/etc/init.d/rcS S boot ::shutdown:/etc/init.d/rcS K shutdown ttyATH0::askfirst:/bin/ash –login   If we want to disable the UART console: root@OpenWrt:/# cat /etc/inittab  ::sysinit:/etc/init.d/rcS S boot ::shutdown:/etc/init.d/rcS K shutdown #ttyATH0::askfirst:/bin/ash –login

How To Use USB Storage

1.make menuconfig   //Add supports. Base system —>     <*>block-mount               Kernel modules —> Filesystems —> <*> kmod-fs-ext4                     <*> kmod-fs-nfs                 <*> kmod-fs-nfs-common  <*> kmod-fs-ntfs               … read more »

How To Use CPU UART debug port

Sometime we will have the requirement to use Cpu Uart(debug port),most of the time the Uart want to connect a slave chip.But usually the slave chip usually will disturb the man chip start.There has some way to solve this issue. 1.Use a main chip's gpio to control the slave chip's power or reset pin. In the… read more »

Use 3G/4G modem

Openwrt Documents for use 3G-4G modem v1.0.0 Author´╝ÜJames Bond August 27, 2016 1 make menuconfig Kernel modules  —> USB Support  —> <*> kmod-usb-serial……. Support for USB-to-Serial converters <*> kmod-usb-serial-option…… Support for Option HSDPA modems -*- kmod-usb-serial-wwan…….. Support for GSM and CDMA modems Utilities  —> <*> comgt………………… Option/Vodafone 3G/GPRS control tool LuCI  —> Protocols  —> <*> luci-proto-3g…………………………. read more »

Sidebar