README.md 2.17 KB
Newer Older
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
1
Note for developers: **To have SSH access to all Elphel's repositories clone this project using SSH**
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
2 3 4

Note for users: **Some already built firmware images are available [here](http://community.elphel.com/files/393/). Also check [User Manual](https://wiki.elphel.com/wiki/Tmp_manual).**

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
5
# elphel393
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
6 7 8
The project contains scripts for fetching and setting up build environment that will generate firmware images for Elphel393 camera systems.

It clones and configures several individual repositories, such as
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
9 10
* https://git.elphel.com/Elphel/linux-elphel
* https://git.elphel.com/Elphel/x393
Andrey Filippov's avatar
Andrey Filippov committed
11 12 13
* http://git.yoctoproject.org
* http://git.openembedded.org
* https://github.com/Xilinx/meta-xilinx
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
14
* https://git.elphel.com/Elphel/meta-elphel393
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
15

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
16
The same script (*setup.py*) pulls updates from these repositories
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
17

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
18
### Get environment
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
19
#### Dependencies
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
20
* poky might require installing some packages, please check with the [Yocto Poky Manual](http://www.yoctoproject.org/docs/2.0/mega-manual/mega-manual.html)
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
21
* extra requirement
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
22

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
23
```sh
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
24
$ sudo apt install python-numpy
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
25
```
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
26

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
27
#### Get sources
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
28
```sh
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
29
$ ./setup.py
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
30
```
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
31

32
### Build targets
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
33
```sh
34 35
$ cd poky
$ . ./oe-init-build-env
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
36 37
$ bitbake u-boot device-tree linux-xlnx core-image-elphel393
```
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
38

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
39
* the results are in *poky/build/tmp/deploy/images/elphel393/*
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
40
* for more details, read [**this guide**][1] at [https://wiki.elphel.com][1]
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
41

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
42
[1]: http://wiki.elphel.com/index.php?title=Poky_2.0_manual
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
43 44 45 46 47 48 49 50 51

### Update and refresh environment
```sh
$ ./setup.py
```
### Rebuild targets
```sh
$ cd poky
$ . ./oe-init-build-env
52
$ (if changes in the kernel) bitbake linux-xlnx -c link -f; bitbake linux-xlnx
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
53
$ (if changes in the rootfs and the kernel) bitbake core-image-elphel393
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
54 55
```

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
56 57
### More info

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
58
[**Development for 10393**](https://wiki.elphel.com/wiki/Development_for_10393)
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
59

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
60 61
### Support

62
support-list@support.elphel.com
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
63

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
64 65 66 67 68 69 70 71 72 73 74 75
### Note 1: Switching between GIT protocols (SSH or HTTPS)

To have access to related Elphel's projects over **SSH** clone this project using **SSH**.

For **HTTPS** clone with **HTTPS**.

To change git protocol for all Elphel's projects - change the *remote* of this project accordingly, then run *setup.py*:
```sh
$ git remote -v
$ git remote set-url ...
$ ./setup.py
```