OpenWRT on Orange Pi Zero using Armbian uBoot and Kernel
Guide: | |
1. Install Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a uSD card using Win32DiskImager or Ubuntu Disk Image Writer | |
2. (Optional) Mount the uSD in Ubuntu Laptop and expand the partition using GParted. | |
3. Delete everything from uSD except /boot, /lib/modules and /lib/firmware. | |
4. Mount openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt | |
#mount -o loop openwrt-15.05.1-sunxi-root.ext4 /mnt/openwrt | |
5. Copy over the contents of /mnt/openwrt to the root of uSD by merging folders when prompted. | |
6. Modify /etc/init.d/boot and add 'ulimit -n 10000' before '/sbin/kmloader' command (line39). | |
7. Change directory to /lib/modules/3.4.113-sun8i - "#cd /lib/modules/3.4.113-sun8i" | |
8. Create link-ko.sh - "#touch link-ko.sh" | |
9. Edit link-ko.sh - "#nano link-ko.sh" | |
10. Copy the below contents into that file, save (Ctrl + O) and close (Ctrl + X) file. | |
for x in `find -name *.ko` | |
do | |
ln -s $x . | |
done | |
11. Then make link-ko.sh executable - "#chmod +x link-ko.sh" | |
12. Execute link-ko.sh - "#./link-ko.sh" | |
13. To enable WiFi - #printf "xradio_wlan\nxradio_wlan" >> /etc/modules.d/xradio_wlan | |
14. Replace Lan section in /etc/config/network with the below. (You can customize the below to suit you LAN and Router configuration.) | |
Option 1: | |
config interface 'lan' | |
option proto 'static' | |
option netmask '255.255.255.0' | |
option ipaddr '192.168.1.1' | |
option ifname 'eth0' | |
Option 2: | |
config interface 'lan' | |
option proto 'dhcp' | |
option ifname 'eth0' | |
15. Transfer the uSD to OPiZero and power up. | |
16. 'telnet 192.168.1.1', update password using '#passwd root' and then exit. | |
If you are unable to login, | |
wait for 10 mins to complete first boot up, | |
switch off OPiZero, | |
remove uSD and | |
repeat steps from network configuration using /etc/config/network | |
17. 'ssh 192.168.1.1' - peace. | |
Notes: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment