...
- RPi 4 B+ 8GB
- 128 GB SD card
- Networking cable
- Laptop (these instructions are for a Mac, and we will soon improve them for Windows and Linux, but you probably can make some adjustments and get it working)
- Need Golang installed on your laptop (1.15.3)
- need docker community version 2.5.0 (or later)
More Detail and where to get the items
...
- Need Go installed (version 1.15.3)
- Need docker community (version 2.5.0.1)
Step 0: Setting up your SD card
...
- find your SD cards disk and unmount it
diskutil list
diskutil unmountDisk /dev/ //mine is diskutil unmountDisk /dev/disk2 - We are going to write 0's (zeros) 100 MB
sudo dd if=/dev/zero of=/dev/ bs=1m count=1000 //mine is sudo dd if=/dev/zero of=/dev/disk2 bs=1m count=1000
The above step can take a couple of minutes with out feedback from the command line (mine took just over one minute)
Step 1: Install EVE on Raspberry
...
Pi
EVE will run act as the OS on for the RPi. You then can add your own containerized OS and application(s) on top of it.
Prepare Raspberry image
...
- On your computer, navigate in your terminal application to the location where you would like place EVE and Eden
- Clone
...
- Eden's github
git clone https://github.com/lf-edge/eden.git
cd eden
...
Build Eden
make
...
clean <--
...
This cleans up if you have
...
already built something and does nothing if you haven't
make build
./eden config add default --devmodel RPi4
*****
./eden config set default --key eve.hv --value=xen ***new line***
when I added in the above, it didn't boot... haven't tried the other combination
...
Add the xen flag if you want to use Xen as your hypervisor, ignore if you want to use kvm
./eden config add second --devmodel RPi4
...
...
./eden config set
...
default --key eve.hv --value=xen
./eden setup
./eden start
Then you will have an .img that can be transferred to SD card: installing-images.For example for The output of 'setup' will produce the file 'live.img, which is the image file that you will put on the RPi's SD card
Copy the Image to the SD Card
MacOS:
diskutil list
##your
diskutil unmountDisk /dev/<your_disk_name> <--your disk might be unmounted already if you haven't removed
it in after step 0
path
sudo dd bs=1m if=fullpath_of_your_image.img of=/dev/
rdiskN; sync //mine sudo dd bs=1m if=/Users/aaron/Desktop/LFEdge/EVE/EVE_RPi4/eden/dist/default-images/eve/live.img of=/dev/disk2; sync<your_disk_name; sync
disk name>*unplug all things
sudo diskutil eject /dev/<your_disk_name
Step 2: Onboarding the RPi and Running a Small Application to Test It
- unplug anything attached to the USB on the RPi
- Put in SD card into Raspberry and power it on
...
- Onboard our RPi into eden so that we can control it remotely
On the terminal window of your computer, type:./eden eve onboard
...
$$$ talk about plugging in a monitor to get the IP address (can eden give us the IP address)
yes it can with eden status
...
- Deploy the nginx server, as a test
./eden pod deploy -p 8028:80 docker://nginx
...
- run eden's status command to get the RPi's IP address
It is listed under "EVE REMOTE IPs"./eden status
- Open a browser and point it to http://EVE's_IP_Address:8028
You can try to boot the Windows 10 ARM64 image on RPi (you need not less than 32GB SD card):
...