Jump to content

Building OpenWRT images for Orange Pi Zero with the Armbian kernel


Recommended Posts

Posted

For you who want to build your own firmware here are the packages you will need:

kmod-usb-storage kmod-usb-net kmod-usb-net-cdc-ether kmod-usb-net-cdc-mbim kmod-usb-net-cdc-ncm kmod-usb-net-huawei-cdc-ncm kmod-usb-net-qmi-wwan kmod-usb-net-rndis kmod-usb-net-sierrawireless kmod-usb-ohci kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-qualcomm kmod-usb-serial-sierrawireless kmod-usb-serial-wwan kmod-usb-uhci kmod-usb-wdm luci luci-proto-3g usb-modeswitch kmod-usb-acm kmod-usb-net-hso comgt-ncm usbutils libc blkid kmod-usb-storage kmod-usb-storage-extras kmod-usb2 kmod-ath9k-htc kmod-rt2x00-usb kmod-cfg80211 kmod-mac80211 kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb kmod-crypto-arc4 kmod-crypto-aes kmod-crypto-core iw hostapd-common wpad-mini ip-bridge kmod-bridge kmod-usb-net-dm9601-ether

That will build a firmware with these features:

  1. Luci web interface
  2. Supports for usb modems
  3. Supports for both ethernet and wifi so you will have no problem connecting your ethernet cable and wifi together without having to turn off either one of those. FYI kmod-bridge solves that problem that we've been trying to deal with.
  4. Supports for USB WiFi

Thanks to Mr Fuad Salim the creator of pulpstone.pw for the list of packages.

FYI:
If you build a firmware using these packages, you can skip step 14 in this tutorial https://gist.github.com/praveenbm5/3c81692e6b2b651bb450fb7fc45dff4d

On the first boot you will need an ethernet cable to telnet to the router and then you can just enable the wifi by editing /etc/config/wireless

Posted
1 hour ago, hillz said:

Supports for both ethernet and wifi so you will have no problem connecting your ethernet cable and wifi together without having to turn off either one of those. FYI kmod-bridge solves that problem that we've been trying to deal with.

 

Are you talking about creating a bridge out of wired and wireless interface? Something like this in plain linux:

 

Either adding this to /etc/network/interfaces on Debian based distros:

auto br0
iface br0 inet dhcp
bridge_ports eth0 wlan0

Or using nmcli to create such a bridge device on modern Linux distros:

cd /etc/network/ && ln -sf interfaces.network-manager interfaces
nmcli con add type bridge con-name br0 ifname br0
bridgeport=1
IfaceList="eth0 wlan0"
for i in ${IfaceList} ; do
	echo -e "${i}, \c"
	nmcli con add type bridge-slave con-name br0-port${bridgeport} ifname ${i} master br0
	let "bridgeport++"
done
nmcli con mod br0 ipv4.method auto
# This would be the static variant instead:
# nmcli con mod br0 ipv4.addresses "192.168.1.200/24 192.168.1.1"
# nmcli con mod br0 ipv4.method manual
nmcli con up br0
brctl show 
nmcli con show

 

Posted
16 minutes ago, tkaiser said:

 

Are you talking about creating a bridge out of wired and wireless interface? Something like this in plain linux:

 

Either adding this to /etc/network/interfaces on Debian based distros:


auto br0
iface br0 inet dhcp
bridge_ports eth0 wlan0

Or using nmcli to create such a bridge device on modern Linux distros:


nmcli con add type bridge con-name br0 ifname br0
bridgeport=1
IfaceList="eth0 wlan0"
for i in ${IfaceList} ; do
	echo -e "${i}, \c"
	nmcli con add type bridge-slave con-name br0-port${i} ifname ${REPLY} master br0
	let "bridgeport++"
done
nmcli con mod br0 ipv4.method auto
# This would be the static variant instead:
# nmcli con mod br0 ipv4.addresses "192.168.1.200/24 192.168.1.1"
# nmcli con mod br0 ipv4.method manual
nmcli con up br0
brctl show 
nmcli con show

 

I'm not a tech savvy myself but what I mean is that with the old openwrt firmware, when you connect the opiz with an ethernet cable and then you try to connect to the wifi as well, the connection will be terminated both the wifi and the ethernet and your router will not be accessible anymore. With this the problem is gone.

EDIT:
Anyway can you help me with this ? 

 

Posted
3 minutes ago, hillz said:

when you connect the opiz with an ethernet cable and then you try to connect to the wifi as well, the connection will be terminated both the wifi and the ethernet and your router will not be accessible anymore

 

