#Version 0.0.1
git clone https://github.com/MathiasStadler/armbian-sunxi-fel-boot
chmod +x run.sh
- cross the fingers
./run.sh
cd armbian-vagrant
vagrant ssh
chmod +x compile_and_start_felmode_orangepiplus.sh
./compile_and_start_felmode_orangepiplus.sh
- follow the instruction after the compile and image prepare phase
- for more details read and visit the linked website and repos
- if you find any .... please let me know that => stadler-mathias@web.de
- a screenshot , a one liner ... is more as enough
- take a big cup of coffee :-)
- check you already installed
- git
- vagrant
- virtualbox & Extension Pack for USB support
- sunxi
- orangepi one, plus, zero
- H3
- armbian
- convenience
- Boot a orangepi SBC without prepare every time a SD card for booting
- the vagrant box is already prepare with the usb filter
- details see here please => http://linux-sunxi.org/Xunlong_Orange_Pi_Plus
- The button marked SW3, located between the HDMI and SATA, triggers FEL mode when pressed during boot.
- (SW3 pulls the H3 BOOTSEL pin to low level.)
- To verify you have successfully entered FEL mode, check the output of fel version.
- For the Orange Pi Plus, it should look like:
lsusb
Bus 001 Device 002: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing mode
sudo sunxi-fel version
- the output should be for a orangepi plus SBC
AWUSBFEX soc=00001680(H3) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000
- orange pi SBC - i'm tested that with a orange pi plus
- Power adapter for SBC
- USB cable for the OTG USB plug
- serial console - I'm used a FTD1232 <=> usb adapter 3,3 Volt
- check/install necessary vagrant plugin
vagrant plugin list
we should have
- vagrant-disksize for armbian vagrant based env
- vagrant-vbguest for your convenience
vagrant plugin install vagrant-disksize
vagrant plugin install vagrant-vbguest
- clone the vagrant version of armbian vagrant
git clone https://github.com/igorpecovnik/lib.git armbian-vagrant
- echo "change to armbian-vagrant folder"
cd armbian-vagrant
-
save orginal Vagrantfile
cp Vargentfile Vagrantfile_save
-
replace Vagrantfile with Vagrantfile of these repo
cp ../Vagrantfile Vagrantfile
-
start vagrant box
- the next thing make the provisioning_script inside the Vagrantfile
vagrant up
- You can start every time from scratch
- Attention you loss all your work, data ....
- Think before and maybe make a copy before
- set a passwd for user ubuntu
passwd ubuntu
- logout out
exit
- stop vagrant box
vagrant halt
- get list all names of boxes/vm
vboxmanage list vms
- clone box
vboxmanage clonevm --snapshot "<CURRENT VM NAME>" --name "<NAME_OF_COPY>" --register
- e.g.
vboxmanage clonevm --snapshot "Armbian Builder" --name "Armbian Builder save" --register
- rerun a new box destroy > up
vagrant destroy
vagrant up
- execute the provisioning_script
- is start with the command vagrant up
- add a 2nd bridge network adapter with custom MAC address
- add USB filter for orange pi H3 OTG USB
- add the the copy command for fel-bbot.sh script and set the IP address from the 2nd network adapter. So is NFS boot possible.
Fel Mode [https://linux-sunxi.org/FEL]
- the command above should run inside the vagrant box
- follow the instruction after the compile phase
/compile.sh KERNEL_ONLY=no KERNEL_CONFIGURE=no BOARD=orangepiplus BRANCH=next PROGRESS_DISPLAY=plain RELEASE=xenial BUILD_DESKTOP=yes ROOTFS_TYPE=fel.
- IP_LINK_ADDR=$(ip -o address |grep -v inet6 | grep $(ip -o link |grep aa:bb:cc:dd:ee:ff|awk {'print $2'}|sed 's/://') | awk {'print $4'}|cut -d / -f 1)
sed -i "s/FEL_LOCAL_IP/$(echo $IP_LINK_ADDR)/g" userpatches/fel-boot.cmd
- please notice the double quotas for substitute the shell variable in the sed command