Skip to content

Commit

Permalink
Merge pull request miraclelinux#67 from hiraku-wfs/pr-warrior-revise-…
Browse files Browse the repository at this point in the history
…doc-rpi3

doc/raspberrypi3.md: revise SETUP document
  • Loading branch information
masami256 authored May 7, 2020
2 parents d9f575d + 11a74c4 commit 4f36abd
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions doc/raspberrypi3.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
# Raspberry Pi

EMLinux for Raspberry Pi is __not__ officlally supported. However Raspberry Pi is popular device so it would be nice to test EMLinux on it.
EMLinux for Raspberry Pi is __not__ officially supported. However Raspberry Pi is a popular device so it would be nice to test and evaluate EMLinux on it.
This document describe how to setup EMLinux for Raspberry Pi 3 model B+.

## Directory structures
## Build EMLinux

1. Basic setup

In this document, following directory structure is used.
Run following command if you have an EMLinux commercial release.

```
build/
downloads/
emlinux/repos/meta-debian
emlinux/repos/meta-debian-extended
emlinux/repos/meta-emlinux
emlinux/repos/poky
firmware
linux-firmware
$ tar zxf emlinux-2.1-202005.tar.gz
$ cd emlinux-2.1-202005/
$ source setup-emlinux build
```

## Build EMLinux

1. Basic setup

Run following command.
Otherwise, run following command instead.

```
$ source repos/meta-emlinux/scripts/setup-emlinux build
$ mkdir emlinux
$ cd emlinux/
$ mkdir repos
$ git clone -b warrior https://github.com/miraclelinux/meta-emlinux.git repos/meta-emlinux
$ source setup-emlinux build
```

2. Build image

In the build directroy, you can build image. You needs to set raspberrypi3-64 to MACHINE variable.

```
$ MACHINE=raspberrypi3-64 bitbake core-image-minimal
$ echo 'MACHINE = "raspberrypi3-64"' >> conf/local.conf
$ bitbake core-image-minimal
```

## Create sdcard image
Expand Down Expand Up @@ -196,9 +194,9 @@ root@raspberrypi3-64:~# ip a
link/ether b8:27:eb:70:fa:87 brd ff:ff:ff:ff:ff:ff
```

## Use network
## Use of network

### Use eth0
### Use of eth0

You can setup ip address as usual.

Expand All @@ -213,7 +211,7 @@ root@raspberrypi3-64:~# ip addr show eth0
valid_lft forever preferred_lft forever
```

### Use wlan0
### Use of wlan0

1. Add wpa-supplicant to image
You need to add following option in your conf/local.conf.
Expand Down Expand Up @@ -249,4 +247,4 @@ network={

5. Setup ip address to device

This setup is same as eth0 use wlan0 instead of eth0.
This setup is almost same as eth0 case. Use wlan0 instead of eth0.

0 comments on commit 4f36abd

Please sign in to comment.