Changes

Jump to: navigation, search

XUELK-AN-004: Running OpenWrt distribution

183 bytes added, 14:43, 21 February 2017
Mounting the OpenWrt file system on the target
sudo cp -aRv build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/root-brcm2708/* /opt/nfsroot/openwrt/root-brcm2708/
</pre>
Boot the target using Yocto root file system as root file system, mounted over NFS. Once they target has completed the boot process, mount the directory including OpenWrt root file system, and the <code>ext3</code> partition of the microSD card.
<pre>
...
root@sbc-lynx:~# mkdir /mnt/tmp
root@sbc-lynx:~# mkdir /mnt/tmp2
root@sbc-lynx:~# history | grep mount192.168.0.80:/opt/nfsroot/openwrt/root-brcm2708 /mnt/tmp2</pre> Then mount the <code>ext3</code> partition of the microSD card.<pre>
root@sbc-lynx:~# mount -t auto /dev/mmcblk0p2 /mnt/tmp/
</pre>Erase all of the files it cointains.<pre>root@sbc-lynx:~# mount 192.168.0.80:rm -rf /optmnt/nfsroottmp/openwrt/root-brcm2708 *</mntpre>Copy the files of the OpenWrt file systems into the <code>ext4</tmp2code> partition of the microSD card.<pre>
root@sbc-lynx:~# cp -aRv /mnt/tmp2/* /mnt/tmp
'/mnt/tmp2/bin/uclient-fetch' -> '/mnt/tmp/bin/uclient-fetch'
root@sbc-lynx:~# sync
</pre>
 
==Booting with OpenWrt root file system==
That target can be rebooted with the [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)#Target_setup_and_first_boot|default configuration]], in order to mount the root file system from the <code>ext3</code> partition of the microSD card:
4,650
edits

Navigation menu