When you're talking about 'router' and 'opiz'... are these two different machines or is OPi Zero in this case the 'router'?

Posted
5 minutes ago, tkaiser said:

 

When you're talking about 'router' and 'opiz'... are these two different machines or is OPi Zero in this case the 'router'?

I mean the same device, opiz = router. Sorry for the confusion

Posted
12 minutes ago, hillz said:

I mean the same device, opiz = router.

 

Ok, then I simply lack understanding (a 'router' bridging devices). But doesn't matter anyway.

Posted

is it safe to attach a motherboard speaker like this directly to the GPIO pins on the pi zero ? Sorry I'm not an electronic guy, I just want to have sound notifications on openwrt.

Spoiler

sku_311781_1.jpg.5e0675fae0e7ef632977f72035532769.jpg

 

Posted

Since it is a piezo speaker, not an 8ohms speaker, that should be fine.

But in case of 8ohms speaker, you would need an amplifier.

 

Posted

I have a problem when installing kmod-net-rtl8188eu for TP-Link WN725N, it says failed to find a module named r8188eu
Here's the log:

Spoiler

root@OpenWrt:~# opkg install kmod-net-rtl8188eu
Installing kmod-net-rtl8188eu (3.18.23-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/sunxi/generic/packages/base/kmod-net-rtl8188eu_3.18.23-1_sunxi.ipk.
Configuring kmod-net-rtl8188eu.
failed to stat /lib/modules/3.4.113-sun8i/tda10086.ko
failed to stat /lib/modules/3.4.113-sun8i/tda18212.ko
failed to stat /lib/modules/3.4.113-sun8i/tda18218.ko
failed to stat /lib/modules/3.4.113-sun8i/tda18271.ko
failed to stat /lib/modules/3.4.113-sun8i/tda18271c2dd.ko
failed to stat /lib/modules/3.4.113-sun8i/tda665x.ko
failed to stat /lib/modules/3.4.113-sun8i/tda8083.ko
failed to stat /lib/modules/3.4.113-sun8i/tda8261.ko
failed to stat /lib/modules/3.4.113-sun8i/tda826x.ko
failed to stat /lib/modules/3.4.113-sun8i/tda827x.ko
failed to stat /lib/modules/3.4.113-sun8i/tda8290.ko
failed to stat /lib/modules/3.4.113-sun8i/tda9887.ko
failed to stat /lib/modules/3.4.113-sun8i/tea5761.ko
failed to stat /lib/modules/3.4.113-sun8i/tea5767.ko
failed to stat /lib/modules/3.4.113-sun8i/tef6862.ko
failed to stat /lib/modules/3.4.113-sun8i/thmc50.ko
failed to stat /lib/modules/3.4.113-sun8i/ti_usb_3410_5052.ko
failed to stat /lib/modules/3.4.113-sun8i/timb_dma.ko
failed to stat /lib/modules/3.4.113-sun8i/timblogiw.ko
failed to stat /lib/modules/3.4.113-sun8i/tm6000-alsa.ko
failed to stat /lib/modules/3.4.113-sun8i/tm6000-dvb.ko
failed to stat /lib/modules/3.4.113-sun8i/tm6000.ko
failed to stat /lib/modules/3.4.113-sun8i/tmiofb.ko
failed to stat /lib/modules/3.4.113-sun8i/tmp102.ko
failed to stat /lib/modules/3.4.113-sun8i/tmp401.ko
failed to stat /lib/modules/3.4.113-sun8i/tmp421.ko
failed to stat /lib/modules/3.4.113-sun8i/touchit213.ko
failed to stat /lib/modules/3.4.113-sun8i/touchright.ko
failed to stat /lib/modules/3.4.113-sun8i/touchwin.ko
failed to stat /lib/modules/3.4.113-sun8i/tps6507x-ts.ko
failed to stat /lib/modules/3.4.113-sun8i/trancevibrator.ko
failed to stat /lib/modules/3.4.113-sun8i/ts_bm.ko
failed to stat /lib/modules/3.4.113-sun8i/ts_fsm.ko
failed to stat /lib/modules/3.4.113-sun8i/ts_kmp.ko
failed to stat /lib/modules/3.4.113-sun8i/tsc2005.ko
failed to stat /lib/modules/3.4.113-sun8i/tsc2007.ko
failed to stat /lib/modules/3.4.113-sun8i/tsc40.ko
failed to stat /lib/modules/3.4.113-sun8i/ttpci-eeprom.ko
failed to stat /lib/modules/3.4.113-sun8i/tu_ts.ko
failed to stat /lib/modules/3.4.113-sun8i/tua6100.ko
failed to stat /lib/modules/3.4.113-sun8i/tuner-simple.ko
failed to stat /lib/modules/3.4.113-sun8i/tuner-types.ko
failed to stat /lib/modules/3.4.113-sun8i/tuner-xc2028.ko
failed to stat /lib/modules/3.4.113-sun8i/tuner.ko
failed to stat /lib/modules/3.4.113-sun8i/tunnel6.ko
failed to stat /lib/modules/3.4.113-sun8i/tveeprom.ko
failed to stat /lib/modules/3.4.113-sun8i/tvp5150.ko
failed to stat /lib/modules/3.4.113-sun8i/tw9910.ko
failed to stat /lib/modules/3.4.113-sun8i/u132-hcd.ko
failed to stat /lib/modules/3.4.113-sun8i/ucd9000.ko
failed to stat /lib/modules/3.4.113-sun8i/ucd9200.ko
failed to stat /lib/modules/3.4.113-sun8i/udp_diag.ko
failed to stat /lib/modules/3.4.113-sun8i/ump.ko
failed to stat /lib/modules/3.4.113-sun8i/usb8xxx.ko
failed to stat /lib/modules/3.4.113-sun8i/usbip-core.ko
failed to stat /lib/modules/3.4.113-sun8i/usbip-host.ko
failed to stat /lib/modules/3.4.113-sun8i/usblcd.ko
failed to stat /lib/modules/3.4.113-sun8i/usbled.ko
failed to stat /lib/modules/3.4.113-sun8i/usblp.ko
failed to stat /lib/modules/3.4.113-sun8i/usbsevseg.ko
failed to stat /lib/modules/3.4.113-sun8i/usbtouchscreen.ko
failed to stat /lib/modules/3.4.113-sun8i/usbvision.ko
failed to stat /lib/modules/3.4.113-sun8i/uvcvideo.ko
failed to stat /lib/modules/3.4.113-sun8i/ves1820.ko
failed to stat /lib/modules/3.4.113-sun8i/ves1x93.ko
failed to stat /lib/modules/3.4.113-sun8i/veth.ko
failed to stat /lib/modules/3.4.113-sun8i/vfe_os.ko
failed to stat /lib/modules/3.4.113-sun8i/vfe_subdev.ko
failed to stat /lib/modules/3.4.113-sun8i/vfe_v4l2.ko
failed to stat /lib/modules/3.4.113-sun8i/vhci-hcd.ko
failed to stat /lib/modules/3.4.113-sun8i/videobuf-core.ko
failed to stat /lib/modules/3.4.113-sun8i/videobuf-dma-contig.ko
failed to stat /lib/modules/3.4.113-sun8i/videobuf-dvb.ko
failed to stat /lib/modules/3.4.113-sun8i/videobuf-vmalloc.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_realm.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_recent.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_sctp.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_set.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_socket.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_statistic.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_string.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_tcpmss.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_u32.ko
failed to stat /lib/modules/3.4.113-sun8i/xts.ko
failed to stat /lib/modules/3.4.113-sun8i/yealink.ko
failed to stat /lib/modules/3.4.113-sun8i/yurex.ko
failed to stat /lib/modules/3.4.113-sun8i/zaurus.ko
failed to stat /lib/modules/3.4.113-sun8i/zd1201.ko
failed to stat /lib/modules/3.4.113-sun8i/zd1211rw.ko
failed to stat /lib/modules/3.4.113-sun8i/zl10036.ko
failed to stat /lib/modules/3.4.113-sun8i/zl10039.ko
failed to stat /lib/modules/3.4.113-sun8i/zl10353.ko
failed to stat /lib/modules/3.4.113-sun8i/zl6100.ko
failed to stat /lib/modules/3.4.113-sun8i/zr364xx.ko
failed to find a module named r8188euib/modules/3.4.113-sun8i/videobuf2-core.ko
failed to stat /lib/modules/3.4.113-sun8i/videobuf2-memops.ko
failed to stat /lib/modules/3.4.113-sun8i/videobuf2-vmalloc.ko
failed to stat /lib/modules/3.4.113-sun8i/visor.ko
failed to stat /lib/modules/3.4.113-sun8i/vivopay-serial.ko
failed to stat /lib/modules/3.4.113-sun8i/vt1211.ko
failed to stat /lib/modules/3.4.113-sun8i/w1-gpio-board.ko
failed to stat /lib/modules/3.4.113-sun8i/w1-gpio.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_bq27000.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_ds2408.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_ds2423.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_ds2431.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_ds2433.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_ds2760.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_ds2780.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_ds2781.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_smem.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_sunxi.ko
failed to stat /lib/modules/3.4.113-sun8i/w1_therm.ko
failed to stat /lib/modules/3.4.113-sun8i/w83627ehf.ko
failed to stat /lib/modules/3.4.113-sun8i/w83627hf.ko
failed to stat /lib/modules/3.4.113-sun8i/w83781d.ko
failed to stat /lib/modules/3.4.113-sun8i/w83791d.ko
failed to stat /lib/modules/3.4.113-sun8i/w83792d.ko
failed to stat /lib/modules/3.4.113-sun8i/w83793.ko
failed to stat /lib/modules/3.4.113-sun8i/w83l785ts.ko
failed to stat /lib/modules/3.4.113-sun8i/w83l786ng.ko
failed to stat /lib/modules/3.4.113-sun8i/w90p910_ts.ko
failed to stat /lib/modules/3.4.113-sun8i/wacom.ko
failed to stat /lib/modules/3.4.113-sun8i/wacom_w8001.ko
failed to stat /lib/modules/3.4.113-sun8i/whiteheat.ko
failed to stat /lib/modules/3.4.113-sun8i/wimax.ko
failed to stat /lib/modules/3.4.113-sun8i/wire.ko
failed to stat /lib/modules/3.4.113-sun8i/wl1251.ko
failed to stat /lib/modules/3.4.113-sun8i/wl1251_sdio.ko
failed to stat /lib/modules/3.4.113-sun8i/wl1251_spi.ko
failed to stat /lib/modules/3.4.113-sun8i/wl1273-core.ko
failed to stat /lib/modules/3.4.113-sun8i/wl12xx.ko
failed to stat /lib/modules/3.4.113-sun8i/wl12xx_sdio.ko
failed to stat /lib/modules/3.4.113-sun8i/wl12xx_spi.ko
failed to stat /lib/modules/3.4.113-sun8i/wm8775.ko
failed to stat /lib/modules/3.4.113-sun8i/xc4000.ko
failed to stat /lib/modules/3.4.113-sun8i/xc5000.ko
failed to stat /lib/modules/3.4.113-sun8i/xfrm6_mode_beet.ko
failed to stat /lib/modules/3.4.113-sun8i/xfrm6_mode_ro.ko
failed to stat /lib/modules/3.4.113-sun8i/xfrm6_mode_transport.ko
failed to stat /lib/modules/3.4.113-sun8i/xfrm6_mode_tunnel.ko
failed to stat /lib/modules/3.4.113-sun8i/xfrm6_tunnel.ko
failed to stat /lib/modules/3.4.113-sun8i/xfs.ko
failed to stat /lib/modules/3.4.113-sun8i/xor.ko
failed to stat /lib/modules/3.4.113-sun8i/xpad.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_AUDIT.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_CHECKSUM.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_CLASSIFY.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_CONNSECMARK.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_DSCP.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_HL.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_IDLETIMER.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_LED.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_NFLOG.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_NFQUEUE.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_NOTRACK.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_RATEEST.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_SECMARK.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_TCPOPTSTRIP.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_TEE.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_TPROXY.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_TRACE.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_addrtype.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_cluster.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_connbytes.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_connlimit.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_connmark.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_cpu.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_dccp.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_devgroup.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_dscp.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_ecn.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_esp.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_hashlimit.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_helper.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_hl.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_iprange.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_ipvs.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_length.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_nfacct.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_osf.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_owner.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_physdev.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_pkttype.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_policy.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_quota.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_quota2.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_rateest.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_realm.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_recent.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_sctp.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_set.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_socket.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_statistic.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_string.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_tcpmss.ko
failed to stat /lib/modules/3.4.113-sun8i/xt_u32.ko
failed to stat /lib/modules/3.4.113-sun8i/xts.ko
failed to stat /lib/modules/3.4.113-sun8i/yealink.ko
failed to stat /lib/modules/3.4.113-sun8i/yurex.ko
failed to stat /lib/modules/3.4.113-sun8i/zaurus.ko
failed to stat /lib/modules/3.4.113-sun8i/zd1201.ko
failed to stat /lib/modules/3.4.113-sun8i/zd1211rw.ko
failed to stat /lib/modules/3.4.113-sun8i/zl10036.ko
failed to stat /lib/modules/3.4.113-sun8i/zl10039.ko
failed to stat /lib/modules/3.4.113-sun8i/zl10353.ko
failed to stat /lib/modules/3.4.113-sun8i/zl6100.ko
failed to stat /lib/modules/3.4.113-sun8i/zr364xx.ko
failed to find a module named r8188eu

 

Can someone help me with this ?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines