text 使用Armbian uBoot和内核的Orange Pi Zero上的OpenWRT

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 使用Armbian uBoot和内核的Orange Pi Zero上的OpenWRT相关的知识,希望对你有一定的参考价值。


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:


以上是关于text 使用Armbian uBoot和内核的Orange Pi Zero上的OpenWRT的主要内容,如果未能解决你的问题,请参考以下文章

arm盒子快速移植OpenWrt rootfs

learning armbian steps(11) ----- armbian 源码分析

S5P210-uboot源码分析-uboot如何启动内核

如何从uboot读取mac,然户传递到内核中

uboot的作用和启动方式

uboot的作用和启动方式