Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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

...

  1. find your SD cards disk and unmount it

    diskutil list
    diskutil unmountDisk /dev/ //mine is diskutil unmountDisk /dev/disk2

  2. 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

...

  1. On your computer, navigate in your terminal application to the location where you would like place EVE and Eden
  2. Clone

...

  1. Eden's github

    git clone https://github.com/lf-edge/eden.git
    cd eden

...

  1. Build Eden

    make

...

  1. clean   <--

...

  1. This cleans up if you have

...

  1. 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

...

  1. 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

...


...

  1. ./eden config set

...

  1. default --key eve.hv --value=xen
    ./eden setup
    ./eden start

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

Then you will have an .img that can be transferred to SD card: installing-images.For example for MacOS:

diskutil list
diskutil unmountDisk /dev/<your_disk_name>
##your <--your disk might be unmounted already if you haven't removed it in after step 0
sudo dd bs=1m if=
pathfullpath_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 
sudo diskutil eject /dev/<your
disk name>*unplug all things _disk_name

Step 2: Onboarding the RPi and Running a Small Application to Test It

  1. unplug anything attached to the USB on the RPi
  2. Put in SD card into Raspberry and power it on

...

  1. Onboard our RPi into eden so that we can control it remotely
    On the terminal window of your computer, type:

    ./eden eve onboard

...

  1. Deploy the nginx server, as a test

    ./eden pod deploy -p 8028:80 docker://nginx

...

  1. run eden's status command to get the RPi's IP address
    It is listed under "EVE REMOTE IPs"

    ./eden status

  2. Open a browser and point it to http://EVE's_IP_Address:8028

$$$ talk about plugging in a monitor to get the IP address (can eden give us the IP address)
yes it can with eden status

...




You can try to boot the Windows 10 ARM64 image on RPi (you need not less than 32GB SD card):

...