mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-08-21 10:59:20 +00:00
Compare commits
139 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9af71ce9ea | ||
![]() |
e3432c373f | ||
![]() |
569a581445 | ||
![]() |
92dbff76e1 | ||
![]() |
3ab6dd4cfe | ||
![]() |
a0b432e072 | ||
![]() |
4fd8594af5 | ||
![]() |
115dbd0491 | ||
![]() |
6fdd9afe74 | ||
![]() |
523996658b | ||
![]() |
6800ee84dc | ||
![]() |
d36d3557cb | ||
![]() |
b87b4f240a | ||
![]() |
51882ad715 | ||
![]() |
20004ca451 | ||
![]() |
ac0d1ed9af | ||
![]() |
2e9f5d04e2 | ||
![]() |
0ecf4cb293 | ||
![]() |
02126e0236 | ||
![]() |
59cb3b4844 | ||
![]() |
ee6399a8ba | ||
![]() |
1541fcab8d | ||
![]() |
93dcc4a152 | ||
![]() |
54dd3e3219 | ||
![]() |
dca52c3026 | ||
![]() |
bfcbe120b4 | ||
![]() |
38a3af6a8d | ||
![]() |
ed8f2489e0 | ||
![]() |
fa05217ef2 | ||
![]() |
f85402d781 | ||
![]() |
7e3f9d53b0 | ||
![]() |
e8f80669d7 | ||
![]() |
9113d711f2 | ||
![]() |
ac2cd55e37 | ||
![]() |
0002d570d7 | ||
![]() |
0a018c6c45 | ||
![]() |
173596eec5 | ||
![]() |
bf69f2e974 | ||
![]() |
6ddf29045e | ||
![]() |
2d8aba9b37 | ||
![]() |
aa7858ae44 | ||
![]() |
0b05afb194 | ||
![]() |
ab60a8bc55 | ||
![]() |
450826b6bd | ||
![]() |
14f406ad6a | ||
![]() |
1d74fcb91d | ||
![]() |
13d0aaac0e | ||
![]() |
1e1f36f275 | ||
![]() |
36251114d8 | ||
![]() |
5e10559144 | ||
![]() |
0e7f516730 | ||
![]() |
b75fc91f8b | ||
![]() |
1b4d33d37d | ||
![]() |
6fdd892aaf | ||
![]() |
90dc5b54c0 | ||
![]() |
5b68cf097a | ||
![]() |
b50df06358 | ||
![]() |
84500a88d1 | ||
![]() |
854202a1b8 | ||
![]() |
e51a0811a1 | ||
![]() |
15fc1f447e | ||
![]() |
26b5f910b5 | ||
![]() |
5cc352bb44 | ||
![]() |
3315f6d9c4 | ||
![]() |
0f1c8dbf56 | ||
![]() |
f5df6e18a8 | ||
![]() |
ba78c80b97 | ||
![]() |
38bc2b4f91 | ||
![]() |
69af4b3819 | ||
![]() |
14de047663 | ||
![]() |
a310232e2c | ||
![]() |
93ea56d0ea | ||
![]() |
83dabb2842 | ||
![]() |
bf05e66ae8 | ||
![]() |
e1fb61e8a8 | ||
![]() |
480c11535d | ||
![]() |
b731b422fe | ||
![]() |
27cd425f5b | ||
![]() |
42f1c4bf01 | ||
![]() |
b3943870dc | ||
![]() |
4b4e22c355 | ||
![]() |
7675cc61fb | ||
![]() |
11b1867c73 | ||
![]() |
5cd03d19dd | ||
![]() |
26d7a4cb23 | ||
![]() |
cc80265997 | ||
![]() |
8434f3ee55 | ||
![]() |
ddde16216c | ||
![]() |
3e8499ecbf | ||
![]() |
42dc915436 | ||
![]() |
17ca2ccf0a | ||
![]() |
1e30f5120c | ||
![]() |
e30e15dc53 | ||
![]() |
3aaadf3f5f | ||
![]() |
161c8624e0 | ||
![]() |
56afd74720 | ||
![]() |
ed5a5033dd | ||
![]() |
2abbbbd1fa | ||
![]() |
fa44e0a7fd | ||
![]() |
1a3d063fec | ||
![]() |
49df049f2c | ||
![]() |
c657f6f3e7 | ||
![]() |
0a43cbdb05 | ||
![]() |
45274411e7 | ||
![]() |
d5ff3596b1 | ||
![]() |
95f82aa75d | ||
![]() |
fc4de4f02a | ||
![]() |
eae3659909 | ||
![]() |
6a05718235 | ||
![]() |
5055236725 | ||
![]() |
ac40e97670 | ||
![]() |
b9816f097d | ||
![]() |
73ac253a0f | ||
![]() |
dd3935a786 | ||
![]() |
f1461081f5 | ||
![]() |
fa79721f3d | ||
![]() |
9f6a339ec7 | ||
![]() |
fb235891e9 | ||
![]() |
d6f5c337e1 | ||
![]() |
63453e0a3f | ||
![]() |
76a4376a96 | ||
![]() |
ffbef150ca | ||
![]() |
acd76288de | ||
![]() |
bdf55189d9 | ||
![]() |
b2211540ea | ||
![]() |
e4e134f474 | ||
![]() |
cc8f77c5d6 | ||
![]() |
7ec8a232d1 | ||
![]() |
a426046bcc | ||
![]() |
f9f8b91b31 | ||
![]() |
ac8ebea80c | ||
![]() |
c13d403c8d | ||
![]() |
b785eafb4e | ||
![]() |
9d595d8bef | ||
![]() |
a57864c199 | ||
![]() |
96a5f891ba | ||
![]() |
2bf10f8a5c | ||
![]() |
c9f3212642 | ||
![]() |
35835e1e58 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/release
|
||||||
|
*.pem
|
12
Documentation/bluetooth.md
Normal file
12
Documentation/bluetooth.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Bluetooth
|
||||||
|
|
||||||
|
We support `bluetoothctl` on host. Later we want also support bluetooth trought UI.
|
||||||
|
All pairs and settings are persistent over reboots and updates.
|
||||||
|
|
||||||
|
If you want setup bluetooth on host, use the *bluetoothctl* utility.
|
||||||
|
|
||||||
|
## Scan devices
|
||||||
|
|
||||||
|
```
|
||||||
|
[bluetooth]# scan on
|
||||||
|
```
|
16
Documentation/boards/ova.md
Normal file
16
Documentation/boards/ova.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# OVA
|
||||||
|
|
||||||
|
The OVA stay for open virtual appliance. Currently we had remove the ova files and publish a vmdk virtual disk,
|
||||||
|
until we have better OVF template to generate our OVA. This vmdk work with (maybe you need convert the disk):
|
||||||
|
- HyperV
|
||||||
|
- VirtualBox
|
||||||
|
- VMware
|
||||||
|
|
||||||
|
## Virtual Machine
|
||||||
|
|
||||||
|
You can use this vmdk in a virtual machine with follow requirements:
|
||||||
|
- OS: Linux 64bit
|
||||||
|
- UEFI boot
|
||||||
|
- min. 1GB RAM
|
||||||
|
- 2x vcpu
|
||||||
|
- 1x Network
|
@@ -1,5 +1,23 @@
|
|||||||
# Raspberry PI
|
# Raspberry PI
|
||||||
|
|
||||||
|
Supported Hardware:
|
||||||
|
|
||||||
|
| Device | Board |
|
||||||
|
|--------|-----------|
|
||||||
|
| Raspberry Pi A+/B/B+| rpi |
|
||||||
|
| Raspberry Pi Zero | rpi |
|
||||||
|
| Raspberry Pi Zero W | rpi0-w |
|
||||||
|
| Raspberry Pi 2 B | rpi2 |
|
||||||
|
| Raspberry Pi 3 B/B+ | rpi3 / rpi3-64 |
|
||||||
|
|
||||||
|
## Limitation 64bit
|
||||||
|
|
||||||
|
The 64bit version is under development by RPi-Team. It work very nice but it could have some impacts. Actual we see that the SDcard access with ext4 are a bit slower than on 32bit.
|
||||||
|
|
||||||
## Serial console
|
## Serial console
|
||||||
|
|
||||||
For access to terminal over serial console, add `console=ttyAMA0,115200` to `cmdline.txt`.
|
For access to terminal over serial console, add `console=ttyAMA0,115200` to `cmdline.txt` and `enable_uart=1` into `config.txt`.
|
||||||
|
|
||||||
|
## Tweaks
|
||||||
|
|
||||||
|
If you don't need bluetooth, disabled it with add `dtoverlay=pi3-disable-bt` into `config.txt`.
|
||||||
|
21
Documentation/build.md
Normal file
21
Documentation/build.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Building
|
||||||
|
|
||||||
|
Running `sudo ./enter.sh` will get you into the build Docker container.
|
||||||
|
`make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external xy_defconfig`
|
||||||
|
|
||||||
|
## Scripts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Helpers
|
||||||
|
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external xy_defconfig`
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external menuconfig`
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external linux-menuconfig`
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external barebox-menuconfig`
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external busybox-menuconfig`
|
||||||
|
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external savedefconfig`
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external linux-update-defconfig`
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external barebox-update-defconfig`
|
||||||
|
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external busybox-update-config`
|
@@ -2,18 +2,23 @@
|
|||||||
|
|
||||||
## Automatic
|
## Automatic
|
||||||
|
|
||||||
You can format a USB stick with FAT32 and name it with `hassos-config`. The layout could be look like:
|
You can use a USB drive with HassOS to configure network options, ssh access to the host, and to install updates.
|
||||||
|
Format a USB stick with FAT32/EXT4/NTFS and name it `CONFIG`. Use the following directory structure within the USB drive:
|
||||||
|
|
||||||
```
|
```
|
||||||
network/
|
network/
|
||||||
modules/
|
modules/
|
||||||
known_hosts
|
authorized_keys
|
||||||
hassos-xy.rauc
|
hassos-xy.raucb
|
||||||
```
|
```
|
||||||
|
|
||||||
- On `network` folder can hold any kind of NetworkManager connections files.
|
- The `network` folder can contain any kind of NetworkManager connection files. For more information see [Network][network.md].
|
||||||
- The folder `modules` is for modules-load configuration files.
|
- The `modules` folder is for modules-load configuration files.
|
||||||
- `known_hosts` file activate debug SSH access of port `22222`.
|
- The `authorized_keys` file activates debug SSH access on port `22222`. See [Debugging Hassio][debug-hassio].
|
||||||
- For firmware updates you can but the `hassos-*.rauc` OTA update they should be install.
|
- The `hassos-*.raucb` file is a firmware OTA update which will be installed. These can be found on on the [release][hassos-release] page.
|
||||||
|
|
||||||
|
You can put this USB stick into the device and it will be read on startup. You can also trigger this process later over the
|
||||||
|
API/UI or by calling `systemctl restart hassos-config` on the host.
|
||||||
|
|
||||||
## Local
|
## Local
|
||||||
|
|
||||||
@@ -25,5 +30,11 @@ You can edit or create a `cmdline.txt` into your boot partition. That will be re
|
|||||||
|
|
||||||
The kernel module folder `/etc/modules-load.d` is persistent and you can add your config files there. See [Systemd modules load][systemd-modules].
|
The kernel module folder `/etc/modules-load.d` is persistent and you can add your config files there. See [Systemd modules load][systemd-modules].
|
||||||
|
|
||||||
|
### Network
|
||||||
|
|
||||||
|
You can manual add, edit or remove connections configs from `/etc/NetworkManager/system-connections`.
|
||||||
|
|
||||||
[systemd-modules]: https://www.freedesktop.org/software/systemd/man/modules-load.d.html
|
[systemd-modules]: https://www.freedesktop.org/software/systemd/man/modules-load.d.html
|
||||||
|
[network.md]: network.md
|
||||||
|
[hassos-release]: https://github.com/home-assistant/hassos/releases/
|
||||||
|
[debug-hassio]: https://developers.home-assistant.io/docs/en/hassio_debugging.html
|
||||||
|
27
Documentation/deployment.md
Normal file
27
Documentation/deployment.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Deployment
|
||||||
|
|
||||||
|
We know 3 types of release builds:
|
||||||
|
- development (beta/dev)
|
||||||
|
- staging (rc)
|
||||||
|
- production (stable)
|
||||||
|
|
||||||
|
## Versioning
|
||||||
|
The format of version is *MAJOR.BUILD*. Everytime we create a new release with same userland, we bump the build number.
|
||||||
|
The development use here own major number they will be bump for the stable version and the development version go to next major number.
|
||||||
|
|
||||||
|
```
|
||||||
|
0.x = development
|
||||||
|
1.x = stable
|
||||||
|
2.x = development
|
||||||
|
3.x = stable
|
||||||
|
```
|
||||||
|
|
||||||
|
## GIT Branch/Tag
|
||||||
|
The branch `dev` ist the actual development branch and from there we never make a release. The `master` branch hould the development
|
||||||
|
version from they we build a beta release.
|
||||||
|
|
||||||
|
If we create a new staging/productive release, we create a new branch `rel-{MAJOR}`. They will be used for the hole cycle of this release.
|
||||||
|
|
||||||
|
## Upload release files
|
||||||
|
|
||||||
|
We use [ghr](https://github.com/tcnksm/ghr) to upload files to our repository. A binary version is available inside `scripts`.
|
7
Documentation/kernel.md
Normal file
7
Documentation/kernel.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
# Kernel Version
|
||||||
|
|
||||||
|
| Board | Version |
|
||||||
|
|-------|---------|
|
||||||
|
| Open Virtual Applicance | 4.14.67 |
|
||||||
|
| Raspberry Pi | 4.14.66 |
|
97
Documentation/network.md
Normal file
97
Documentation/network.md
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
# Network
|
||||||
|
|
||||||
|
HassOS uses NetworkManager to control the host network. In future releases, you will be able to set up the configuration using the API/UI. Currently only manual configuration using NetworkManager connection files is supported. Without a configuration file, the device will use DHCP by default. These network connection files can be placed on a USB drive as described in [Configuration][configuration-usb].
|
||||||
|
|
||||||
|
## Configuration Examples
|
||||||
|
|
||||||
|
You can also read the [Official Manual][keyfile] or there are a lot of examples accross internet. The system is read only, if you don't want the IP address to change every boot, you should set the uuid property with a generic [UUID4][uuid]. Inside the `network` folder create the file `my-network` and add the appropriate contents below:
|
||||||
|
|
||||||
|
### Default
|
||||||
|
|
||||||
|
We have a preinstalled connection profile:
|
||||||
|
```
|
||||||
|
[connection]
|
||||||
|
id=HassOS default
|
||||||
|
uuid=f62bf7c2-e565-49ff-bbfc-a4cf791e6add
|
||||||
|
type=802-3-ethernet
|
||||||
|
|
||||||
|
[ipv4]
|
||||||
|
method=auto
|
||||||
|
|
||||||
|
[ipv6]
|
||||||
|
addr-gen-mode=stable-privacy
|
||||||
|
method=auto
|
||||||
|
```
|
||||||
|
|
||||||
|
### LAN
|
||||||
|
```ini
|
||||||
|
[connection]
|
||||||
|
id=hassos-network
|
||||||
|
uuid=d55162b4-6152-4310-9312-8f4c54d86afa
|
||||||
|
type=802-3-ethernet
|
||||||
|
|
||||||
|
[ipv4]
|
||||||
|
method=auto
|
||||||
|
|
||||||
|
[ipv6]
|
||||||
|
addr-gen-mode=stable-privacy
|
||||||
|
method=auto
|
||||||
|
```
|
||||||
|
|
||||||
|
### Wireless WPA/PSK
|
||||||
|
```ini
|
||||||
|
[connection]
|
||||||
|
id=hassos-network
|
||||||
|
uuid=72111c67-4a5d-4d5c-925e-f8ee26efb3c3
|
||||||
|
type=802-11-wireless
|
||||||
|
|
||||||
|
[802-11-wireless]
|
||||||
|
mode=infrastructure
|
||||||
|
ssid=MY_SSID
|
||||||
|
|
||||||
|
[802-11-wireless-security]
|
||||||
|
auth-alg=open
|
||||||
|
key-mgmt=wpa-psk
|
||||||
|
psk=MY_WLAN_SECRED_KEY
|
||||||
|
|
||||||
|
[ipv4]
|
||||||
|
method=auto
|
||||||
|
|
||||||
|
[ipv6]
|
||||||
|
addr-gen-mode=stable-privacy
|
||||||
|
method=auto
|
||||||
|
```
|
||||||
|
|
||||||
|
### Static IP
|
||||||
|
|
||||||
|
Replace follow configs:
|
||||||
|
```ini
|
||||||
|
[ipv4]
|
||||||
|
method=manual
|
||||||
|
address1=192.168.1.111/24,192.168.1.1
|
||||||
|
dns=8.8.8.8;8.8.4.4;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Tips
|
||||||
|
|
||||||
|
### Reset network
|
||||||
|
|
||||||
|
If you want reset the network configuration to default, use follow commands on host:
|
||||||
|
```bash
|
||||||
|
$ rm /etc/NetworkManager/system-connections/*
|
||||||
|
$ cp /usr/share/system-connections/* /etc/NetworkManager/system-connections/
|
||||||
|
$ nmcli con reload
|
||||||
|
```
|
||||||
|
|
||||||
|
### Powersave
|
||||||
|
|
||||||
|
If you have trouble with powersave you can do following:
|
||||||
|
```ini
|
||||||
|
[wifi]
|
||||||
|
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
|
||||||
|
powersave=0
|
||||||
|
```
|
||||||
|
|
||||||
|
[keyfile]: https://developer.gnome.org/NetworkManager/stable/nm-settings.html
|
||||||
|
[configuration-usb]: configuration.md
|
||||||
|
[uuid]: https://www.uuidgenerator.net/
|
39
README.md
39
README.md
@@ -4,44 +4,11 @@ Hass.io OS based on [buildroot](https://buildroot.org/). It's a hypervisor for D
|
|||||||
## Focus
|
## Focus
|
||||||
|
|
||||||
- Linux kernel 4.14 (LT)
|
- Linux kernel 4.14 (LT)
|
||||||
- Barebox as bootloader
|
- Barebox as bootloader on EFI
|
||||||
|
- U-Boot as bootloader on IoT
|
||||||
- RAUC for OTA updates
|
- RAUC for OTA updates
|
||||||
- SquashFS LZ4 as filesystem
|
- SquashFS LZ4 as filesystem
|
||||||
- Docker 17.12.1
|
- Docker 18.03.1
|
||||||
- AppArmor protected
|
- AppArmor protected
|
||||||
- ZRAM LZ4 for /tmp, /var, swap
|
- ZRAM LZ4 for /tmp, /var, swap
|
||||||
- Run every supervisor
|
- Run every supervisor
|
||||||
|
|
||||||
## Schemas
|
|
||||||

|
|
||||||
|
|
||||||
# Customize
|
|
||||||
|
|
||||||
Provide a file with the name `hassos.json` in your data partition and the following structure:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"supervisor": "repo/image",
|
|
||||||
"supervisor_args": "optional / custom docker arguments",
|
|
||||||
"cli": "repo/image",
|
|
||||||
"cli_args": "optional / custom docker arguments",
|
|
||||||
"hostname": "default hostname"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
# Building
|
|
||||||
Running `sudo ./enter.sh` will get you into the build Docker container.
|
|
||||||
`make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external xy_defconfig`
|
|
||||||
|
|
||||||
## Helpers
|
|
||||||
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external xy_defconfig`
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external menuconfig`
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external linux-menuconfig`
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external barebox-menuconfig`
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external busybox-menuconfig`
|
|
||||||
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external savedefconfig`
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external linux-update-defconfig`
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external barebox-update-defconfig`
|
|
||||||
- `make -C /build/buildroot BR2_EXTERNAL=/build/buildroot-external busybox-update-config`
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
source "$BR2_EXTERNAL_HASSOS_PATH/package/hassos/Config.in"
|
source "$BR2_EXTERNAL_HASSOS_PATH/package/hassos/Config.in"
|
||||||
source "$BR2_EXTERNAL_HASSOS_PATH/package/libapparmor/Config.in"
|
source "$BR2_EXTERNAL_HASSOS_PATH/package/libapparmor/Config.in"
|
||||||
source "$BR2_EXTERNAL_HASSOS_PATH/package/apparmor/Config.in"
|
source "$BR2_EXTERNAL_HASSOS_PATH/package/apparmor/Config.in"
|
||||||
|
source "$BR2_EXTERNAL_HASSOS_PATH/package/bluetooth-bcm43xx/Config.in"
|
||||||
|
@@ -1,75 +0,0 @@
|
|||||||
#include <tunables/global>
|
|
||||||
|
|
||||||
profile hassio-supervisor flags=(attach_disconnected,mediate_deleted) {
|
|
||||||
#include <abstractions/base>
|
|
||||||
#include <abstractions/python>
|
|
||||||
|
|
||||||
network,
|
|
||||||
deny network raw,
|
|
||||||
|
|
||||||
signal (send) set=(kill,term),
|
|
||||||
|
|
||||||
/bin/busybox ix,
|
|
||||||
/usr/bin/python{,3,3.[0-9]} ix,
|
|
||||||
/usr/bin/git cx,
|
|
||||||
/usr/bin/socat cx,
|
|
||||||
/usr/bin/gdbus cx,
|
|
||||||
|
|
||||||
deny /proc/** wl,
|
|
||||||
deny /root/** wl,
|
|
||||||
deny /sys/** wl,
|
|
||||||
|
|
||||||
/** r,
|
|
||||||
/tmp/** rw,
|
|
||||||
/data/** rw,
|
|
||||||
/{,var/}run/docker.sock rw,
|
|
||||||
|
|
||||||
capability net_bind_service,
|
|
||||||
|
|
||||||
profile /usr/bin/socat flags=(attach_disconnected,mediate_deleted) {
|
|
||||||
#include <abstractions/base>
|
|
||||||
|
|
||||||
network inet udp,
|
|
||||||
network inet tcp,
|
|
||||||
|
|
||||||
deny network raw,
|
|
||||||
deny network packet,
|
|
||||||
|
|
||||||
signal (receive) set=(kill,term),
|
|
||||||
capability net_bind_service,
|
|
||||||
|
|
||||||
/lib/* mr,
|
|
||||||
/usr/bin/socat mr,
|
|
||||||
}
|
|
||||||
|
|
||||||
profile /usr/bin/gdbus flags=(attach_disconnected,mediate_deleted) {
|
|
||||||
#include <abstractions/base>
|
|
||||||
#include <abstractions/dbus>
|
|
||||||
|
|
||||||
unix (send, receive) type=stream,
|
|
||||||
|
|
||||||
/usr/bin/gdbus mr,
|
|
||||||
/lib/* mr,
|
|
||||||
/{,var/}run/dbus/system_bus_socket rw,
|
|
||||||
}
|
|
||||||
|
|
||||||
profile /usr/bin/git flags=(attach_disconnected,mediate_deleted) {
|
|
||||||
#include <abstractions/base>
|
|
||||||
|
|
||||||
network,
|
|
||||||
deny network raw,
|
|
||||||
|
|
||||||
/bin/busybox ix,
|
|
||||||
/usr/bin/git mr,
|
|
||||||
/usr/libexec/git-core/* ix,
|
|
||||||
|
|
||||||
deny /data/homeassistant rw,
|
|
||||||
deny /data/ssl rw,
|
|
||||||
|
|
||||||
/** r,
|
|
||||||
/lib/* mr,
|
|
||||||
/data/addons/** lrw,
|
|
||||||
|
|
||||||
capability dac_override,
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,12 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
global linux.bootargs.dyn.root="root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
|
||||||
|
|
||||||
mkdir -p /mnt/system
|
|
||||||
mount -t squashfs /dev/disk0.hassos-system0 /mnt/system
|
|
||||||
|
|
||||||
if [ -f "/mnt/system/boot/bzImage" ]; then
|
|
||||||
global bootm.image="/mnt/system/boot/bzImage"
|
|
||||||
else
|
|
||||||
global bootm.image="/mnt/system/boot/zImage"
|
|
||||||
fi
|
|
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
global linux.bootargs.dyn.root="root=PARTUUID=a3ec664e-32ce-4665-95ea-7ae90ce9aa20 rootfstype=squashfs ro"
|
|
||||||
|
|
||||||
mkdir -p /mnt/system
|
|
||||||
mount -t squashfs /dev/disk0.hassos-system1 /mnt/system
|
|
||||||
|
|
||||||
if [ -f "/mnt/system/boot/bzImage" ]; then
|
|
||||||
global bootm.image="/mnt/system/boot/bzImage"
|
|
||||||
else
|
|
||||||
global bootm.image="/mnt/system/boot/zImage"
|
|
||||||
fi
|
|
||||||
|
|
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
boot system0
|
|
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
boot system1
|
|
@@ -1 +0,0 @@
|
|||||||
system0 system1
|
|
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
for i in /env/overlay/*.dtbo; do
|
|
||||||
oftree -o $i
|
|
||||||
done
|
|
@@ -1,3 +1,5 @@
|
|||||||
BOARD_ID=ova
|
BOARD_ID=ova
|
||||||
BOARD_NAME="Open Virtual Appliance"
|
BOARD_NAME="Open Virtual Appliance"
|
||||||
CHASSIS=vm
|
CHASSIS=vm
|
||||||
|
BOOTLOADER=barebox
|
||||||
|
KERNEL_FILE=bzImage
|
||||||
|
@@ -1 +1,17 @@
|
|||||||
CONFIG_EFI_STUB=y
|
CONFIG_EFI_STUB=y
|
||||||
|
|
||||||
|
CONFIG_USB_SERIAL=y
|
||||||
|
CONFIG_USB_SERIAL_GENERIC=y
|
||||||
|
CONFIG_USB_SERIAL_SIMPLE=m
|
||||||
|
CONFIG_USB_SERIAL_CP210X=m
|
||||||
|
CONFIG_USB_SERIAL_FTDI_SIO=m
|
||||||
|
CONFIG_USB_SERIAL_PL2303=m
|
||||||
|
CONFIG_USB_ACM=m
|
||||||
|
|
||||||
|
CONFIG_VIRTIO=y
|
||||||
|
CONFIG_VIRTIO_PCI=y
|
||||||
|
CONFIG_VIRTIO_NET=y
|
||||||
|
CONFIG_VIRTIO_BALLOON=m
|
||||||
|
CONFIG_VIRTIO_INPUT=m
|
||||||
|
CONFIG_VIRTIO_BLK=m
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ index d5efc0c..c57c2f7 100644
|
|||||||
g_ptr_array_add(args, g_strdup_printf(BOOTSTATE_PREFIX ".%s.remaining_attempts", bootname));
|
g_ptr_array_add(args, g_strdup_printf(BOOTSTATE_PREFIX ".%s.remaining_attempts", bootname));
|
||||||
+
|
+
|
||||||
+ g_ptr_array_add(args, g_strdup("-i"));
|
+ g_ptr_array_add(args, g_strdup("-i"));
|
||||||
+ g_ptr_array_add(args, g_strdup("/mnt/boot/EFI/barebox/state.dtb"));
|
+ g_ptr_array_add(args, g_strdup("/etc/barebox-state.dtb"));
|
||||||
g_ptr_array_add(args, NULL);
|
g_ptr_array_add(args, NULL);
|
||||||
|
|
||||||
sub = g_subprocess_newv((const gchar * const *)args->pdata,
|
sub = g_subprocess_newv((const gchar * const *)args->pdata,
|
||||||
@@ -27,7 +27,7 @@ index d5efc0c..c57c2f7 100644
|
|||||||
}
|
}
|
||||||
+
|
+
|
||||||
+ g_ptr_array_add(args, g_strdup("-i"));
|
+ g_ptr_array_add(args, g_strdup("-i"));
|
||||||
+ g_ptr_array_add(args, g_strdup("/mnt/boot/EFI/barebox/state.dtb"));
|
+ g_ptr_array_add(args, g_strdup("/etc/barebox-state.dtb"));
|
||||||
g_ptr_array_add(args, NULL);
|
g_ptr_array_add(args, NULL);
|
||||||
|
|
||||||
sub = g_subprocess_newv((const gchar * const *)args->pdata,
|
sub = g_subprocess_newv((const gchar * const *)args->pdata,
|
||||||
|
@@ -6,26 +6,25 @@ BOARD_DIR=${2}
|
|||||||
BOOT_DATA=${BINARIES_DIR}/boot
|
BOOT_DATA=${BINARIES_DIR}/boot
|
||||||
|
|
||||||
. ${SCRIPT_DIR}/hdd-image.sh
|
. ${SCRIPT_DIR}/hdd-image.sh
|
||||||
|
. ${SCRIPT_DIR}/name.sh
|
||||||
|
. ${SCRIPT_DIR}/ota.sh
|
||||||
. ${BR2_EXTERNAL_HASSOS_PATH}/info
|
. ${BR2_EXTERNAL_HASSOS_PATH}/info
|
||||||
. ${BOARD_DIR}/info
|
. ${BOARD_DIR}/info
|
||||||
|
|
||||||
# Filename
|
|
||||||
IMAGE_FILE=${HASSOS_ID}_${BOARD_ID}-${VERSION_MAJOR}.${VERSION_BUILD}.vmdk
|
|
||||||
|
|
||||||
# Init boot data
|
# Init boot data
|
||||||
rm -rf ${BOOT_DATA}
|
rm -rf ${BOOT_DATA}
|
||||||
mkdir -p ${BOOT_DATA}/EFI/BOOT
|
mkdir -p ${BOOT_DATA}/EFI/BOOT
|
||||||
mkdir -p ${BOOT_DATA}/EFI/barebox
|
mkdir -p ${BOOT_DATA}/EFI/barebox
|
||||||
|
|
||||||
cp ${BINARIES_DIR}/barebox.bin ${BOOT_DATA}/EFI/BOOT/BOOTx64.EFI
|
cp ${BINARIES_DIR}/barebox.bin ${BOOT_DATA}/EFI/BOOT/BOOTx64.EFI
|
||||||
cp ${BOARD_DIR}/barebox-state-efi.dtb ${BOOT_DATA}/EFI/barebox/state.dtb
|
cp ${BR2_EXTERNAL_HASSOS_PATH}/misc/barebox-state-efi.dtb ${BOOT_DATA}/EFI/barebox/state.dtb
|
||||||
|
|
||||||
echo "console=tty1" > ${BOARD_DIR}/cmdline.txt
|
echo "console=tty1" > ${BOOT_DATA}/cmdline.txt
|
||||||
|
|
||||||
# Create other layers
|
# Create other layers
|
||||||
create_boot_image ${BINARIES_DIR}
|
prepare_disk_image
|
||||||
create_overlay_image ${BINARIES_DIR}
|
|
||||||
|
|
||||||
create_disk_image ${BINARIES_DIR} ${BINARIES_DIR}/harddisk.img 6
|
# Create disk images
|
||||||
|
create_disk_image 6
|
||||||
qemu-img convert -O vmdk ${BINARIES_DIR}/harddisk.img ${BINARIES_DIR}/${IMAGE_FILE}
|
convert_disk_image_vmdk
|
||||||
|
create_ota_update
|
||||||
|
1
buildroot-external/board/raspberrypi/kernel.config
Normal file
1
buildroot-external/board/raspberrypi/kernel.config
Normal file
@@ -0,0 +1 @@
|
|||||||
|
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
|
@@ -6,19 +6,20 @@ BOARD_DIR=${2}
|
|||||||
BOOT_DATA=${BINARIES_DIR}/boot
|
BOOT_DATA=${BINARIES_DIR}/boot
|
||||||
|
|
||||||
. ${SCRIPT_DIR}/hdd-image.sh
|
. ${SCRIPT_DIR}/hdd-image.sh
|
||||||
|
. ${SCRIPT_DIR}/name.sh
|
||||||
|
. ${SCRIPT_DIR}/ota.sh
|
||||||
. ${BR2_EXTERNAL_HASSOS_PATH}/info
|
. ${BR2_EXTERNAL_HASSOS_PATH}/info
|
||||||
. ${BOARD_DIR}/info
|
. ${BOARD_DIR}/info
|
||||||
|
|
||||||
# Filename
|
|
||||||
IMAGE_FILE=${BINARIES_DIR}/${HASSOS_ID}_${BOARD_ID}-${VERSION_MAJOR}.${VERSION_BUILD}.img
|
|
||||||
|
|
||||||
# Init boot data
|
# Init boot data
|
||||||
rm -rf ${BOOT_DATA}
|
rm -rf ${BOOT_DATA}
|
||||||
mkdir -p ${BOOT_DATA}
|
mkdir -p ${BOOT_DATA}
|
||||||
|
|
||||||
cp ${BINARIES_DIR}/barebox.bin ${BOOT_DATA}/
|
|
||||||
cp -t ${BOOT_DATA} \
|
cp -t ${BOOT_DATA} \
|
||||||
${BINARIES_DIR}/bcm2709-rpi-2-b.dtb \
|
${BINARIES_DIR}/u-boot.bin \
|
||||||
|
${BINARIES_DIR}/boot.scr
|
||||||
|
cp -t ${BOOT_DATA} \
|
||||||
|
${BINARIES_DIR}/*.dtb \
|
||||||
${BINARIES_DIR}/rpi-firmware/bootcode.bin \
|
${BINARIES_DIR}/rpi-firmware/bootcode.bin \
|
||||||
${BINARIES_DIR}/rpi-firmware/fixup.dat \
|
${BINARIES_DIR}/rpi-firmware/fixup.dat \
|
||||||
${BINARIES_DIR}/rpi-firmware/start.elf
|
${BINARIES_DIR}/rpi-firmware/start.elf
|
||||||
@@ -26,20 +27,22 @@ cp -r ${BINARIES_DIR}/rpi-firmware/overlays ${BOOT_DATA}/
|
|||||||
|
|
||||||
# Update Boot options
|
# Update Boot options
|
||||||
(
|
(
|
||||||
echo "kernel=barebox.bin"
|
echo "kernel=u-boot.bin"
|
||||||
echo "disable_splash=1"
|
echo "disable_splash=1"
|
||||||
echo "dtparam=audio=on"
|
echo "dtparam=audio=on"
|
||||||
echo "enable_uart=1"
|
|
||||||
) > ${BOOT_DATA}/config.txt
|
) > ${BOOT_DATA}/config.txt
|
||||||
|
|
||||||
echo "dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200" > ${BOOT_DATA}/cmdline.txt
|
echo "dwc_otg.lpm_enable=0 console=tty1" > ${BOOT_DATA}/cmdline.txt
|
||||||
|
|
||||||
|
# Enable 64bit support
|
||||||
|
if [ "${BOARD_ID}" == "rpi3-64" ]; then
|
||||||
|
echo "arm_64bit=1" >> ${BOOT_DATA}/config.txt
|
||||||
|
fi
|
||||||
|
|
||||||
# Create other layers
|
# Create other layers
|
||||||
create_boot_image ${BINARIES_DIR}
|
prepare_disk_image
|
||||||
create_overlay_image ${BINARIES_DIR}
|
|
||||||
|
|
||||||
create_disk_image ${BINARIES_DIR} ${IMAGE_FILE} 2
|
create_disk_image 2
|
||||||
fix_disk_image_mbr ${IMAGE_FILE}
|
fix_disk_image_mbr
|
||||||
|
convert_disk_image_gz
|
||||||
rm -rf ${IMAGE_FILE}.gz
|
create_ota_update
|
||||||
gzip --best ${IMAGE_FILE}
|
|
5
buildroot-external/board/raspberrypi/rpi/info
Normal file
5
buildroot-external/board/raspberrypi/rpi/info
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
BOARD_ID=rpi
|
||||||
|
BOARD_NAME="RaspberryPi"
|
||||||
|
CHASSIS=embedded
|
||||||
|
BOOTLOADER=uboot
|
||||||
|
KERNEL_FILE=zImage
|
5
buildroot-external/board/raspberrypi/rpi0-w/info
Normal file
5
buildroot-external/board/raspberrypi/rpi0-w/info
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
BOARD_ID=rpi0-w
|
||||||
|
BOARD_NAME="RaspberryPi Zero-W"
|
||||||
|
CHASSIS=embedded
|
||||||
|
BOOTLOADER=uboot
|
||||||
|
KERNEL_FILE=zImage
|
@@ -1,3 +1,5 @@
|
|||||||
BOARD_ID=rpi2
|
BOARD_ID=rpi2
|
||||||
BOARD_NAME="RaspberryPi 2"
|
BOARD_NAME="RaspberryPi 2"
|
||||||
CHASSIS=embedded
|
CHASSIS=embedded
|
||||||
|
BOOTLOADER=uboot
|
||||||
|
KERNEL_FILE=zImage
|
5
buildroot-external/board/raspberrypi/rpi3-64/info
Normal file
5
buildroot-external/board/raspberrypi/rpi3-64/info
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
BOARD_ID=rpi3-64
|
||||||
|
BOARD_NAME="RaspberryPi 3 64bit"
|
||||||
|
CHASSIS=embedded
|
||||||
|
BOOTLOADER=uboot
|
||||||
|
KERNEL_FILE=Image
|
56
buildroot-external/board/raspberrypi/rpi3-64/uboot-boot.sh
Normal file
56
buildroot-external/board/raspberrypi/rpi3-64/uboot-boot.sh
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
test -n "${BOOT_ORDER}" || setenv BOOT_ORDER "A B"
|
||||||
|
test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
||||||
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
|
# HassOS bootargs
|
||||||
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor rootwait cgroup_enable=memory"
|
||||||
|
|
||||||
|
# HassOS system A/B
|
||||||
|
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
||||||
|
setenv bootargs_b "root=PARTUUID=a3ec664e-32ce-4665-95ea-7ae90ce9aa20 rootfstype=squashfs ro"
|
||||||
|
|
||||||
|
# Preserve origin bootargs
|
||||||
|
setenv bootargs_rpi
|
||||||
|
setenv fdt_org ${fdt_addr}
|
||||||
|
fdt addr ${fdt_org}
|
||||||
|
fdt get value bootargs_rpi /chosen bootargs
|
||||||
|
|
||||||
|
setenv bootargs
|
||||||
|
for BOOT_SLOT in "${BOOT_ORDER}"; do
|
||||||
|
if test "x${bootargs}" != "x"; then
|
||||||
|
# skip remaining slots
|
||||||
|
elif test "x${BOOT_SLOT}" = "xA"; then
|
||||||
|
if test ${BOOT_A_LEFT} -gt 0; then
|
||||||
|
setexpr BOOT_A_LEFT ${BOOT_A_LEFT} - 1
|
||||||
|
echo "Found valid slot A, ${BOOT_A_LEFT} attempts remaining"
|
||||||
|
setenv load_kernel "ext4load mmc 0:2 ${kernel_addr_r} Image"
|
||||||
|
setenv bootargs "${bootargs_hassos} ${bootargs_rpi} ${bootargs_a} rauc.slot=A"
|
||||||
|
fi
|
||||||
|
elif test "x${BOOT_SLOT}" = "xB"; then
|
||||||
|
if test ${BOOT_B_LEFT} -gt 0; then
|
||||||
|
setexpr BOOT_B_LEFT ${BOOT_B_LEFT} - 1
|
||||||
|
echo "Found valid slot B, ${BOOT_B_LEFT} attempts remaining"
|
||||||
|
setenv load_kernel "ext4load mmc 0:4 ${kernel_addr_r} Image"
|
||||||
|
setenv bootargs "${bootargs_hassos} ${bootargs_rpi} ${bootargs_b} rauc.slot=B"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
setenv fdt_addr
|
||||||
|
if test -n "${bootargs}"; then
|
||||||
|
saveenv
|
||||||
|
else
|
||||||
|
echo "No valid slot found, resetting tries to 3"
|
||||||
|
setenv BOOT_A_LEFT 3
|
||||||
|
setenv BOOT_B_LEFT 3
|
||||||
|
saveenv
|
||||||
|
reset
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Loading kernel"
|
||||||
|
run load_kernel
|
||||||
|
echo " Starting kernel"
|
||||||
|
booti ${kernel_addr_r} - ${fdt_org}
|
||||||
|
|
||||||
|
echo "Fails on boot"
|
||||||
|
reset
|
@@ -1,3 +1,5 @@
|
|||||||
BOARD_ID=rpi3
|
BOARD_ID=rpi3
|
||||||
BOARD_NAME="RaspberryPi 3"
|
BOARD_NAME="RaspberryPi 3"
|
||||||
CHASSIS=embedded
|
CHASSIS=embedded
|
||||||
|
BOOTLOADER=uboot
|
||||||
|
KERNEL_FILE=zImage
|
56
buildroot-external/board/raspberrypi/uboot-boot.sh
Normal file
56
buildroot-external/board/raspberrypi/uboot-boot.sh
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
test -n "${BOOT_ORDER}" || setenv BOOT_ORDER "A B"
|
||||||
|
test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
||||||
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
|
# HassOS bootargs
|
||||||
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor rootwait cgroup_enable=memory"
|
||||||
|
|
||||||
|
# HassOS system A/B
|
||||||
|
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
||||||
|
setenv bootargs_b "root=PARTUUID=a3ec664e-32ce-4665-95ea-7ae90ce9aa20 rootfstype=squashfs ro"
|
||||||
|
|
||||||
|
# Preserve origin bootargs
|
||||||
|
setenv bootargs_rpi
|
||||||
|
setenv fdt_org ${fdt_addr}
|
||||||
|
fdt addr ${fdt_org}
|
||||||
|
fdt get value bootargs_rpi /chosen bootargs
|
||||||
|
|
||||||
|
setenv bootargs
|
||||||
|
for BOOT_SLOT in "${BOOT_ORDER}"; do
|
||||||
|
if test "x${bootargs}" != "x"; then
|
||||||
|
# skip remaining slots
|
||||||
|
elif test "x${BOOT_SLOT}" = "xA"; then
|
||||||
|
if test ${BOOT_A_LEFT} -gt 0; then
|
||||||
|
setexpr BOOT_A_LEFT ${BOOT_A_LEFT} - 1
|
||||||
|
echo "Found valid slot A, ${BOOT_A_LEFT} attempts remaining"
|
||||||
|
setenv load_kernel "ext4load mmc 0:2 ${kernel_addr_r} zImage"
|
||||||
|
setenv bootargs "${bootargs_hassos} ${bootargs_rpi} ${bootargs_a} rauc.slot=A"
|
||||||
|
fi
|
||||||
|
elif test "x${BOOT_SLOT}" = "xB"; then
|
||||||
|
if test ${BOOT_B_LEFT} -gt 0; then
|
||||||
|
setexpr BOOT_B_LEFT ${BOOT_B_LEFT} - 1
|
||||||
|
echo "Found valid slot B, ${BOOT_B_LEFT} attempts remaining"
|
||||||
|
setenv load_kernel "ext4load mmc 0:4 ${kernel_addr_r} zImage"
|
||||||
|
setenv bootargs "${bootargs_hassos} ${bootargs_rpi} ${bootargs_b} rauc.slot=B"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
setenv fdt_addr
|
||||||
|
if test -n "${bootargs}"; then
|
||||||
|
saveenv
|
||||||
|
else
|
||||||
|
echo "No valid slot found, resetting tries to 3"
|
||||||
|
setenv BOOT_A_LEFT 3
|
||||||
|
setenv BOOT_B_LEFT 3
|
||||||
|
saveenv
|
||||||
|
reset
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Loading kernel"
|
||||||
|
run load_kernel
|
||||||
|
echo " Starting kernel"
|
||||||
|
bootz ${kernel_addr_r} - ${fdt_org}
|
||||||
|
|
||||||
|
echo "Fails on boot"
|
||||||
|
reset
|
3
buildroot-external/board/raspberrypi/uboot.config
Normal file
3
buildroot-external/board/raspberrypi/uboot.config
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# CONFIG_USB_STORAGE is not set
|
||||||
|
# CONFIG_ENV_FAT_INTERFACE is not set
|
||||||
|
# CONFIG_ENV_FAT_DEVICE_AND_PART is not set
|
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
global linux.bootargs.rpi="bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000"
|
|
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
CONFIG_ARCH_BCM283X=y
|
|
||||||
CONFIG_MACH_RPI2=y
|
|
||||||
CONFIG_AEABI=y
|
|
||||||
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
|
|
||||||
CONFIG_ARM_UNWIND=y
|
|
||||||
CONFIG_MMU=y
|
|
||||||
CONFIG_MALLOC_TLSF=y
|
|
||||||
CONFIG_KALLSYMS=y
|
|
||||||
# CONFIG_SPI is not set
|
|
||||||
CONFIG_MCI=y
|
|
||||||
CONFIG_MCI_BCM283X=y
|
|
||||||
# CONFIG_PINCTRL is not set
|
|
||||||
CONFIG_REGULATOR=y
|
|
@@ -1,30 +0,0 @@
|
|||||||
From 6344ec5c84a49c2df4c2f26b52d317a34e3bc0c7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Mon, 4 Jun 2018 07:55:46 +0000
|
|
||||||
Subject: [PATCH 1/2] ARM: dts: bcm2836-rpi-2: re-enable booting from SD card
|
|
||||||
|
|
||||||
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
---
|
|
||||||
arch/arm/dts/bcm2836-rpi-2.dts | 9 +++++++++
|
|
||||||
1 file changed, 9 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/dts/bcm2836-rpi-2.dts b/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
index 42b6abb18..2fa1c8bb4 100644
|
|
||||||
--- a/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
+++ b/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
@@ -9,3 +9,12 @@
|
|
||||||
reg = <0x0 0x0>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
+
|
|
||||||
+&sdhci {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&sdhost {
|
|
||||||
+ status = "disabled";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
--
|
|
||||||
2.17.0
|
|
||||||
|
|
@@ -1,167 +0,0 @@
|
|||||||
From 114c8fd0327f1c0f1bf886953c600e2a72a55df7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Mon, 4 Jun 2018 09:17:25 +0000
|
|
||||||
Subject: [PATCH 2/2] ARM: dts: add more functions
|
|
||||||
|
|
||||||
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
---
|
|
||||||
arch/arm/dts/bcm2835-rpi.dts | 4 ---
|
|
||||||
arch/arm/dts/bcm2836-rpi-2.dts | 4 ---
|
|
||||||
dts/src/arm/bcm2835-rpi.dtsi | 46 ++++++++++++++++++++++++++++++++--
|
|
||||||
dts/src/arm/bcm283x.dtsi | 12 +++------
|
|
||||||
4 files changed, 48 insertions(+), 18 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/dts/bcm2835-rpi.dts b/arch/arm/dts/bcm2835-rpi.dts
|
|
||||||
index c23e7c7c1..22d60e961 100644
|
|
||||||
--- a/arch/arm/dts/bcm2835-rpi.dts
|
|
||||||
+++ b/arch/arm/dts/bcm2835-rpi.dts
|
|
||||||
@@ -1,10 +1,6 @@
|
|
||||||
#include <arm/bcm2835-rpi-a.dts>
|
|
||||||
|
|
||||||
/ {
|
|
||||||
- chosen {
|
|
||||||
- stdout-path = &uart0;
|
|
||||||
- };
|
|
||||||
-
|
|
||||||
memory {
|
|
||||||
reg = <0x0 0x0>;
|
|
||||||
};
|
|
||||||
diff --git a/arch/arm/dts/bcm2836-rpi-2.dts b/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
index 2fa1c8bb4..bdee1296e 100644
|
|
||||||
--- a/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
+++ b/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
@@ -1,10 +1,6 @@
|
|
||||||
#include <arm/bcm2836-rpi-2-b.dts>
|
|
||||||
|
|
||||||
/ {
|
|
||||||
- chosen {
|
|
||||||
- stdout-path = &uart0;
|
|
||||||
- };
|
|
||||||
-
|
|
||||||
memory {
|
|
||||||
reg = <0x0 0x0>;
|
|
||||||
};
|
|
||||||
diff --git a/dts/src/arm/bcm2835-rpi.dtsi b/dts/src/arm/bcm2835-rpi.dtsi
|
|
||||||
index e36c392a2..d3dfb4b3e 100644
|
|
||||||
--- a/dts/src/arm/bcm2835-rpi.dtsi
|
|
||||||
+++ b/dts/src/arm/bcm2835-rpi.dtsi
|
|
||||||
@@ -27,6 +27,39 @@
|
|
||||||
firmware = <&firmware>;
|
|
||||||
#power-domain-cells = <1>;
|
|
||||||
};
|
|
||||||
+
|
|
||||||
+ fb: fb {
|
|
||||||
+ compatible = "brcm,bcm2708-fb";
|
|
||||||
+ firmware = <&firmware>;
|
|
||||||
+ status = "okay";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ vchiq: vchiq {
|
|
||||||
+ compatible = "brcm,bcm2835-vchiq";
|
|
||||||
+ reg = <0x7e00b840 0xf>;
|
|
||||||
+ interrupts = <0 2>;
|
|
||||||
+ cache-line-size = <32>;
|
|
||||||
+ firmware = <&firmware>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ vcsm: vcsm {
|
|
||||||
+ compatible = "raspberrypi,bcm2835-vcsm";
|
|
||||||
+ firmware = <&firmware>;
|
|
||||||
+ status = "okay";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ /* Onboard audio */
|
|
||||||
+ audio: audio {
|
|
||||||
+ compatible = "brcm,bcm2835-audio";
|
|
||||||
+ brcm,pwm-channels = <8>;
|
|
||||||
+ status = "okay";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ /* External sound card */
|
|
||||||
+ sound: sound {
|
|
||||||
+ status = "disabled";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -91,12 +124,12 @@
|
|
||||||
|
|
||||||
&hdmi {
|
|
||||||
power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
|
|
||||||
- status = "okay";
|
|
||||||
+ status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
&vec {
|
|
||||||
power-domains = <&power RPI_POWER_DOMAIN_VEC>;
|
|
||||||
- status = "okay";
|
|
||||||
+ status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
&dsi0 {
|
|
||||||
@@ -106,3 +139,12 @@
|
|
||||||
&dsi1 {
|
|
||||||
power-domains = <&power RPI_POWER_DOMAIN_DSI1>;
|
|
||||||
};
|
|
||||||
+
|
|
||||||
+&v3d {
|
|
||||||
+ status = "disabled";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&vc4 {
|
|
||||||
+ status = "disabled";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
diff --git a/dts/src/arm/bcm283x.dtsi b/dts/src/arm/bcm283x.dtsi
|
|
||||||
index 9d293decf..0abb72a47 100644
|
|
||||||
--- a/dts/src/arm/bcm283x.dtsi
|
|
||||||
+++ b/dts/src/arm/bcm283x.dtsi
|
|
||||||
@@ -26,10 +26,6 @@
|
|
||||||
serial1 = &uart1;
|
|
||||||
};
|
|
||||||
|
|
||||||
- chosen {
|
|
||||||
- stdout-path = "serial0:115200n8";
|
|
||||||
- };
|
|
||||||
-
|
|
||||||
thermal-zones {
|
|
||||||
cpu_thermal: cpu-thermal {
|
|
||||||
polling-delay-passive = <0>;
|
|
||||||
@@ -426,13 +422,13 @@
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
- pixelvalve@7e206000 {
|
|
||||||
+ pixelvalve0: pixelvalve@7e206000 {
|
|
||||||
compatible = "brcm,bcm2835-pixelvalve0";
|
|
||||||
reg = <0x7e206000 0x100>;
|
|
||||||
interrupts = <2 13>; /* pwa0 */
|
|
||||||
};
|
|
||||||
|
|
||||||
- pixelvalve@7e207000 {
|
|
||||||
+ pixelvalve1: pixelvalve@7e207000 {
|
|
||||||
compatible = "brcm,bcm2835-pixelvalve1";
|
|
||||||
reg = <0x7e207000 0x100>;
|
|
||||||
interrupts = <2 14>; /* pwa1 */
|
|
||||||
@@ -518,7 +514,7 @@
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
- hvs@7e400000 {
|
|
||||||
+ hvs: hvs@7e400000 {
|
|
||||||
compatible = "brcm,bcm2835-hvs";
|
|
||||||
reg = <0x7e400000 0x6000>;
|
|
||||||
interrupts = <2 1>;
|
|
||||||
@@ -572,7 +568,7 @@
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
- pixelvalve@7e807000 {
|
|
||||||
+ pixelvalve2: pixelvalve@7e807000 {
|
|
||||||
compatible = "brcm,bcm2835-pixelvalve2";
|
|
||||||
reg = <0x7e807000 0x100>;
|
|
||||||
interrupts = <2 10>; /* pixelvalve */
|
|
||||||
--
|
|
||||||
2.17.0
|
|
||||||
|
|
@@ -1,167 +0,0 @@
|
|||||||
From 3fe92c12e01e35cc97fbd92d8ae098ac583cfa1f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Mon, 4 Jun 2018 09:25:40 +0000
|
|
||||||
Subject: [PATCH 3/3] Add HassOS bootchoiser state
|
|
||||||
|
|
||||||
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
---
|
|
||||||
arch/arm/dts/bcm2835-rpi.dts | 69 ++++++++++++++++++++++++++++++++++
|
|
||||||
arch/arm/dts/bcm2836-rpi-2.dts | 68 +++++++++++++++++++++++++++++++++
|
|
||||||
2 files changed, 137 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/dts/bcm2835-rpi.dts b/arch/arm/dts/bcm2835-rpi.dts
|
|
||||||
index 22d60e961..3357d06b7 100644
|
|
||||||
--- a/arch/arm/dts/bcm2835-rpi.dts
|
|
||||||
+++ b/arch/arm/dts/bcm2835-rpi.dts
|
|
||||||
@@ -13,3 +13,72 @@
|
|
||||||
&sdhost {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
+
|
|
||||||
+/ {
|
|
||||||
+
|
|
||||||
+ aliases {
|
|
||||||
+ state = &state;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ state: state {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ magic = <0xef98423f>;
|
|
||||||
+ compatible = "barebox,state";
|
|
||||||
+ backend = <&backend_state>;
|
|
||||||
+ backend-type = "raw";
|
|
||||||
+ backend-stridesize = <4048>;
|
|
||||||
+
|
|
||||||
+ bootstate {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+
|
|
||||||
+ system0 {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ remaining_attempts@0 {
|
|
||||||
+ reg = <0x0 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <3>;
|
|
||||||
+ };
|
|
||||||
+ priority@4 {
|
|
||||||
+ reg = <0x4 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <20>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ system1 {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ remaining_attempts@8 {
|
|
||||||
+ reg = <0x8 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <0>;
|
|
||||||
+ };
|
|
||||||
+ priority@c {
|
|
||||||
+ reg = <0xc 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <10>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ last_chosen@10 {
|
|
||||||
+ reg = <0x10 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&sdhci {
|
|
||||||
+ partitions {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ compatible = "fixed-partitions";
|
|
||||||
+
|
|
||||||
+ backend_state: partition@22100000 {
|
|
||||||
+ label = "state";
|
|
||||||
+ reg = <0x22100000 0x800000>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
diff --git a/arch/arm/dts/bcm2836-rpi-2.dts b/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
index bdee1296e..e41def570 100644
|
|
||||||
--- a/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
+++ b/arch/arm/dts/bcm2836-rpi-2.dts
|
|
||||||
@@ -14,3 +14,71 @@
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
+/ {
|
|
||||||
+
|
|
||||||
+ aliases {
|
|
||||||
+ state = &state;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ state: state {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ magic = <0xef98423f>;
|
|
||||||
+ compatible = "barebox,state";
|
|
||||||
+ backend = <&backend_state>;
|
|
||||||
+ backend-type = "raw";
|
|
||||||
+ backend-stridesize = <4048>;
|
|
||||||
+
|
|
||||||
+ bootstate {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+
|
|
||||||
+ system0 {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ remaining_attempts@0 {
|
|
||||||
+ reg = <0x0 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <3>;
|
|
||||||
+ };
|
|
||||||
+ priority@4 {
|
|
||||||
+ reg = <0x4 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <20>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ system1 {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ remaining_attempts@8 {
|
|
||||||
+ reg = <0x8 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <0>;
|
|
||||||
+ };
|
|
||||||
+ priority@c {
|
|
||||||
+ reg = <0xc 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ default = <10>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ last_chosen@10 {
|
|
||||||
+ reg = <0x10 0x4>;
|
|
||||||
+ type = "uint32";
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&sdhci {
|
|
||||||
+ partitions {
|
|
||||||
+ #address-cells = <1>;
|
|
||||||
+ #size-cells = <1>;
|
|
||||||
+ compatible = "fixed-partitions";
|
|
||||||
+
|
|
||||||
+ backend_state: partition@22100000 {
|
|
||||||
+ label = "state";
|
|
||||||
+ reg = <0x22100000 0x800000>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
--
|
|
||||||
2.17.0
|
|
||||||
|
|
@@ -1,42 +0,0 @@
|
|||||||
From 19ab0b433893cc7d16e8f4a6052f0f784131c43a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Sat, 2 Jun 2018 22:08:31 +0000
|
|
||||||
Subject: [PATCH 1/1] common: state: allow to overlay state backend
|
|
||||||
|
|
||||||
This allow to use overlay for state backends. I.e. on raspberry you need
|
|
||||||
use barebox with SDHCI (slow) and after linux boot it will use SDHOST driver.
|
|
||||||
But the problem now is, that the state is on SDHCI and dt-utils need it on
|
|
||||||
SDHOST. Actual it is not possible to overwrite this.
|
|
||||||
|
|
||||||
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
---
|
|
||||||
common/state/state.c | 13 +++++++++++--
|
|
||||||
1 file changed, 11 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/common/state/state.c b/common/state/state.c
|
|
||||||
index 25d950211..e6259043f 100644
|
|
||||||
--- a/common/state/state.c
|
|
||||||
+++ b/common/state/state.c
|
|
||||||
@@ -494,8 +494,17 @@ static int of_state_fixup(struct device_node *root, void *ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* backend phandle */
|
|
||||||
- backend_node = of_find_node_by_reproducible_name(root,
|
|
||||||
- state->backend_reproducible_name);
|
|
||||||
+ if (node) {
|
|
||||||
+ ret = of_property_read_u32(node, "backend", &phandle);
|
|
||||||
+ if (ret)
|
|
||||||
+ goto out;
|
|
||||||
+
|
|
||||||
+ backend_node = of_find_node_by_phandle_from(phandle, root);
|
|
||||||
+ } else {
|
|
||||||
+ backend_node = of_find_node_by_reproducible_name(root,
|
|
||||||
+ state->backend_reproducible_name);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if (!backend_node) {
|
|
||||||
ret = -ENODEV;
|
|
||||||
goto out;
|
|
||||||
--
|
|
||||||
2.17.0
|
|
||||||
|
|
@@ -1,54 +0,0 @@
|
|||||||
CONFIG_ARCH_BCM283X=y
|
|
||||||
CONFIG_MACH_RPI3=y
|
|
||||||
CONFIG_AEABI=y
|
|
||||||
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
|
|
||||||
CONFIG_ARM_UNWIND=y
|
|
||||||
# CONFIG_LOCALVERSION_AUTO is not set
|
|
||||||
CONFIG_MMU=y
|
|
||||||
CONFIG_MALLOC_SIZE=0x0
|
|
||||||
CONFIG_MALLOC_TLSF=y
|
|
||||||
CONFIG_KALLSYMS=y
|
|
||||||
CONFIG_PROMPT="HassOS-boot:"
|
|
||||||
CONFIG_CMDLINE_EDITING=y
|
|
||||||
CONFIG_AUTO_COMPLETE=y
|
|
||||||
CONFIG_MENU=y
|
|
||||||
# CONFIG_TIMESTAMP is not set
|
|
||||||
CONFIG_BOOTM_SHOW_TYPE=y
|
|
||||||
CONFIG_BOOTM_OFTREE=y
|
|
||||||
CONFIG_FLEXIBLE_BOOTARGS=y
|
|
||||||
# CONFIG_PARTITION_DISK_DOS is not set
|
|
||||||
CONFIG_PARTITION_DISK_EFI=y
|
|
||||||
# CONFIG_PARTITION_DISK_EFI_GPT_NO_FORCE is not set
|
|
||||||
# CONFIG_PARTITION_DISK_EFI_GPT_COMPARE is not set
|
|
||||||
CONFIG_DEFAULT_ENVIRONMENT_PATH="/build/buildroot-external/barebox-env"
|
|
||||||
CONFIG_STATE=y
|
|
||||||
CONFIG_BOOTCHOOSER=y
|
|
||||||
# CONFIG_CMD_VERSION is not set
|
|
||||||
CONFIG_CMD_BOOT=y
|
|
||||||
CONFIG_CMD_AUTOMOUNT=y
|
|
||||||
CONFIG_CMD_NV=y
|
|
||||||
CONFIG_CMD_EXPORT=y
|
|
||||||
CONFIG_CMD_GLOBAL=y
|
|
||||||
CONFIG_CMD_BASENAME=y
|
|
||||||
CONFIG_CMD_DIRNAME=y
|
|
||||||
CONFIG_CMD_READLINK=y
|
|
||||||
CONFIG_CMD_GETOPT=y
|
|
||||||
CONFIG_CMD_MENUTREE=y
|
|
||||||
CONFIG_CMD_TIMEOUT=y
|
|
||||||
CONFIG_CMD_DETECT=y
|
|
||||||
CONFIG_CMD_STATE=y
|
|
||||||
CONFIG_CMD_BOOTCHOOSER=y
|
|
||||||
CONFIG_SERIAL_AMBA_PL011=y
|
|
||||||
# CONFIG_SPI is not set
|
|
||||||
CONFIG_MCI=y
|
|
||||||
CONFIG_MCI_BCM283X=y
|
|
||||||
CONFIG_WATCHDOG=y
|
|
||||||
CONFIG_WATCHDOG_BCM2835=y
|
|
||||||
CONFIG_GPIO_BCM283X=y
|
|
||||||
# CONFIG_PINCTRL is not set
|
|
||||||
CONFIG_REGULATOR=y
|
|
||||||
CONFIG_FS_FAT=y
|
|
||||||
CONFIG_FS_FAT_WRITE=y
|
|
||||||
CONFIG_FS_FAT_LFN=y
|
|
||||||
CONFIG_FS_SQUASHFS=y
|
|
||||||
CONFIG_LZ4_DECOMPRESS=y
|
|
@@ -1,295 +0,0 @@
|
|||||||
Those are needed to generate some of the ARM SEC and VIRT
|
|
||||||
opcodes in a portable way.
|
|
||||||
|
|
||||||
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
|
|
||||||
---
|
|
||||||
arch/arm/include/asm/opcodes-virt.h | 39 ++++++
|
|
||||||
arch/arm/include/asm/opcodes.h | 231 ++++++++++++++++++++++++++++++++++++
|
|
||||||
2 files changed, 270 insertions(+)
|
|
||||||
create mode 100644 arch/arm/include/asm/opcodes-virt.h
|
|
||||||
create mode 100644 arch/arm/include/asm/opcodes.h
|
|
||||||
|
|
||||||
diff --git a/arch/arm/include/asm/opcodes-virt.h b/arch/arm/include/asm/opcodes-virt.h
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..efcfdf92d9d5
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/arch/arm/include/asm/opcodes-virt.h
|
|
||||||
@@ -0,0 +1,39 @@
|
|
||||||
+/*
|
|
||||||
+ * opcodes-virt.h: Opcode definitions for the ARM virtualization extensions
|
|
||||||
+ * Copyright (C) 2012 Linaro Limited
|
|
||||||
+ *
|
|
||||||
+ * This program is free software; you can redistribute it and/or modify
|
|
||||||
+ * it under the terms of the GNU General Public License as published by
|
|
||||||
+ * the Free Software Foundation; either version 2 of the License, or
|
|
||||||
+ * (at your option) any later version.
|
|
||||||
+ *
|
|
||||||
+ * This program is distributed in the hope that it will be useful,
|
|
||||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ * GNU General Public License for more details.
|
|
||||||
+ *
|
|
||||||
+ * You should have received a copy of the GNU General Public License along
|
|
||||||
+ * with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
+ */
|
|
||||||
+#ifndef __ASM_ARM_OPCODES_VIRT_H
|
|
||||||
+#define __ASM_ARM_OPCODES_VIRT_H
|
|
||||||
+
|
|
||||||
+#include <asm/opcodes.h>
|
|
||||||
+
|
|
||||||
+#define __HVC(imm16) __inst_arm_thumb32( \
|
|
||||||
+ 0xE1400070 | (((imm16) & 0xFFF0) << 4) | ((imm16) & 0x000F), \
|
|
||||||
+ 0xF7E08000 | (((imm16) & 0xF000) << 4) | ((imm16) & 0x0FFF) \
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+#define __ERET __inst_arm_thumb32( \
|
|
||||||
+ 0xE160006E, \
|
|
||||||
+ 0xF3DE8F00 \
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+#define __MSR_ELR_HYP(regnum) __inst_arm_thumb32( \
|
|
||||||
+ 0xE12EF300 | regnum, \
|
|
||||||
+ 0xF3808E30 | (regnum << 16) \
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+#endif /* ! __ASM_ARM_OPCODES_VIRT_H */
|
|
||||||
diff --git a/arch/arm/include/asm/opcodes.h b/arch/arm/include/asm/opcodes.h
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..a78bf5d2c518
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/arch/arm/include/asm/opcodes.h
|
|
||||||
@@ -0,0 +1,231 @@
|
|
||||||
+/*
|
|
||||||
+ * arch/arm/include/asm/opcodes.h
|
|
||||||
+ *
|
|
||||||
+ * This program is free software; you can redistribute it and/or modify
|
|
||||||
+ * it under the terms of the GNU General Public License version 2 as
|
|
||||||
+ * published by the Free Software Foundation.
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+#ifndef __ASM_ARM_OPCODES_H
|
|
||||||
+#define __ASM_ARM_OPCODES_H
|
|
||||||
+
|
|
||||||
+#ifndef __ASSEMBLY__
|
|
||||||
+#include <linux/linkage.h>
|
|
||||||
+extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#define ARM_OPCODE_CONDTEST_FAIL 0
|
|
||||||
+#define ARM_OPCODE_CONDTEST_PASS 1
|
|
||||||
+#define ARM_OPCODE_CONDTEST_UNCOND 2
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * Assembler opcode byteswap helpers.
|
|
||||||
+ * These are only intended for use by this header: don't use them directly,
|
|
||||||
+ * because they will be suboptimal in most cases.
|
|
||||||
+ */
|
|
||||||
+#define ___asm_opcode_swab32(x) ( \
|
|
||||||
+ (((x) << 24) & 0xFF000000) \
|
|
||||||
+ | (((x) << 8) & 0x00FF0000) \
|
|
||||||
+ | (((x) >> 8) & 0x0000FF00) \
|
|
||||||
+ | (((x) >> 24) & 0x000000FF) \
|
|
||||||
+)
|
|
||||||
+#define ___asm_opcode_swab16(x) ( \
|
|
||||||
+ (((x) << 8) & 0xFF00) \
|
|
||||||
+ | (((x) >> 8) & 0x00FF) \
|
|
||||||
+)
|
|
||||||
+#define ___asm_opcode_swahb32(x) ( \
|
|
||||||
+ (((x) << 8) & 0xFF00FF00) \
|
|
||||||
+ | (((x) >> 8) & 0x00FF00FF) \
|
|
||||||
+)
|
|
||||||
+#define ___asm_opcode_swahw32(x) ( \
|
|
||||||
+ (((x) << 16) & 0xFFFF0000) \
|
|
||||||
+ | (((x) >> 16) & 0x0000FFFF) \
|
|
||||||
+)
|
|
||||||
+#define ___asm_opcode_identity32(x) ((x) & 0xFFFFFFFF)
|
|
||||||
+#define ___asm_opcode_identity16(x) ((x) & 0xFFFF)
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * Opcode byteswap helpers
|
|
||||||
+ *
|
|
||||||
+ * These macros help with converting instructions between a canonical integer
|
|
||||||
+ * format and in-memory representation, in an endianness-agnostic manner.
|
|
||||||
+ *
|
|
||||||
+ * __mem_to_opcode_*() convert from in-memory representation to canonical form.
|
|
||||||
+ * __opcode_to_mem_*() convert from canonical form to in-memory representation.
|
|
||||||
+ *
|
|
||||||
+ *
|
|
||||||
+ * Canonical instruction representation:
|
|
||||||
+ *
|
|
||||||
+ * ARM: 0xKKLLMMNN
|
|
||||||
+ * Thumb 16-bit: 0x0000KKLL, where KK < 0xE8
|
|
||||||
+ * Thumb 32-bit: 0xKKLLMMNN, where KK >= 0xE8
|
|
||||||
+ *
|
|
||||||
+ * There is no way to distinguish an ARM instruction in canonical representation
|
|
||||||
+ * from a Thumb instruction (just as these cannot be distinguished in memory).
|
|
||||||
+ * Where this distinction is important, it needs to be tracked separately.
|
|
||||||
+ *
|
|
||||||
+ * Note that values in the range 0x0000E800..0xE7FFFFFF intentionally do not
|
|
||||||
+ * represent any valid Thumb-2 instruction. For this range,
|
|
||||||
+ * __opcode_is_thumb32() and __opcode_is_thumb16() will both be false.
|
|
||||||
+ *
|
|
||||||
+ * The ___asm variants are intended only for use by this header, in situations
|
|
||||||
+ * involving inline assembler. For .S files, the normal __opcode_*() macros
|
|
||||||
+ * should do the right thing.
|
|
||||||
+ */
|
|
||||||
+#ifdef __ASSEMBLY__
|
|
||||||
+
|
|
||||||
+#define ___opcode_swab32(x) ___asm_opcode_swab32(x)
|
|
||||||
+#define ___opcode_swab16(x) ___asm_opcode_swab16(x)
|
|
||||||
+#define ___opcode_swahb32(x) ___asm_opcode_swahb32(x)
|
|
||||||
+#define ___opcode_swahw32(x) ___asm_opcode_swahw32(x)
|
|
||||||
+#define ___opcode_identity32(x) ___asm_opcode_identity32(x)
|
|
||||||
+#define ___opcode_identity16(x) ___asm_opcode_identity16(x)
|
|
||||||
+
|
|
||||||
+#else /* ! __ASSEMBLY__ */
|
|
||||||
+
|
|
||||||
+#include <linux/types.h>
|
|
||||||
+#include <linux/swab.h>
|
|
||||||
+
|
|
||||||
+#define ___opcode_swab32(x) swab32(x)
|
|
||||||
+#define ___opcode_swab16(x) swab16(x)
|
|
||||||
+#define ___opcode_swahb32(x) swahb32(x)
|
|
||||||
+#define ___opcode_swahw32(x) swahw32(x)
|
|
||||||
+#define ___opcode_identity32(x) ((u32)(x))
|
|
||||||
+#define ___opcode_identity16(x) ((u16)(x))
|
|
||||||
+
|
|
||||||
+#endif /* ! __ASSEMBLY__ */
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+#ifdef CONFIG_CPU_ENDIAN_BE8
|
|
||||||
+
|
|
||||||
+#define __opcode_to_mem_arm(x) ___opcode_swab32(x)
|
|
||||||
+#define __opcode_to_mem_thumb16(x) ___opcode_swab16(x)
|
|
||||||
+#define __opcode_to_mem_thumb32(x) ___opcode_swahb32(x)
|
|
||||||
+#define ___asm_opcode_to_mem_arm(x) ___asm_opcode_swab32(x)
|
|
||||||
+#define ___asm_opcode_to_mem_thumb16(x) ___asm_opcode_swab16(x)
|
|
||||||
+#define ___asm_opcode_to_mem_thumb32(x) ___asm_opcode_swahb32(x)
|
|
||||||
+
|
|
||||||
+#else /* ! CONFIG_CPU_ENDIAN_BE8 */
|
|
||||||
+
|
|
||||||
+#define __opcode_to_mem_arm(x) ___opcode_identity32(x)
|
|
||||||
+#define __opcode_to_mem_thumb16(x) ___opcode_identity16(x)
|
|
||||||
+#define ___asm_opcode_to_mem_arm(x) ___asm_opcode_identity32(x)
|
|
||||||
+#define ___asm_opcode_to_mem_thumb16(x) ___asm_opcode_identity16(x)
|
|
||||||
+#ifndef CONFIG_CPU_ENDIAN_BE32
|
|
||||||
+/*
|
|
||||||
+ * On BE32 systems, using 32-bit accesses to store Thumb instructions will not
|
|
||||||
+ * work in all cases, due to alignment constraints. For now, a correct
|
|
||||||
+ * version is not provided for BE32.
|
|
||||||
+ */
|
|
||||||
+#define __opcode_to_mem_thumb32(x) ___opcode_swahw32(x)
|
|
||||||
+#define ___asm_opcode_to_mem_thumb32(x) ___asm_opcode_swahw32(x)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#endif /* ! CONFIG_CPU_ENDIAN_BE8 */
|
|
||||||
+
|
|
||||||
+#define __mem_to_opcode_arm(x) __opcode_to_mem_arm(x)
|
|
||||||
+#define __mem_to_opcode_thumb16(x) __opcode_to_mem_thumb16(x)
|
|
||||||
+#ifndef CONFIG_CPU_ENDIAN_BE32
|
|
||||||
+#define __mem_to_opcode_thumb32(x) __opcode_to_mem_thumb32(x)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+/* Operations specific to Thumb opcodes */
|
|
||||||
+
|
|
||||||
+/* Instruction size checks: */
|
|
||||||
+#define __opcode_is_thumb32(x) ( \
|
|
||||||
+ ((x) & 0xF8000000) == 0xE8000000 \
|
|
||||||
+ || ((x) & 0xF0000000) == 0xF0000000 \
|
|
||||||
+)
|
|
||||||
+#define __opcode_is_thumb16(x) ( \
|
|
||||||
+ ((x) & 0xFFFF0000) == 0 \
|
|
||||||
+ && !(((x) & 0xF800) == 0xE800 || ((x) & 0xF000) == 0xF000) \
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+/* Operations to construct or split 32-bit Thumb instructions: */
|
|
||||||
+#define __opcode_thumb32_first(x) (___opcode_identity16((x) >> 16))
|
|
||||||
+#define __opcode_thumb32_second(x) (___opcode_identity16(x))
|
|
||||||
+#define __opcode_thumb32_compose(first, second) ( \
|
|
||||||
+ (___opcode_identity32(___opcode_identity16(first)) << 16) \
|
|
||||||
+ | ___opcode_identity32(___opcode_identity16(second)) \
|
|
||||||
+)
|
|
||||||
+#define ___asm_opcode_thumb32_first(x) (___asm_opcode_identity16((x) >> 16))
|
|
||||||
+#define ___asm_opcode_thumb32_second(x) (___asm_opcode_identity16(x))
|
|
||||||
+#define ___asm_opcode_thumb32_compose(first, second) ( \
|
|
||||||
+ (___asm_opcode_identity32(___asm_opcode_identity16(first)) << 16) \
|
|
||||||
+ | ___asm_opcode_identity32(___asm_opcode_identity16(second)) \
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * Opcode injection helpers
|
|
||||||
+ *
|
|
||||||
+ * In rare cases it is necessary to assemble an opcode which the
|
|
||||||
+ * assembler does not support directly, or which would normally be
|
|
||||||
+ * rejected because of the CFLAGS or AFLAGS used to build the affected
|
|
||||||
+ * file.
|
|
||||||
+ *
|
|
||||||
+ * Before using these macros, consider carefully whether it is feasible
|
|
||||||
+ * instead to change the build flags for your file, or whether it really
|
|
||||||
+ * makes sense to support old assembler versions when building that
|
|
||||||
+ * particular kernel feature.
|
|
||||||
+ *
|
|
||||||
+ * The macros defined here should only be used where there is no viable
|
|
||||||
+ * alternative.
|
|
||||||
+ *
|
|
||||||
+ *
|
|
||||||
+ * __inst_arm(x): emit the specified ARM opcode
|
|
||||||
+ * __inst_thumb16(x): emit the specified 16-bit Thumb opcode
|
|
||||||
+ * __inst_thumb32(x): emit the specified 32-bit Thumb opcode
|
|
||||||
+ *
|
|
||||||
+ * __inst_arm_thumb16(arm, thumb): emit either the specified arm or
|
|
||||||
+ * 16-bit Thumb opcode, depending on whether an ARM or Thumb-2
|
|
||||||
+ * kernel is being built
|
|
||||||
+ *
|
|
||||||
+ * __inst_arm_thumb32(arm, thumb): emit either the specified arm or
|
|
||||||
+ * 32-bit Thumb opcode, depending on whether an ARM or Thumb-2
|
|
||||||
+ * kernel is being built
|
|
||||||
+ *
|
|
||||||
+ *
|
|
||||||
+ * Note that using these macros directly is poor practice. Instead, you
|
|
||||||
+ * should use them to define human-readable wrapper macros to encode the
|
|
||||||
+ * instructions that you care about. In code which might run on ARMv7 or
|
|
||||||
+ * above, you can usually use the __inst_arm_thumb{16,32} macros to
|
|
||||||
+ * specify the ARM and Thumb alternatives at the same time. This ensures
|
|
||||||
+ * that the correct opcode gets emitted depending on the instruction set
|
|
||||||
+ * used for the kernel build.
|
|
||||||
+ *
|
|
||||||
+ * Look at opcodes-virt.h for an example of how to use these macros.
|
|
||||||
+ */
|
|
||||||
+#include <linux/stringify.h>
|
|
||||||
+
|
|
||||||
+#define __inst_arm(x) ___inst_arm(___asm_opcode_to_mem_arm(x))
|
|
||||||
+#define __inst_thumb32(x) ___inst_thumb32( \
|
|
||||||
+ ___asm_opcode_to_mem_thumb16(___asm_opcode_thumb32_first(x)), \
|
|
||||||
+ ___asm_opcode_to_mem_thumb16(___asm_opcode_thumb32_second(x)) \
|
|
||||||
+)
|
|
||||||
+#define __inst_thumb16(x) ___inst_thumb16(___asm_opcode_to_mem_thumb16(x))
|
|
||||||
+
|
|
||||||
+#ifdef CONFIG_THUMB2_BAREBOX
|
|
||||||
+#define __inst_arm_thumb16(arm_opcode, thumb_opcode) \
|
|
||||||
+ __inst_thumb16(thumb_opcode)
|
|
||||||
+#define __inst_arm_thumb32(arm_opcode, thumb_opcode) \
|
|
||||||
+ __inst_thumb32(thumb_opcode)
|
|
||||||
+#else
|
|
||||||
+#define __inst_arm_thumb16(arm_opcode, thumb_opcode) __inst_arm(arm_opcode)
|
|
||||||
+#define __inst_arm_thumb32(arm_opcode, thumb_opcode) __inst_arm(arm_opcode)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+/* Helpers for the helpers. Don't use these directly. */
|
|
||||||
+#ifdef __ASSEMBLY__
|
|
||||||
+#define ___inst_arm(x) .long x
|
|
||||||
+#define ___inst_thumb16(x) .short x
|
|
||||||
+#define ___inst_thumb32(first, second) .short first, second
|
|
||||||
+#else
|
|
||||||
+#define ___inst_arm(x) ".long " __stringify(x) "\n\t"
|
|
||||||
+#define ___inst_thumb16(x) ".short " __stringify(x) "\n\t"
|
|
||||||
+#define ___inst_thumb32(first, second) \
|
|
||||||
+ ".short " __stringify(first) ", " __stringify(second) "\n\t"
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#endif /* __ASM_ARM_OPCODES_H */
|
|
||||||
--
|
|
||||||
2.16.1
|
|
@@ -1,85 +0,0 @@
|
|||||||
This is a port of the Linux safe_svcmode_maskall macro to
|
|
||||||
the Barebox lowlevel init.
|
|
||||||
|
|
||||||
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
|
|
||||||
---
|
|
||||||
arch/arm/cpu/lowlevel.S | 20 ++++++++++++++++----
|
|
||||||
arch/arm/include/asm/system.h | 26 ++++++++++++++++++++++++++
|
|
||||||
2 files changed, 42 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/cpu/lowlevel.S b/arch/arm/cpu/lowlevel.S
|
|
||||||
index 7696a198e764..194ce0e7c274 100644
|
|
||||||
--- a/arch/arm/cpu/lowlevel.S
|
|
||||||
+++ b/arch/arm/cpu/lowlevel.S
|
|
||||||
@@ -1,16 +1,28 @@
|
|
||||||
#include <linux/linkage.h>
|
|
||||||
#include <init.h>
|
|
||||||
#include <asm/system.h>
|
|
||||||
+#include <asm/opcodes-virt.h>
|
|
||||||
|
|
||||||
.section ".text_bare_init_","ax"
|
|
||||||
ENTRY(arm_cpu_lowlevel_init)
|
|
||||||
/* save lr, since it may be banked away with a processor mode change */
|
|
||||||
mov r2, lr
|
|
||||||
+
|
|
||||||
/* set the cpu to SVC32 mode, mask irq and fiq */
|
|
||||||
- mrs r12, cpsr
|
|
||||||
- bic r12, r12, #0x1f
|
|
||||||
- orr r12, r12, #0xd3
|
|
||||||
- msr cpsr, r12
|
|
||||||
+ mrs r12 , cpsr
|
|
||||||
+ eor r12, r12, #HYP_MODE
|
|
||||||
+ tst r12, #MODE_MASK
|
|
||||||
+ bic r12 , r12 , #MODE_MASK
|
|
||||||
+ orr r12 , r12 , #(PSR_I_BIT | PSR_F_BIT | SVC_MODE)
|
|
||||||
+THUMB( orr r12 , r12 , #PSR_T_BIT )
|
|
||||||
+ bne 1f
|
|
||||||
+ orr r12, r12, #PSR_A_BIT
|
|
||||||
+ adr lr, 2f
|
|
||||||
+ msr spsr_cxsf, r12
|
|
||||||
+ __MSR_ELR_HYP(14)
|
|
||||||
+ __ERET
|
|
||||||
+1: msr cpsr_c, r12
|
|
||||||
+2:
|
|
||||||
|
|
||||||
#if __LINUX_ARM_ARCH__ >= 6
|
|
||||||
/*
|
|
||||||
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h
|
|
||||||
index 57c76186b499..55e0f4090295 100644
|
|
||||||
--- a/arch/arm/include/asm/system.h
|
|
||||||
+++ b/arch/arm/include/asm/system.h
|
|
||||||
@@ -60,6 +60,32 @@
|
|
||||||
#define CR_AFE (1 << 29) /* Access flag enable */
|
|
||||||
#define CR_TE (1 << 30) /* Thumb exception enable */
|
|
||||||
|
|
||||||
+/*
|
|
||||||
+ * PSR bits
|
|
||||||
+ */
|
|
||||||
+#define USR_MODE 0x00000010
|
|
||||||
+#define FIQ_MODE 0x00000011
|
|
||||||
+#define IRQ_MODE 0x00000012
|
|
||||||
+#define SVC_MODE 0x00000013
|
|
||||||
+#define ABT_MODE 0x00000017
|
|
||||||
+#define HYP_MODE 0x0000001a
|
|
||||||
+#define UND_MODE 0x0000001b
|
|
||||||
+#define SYSTEM_MODE 0x0000001f
|
|
||||||
+#define MODE32_BIT 0x00000010
|
|
||||||
+#define MODE_MASK 0x0000001f
|
|
||||||
+
|
|
||||||
+#define PSR_T_BIT 0x00000020
|
|
||||||
+#define PSR_F_BIT 0x00000040
|
|
||||||
+#define PSR_I_BIT 0x00000080
|
|
||||||
+#define PSR_A_BIT 0x00000100
|
|
||||||
+#define PSR_E_BIT 0x00000200
|
|
||||||
+#define PSR_J_BIT 0x01000000
|
|
||||||
+#define PSR_Q_BIT 0x08000000
|
|
||||||
+#define PSR_V_BIT 0x10000000
|
|
||||||
+#define PSR_C_BIT 0x20000000
|
|
||||||
+#define PSR_Z_BIT 0x40000000
|
|
||||||
+#define PSR_N_BIT 0x80000000
|
|
||||||
+
|
|
||||||
#ifndef __ASSEMBLY__
|
|
||||||
#if __LINUX_ARM_ARCH__ >= 7
|
|
||||||
static inline unsigned int current_el(void)
|
|
||||||
--
|
|
||||||
2.15.1
|
|
@@ -1,33 +0,0 @@
|
|||||||
The hyp mode handling added in the secure monitor code is also useful
|
|
||||||
when Barebox doesn't have PSCI control. Allow to build without PSCI.
|
|
||||||
|
|
||||||
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
|
|
||||||
---
|
|
||||||
arch/arm/cpu/sm_as.S | 4 ++++
|
|
||||||
1 file changed, 4 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/cpu/sm_as.S b/arch/arm/cpu/sm_as.S
|
|
||||||
index 09580e75de5f..0d01e1bf2435 100644
|
|
||||||
--- a/arch/arm/cpu/sm_as.S
|
|
||||||
+++ b/arch/arm/cpu/sm_as.S
|
|
||||||
@@ -129,7 +129,9 @@ secure_monitor:
|
|
||||||
sub sp, sp, #4*4 @ allocate result structure on stack
|
|
||||||
mov r12, sp
|
|
||||||
push {r4-r6, r12}
|
|
||||||
+#ifdef CONFIG_ARM_PSCI
|
|
||||||
bl psci_entry
|
|
||||||
+#endif
|
|
||||||
pop {r4-r6, r12}
|
|
||||||
ldm r12, {r0-r3}
|
|
||||||
add sp, sp, #4*4
|
|
||||||
@@ -163,6 +165,8 @@ ENTRY(psci_cpu_entry)
|
|
||||||
mcr p15, 0, r0, c1, c0, 1 @ ACTLR
|
|
||||||
|
|
||||||
bl secure_monitor_stack_setup
|
|
||||||
+#ifdef CONFIG_ARM_PSCI
|
|
||||||
bl psci_cpu_entry_c
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
ENDPROC(psci_cpu_entry)
|
|
||||||
--
|
|
||||||
2.15.1
|
|
@@ -1,192 +0,0 @@
|
|||||||
From 6add848d66a7bdebed73416a3cf27b8bf10a2cd8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Sat, 19 May 2018 17:58:01 +0200
|
|
||||||
Subject: [PATCH 1/1] p2
|
|
||||||
|
|
||||||
---
|
|
||||||
arch/arm/cpu/Makefile | 7 +++
|
|
||||||
arch/arm/cpu/hyp.S | 115 ++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
arch/arm/cpu/sm_as.S | 11 ----
|
|
||||||
arch/arm/include/asm/secure.h | 2 +
|
|
||||||
4 files changed, 124 insertions(+), 11 deletions(-)
|
|
||||||
create mode 100644 arch/arm/cpu/hyp.S
|
|
||||||
|
|
||||||
diff --git a/arch/arm/cpu/Makefile b/arch/arm/cpu/Makefile
|
|
||||||
index 0316d25..6d67b42 100644
|
|
||||||
--- a/arch/arm/cpu/Makefile
|
|
||||||
+++ b/arch/arm/cpu/Makefile
|
|
||||||
@@ -9,6 +9,13 @@ obj-y += start.o entry.o
|
|
||||||
|
|
||||||
obj-pbl-y += setupc$(S64).o cache$(S64).o
|
|
||||||
|
|
||||||
+ifeq ($(CONFIG_CPU_64v8),)
|
|
||||||
+obj-y += hyp.o
|
|
||||||
+AFLAGS_hyp.o :=-Wa,-march=armv7-a
|
|
||||||
+pbl-y += hyp.o
|
|
||||||
+AFLAGS_pbl-hyp.o :=-Wa,-march=armv7-a
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
#
|
|
||||||
# Any variants can be called as start-armxyz.S
|
|
||||||
#
|
|
||||||
diff --git a/arch/arm/cpu/hyp.S b/arch/arm/cpu/hyp.S
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..435d416
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/arch/arm/cpu/hyp.S
|
|
||||||
@@ -0,0 +1,115 @@
|
|
||||||
+#include <linux/linkage.h>
|
|
||||||
+#include <asm/system.h>
|
|
||||||
+#include <asm/opcodes-virt.h>
|
|
||||||
+
|
|
||||||
+.arch_extension sec
|
|
||||||
+.arch_extension virt
|
|
||||||
+
|
|
||||||
+.section ".text_bare_init_","ax"
|
|
||||||
+
|
|
||||||
+.data
|
|
||||||
+ .align 2
|
|
||||||
+ENTRY(__boot_cpu_mode)
|
|
||||||
+ .long 0
|
|
||||||
+.text
|
|
||||||
+
|
|
||||||
+ENTRY(__hyp_install)
|
|
||||||
+ mrs r12, cpsr
|
|
||||||
+ and r12, r12, #MODE_MASK
|
|
||||||
+
|
|
||||||
+ @ Save the initial CPU state
|
|
||||||
+ adr r0, .L__boot_cpu_mode_offset
|
|
||||||
+ ldr r1, [r0]
|
|
||||||
+ str r12, [r0, r1]
|
|
||||||
+
|
|
||||||
+ cmp r12, #HYP_MODE
|
|
||||||
+ movne pc, lr @ give up if the CPU is not in HYP mode
|
|
||||||
+
|
|
||||||
+ @ Now install the hypervisor stub:
|
|
||||||
+ adr r12, __hyp_vectors
|
|
||||||
+ mcr p15, 4, r12, c12, c0, 0 @ set hypervisor vector base (HVBAR)
|
|
||||||
+
|
|
||||||
+ @ Disable all traps, so we don't get any nasty surprise
|
|
||||||
+ mov r12, #0
|
|
||||||
+ mcr p15, 4, r12, c1, c1, 0 @ HCR
|
|
||||||
+ mcr p15, 4, r12, c1, c1, 2 @ HCPTR
|
|
||||||
+ mcr p15, 4, r12, c1, c1, 3 @ HSTR
|
|
||||||
+
|
|
||||||
+THUMB( orr r12, #(1 << 30) ) @ HSCTLR.TE
|
|
||||||
+ mcr p15, 4, r12, c1, c0, 0 @ HSCTLR
|
|
||||||
+
|
|
||||||
+ mrc p15, 4, r12, c1, c1, 1 @ HDCR
|
|
||||||
+ and r12, #0x1f @ Preserve HPMN
|
|
||||||
+ mcr p15, 4, r12, c1, c1, 1 @ HDCR
|
|
||||||
+
|
|
||||||
+ @ Make sure NS-SVC is initialised appropriately
|
|
||||||
+ mrc p15, 0, r12, c1, c0, 0 @ SCTLR
|
|
||||||
+ orr r12, #(1 << 5) @ CP15 barriers enabled
|
|
||||||
+ bic r12, #(3 << 7) @ Clear SED/ITD for v8 (RES0 for v7)
|
|
||||||
+ bic r12, #(3 << 19) @ WXN and UWXN disabled
|
|
||||||
+ mcr p15, 0, r12, c1, c0, 0 @ SCTLR
|
|
||||||
+
|
|
||||||
+ mrc p15, 0, r12, c0, c0, 0 @ MIDR
|
|
||||||
+ mcr p15, 4, r12, c0, c0, 0 @ VPIDR
|
|
||||||
+
|
|
||||||
+ mrc p15, 0, r12, c0, c0, 5 @ MPIDR
|
|
||||||
+ mcr p15, 4, r12, c0, c0, 5 @ VMPIDR
|
|
||||||
+ bx lr
|
|
||||||
+ENDPROC(__hyp_install)
|
|
||||||
+
|
|
||||||
+ENTRY(armv7_hyp_install)
|
|
||||||
+ mov r2, lr
|
|
||||||
+
|
|
||||||
+ bl __hyp_install
|
|
||||||
+
|
|
||||||
+ /* set the cpu to SVC32 mode, mask irq and fiq */
|
|
||||||
+ mrs r12 , cpsr
|
|
||||||
+ eor r12, r12, #HYP_MODE
|
|
||||||
+ tst r12, #MODE_MASK
|
|
||||||
+ bic r12 , r12 , #MODE_MASK
|
|
||||||
+ orr r12 , r12 , #(PSR_I_BIT | PSR_F_BIT | SVC_MODE)
|
|
||||||
+THUMB( orr r12 , r12 , #PSR_T_BIT )
|
|
||||||
+ bne 1f
|
|
||||||
+ orr r12, r12, #PSR_A_BIT
|
|
||||||
+ adr lr, 2f
|
|
||||||
+ msr spsr_cxsf, r12
|
|
||||||
+ __MSR_ELR_HYP(14)
|
|
||||||
+ __ERET
|
|
||||||
+1: msr cpsr_c, r12
|
|
||||||
+2:
|
|
||||||
+ mov pc, r2
|
|
||||||
+ENDPROC(armv7_hyp_install)
|
|
||||||
+
|
|
||||||
+ENTRY(armv7_switch_to_hyp)
|
|
||||||
+ mov r0, lr
|
|
||||||
+ mov r1, sp @ save SVC copy of LR and SP
|
|
||||||
+ isb
|
|
||||||
+ hvc #0 @ for older asm: .byte 0x70, 0x00, 0x40, 0xe1
|
|
||||||
+ mov sp, r1
|
|
||||||
+ mov lr, r0 @ restore SVC copy of LR and SP
|
|
||||||
+
|
|
||||||
+ bx lr
|
|
||||||
+ENDPROC(armv7_switch_to_hyp)
|
|
||||||
+
|
|
||||||
+.align 2
|
|
||||||
+.L__boot_cpu_mode_offset:
|
|
||||||
+ .long __boot_cpu_mode - .
|
|
||||||
+
|
|
||||||
+/* The HYP trap is crafted to match armv7_switch_to_hyp() */
|
|
||||||
+__hyp_do_trap:
|
|
||||||
+ mov lr, r0
|
|
||||||
+ mov sp, r1
|
|
||||||
+ bx lr
|
|
||||||
+ENDPROC(__hyp_do_trap)
|
|
||||||
+
|
|
||||||
+.align 5
|
|
||||||
+__hyp_vectors:
|
|
||||||
+__hyp_reset: W(b) .
|
|
||||||
+__hyp_und: W(b) .
|
|
||||||
+__hyp_svc: W(b) .
|
|
||||||
+__hyp_pabort: W(b) .
|
|
||||||
+__hyp_dabort: W(b) .
|
|
||||||
+__hyp_trap: W(b) __hyp_do_trap
|
|
||||||
+__hyp_irq: W(b) .
|
|
||||||
+__hyp_fiq: W(b) .
|
|
||||||
+ENDPROC(__hyp_vectors)
|
|
||||||
diff --git a/arch/arm/cpu/sm_as.S b/arch/arm/cpu/sm_as.S
|
|
||||||
index 0d01e1b..de6cd04 100644
|
|
||||||
--- a/arch/arm/cpu/sm_as.S
|
|
||||||
+++ b/arch/arm/cpu/sm_as.S
|
|
||||||
@@ -148,17 +148,6 @@ hyp_trap:
|
|
||||||
mov pc, lr @ do no switch modes, but
|
|
||||||
@ return to caller
|
|
||||||
|
|
||||||
-ENTRY(armv7_switch_to_hyp)
|
|
||||||
- mov r0, lr
|
|
||||||
- mov r1, sp @ save SVC copy of LR and SP
|
|
||||||
- isb
|
|
||||||
- hvc #0 @ for older asm: .byte 0x70, 0x00, 0x40, 0xe1
|
|
||||||
- mov sp, r1
|
|
||||||
- mov lr, r0 @ restore SVC copy of LR and SP
|
|
||||||
-
|
|
||||||
- bx lr
|
|
||||||
-ENDPROC(armv7_switch_to_hyp)
|
|
||||||
-
|
|
||||||
ENTRY(psci_cpu_entry)
|
|
||||||
mrc p15, 0, r0, c1, c0, 1 @ ACTLR
|
|
||||||
orr r0, r0, #(1 << 6) @ Set SMP bit
|
|
||||||
diff --git a/arch/arm/include/asm/secure.h b/arch/arm/include/asm/secure.h
|
|
||||||
index a4cb1f6..54cc052 100644
|
|
||||||
--- a/arch/arm/include/asm/secure.h
|
|
||||||
+++ b/arch/arm/include/asm/secure.h
|
|
||||||
@@ -6,8 +6,10 @@
|
|
||||||
int armv7_secure_monitor_install(void);
|
|
||||||
int __armv7_secure_monitor_install(void);
|
|
||||||
void armv7_switch_to_hyp(void);
|
|
||||||
+void armv7_hyp_install(void);
|
|
||||||
|
|
||||||
extern unsigned char secure_monitor_init_vectors[];
|
|
||||||
+extern int __boot_cpu_mode;
|
|
||||||
|
|
||||||
enum arm_security_state {
|
|
||||||
ARM_STATE_SECURE,
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
@@ -1,25 +0,0 @@
|
|||||||
When Barebox has been entered in HYP mode, the CPU is already switched
|
|
||||||
to the non-secure world and it's not possible for Barebox to install
|
|
||||||
it's own secure monitor.
|
|
||||||
|
|
||||||
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
|
|
||||||
---
|
|
||||||
arch/arm/cpu/sm.c | 3 +++
|
|
||||||
1 file changed, 3 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/cpu/sm.c b/arch/arm/cpu/sm.c
|
|
||||||
index 5808dfd92bdc..71bb394c8540 100644
|
|
||||||
--- a/arch/arm/cpu/sm.c
|
|
||||||
+++ b/arch/arm/cpu/sm.c
|
|
||||||
@@ -184,6 +184,9 @@ int armv7_secure_monitor_install(void)
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ if (__boot_cpu_mode == HYP_MODE)
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
mmuon = get_cr() & CR_M;
|
|
||||||
|
|
||||||
vbar = get_vbar();
|
|
||||||
--
|
|
||||||
2.15.1
|
|
@@ -1,26 +0,0 @@
|
|||||||
When Barebox has been entered in HYP mode, there is a high chance that
|
|
||||||
the kernel is intended to be started in HYP mode also. Get this
|
|
||||||
default into place.
|
|
||||||
|
|
||||||
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
|
|
||||||
---
|
|
||||||
arch/arm/cpu/sm.c | 3 +++
|
|
||||||
1 file changed, 3 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/cpu/sm.c b/arch/arm/cpu/sm.c
|
|
||||||
index 71bb394c8540..3369fbb5ff1a 100644
|
|
||||||
--- a/arch/arm/cpu/sm.c
|
|
||||||
+++ b/arch/arm/cpu/sm.c
|
|
||||||
@@ -264,6 +264,9 @@ static int sm_init(void)
|
|
||||||
bootm_secure_state_names,
|
|
||||||
ARRAY_SIZE(bootm_secure_state_names));
|
|
||||||
|
|
||||||
+ if (__boot_cpu_mode == HYP_MODE)
|
|
||||||
+ bootm_secure_state = ARM_STATE_HYP;
|
|
||||||
+
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(sm_init);
|
|
||||||
\ No newline at end of file
|
|
||||||
--
|
|
||||||
2.15.1
|
|
@@ -1,84 +0,0 @@
|
|||||||
From f984f8cf4c07f24af7855a4fd69afa3e656238c2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Sat, 19 May 2018 17:24:42 +0200
|
|
||||||
Subject: [PATCH 1/1] p4
|
|
||||||
|
|
||||||
---
|
|
||||||
arch/arm/cpu/lowlevel.S | 3 +++
|
|
||||||
arch/arm/cpu/start-pbl.c | 3 +++
|
|
||||||
arch/arm/cpu/start.c | 3 +++
|
|
||||||
arch/arm/cpu/uncompress.c | 4 ++++
|
|
||||||
4 files changed, 13 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/cpu/lowlevel.S b/arch/arm/cpu/lowlevel.S
|
|
||||||
index 194ce0e..28ad850 100644
|
|
||||||
--- a/arch/arm/cpu/lowlevel.S
|
|
||||||
+++ b/arch/arm/cpu/lowlevel.S
|
|
||||||
@@ -8,6 +8,9 @@ ENTRY(arm_cpu_lowlevel_init)
|
|
||||||
/* save lr, since it may be banked away with a processor mode change */
|
|
||||||
mov r2, lr
|
|
||||||
|
|
||||||
+ /* careful: the hyp install corrupts r0 and r1 */
|
|
||||||
+ bl __hyp_install
|
|
||||||
+
|
|
||||||
/* set the cpu to SVC32 mode, mask irq and fiq */
|
|
||||||
mrs r12 , cpsr
|
|
||||||
eor r12, r12, #HYP_MODE
|
|
||||||
diff --git a/arch/arm/cpu/start-pbl.c b/arch/arm/cpu/start-pbl.c
|
|
||||||
index 16159d7..3f9959e 100644
|
|
||||||
--- a/arch/arm/cpu/start-pbl.c
|
|
||||||
+++ b/arch/arm/cpu/start-pbl.c
|
|
||||||
@@ -98,5 +98,8 @@ __noreturn void barebox_single_pbl_start(unsigned long membase,
|
|
||||||
else
|
|
||||||
barebox = (void *)barebox_base;
|
|
||||||
|
|
||||||
+ if (__boot_cpu_mode == HYP_MODE)
|
|
||||||
+ armv7_switch_to_hyp();
|
|
||||||
+
|
|
||||||
barebox(membase, memsize, boarddata);
|
|
||||||
}
|
|
||||||
diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c
|
|
||||||
index 68fff89..1ee13c0 100644
|
|
||||||
--- a/arch/arm/cpu/start.c
|
|
||||||
+++ b/arch/arm/cpu/start.c
|
|
||||||
@@ -24,6 +24,7 @@
|
|
||||||
#include <asm/barebox-arm-head.h>
|
|
||||||
#include <asm-generic/memory_layout.h>
|
|
||||||
#include <asm/sections.h>
|
|
||||||
+#include <asm/secure.h>
|
|
||||||
#include <asm/unaligned.h>
|
|
||||||
#include <asm/cache.h>
|
|
||||||
#include <asm/mmu.h>
|
|
||||||
@@ -145,6 +146,8 @@ __noreturn void barebox_non_pbl_start(unsigned long membase,
|
|
||||||
unsigned long malloc_start, malloc_end;
|
|
||||||
unsigned long barebox_size = barebox_image_size + MAX_BSS_SIZE;
|
|
||||||
|
|
||||||
+ armv7_hyp_install();
|
|
||||||
+
|
|
||||||
if (IS_ENABLED(CONFIG_RELOCATABLE)) {
|
|
||||||
unsigned long barebox_base = arm_mem_barebox_image(membase,
|
|
||||||
endmem,
|
|
||||||
diff --git a/arch/arm/cpu/uncompress.c b/arch/arm/cpu/uncompress.c
|
|
||||||
index b07087e..57f324b 100644
|
|
||||||
--- a/arch/arm/cpu/uncompress.c
|
|
||||||
+++ b/arch/arm/cpu/uncompress.c
|
|
||||||
@@ -27,6 +27,7 @@
|
|
||||||
#include <asm/barebox-arm-head.h>
|
|
||||||
#include <asm-generic/memory_layout.h>
|
|
||||||
#include <asm/sections.h>
|
|
||||||
+#include <asm/secure.h>
|
|
||||||
#include <asm/cache.h>
|
|
||||||
#include <asm/mmu.h>
|
|
||||||
#include <asm/unaligned.h>
|
|
||||||
@@ -108,5 +109,8 @@ void __noreturn barebox_multi_pbl_start(unsigned long membase,
|
|
||||||
|
|
||||||
pr_debug("jumping to uncompressed image at 0x%p\n", barebox);
|
|
||||||
|
|
||||||
+ if (__boot_cpu_mode == HYP_MODE)
|
|
||||||
+ armv7_switch_to_hyp();
|
|
||||||
+
|
|
||||||
barebox(membase, memsize, boarddata);
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
@@ -1,38 +0,0 @@
|
|||||||
From: Enrico Joerns <ejo at pengutronix.de>
|
|
||||||
|
|
||||||
Signed-off-by: Enrico Joerns <ejo at pengutronix.de>
|
|
||||||
---
|
|
||||||
arch/arm/boards/raspberry-pi/rpi-common.c | 2 ++
|
|
||||||
arch/arm/mach-bcm283x/include/mach/mbox.h | 4 ++++
|
|
||||||
2 files changed, 6 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c
|
|
||||||
index 6e375bc984de..aec8cb27ed40 100644
|
|
||||||
--- a/arch/arm/boards/raspberry-pi/rpi-common.c
|
|
||||||
+++ b/arch/arm/boards/raspberry-pi/rpi-common.c
|
|
||||||
@@ -174,6 +174,8 @@ const struct rpi_model rpi_models_old_scheme[] = {
|
|
||||||
const struct rpi_model rpi_models_new_scheme[] = {
|
|
||||||
RPI_MODEL(0, "Unknown model", NULL),
|
|
||||||
RPI_MODEL(BCM2836_BOARD_REV_2_B, "2 Model B", rpi_b_plus_init),
|
|
||||||
+ RPI_MODEL(BCM2837_BOARD_REV_3_B, "3 Model B", rpi_b_plus_init),
|
|
||||||
+ RPI_MODEL(BCM2837_BOARD_REV_ZERO, "Zero", rpi_b_plus_init),
|
|
||||||
};
|
|
||||||
|
|
||||||
static int rpi_board_rev = 0;
|
|
||||||
diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-bcm283x/include/mach/mbox.h
|
|
||||||
index 2b5aea88ee0a..4cddf99a8429 100644
|
|
||||||
--- a/arch/arm/mach-bcm283x/include/mach/mbox.h
|
|
||||||
+++ b/arch/arm/mach-bcm283x/include/mach/mbox.h
|
|
||||||
@@ -129,6 +129,10 @@ struct bcm2835_mbox_tag_hdr {
|
|
||||||
|
|
||||||
/* RPi 2 */
|
|
||||||
#define BCM2836_BOARD_REV_2_B 0x4
|
|
||||||
+/* RPi 3 */
|
|
||||||
+#define BCM2837_BOARD_REV_3_B 0x8
|
|
||||||
+/* Zero */
|
|
||||||
+#define BCM2837_BOARD_REV_ZERO 0x9
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 0x2..0xf from:
|
|
||||||
--
|
|
||||||
2.15.1
|
|
@@ -1,136 +0,0 @@
|
|||||||
This adds basic support at the same feature level as the other
|
|
||||||
supported raspberry pi boards.
|
|
||||||
|
|
||||||
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
|
|
||||||
---
|
|
||||||
arch/arm/boards/raspberry-pi/lowlevel.c | 14 ++++++++++++--
|
|
||||||
arch/arm/configs/rpi_defconfig | 2 ++
|
|
||||||
arch/arm/dts/Makefile | 1 +
|
|
||||||
arch/arm/dts/bcm2837-rpi-3.dts | 15 +++++++++++++++
|
|
||||||
arch/arm/mach-bcm283x/Kconfig | 6 ++++++
|
|
||||||
arch/arm/mach-bcm283x/core.c | 1 +
|
|
||||||
images/Makefile.bcm283x | 4 ++++
|
|
||||||
7 files changed, 41 insertions(+), 2 deletions(-)
|
|
||||||
create mode 100644 arch/arm/dts/bcm2837-rpi-3.dts
|
|
||||||
|
|
||||||
diff --git a/arch/arm/boards/raspberry-pi/lowlevel.c b/arch/arm/boards/raspberry-pi/lowlevel.c
|
|
||||||
index 4e71e29e0c0b..5ca0d3877069 100644
|
|
||||||
--- a/arch/arm/boards/raspberry-pi/lowlevel.c
|
|
||||||
+++ b/arch/arm/boards/raspberry-pi/lowlevel.c
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
+#include <asm/barebox-arm.h>
|
|
||||||
+#include <asm/cache.h>
|
|
||||||
#include <common.h>
|
|
||||||
#include <linux/sizes.h>
|
|
||||||
-#include <asm/barebox-arm.h>
|
|
||||||
-#include <asm/barebox-arm-head.h>
|
|
||||||
#include <mach/platform.h>
|
|
||||||
|
|
||||||
extern char __dtb_bcm2835_rpi_start[];
|
|
||||||
@@ -23,3 +23,13 @@ ENTRY_FUNCTION(start_raspberry_pi2, r0, r1, r2)
|
|
||||||
|
|
||||||
barebox_arm_entry(BCM2835_SDRAM_BASE, SZ_512M, fdt);
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+extern char __dtb_bcm2837_rpi_3_start[];
|
|
||||||
+ENTRY_FUNCTION(start_raspberry_pi3, r0, r1, r2)
|
|
||||||
+{
|
|
||||||
+ void *fdt = __dtb_bcm2837_rpi_3_start - get_runtime_offset();
|
|
||||||
+
|
|
||||||
+ arm_cpu_lowlevel_init();
|
|
||||||
+
|
|
||||||
+ barebox_arm_entry(BCM2835_SDRAM_BASE, SZ_512M, fdt);
|
|
||||||
+}
|
|
||||||
diff --git a/arch/arm/configs/rpi_defconfig b/arch/arm/configs/rpi_defconfig
|
|
||||||
index 6dc90c59b36d..34070a05abe7 100644
|
|
||||||
--- a/arch/arm/configs/rpi_defconfig
|
|
||||||
+++ b/arch/arm/configs/rpi_defconfig
|
|
||||||
@@ -1,9 +1,11 @@
|
|
||||||
CONFIG_ARCH_BCM283X=y
|
|
||||||
CONFIG_MACH_RPI=y
|
|
||||||
CONFIG_MACH_RPI2=y
|
|
||||||
+CONFIG_MACH_RPI3=y
|
|
||||||
CONFIG_AEABI=y
|
|
||||||
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
|
|
||||||
CONFIG_ARM_UNWIND=y
|
|
||||||
+CONFIG_IMAGE_COMPRESSION_NONE=y
|
|
||||||
CONFIG_MMU=y
|
|
||||||
CONFIG_MALLOC_TLSF=y
|
|
||||||
CONFIG_KALLSYMS=y
|
|
||||||
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
|
|
||||||
index 0526a6f40724..0eab313c5011 100644
|
|
||||||
--- a/arch/arm/dts/Makefile
|
|
||||||
+++ b/arch/arm/dts/Makefile
|
|
||||||
@@ -66,6 +66,7 @@ pbl-dtb-$(CONFIG_MACH_PHYTEC_SOM_RK3288) += rk3288-phycore-som.dtb.o
|
|
||||||
pbl-dtb-$(CONFIG_MACH_REALQ7) += imx6q-dmo-edmqmx6.dtb.o
|
|
||||||
pbl-dtb-$(CONFIG_MACH_RPI) += bcm2835-rpi.dtb.o
|
|
||||||
pbl-dtb-$(CONFIG_MACH_RPI2) += bcm2836-rpi-2.dtb.o
|
|
||||||
+pbl-dtb-$(CONFIG_MACH_RPI3) += bcm2837-rpi-3.dtb.o
|
|
||||||
pbl-dtb-$(CONFIG_MACH_SABRELITE) += imx6q-sabrelite.dtb.o imx6dl-sabrelite.dtb.o
|
|
||||||
pbl-dtb-$(CONFIG_MACH_SABRESD) += imx6q-sabresd.dtb.o
|
|
||||||
pbl-dtb-$(CONFIG_MACH_FREESCALE_IMX6SX_SABRESDB) += imx6sx-sdb.dtb.o
|
|
||||||
diff --git a/arch/arm/dts/bcm2837-rpi-3.dts b/arch/arm/dts/bcm2837-rpi-3.dts
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..f8c58c570137
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/arch/arm/dts/bcm2837-rpi-3.dts
|
|
||||||
@@ -0,0 +1,15 @@
|
|
||||||
+#include <arm64/broadcom/bcm2837-rpi-3-b.dts>
|
|
||||||
+
|
|
||||||
+/ {
|
|
||||||
+ chosen {
|
|
||||||
+ stdout-path = &uart0;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ memory {
|
|
||||||
+ reg = <0x0 0x0>;
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&uart0 {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig
|
|
||||||
index 1457f114ccaa..af2f88c47acb 100644
|
|
||||||
--- a/arch/arm/mach-bcm283x/Kconfig
|
|
||||||
+++ b/arch/arm/mach-bcm283x/Kconfig
|
|
||||||
@@ -19,6 +19,12 @@ config MACH_RPI2
|
|
||||||
select CPU_V7
|
|
||||||
select MACH_RPI_COMMON
|
|
||||||
|
|
||||||
+config MACH_RPI3
|
|
||||||
+ bool "RaspberryPi 3 (BCM2837/CORTEX-A53)"
|
|
||||||
+ select CPU_V7
|
|
||||||
+ select MACH_RPI_COMMON
|
|
||||||
+ select ARM_SECURE_MONITOR
|
|
||||||
+
|
|
||||||
endmenu
|
|
||||||
|
|
||||||
config MACH_RPI_DEBUG_UART_BASE
|
|
||||||
diff --git a/arch/arm/mach-bcm283x/core.c b/arch/arm/mach-bcm283x/core.c
|
|
||||||
index fddcb0d1a1d4..26f0996b1cb8 100644
|
|
||||||
--- a/arch/arm/mach-bcm283x/core.c
|
|
||||||
+++ b/arch/arm/mach-bcm283x/core.c
|
|
||||||
@@ -41,6 +41,7 @@ static int bcm2835_clk_init(void)
|
|
||||||
clk = clk_fixed("uart0-pl0110", 3 * 1000 * 1000);
|
|
||||||
clk_register_clkdev(clk, NULL, "uart0-pl0110");
|
|
||||||
clk_register_clkdev(clk, NULL, "20201000.serial");
|
|
||||||
+ clk_register_clkdev(clk, NULL, "3f201000.serial");
|
|
||||||
|
|
||||||
clk = clk_fixed("bcm2835-cs", 1 * 1000 * 1000);
|
|
||||||
clk_register_clkdev(clk, NULL, "bcm2835-cs");
|
|
||||||
diff --git a/images/Makefile.bcm283x b/images/Makefile.bcm283x
|
|
||||||
index d59ef043f05c..d14e648926ac 100644
|
|
||||||
--- a/images/Makefile.bcm283x
|
|
||||||
+++ b/images/Makefile.bcm283x
|
|
||||||
@@ -9,3 +9,7 @@ image-$(CONFIG_MACH_RPI) += barebox-raspberry-pi-1.img
|
|
||||||
pblx-$(CONFIG_MACH_RPI2) += start_raspberry_pi2
|
|
||||||
FILE_barebox-raspberry-pi-2.img = start_raspberry_pi2.pblx
|
|
||||||
image-$(CONFIG_MACH_RPI2) += barebox-raspberry-pi-2.img
|
|
||||||
+
|
|
||||||
+pblx-$(CONFIG_MACH_RPI3) += start_raspberry_pi3
|
|
||||||
+FILE_barebox-raspberry-pi-3.img = start_raspberry_pi3.pblx
|
|
||||||
+image-$(CONFIG_MACH_RPI3) += barebox-raspberry-pi-3.img
|
|
||||||
\ No newline at end of file
|
|
||||||
--
|
|
||||||
2.15.1
|
|
@@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
SCRIPT_DIR=${BR2_EXTERNAL_HASSOS_PATH}/scripts
|
|
||||||
BOARD_DIR=${2}
|
|
||||||
BOOT_DATA=${BINARIES_DIR}/boot
|
|
||||||
|
|
||||||
. ${SCRIPT_DIR}/hdd-image.sh
|
|
||||||
. ${BR2_EXTERNAL_HASSOS_PATH}/info
|
|
||||||
. ${BOARD_DIR}/info
|
|
||||||
|
|
||||||
# Filename
|
|
||||||
IMAGE_FILE=${BINARIES_DIR}/${HASSOS_ID}_${BOARD_ID}-${VERSION_MAJOR}.${VERSION_BUILD}.img
|
|
||||||
|
|
||||||
# Init boot data
|
|
||||||
rm -rf ${BOOT_DATA}
|
|
||||||
mkdir -p ${BOOT_DATA}
|
|
||||||
|
|
||||||
cp ${BINARIES_DIR}/barebox.bin ${BOOT_DATA}/
|
|
||||||
cp -t ${BOOT_DATA} \
|
|
||||||
${BINARIES_DIR}/bcm2710-rpi-3-b.dtb \
|
|
||||||
${BINARIES_DIR}/bcm2710-rpi-3-b-plus.dtb \
|
|
||||||
${BINARIES_DIR}/bcm2710-rpi-cm3.dtb \
|
|
||||||
${BINARIES_DIR}/rpi-firmware/bootcode.bin \
|
|
||||||
${BINARIES_DIR}/rpi-firmware/fixup.dat \
|
|
||||||
${BINARIES_DIR}/rpi-firmware/start.elf
|
|
||||||
cp -r ${BINARIES_DIR}/rpi-firmware/overlays ${BOOT_DATA}/
|
|
||||||
|
|
||||||
# Update Boot options
|
|
||||||
(
|
|
||||||
echo "kernel=barebox.bin"
|
|
||||||
echo "cmdline=\"\""
|
|
||||||
echo "gpu_mem=16"
|
|
||||||
echo "disable_splash=1"
|
|
||||||
echo "dtparam=i2c_arm=on"
|
|
||||||
echo "dtparam=spi=on"
|
|
||||||
echo "dtparam=audio=on"
|
|
||||||
) > ${BOOT_DATA}/config.txt
|
|
||||||
|
|
||||||
touch ${BOOT_DATA}/cmdline.txt
|
|
||||||
|
|
||||||
# Create other layers
|
|
||||||
create_boot_image ${BINARIES_DIR}
|
|
||||||
create_overlay_image ${BINARIES_DIR}
|
|
||||||
|
|
||||||
create_disk_image ${BINARIES_DIR} ${IMAGE_FILE} 2
|
|
||||||
fix_disk_image_mbr ${IMAGE_FILE}
|
|
||||||
|
|
||||||
rm -rf ${IMAGE_FILE}.gz
|
|
||||||
gzip ${IMAGE_FILE}
|
|
@@ -9,6 +9,7 @@ CONFIG_MENU=y
|
|||||||
CONFIG_BOOTM_SHOW_TYPE=y
|
CONFIG_BOOTM_SHOW_TYPE=y
|
||||||
CONFIG_BOOTM_OFTREE=y
|
CONFIG_BOOTM_OFTREE=y
|
||||||
CONFIG_FLEXIBLE_BOOTARGS=y
|
CONFIG_FLEXIBLE_BOOTARGS=y
|
||||||
|
CONFIG_DEFAULT_COMPRESSION_LZ4=y
|
||||||
|
|
||||||
# CONFIG_PARTITION_DISK_DOS is not set
|
# CONFIG_PARTITION_DISK_DOS is not set
|
||||||
CONFIG_PARTITION_DISK_EFI=y
|
CONFIG_PARTITION_DISK_EFI=y
|
||||||
@@ -42,5 +43,5 @@ CONFIG_DISK_WRITE=y
|
|||||||
CONFIG_FS_FAT=y
|
CONFIG_FS_FAT=y
|
||||||
CONFIG_FS_FAT_WRITE=y
|
CONFIG_FS_FAT_WRITE=y
|
||||||
CONFIG_FS_FAT_LFN=y
|
CONFIG_FS_FAT_LFN=y
|
||||||
CONFIG_FS_SQUASHFS=y
|
CONFIG_FS_EXT4=y
|
||||||
CONFIG_LZ4_DECOMPRESS=y
|
CONFIG_LZ4_DECOMPRESS=y
|
@@ -7,9 +7,6 @@ for i in /env/init/*; do
|
|||||||
. $i
|
. $i
|
||||||
done
|
done
|
||||||
|
|
||||||
# Overlays
|
|
||||||
. /env/overlay/load
|
|
||||||
|
|
||||||
echo "- Hit m for menu or wait for autoboot -"
|
echo "- Hit m for menu or wait for autoboot -"
|
||||||
timeout -a 1 -s -v key
|
timeout -a 1 -s -v key
|
||||||
|
|
8
buildroot-external/bootloader/barebox/boot/system0
Normal file
8
buildroot-external/bootloader/barebox/boot/system0
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
global linux.bootargs.dyn.root="root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
||||||
|
|
||||||
|
mkdir -p /mnt/system
|
||||||
|
mount -t ext4 /dev/disk*.hassos-kernel0 /mnt/system
|
||||||
|
|
||||||
|
global bootm.image="/mnt/system/bzImage"
|
8
buildroot-external/bootloader/barebox/boot/system1
Normal file
8
buildroot-external/bootloader/barebox/boot/system1
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
global linux.bootargs.dyn.root="root=PARTUUID=a3ec664e-32ce-4665-95ea-7ae90ce9aa20 rootfstype=squashfs ro"
|
||||||
|
|
||||||
|
mkdir -p /mnt/system
|
||||||
|
mount -t ext4 /dev/disk*.hassos-kernel1 /mnt/system
|
||||||
|
|
||||||
|
global bootm.image="/mnt/system/bzImage"
|
@@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
global linux.bootargs.zram="zram.enabled=1 zram.num_devices=3"
|
global linux.bootargs.zram="zram.enabled=1 zram.num_devices=3"
|
||||||
global linux.bootargs.apparmor="apparmor=1 security=apparmor"
|
global linux.bootargs.apparmor="apparmor=1 security=apparmor"
|
||||||
|
global linux.bootargs.misc="rootwait"
|
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
global linux.bootargs.bootchooser="bootchooser.active=A"
|
||||||
|
|
||||||
|
boot system0
|
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
global linux.bootargs.bootchooser="bootchooser.active=B"
|
||||||
|
|
||||||
|
boot system1
|
@@ -0,0 +1 @@
|
|||||||
|
A B
|
16
buildroot-external/bootloader/uboot.config
Normal file
16
buildroot-external/bootloader/uboot.config
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# CONFIG_LOCALVERSION_AUTO is not set
|
||||||
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
|
# CONFIG_EXPERT is not set
|
||||||
|
# CONFIG_DISPLAY_CPUINFO is not set
|
||||||
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
|
CONFIG_SYS_PROMPT="HassOS> "
|
||||||
|
# CONFIG_DOS_PARTITION is not set
|
||||||
|
# CONFIG_ISO_PARTITION is not set
|
||||||
|
CONFIG_EFI_PARTITION=y
|
||||||
|
CONFIG_FS_EXT4=y
|
||||||
|
# CONFIG_ENV_IS_NOWHERE is not set
|
||||||
|
# CONFIG_ENV_IS_IN_FAT is not set
|
||||||
|
# CONFIG_ENV_IS_IN_EXT4 is not set
|
||||||
|
CONFIG_ENV_IS_IN_MMC=y
|
||||||
|
CONFIG_CONSOLE_SCROLL_LINES=10
|
||||||
|
# CONFIG_EFI_LOADER is not set
|
@@ -398,7 +398,7 @@ CONFIG_SHOWKEY=y
|
|||||||
CONFIG_AWK=y
|
CONFIG_AWK=y
|
||||||
CONFIG_FEATURE_AWK_LIBM=y
|
CONFIG_FEATURE_AWK_LIBM=y
|
||||||
CONFIG_FEATURE_AWK_GNU_EXTENSIONS=y
|
CONFIG_FEATURE_AWK_GNU_EXTENSIONS=y
|
||||||
# CONFIG_CMP is not set
|
CONFIG_CMP=y
|
||||||
# CONFIG_DIFF is not set
|
# CONFIG_DIFF is not set
|
||||||
# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
|
# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
|
||||||
# CONFIG_FEATURE_DIFF_DIR is not set
|
# CONFIG_FEATURE_DIFF_DIR is not set
|
||||||
|
@@ -18,19 +18,18 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/board/ova/post-image.s
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/ova"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/ova"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14.41"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14.67"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="x86_64"
|
BR2_LINUX_KERNEL_DEFCONFIG="x86_64"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config $(BR2_EXTERNAL_HASSOS_PATH)/board/ova/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config $(BR2_EXTERNAL_HASSOS_PATH)/board/ova/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
|
||||||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||||
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
||||||
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
||||||
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
||||||
BR2_PACKAGE_JQ=y
|
BR2_PACKAGE_JQ=y
|
||||||
BR2_PACKAGE_DOSFSTOOLS=y
|
|
||||||
BR2_PACKAGE_E2FSPROGS=y
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_SQUASHFS=y
|
||||||
BR2_PACKAGE_DT_UTILS=y
|
BR2_PACKAGE_DT_UTILS=y
|
||||||
BR2_PACKAGE_GPTFDISK=y
|
BR2_PACKAGE_GPTFDISK=y
|
||||||
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
||||||
@@ -38,8 +37,13 @@ BR2_PACKAGE_CA_CERTIFICATES=y
|
|||||||
BR2_PACKAGE_LIBCGROUP=y
|
BR2_PACKAGE_LIBCGROUP=y
|
||||||
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
||||||
BR2_PACKAGE_AVAHI=y
|
BR2_PACKAGE_AVAHI=y
|
||||||
|
# BR2_PACKAGE_AVAHI_AUTOIPD is not set
|
||||||
BR2_PACKAGE_AVAHI_DAEMON=y
|
BR2_PACKAGE_AVAHI_DAEMON=y
|
||||||
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_DHCP=y
|
||||||
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
@@ -64,8 +68,8 @@ BR2_TARGET_BAREBOX_CUSTOM_VERSION=y
|
|||||||
BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE="2018.05.0"
|
BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE="2018.05.0"
|
||||||
BR2_TARGET_BAREBOX_USE_CUSTOM_CONFIG=y
|
BR2_TARGET_BAREBOX_USE_CUSTOM_CONFIG=y
|
||||||
BR2_TARGET_BAREBOX_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/ova/barebox.config"
|
BR2_TARGET_BAREBOX_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/ova/barebox.config"
|
||||||
BR2_TARGET_BAREBOX_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/barebox.config"
|
BR2_TARGET_BAREBOX_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/barebox.config"
|
||||||
BR2_TARGET_BAREBOX_CUSTOM_EMBEDDED_ENV_PATH="$(BR2_EXTERNAL_HASSOS_PATH)/board/ova/barebox-env $(BR2_EXTERNAL_HASSOS_PATH)/barebox-env"
|
BR2_TARGET_BAREBOX_CUSTOM_EMBEDDED_ENV_PATH="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/barebox"
|
||||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
BR2_PACKAGE_HOST_E2FSPROGS=y
|
BR2_PACKAGE_HOST_E2FSPROGS=y
|
||||||
BR2_PACKAGE_HOST_GPTFDISK=y
|
BR2_PACKAGE_HOST_GPTFDISK=y
|
||||||
@@ -73,11 +77,13 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSOS=y
|
BR2_PACKAGE_HASSOS=y
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/amd64-hassio-supervisor"
|
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/amd64-hassio-supervisor"
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="105"
|
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="131"
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/qemux86-64-homeassistant"
|
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/qemux86-64-homeassistant"
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL="http://s3.amazonaws.com/hassio-version/apparmor.txt"
|
||||||
BR2_PACKAGE_HASSOS_CLI="homeassistant/amd64-hassio-cli"
|
BR2_PACKAGE_HASSOS_CLI="homeassistant/amd64-hassio-cli"
|
||||||
BR2_PACKAGE_HASSOS_CLI_VERSION="3"
|
BR2_PACKAGE_HASSOS_CLI_VERSION="7"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_ARGS="--network=hassio --add-host hassio:172.30.32.2"
|
||||||
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
||||||
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
99
buildroot-external/configs/rpi0_w_defconfig
Normal file
99
buildroot-external/configs/rpi0_w_defconfig
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
BR2_arm=y
|
||||||
|
BR2_arm1176jzf_s=y
|
||||||
|
BR2_ARM_EABIHF=y
|
||||||
|
BR2_DL_DIR="/cache/dl"
|
||||||
|
BR2_CCACHE=y
|
||||||
|
BR2_CCACHE_DIR="/cache/cc"
|
||||||
|
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches"
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
|
||||||
|
BR2_GCC_VERSION_7_X=y
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||||
|
BR2_TARGET_GENERIC_HOSTNAME="hassio"
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to HassOS"
|
||||||
|
BR2_INIT_SYSTEMD=y
|
||||||
|
BR2_TARGET_GENERIC_GETTY_PORT="tty1"
|
||||||
|
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
|
||||||
|
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_HASSOS_PATH)/rootfs-overlay"
|
||||||
|
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-build.sh"
|
||||||
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/post-image.sh"
|
||||||
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi0-w"
|
||||||
|
BR2_LINUX_KERNEL=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux"
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="f6da082a790f857d5163ac99357beae6b59f1eb5"
|
||||||
|
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
|
||||||
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2708-rpi-0-w"
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
||||||
|
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
||||||
|
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
||||||
|
BR2_PACKAGE_JQ=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_SQUASHFS=y
|
||||||
|
BR2_PACKAGE_RPI_WIFI_FIRMWARE=y
|
||||||
|
BR2_PACKAGE_RPI_FIRMWARE=y
|
||||||
|
BR2_PACKAGE_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
||||||
|
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||||
|
BR2_PACKAGE_CA_CERTIFICATES=y
|
||||||
|
BR2_PACKAGE_LIBDNET=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
||||||
|
BR2_PACKAGE_AVAHI=y
|
||||||
|
# BR2_PACKAGE_AVAHI_AUTOIPD is not set
|
||||||
|
BR2_PACKAGE_AVAHI_DAEMON=y
|
||||||
|
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_DHCP=y
|
||||||
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
|
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
||||||
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER=y
|
||||||
|
BR2_PACKAGE_TINI=y
|
||||||
|
BR2_PACKAGE_DOCKER_ENGINE=y
|
||||||
|
BR2_PACKAGE_RAUC=y
|
||||||
|
BR2_PACKAGE_RAUC_NETWORK=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_HWDB is not set
|
||||||
|
# BR2_PACKAGE_SYSTEMD_NETWORKD is not set
|
||||||
|
BR2_PACKAGE_SYSTEMD_RANDOMSEED=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_RESOLVED is not set
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_PARTX=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_ZRAMCTL=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
|
||||||
|
# BR2_TARGET_ROOTFS_TAR is not set
|
||||||
|
BR2_TARGET_UBOOT=y
|
||||||
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05"
|
||||||
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_0_w"
|
||||||
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
|
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.sh"
|
||||||
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_HOST_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
|
BR2_PACKAGE_HASSOS=y
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/armhf-hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="131"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/raspberrypi-homeassistant"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL="http://s3.amazonaws.com/hassio-version/apparmor.txt"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI="homeassistant/armhf-hassio-cli"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_VERSION="7"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_ARGS="--network=hassio --add-host hassio:172.30.32.2"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
||||||
|
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
||||||
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
@@ -4,7 +4,7 @@ BR2_ARM_FPU_VFPV4=y
|
|||||||
BR2_DL_DIR="/cache/dl"
|
BR2_DL_DIR="/cache/dl"
|
||||||
BR2_CCACHE=y
|
BR2_CCACHE=y
|
||||||
BR2_CCACHE_DIR="/cache/cc"
|
BR2_CCACHE_DIR="/cache/cc"
|
||||||
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches $(BR2_EXTERNAL_HASSOS_PATH)/board/rpi2/patches"
|
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches"
|
||||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
|
||||||
BR2_GCC_VERSION_7_X=y
|
BR2_GCC_VERSION_7_X=y
|
||||||
@@ -16,37 +16,41 @@ BR2_TARGET_GENERIC_GETTY_PORT="tty1"
|
|||||||
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
|
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
|
||||||
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_HASSOS_PATH)/rootfs-overlay"
|
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_HASSOS_PATH)/rootfs-overlay"
|
||||||
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-build.sh"
|
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-build.sh"
|
||||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/board/rpi2/post-image.sh"
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/post-image.sh"
|
||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/rpi2"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi2"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux"
|
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux"
|
||||||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rpi-4.14.y"
|
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="f6da082a790f857d5163ac99357beae6b59f1eb5"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2709-rpi-2-b"
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2709-rpi-2-b"
|
||||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
|
||||||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||||
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
||||||
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
||||||
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
||||||
BR2_PACKAGE_JQ=y
|
BR2_PACKAGE_JQ=y
|
||||||
BR2_PACKAGE_DOSFSTOOLS=y
|
|
||||||
BR2_PACKAGE_E2FSPROGS=y
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_SQUASHFS=y
|
||||||
BR2_PACKAGE_RPI_FIRMWARE=y
|
BR2_PACKAGE_RPI_FIRMWARE=y
|
||||||
BR2_PACKAGE_DT_UTILS=y
|
|
||||||
BR2_PACKAGE_GPTFDISK=y
|
BR2_PACKAGE_GPTFDISK=y
|
||||||
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
||||||
|
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||||
BR2_PACKAGE_CA_CERTIFICATES=y
|
BR2_PACKAGE_CA_CERTIFICATES=y
|
||||||
BR2_PACKAGE_LIBDNET=y
|
BR2_PACKAGE_LIBDNET=y
|
||||||
BR2_PACKAGE_LIBCGROUP=y
|
BR2_PACKAGE_LIBCGROUP=y
|
||||||
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
||||||
BR2_PACKAGE_AVAHI=y
|
BR2_PACKAGE_AVAHI=y
|
||||||
|
# BR2_PACKAGE_AVAHI_AUTOIPD is not set
|
||||||
BR2_PACKAGE_AVAHI_DAEMON=y
|
BR2_PACKAGE_AVAHI_DAEMON=y
|
||||||
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_DHCP=y
|
||||||
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
@@ -65,13 +69,15 @@ BR2_PACKAGE_UTIL_LINUX_ZRAMCTL=y
|
|||||||
BR2_TARGET_ROOTFS_SQUASHFS=y
|
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||||
BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
|
BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
|
||||||
# BR2_TARGET_ROOTFS_TAR is not set
|
# BR2_TARGET_ROOTFS_TAR is not set
|
||||||
BR2_TARGET_BAREBOX=y
|
BR2_TARGET_UBOOT=y
|
||||||
BR2_TARGET_BAREBOX_CUSTOM_VERSION=y
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||||
BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE="2018.05.0"
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||||
BR2_TARGET_BAREBOX_USE_CUSTOM_CONFIG=y
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05"
|
||||||
BR2_TARGET_BAREBOX_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/rpi2/barebox.config"
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_2"
|
||||||
BR2_TARGET_BAREBOX_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/barebox.config"
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_BAREBOX_CUSTOM_EMBEDDED_ENV_PATH="$(BR2_EXTERNAL_HASSOS_PATH)/barebox-env $(BR2_EXTERNAL_HASSOS_PATH)/board/rpi2/barebox-env"
|
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.sh"
|
||||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
BR2_PACKAGE_HOST_E2FSPROGS=y
|
BR2_PACKAGE_HOST_E2FSPROGS=y
|
||||||
BR2_PACKAGE_HOST_GPTFDISK=y
|
BR2_PACKAGE_HOST_GPTFDISK=y
|
||||||
@@ -79,11 +85,13 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSOS=y
|
BR2_PACKAGE_HASSOS=y
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/armhf-hassio-supervisor"
|
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/armhf-hassio-supervisor"
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="105"
|
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="131"
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/raspberrypi3-homeassistant"
|
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/raspberrypi2-homeassistant"
|
||||||
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL="http://s3.amazonaws.com/hassio-version/apparmor.txt"
|
||||||
BR2_PACKAGE_HASSOS_CLI="homeassistant/armhf-hassio-cli"
|
BR2_PACKAGE_HASSOS_CLI="homeassistant/armhf-hassio-cli"
|
||||||
BR2_PACKAGE_HASSOS_CLI_VERSION="3"
|
BR2_PACKAGE_HASSOS_CLI_VERSION="7"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_ARGS="--network=hassio --add-host hassio:172.30.32.2"
|
||||||
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
||||||
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
99
buildroot-external/configs/rpi3_64_defconfig
Normal file
99
buildroot-external/configs/rpi3_64_defconfig
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
BR2_aarch64=y
|
||||||
|
BR2_cortex_a53=y
|
||||||
|
BR2_ARM_FPU_VFPV4=y
|
||||||
|
BR2_DL_DIR="/cache/dl"
|
||||||
|
BR2_CCACHE=y
|
||||||
|
BR2_CCACHE_DIR="/cache/cc"
|
||||||
|
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches"
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
|
||||||
|
BR2_GCC_VERSION_7_X=y
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||||
|
BR2_TARGET_GENERIC_HOSTNAME="hassio"
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to HassOS"
|
||||||
|
BR2_INIT_SYSTEMD=y
|
||||||
|
BR2_TARGET_GENERIC_GETTY_PORT="tty1"
|
||||||
|
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
|
||||||
|
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_HASSOS_PATH)/rootfs-overlay"
|
||||||
|
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-build.sh"
|
||||||
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/post-image.sh"
|
||||||
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi3-64"
|
||||||
|
BR2_LINUX_KERNEL=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux"
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="f6da082a790f857d5163ac99357beae6b59f1eb5"
|
||||||
|
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
|
||||||
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2837-rpi-3-b broadcom/bcm2710-rpi-3-b-plus"
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
||||||
|
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
||||||
|
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
||||||
|
BR2_PACKAGE_JQ=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_SQUASHFS=y
|
||||||
|
BR2_PACKAGE_RPI_FIRMWARE=y
|
||||||
|
BR2_PACKAGE_RPI_WIFI_FIRMWARE=y
|
||||||
|
BR2_PACKAGE_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
||||||
|
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||||
|
BR2_PACKAGE_CA_CERTIFICATES=y
|
||||||
|
BR2_PACKAGE_LIBDNET=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
||||||
|
BR2_PACKAGE_AVAHI=y
|
||||||
|
# BR2_PACKAGE_AVAHI_AUTOIPD is not set
|
||||||
|
BR2_PACKAGE_AVAHI_DAEMON=y
|
||||||
|
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_DHCP=y
|
||||||
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
|
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
||||||
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER=y
|
||||||
|
BR2_PACKAGE_TINI=y
|
||||||
|
BR2_PACKAGE_DOCKER_ENGINE=y
|
||||||
|
BR2_PACKAGE_RAUC=y
|
||||||
|
BR2_PACKAGE_RAUC_NETWORK=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_HWDB is not set
|
||||||
|
# BR2_PACKAGE_SYSTEMD_NETWORKD is not set
|
||||||
|
BR2_PACKAGE_SYSTEMD_RANDOMSEED=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_RESOLVED is not set
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_PARTX=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_ZRAMCTL=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
|
||||||
|
# BR2_TARGET_ROOTFS_TAR is not set
|
||||||
|
BR2_TARGET_UBOOT=y
|
||||||
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05"
|
||||||
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_3"
|
||||||
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
|
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi3-64/uboot-boot.sh"
|
||||||
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_HOST_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
|
BR2_PACKAGE_HASSOS=y
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/aarch64-hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="131"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/raspberrypi3-64-homeassistant"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL="http://s3.amazonaws.com/hassio-version/apparmor.txt"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI="homeassistant/aarch64-hassio-cli"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_VERSION="7"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_ARGS="--network=hassio --add-host hassio:172.30.32.2"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
||||||
|
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
||||||
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
99
buildroot-external/configs/rpi3_defconfig
Normal file
99
buildroot-external/configs/rpi3_defconfig
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
BR2_arm=y
|
||||||
|
BR2_cortex_a53=y
|
||||||
|
BR2_ARM_FPU_VFPV4=y
|
||||||
|
BR2_DL_DIR="/cache/dl"
|
||||||
|
BR2_CCACHE=y
|
||||||
|
BR2_CCACHE_DIR="/cache/cc"
|
||||||
|
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches"
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
|
||||||
|
BR2_GCC_VERSION_7_X=y
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||||
|
BR2_TARGET_GENERIC_HOSTNAME="hassio"
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to HassOS"
|
||||||
|
BR2_INIT_SYSTEMD=y
|
||||||
|
BR2_TARGET_GENERIC_GETTY_PORT="tty1"
|
||||||
|
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
|
||||||
|
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_HASSOS_PATH)/rootfs-overlay"
|
||||||
|
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-build.sh"
|
||||||
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/post-image.sh"
|
||||||
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi3"
|
||||||
|
BR2_LINUX_KERNEL=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux"
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="f6da082a790f857d5163ac99357beae6b59f1eb5"
|
||||||
|
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
|
||||||
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-3-b-plus bcm2710-rpi-cm3"
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
||||||
|
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
||||||
|
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
||||||
|
BR2_PACKAGE_JQ=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_SQUASHFS=y
|
||||||
|
BR2_PACKAGE_RPI_FIRMWARE=y
|
||||||
|
BR2_PACKAGE_RPI_WIFI_FIRMWARE=y
|
||||||
|
BR2_PACKAGE_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
||||||
|
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||||
|
BR2_PACKAGE_CA_CERTIFICATES=y
|
||||||
|
BR2_PACKAGE_LIBDNET=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
||||||
|
BR2_PACKAGE_AVAHI=y
|
||||||
|
# BR2_PACKAGE_AVAHI_AUTOIPD is not set
|
||||||
|
BR2_PACKAGE_AVAHI_DAEMON=y
|
||||||
|
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_DHCP=y
|
||||||
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
|
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
||||||
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER=y
|
||||||
|
BR2_PACKAGE_TINI=y
|
||||||
|
BR2_PACKAGE_DOCKER_ENGINE=y
|
||||||
|
BR2_PACKAGE_RAUC=y
|
||||||
|
BR2_PACKAGE_RAUC_NETWORK=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_HWDB is not set
|
||||||
|
# BR2_PACKAGE_SYSTEMD_NETWORKD is not set
|
||||||
|
BR2_PACKAGE_SYSTEMD_RANDOMSEED=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_RESOLVED is not set
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_PARTX=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_ZRAMCTL=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
|
||||||
|
# BR2_TARGET_ROOTFS_TAR is not set
|
||||||
|
BR2_TARGET_UBOOT=y
|
||||||
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05"
|
||||||
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_3_32b"
|
||||||
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
|
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.sh"
|
||||||
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_HOST_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
|
BR2_PACKAGE_HASSOS=y
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/armhf-hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="131"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/raspberrypi3-homeassistant"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL="http://s3.amazonaws.com/hassio-version/apparmor.txt"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI="homeassistant/armhf-hassio-cli"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_VERSION="7"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_ARGS="--network=hassio --add-host hassio:172.30.32.2"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
||||||
|
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
||||||
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
97
buildroot-external/configs/rpi_defconfig
Normal file
97
buildroot-external/configs/rpi_defconfig
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
BR2_arm=y
|
||||||
|
BR2_arm1176jzf_s=y
|
||||||
|
BR2_ARM_EABIHF=y
|
||||||
|
BR2_DL_DIR="/cache/dl"
|
||||||
|
BR2_CCACHE=y
|
||||||
|
BR2_CCACHE_DIR="/cache/cc"
|
||||||
|
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches"
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
|
||||||
|
BR2_GCC_VERSION_7_X=y
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||||
|
BR2_TARGET_GENERIC_HOSTNAME="hassio"
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to HassOS"
|
||||||
|
BR2_INIT_SYSTEMD=y
|
||||||
|
BR2_TARGET_GENERIC_GETTY_PORT="tty1"
|
||||||
|
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
|
||||||
|
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_HASSOS_PATH)/rootfs-overlay"
|
||||||
|
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-build.sh"
|
||||||
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/post-image.sh"
|
||||||
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi"
|
||||||
|
BR2_LINUX_KERNEL=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux"
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="f6da082a790f857d5163ac99357beae6b59f1eb5"
|
||||||
|
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
|
||||||
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm"
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||||
|
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
||||||
|
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_HASSOS_PATH)/busybox.config"
|
||||||
|
BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y
|
||||||
|
BR2_PACKAGE_JQ=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_SQUASHFS=y
|
||||||
|
BR2_PACKAGE_RPI_FIRMWARE=y
|
||||||
|
BR2_PACKAGE_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_GPTFDISK_SGDISK=y
|
||||||
|
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||||
|
BR2_PACKAGE_CA_CERTIFICATES=y
|
||||||
|
BR2_PACKAGE_LIBDNET=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP=y
|
||||||
|
BR2_PACKAGE_LIBCGROUP_TOOLS=y
|
||||||
|
BR2_PACKAGE_AVAHI=y
|
||||||
|
# BR2_PACKAGE_AVAHI_AUTOIPD is not set
|
||||||
|
BR2_PACKAGE_AVAHI_DAEMON=y
|
||||||
|
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_DHCP=y
|
||||||
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
|
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
||||||
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER=y
|
||||||
|
BR2_PACKAGE_TINI=y
|
||||||
|
BR2_PACKAGE_DOCKER_ENGINE=y
|
||||||
|
BR2_PACKAGE_RAUC=y
|
||||||
|
BR2_PACKAGE_RAUC_NETWORK=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_HWDB is not set
|
||||||
|
# BR2_PACKAGE_SYSTEMD_NETWORKD is not set
|
||||||
|
BR2_PACKAGE_SYSTEMD_RANDOMSEED=y
|
||||||
|
# BR2_PACKAGE_SYSTEMD_RESOLVED is not set
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_PARTX=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_ZRAMCTL=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||||
|
BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
|
||||||
|
# BR2_TARGET_ROOTFS_TAR is not set
|
||||||
|
BR2_TARGET_UBOOT=y
|
||||||
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||||
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05"
|
||||||
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi"
|
||||||
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
|
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.sh"
|
||||||
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_HOST_GPTFDISK=y
|
||||||
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
|
BR2_PACKAGE_HASSOS=y
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR="homeassistant/armhf-hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION="131"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS="-e HOMEASSISTANT_REPOSITORY=homeassistant/raspberrypi-homeassistant"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE="hassio-supervisor"
|
||||||
|
BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL="http://s3.amazonaws.com/hassio-version/apparmor.txt"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI="homeassistant/armhf-hassio-cli"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_VERSION="7"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_ARGS="--network=hassio --add-host hassio:172.30.32.2"
|
||||||
|
BR2_PACKAGE_HASSOS_CLI_PROFILE="docker-default"
|
||||||
|
BR2_PACKAGE_HASSOS_APPARMOR_DIR="supervisor/apparmor"
|
||||||
|
BR2_PACKAGE_APPARMOR=y
|
@@ -1,7 +1,7 @@
|
|||||||
VERSION_MAJOR=0
|
VERSION_MAJOR=1
|
||||||
VERSION_BUILD=3
|
VERSION_BUILD=11
|
||||||
|
|
||||||
HASSOS_NAME="HassOS"
|
HASSOS_NAME="HassOS"
|
||||||
HASSOS_ID="hassos"
|
HASSOS_ID="hassos"
|
||||||
|
|
||||||
DEPLOYMENT="development"
|
DEPLOYMENT="production"
|
||||||
|
@@ -97,3 +97,4 @@ CONFIG_EFI_PARTITION=y
|
|||||||
|
|
||||||
# CONFIG_LOGO is not set
|
# CONFIG_LOGO is not set
|
||||||
# CONFIG_VIRTUALIZATION is not set
|
# CONFIG_VIRTUALIZATION is not set
|
||||||
|
# CONFIG_DEBUG_STACK_USAGE is not set
|
||||||
|
Binary file not shown.
@@ -18,7 +18,7 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
system0 {
|
A {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
remaining_attempts@0 {
|
remaining_attempts@0 {
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
default = <20>;
|
default = <20>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
system1 {
|
B {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
remaining_attempts@8 {
|
remaining_attempts@8 {
|
1
buildroot-external/misc/fw_env.config
Normal file
1
buildroot-external/misc/fw_env.config
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/dev/disk/by-partlabel/hassos-bootstate 0x00 0x4000
|
28
buildroot-external/misc/rauc-hook
Executable file
28
buildroot-external/misc/rauc-hook
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
##
|
||||||
|
# Hooks
|
||||||
|
|
||||||
|
# Handle boot hocks
|
||||||
|
if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
|
||||||
|
if [ "${1}" = "slot-post-install" ]; then
|
||||||
|
/usr/lib/rauc/post-install-boot
|
||||||
|
elif [ "${1}" = "slot-pre-install" ]; then
|
||||||
|
/usr/lib/rauc/pre-install-boot
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
##
|
||||||
|
# Fixups
|
||||||
|
|
||||||
|
# timesyncd
|
||||||
|
if [ -L /var/lib/systemd/timesync ]; then
|
||||||
|
rm -f /var/lib/systemd/timesync
|
||||||
|
fi
|
||||||
|
|
||||||
|
# u-boot first stage device tree
|
||||||
|
if [ -e /usr/sbin/fw_setenv ]; then
|
||||||
|
fw_setenv fdt_addr
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
6
buildroot-external/package/bluetooth-bcm43xx/Config.in
Normal file
6
buildroot-external/package/bluetooth-bcm43xx/Config.in
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
config BR2_PACKAGE_BLUETOOTH_BCM43XX
|
||||||
|
bool "bluetooth bcm43xx"
|
||||||
|
depends on BR2_PACKAGE_BLUEZ5_UTILS_CLIENT
|
||||||
|
select BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED
|
||||||
|
help
|
||||||
|
Install bluetooth for bcm43xx.
|
18
buildroot-external/package/bluetooth-bcm43xx/bluetooth-bcm43xx
Executable file
18
buildroot-external/package/bluetooth-bcm43xx/bluetooth-bcm43xx
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
HCIATTACH=/usr/bin/hciattach
|
||||||
|
SERIAL=`cat /proc/device-tree/serial-number | cut -c9-`
|
||||||
|
B1=`echo $SERIAL | cut -c3-4`
|
||||||
|
B2=`echo $SERIAL | cut -c5-6`
|
||||||
|
B3=`echo $SERIAL | cut -c7-8`
|
||||||
|
BDADDR=`printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa))`
|
||||||
|
|
||||||
|
if [ "$(cat /proc/device-tree/aliases/uart0)" = "$(cat /proc/device-tree/aliases/serial1)" ] ; then
|
||||||
|
if [ "$(wc -c /proc/device-tree/soc/gpio@7e200000/uart0_pins/brcm\,pins | cut -f 1 -d ' ')" = "16" ] ; then
|
||||||
|
$HCIATTACH /dev/serial1 bcm43xx 3000000 flow - $BDADDR
|
||||||
|
else
|
||||||
|
$HCIATTACH /dev/serial1 bcm43xx 921600 noflow - $BDADDR
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
$HCIATTACH /dev/serial1 bcm43xx 460800 noflow - $BDADDR
|
||||||
|
fi
|
@@ -0,0 +1,31 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# Bluetooth BCM43xx
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
BLUETOOTH_BCM43XX_VERSION = 1.0.0
|
||||||
|
BLUETOOTH_BCM43XX_LICENSE = Apache License 2.0
|
||||||
|
BLUETOOTH_BCM43XX_LICENSE_FILES = $(BR2_EXTERNAL_HASSOS_PATH)/../LICENSE
|
||||||
|
BLUETOOTH_BCM43XX_SITE = $(BR2_EXTERNAL_HASSOS_PATH)/package/bluetooth-bcm43xx
|
||||||
|
BLUETOOTH_BCM43XX_SITE_METHOD = local
|
||||||
|
|
||||||
|
define BLUETOOTH_BCM43XX_BUILD_CMDS
|
||||||
|
curl -o $(@D)/BCM43430A1.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/ade2bae1aaaebede09abb8fb546f767a0e4c7804/broadcom/BCM43430A1.hcd
|
||||||
|
curl -o $(@D)/BCM4345C0.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/ade2bae1aaaebede09abb8fb546f767a0e4c7804/broadcom/BCM4345C0.hcd
|
||||||
|
endef
|
||||||
|
|
||||||
|
define BLUETOOTH_BCM43XX_INSTALL_TARGET_CMDS
|
||||||
|
$(INSTALL) -d $(TARGET_DIR)/etc/systemd/system/hassos-hardware.target.wants
|
||||||
|
$(INSTALL) -m 0755 $(@D)/bluetooth-bcm43xx $(TARGET_DIR)/usr/sbin/
|
||||||
|
$(INSTALL) -m 0644 $(@D)/bluetooth-bcm43xx.service $(TARGET_DIR)/usr/lib/systemd/system/
|
||||||
|
ln -fs /usr/lib/systemd/system/bluetooth-bcm43xx.service $(TARGET_DIR)/etc/systemd/system/hassos-hardware.target.wants/
|
||||||
|
|
||||||
|
$(INSTALL) -d $(TARGET_DIR)/lib/firmware/brcm
|
||||||
|
$(INSTALL) -m 0644 $(@D)/*.hcd $(TARGET_DIR)/lib/firmware/brcm/
|
||||||
|
|
||||||
|
$(INSTALL) -d $(TARGET_DIR)/etc/udev/rules.d
|
||||||
|
$(INSTALL) -m 0644 $(@D)/bluetooth-bcm43xx.rules $(TARGET_DIR)/etc/udev/rules.d/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(generic-package))
|
@@ -0,0 +1,22 @@
|
|||||||
|
KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
|
||||||
|
ALIASES=/proc/device-tree/aliases; \
|
||||||
|
if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
|
||||||
|
echo 0;\
|
||||||
|
elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \
|
||||||
|
echo 1; \
|
||||||
|
else \
|
||||||
|
exit 1; \
|
||||||
|
fi\
|
||||||
|
'", SYMLINK+="serial%c"
|
||||||
|
|
||||||
|
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
|
||||||
|
ALIASES=/proc/device-tree/aliases; \
|
||||||
|
if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
|
||||||
|
echo 0; \
|
||||||
|
elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \
|
||||||
|
echo 1; \
|
||||||
|
else \
|
||||||
|
exit 1; \
|
||||||
|
fi \
|
||||||
|
'", SYMLINK+="serial%c"
|
||||||
|
|
@@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Bluetooth for BCM43xx
|
||||||
|
Before=bluetooth.service
|
||||||
|
After=dev-ttyAMA0.device
|
||||||
|
ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/sbin/bluetooth-bcm43xx
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=hassos-hardware.target
|
@@ -28,6 +28,11 @@ config BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE
|
|||||||
help
|
help
|
||||||
AppArmor profile for supervisor.
|
AppArmor profile for supervisor.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL
|
||||||
|
string "AppArmor supervisor profile URL"
|
||||||
|
help
|
||||||
|
AppArmor profile for supervisor url.
|
||||||
|
|
||||||
config BR2_PACKAGE_HASSOS_CLI
|
config BR2_PACKAGE_HASSOS_CLI
|
||||||
string "cli docker image"
|
string "cli docker image"
|
||||||
help
|
help
|
||||||
@@ -48,9 +53,14 @@ config BR2_PACKAGE_HASSOS_CLI_PROFILE
|
|||||||
help
|
help
|
||||||
AppArmor profile for cli.
|
AppArmor profile for cli.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_HASSOS_CLI_PROFILE_URL
|
||||||
|
string "AppArmor cli profile url"
|
||||||
|
help
|
||||||
|
AppArmor profile for cli url.
|
||||||
|
|
||||||
config BR2_PACKAGE_HASSOS_APPARMOR_DIR
|
config BR2_PACKAGE_HASSOS_APPARMOR_DIR
|
||||||
string "AppArmor profiles folder"
|
string "AppArmor profiles folder"
|
||||||
help
|
help
|
||||||
AppArmor profiles folder for supervisor.
|
AppArmor profiles folder for HassOS.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@@ -2,7 +2,7 @@ FROM alpine:3.7
|
|||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash coreutils e2fsprogs
|
bash coreutils e2fsprogs curl
|
||||||
RUN apk add --no-cache --repository http://nl.alpinelinux.org/alpine/v3.7/community \
|
RUN apk add --no-cache --repository http://nl.alpinelinux.org/alpine/v3.7/community \
|
||||||
docker
|
docker
|
||||||
|
|
||||||
|
@@ -5,10 +5,12 @@ SUPERVISOR=""
|
|||||||
SUPERVISOR_VERSION=""
|
SUPERVISOR_VERSION=""
|
||||||
SUPERVISOR_ARGS=""
|
SUPERVISOR_ARGS=""
|
||||||
SUPERVISOR_PROFILE=""
|
SUPERVISOR_PROFILE=""
|
||||||
|
SUPERVISOR_PROFILE_URL=""
|
||||||
CLI=""
|
CLI=""
|
||||||
CLI_VERSION=""
|
CLI_VERSION=""
|
||||||
CLI_ARGS=""
|
CLI_ARGS=""
|
||||||
CLI_PROFILE=""
|
CLI_PROFILE=""
|
||||||
|
CLI_PROFILE_URL=""
|
||||||
APPARMOR=""
|
APPARMOR=""
|
||||||
DATA_IMG="/export/data.ext4"
|
DATA_IMG="/export/data.ext4"
|
||||||
|
|
||||||
@@ -32,6 +34,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
SUPERVISOR_PROFILE=$2
|
SUPERVISOR_PROFILE=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--supervisor-profile-url)
|
||||||
|
SUPERVISOR_PROFILE_URL=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--cli)
|
--cli)
|
||||||
CLI=$2
|
CLI=$2
|
||||||
shift
|
shift
|
||||||
@@ -48,6 +54,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
CLI_PROFILE=$2
|
CLI_PROFILE=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--cli-profile-url)
|
||||||
|
CLI_PROFILE_URL=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--apparmor)
|
--apparmor)
|
||||||
APPARMOR=$2
|
APPARMOR=$2
|
||||||
shift
|
shift
|
||||||
@@ -106,7 +116,16 @@ EOF
|
|||||||
# Setup AppArmor
|
# Setup AppArmor
|
||||||
if [ ! -z "${APPARMOR}" ]; then
|
if [ ! -z "${APPARMOR}" ]; then
|
||||||
mkdir -p /mnt/data/${APPARMOR}
|
mkdir -p /mnt/data/${APPARMOR}
|
||||||
cp -f /apparmor/* /mnt/data/${APPARMOR}/
|
|
||||||
|
# Supervisor
|
||||||
|
if [ ! -z "${SUPERVISOR_PROFILE_URL}" ]; then
|
||||||
|
curl -L -o /mnt/data/${APPARMOR}/${SUPERVISOR_PROFILE} ${SUPERVISOR_PROFILE_URL}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# CLI
|
||||||
|
if [ ! -z "${CLI_PROFILE_URL}" ]; then
|
||||||
|
curl -L -o /mnt/data/${APPARMOR}/${CLI_PROFILE} ${CLI_PROFILE_URL}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Finish
|
# Finish
|
||||||
|
@@ -17,16 +17,17 @@ endef
|
|||||||
define HASSOS_INSTALL_TARGET_CMDS
|
define HASSOS_INSTALL_TARGET_CMDS
|
||||||
docker run --rm --privileged \
|
docker run --rm --privileged \
|
||||||
-v $(BINARIES_DIR):/export \
|
-v $(BINARIES_DIR):/export \
|
||||||
-v $(BR2_EXTERNAL_HASSOS_PATH)/apparmor:/apparmor \
|
|
||||||
hassos-hostapps \
|
hassos-hostapps \
|
||||||
--supervisor $(BR2_PACKAGE_HASSOS_SUPERVISOR) \
|
--supervisor $(BR2_PACKAGE_HASSOS_SUPERVISOR) \
|
||||||
--supervisor-version $(BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION) \
|
--supervisor-version $(BR2_PACKAGE_HASSOS_SUPERVISOR_VERSION) \
|
||||||
--supervisor-args $(BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS) \
|
--supervisor-args $(BR2_PACKAGE_HASSOS_SUPERVISOR_ARGS) \
|
||||||
--supervisor-profile $(BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE) \
|
--supervisor-profile $(BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE) \
|
||||||
|
--supervisor-profile-url $(BR2_PACKAGE_HASSOS_SUPERVISOR_PROFILE_URL) \
|
||||||
--cli $(BR2_PACKAGE_HASSOS_CLI) \
|
--cli $(BR2_PACKAGE_HASSOS_CLI) \
|
||||||
--cli-version $(BR2_PACKAGE_HASSOS_CLI_VERSION) \
|
--cli-version $(BR2_PACKAGE_HASSOS_CLI_VERSION) \
|
||||||
--cli-args $(BR2_PACKAGE_HASSOS_CLI_ARGS) \
|
--cli-args $(BR2_PACKAGE_HASSOS_CLI_ARGS) \
|
||||||
--cli-profile $(BR2_PACKAGE_HASSOS_CLI_PROFILE) \
|
--cli-profile $(BR2_PACKAGE_HASSOS_CLI_PROFILE) \
|
||||||
|
--cli-profile-url $(BR2_PACKAGE_HASSOS_CLI_PROFILE_URL) \
|
||||||
--apparmor $(BR2_PACKAGE_HASSOS_APPARMOR_DIR)
|
--apparmor $(BR2_PACKAGE_HASSOS_APPARMOR_DIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user