Compare commits
40 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a48888a2df | ||
|
|
f922c14f15 | ||
|
|
92541b7280 | ||
|
|
f5ff224358 | ||
|
|
6bc6300149 | ||
|
|
fe9fc1cbd2 | ||
|
|
4f28a284be | ||
|
|
094208492e | ||
|
|
ce95fdccd3 | ||
|
|
2c335a4dd9 | ||
|
|
1a99d07cae | ||
|
|
58d4b79376 | ||
|
|
0b52271b3a | ||
|
|
503117d8bf | ||
|
|
c92b4b54be | ||
|
|
5e44dcc681 | ||
|
|
2d257bd671 | ||
|
|
8ed04ed73c | ||
|
|
737a6f18c3 | ||
|
|
ac942b8ed9 | ||
|
|
a8bad54efc | ||
|
|
481a79eb28 | ||
|
|
8cd7dfe822 | ||
|
|
2416c6c26c | ||
|
|
4eb0cd6460 | ||
|
|
e43747c2e9 | ||
|
|
5f8aeb1c6d | ||
|
|
c152fdeba0 | ||
|
|
dcfb296dcf | ||
|
|
fdcb94f0d8 | ||
|
|
5f0a8fe627 | ||
|
|
0495ba25ad | ||
|
|
fa242e32d7 | ||
|
|
fc3b098170 | ||
|
|
2b0fff31a3 | ||
|
|
dade3adf80 | ||
|
|
b4fad03613 | ||
|
|
59b8636bc8 | ||
|
|
3337cd0f79 | ||
|
|
0c7cd8023e |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
|
.DS_Store
|
||||||
/release
|
/release
|
||||||
*.pem
|
*.pem
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
unzip \
|
unzip \
|
||||||
wget \
|
wget \
|
||||||
qemu-utils \
|
qemu-utils \
|
||||||
|
openssh-client \
|
||||||
|
vim \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Init entry
|
# Init entry
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ The following boards/devices are supported:
|
|||||||
- Pi (not recommended)
|
- Pi (not recommended)
|
||||||
- Hardkernel
|
- Hardkernel
|
||||||
- Odroid-C2
|
- Odroid-C2
|
||||||
|
- Odroid-C4 (_experimental_)
|
||||||
- Odroid-N2
|
- Odroid-N2
|
||||||
- Odroid-XU4
|
- Odroid-XU4
|
||||||
- Intel NUC
|
- Intel NUC
|
||||||
@@ -46,6 +47,7 @@ Notes:
|
|||||||
|Pi Zero |`make rpi0_w` |[rpi0_w](../../buildroot-external/configs/rpi0_w_defconfig)|[raspberrypi](./raspberrypi/)|
|
|Pi Zero |`make rpi0_w` |[rpi0_w](../../buildroot-external/configs/rpi0_w_defconfig)|[raspberrypi](./raspberrypi/)|
|
||||||
|Pi |`make rpi` |[rpi](../../buildroot-external/configs/rpi_defconfig)|[raspberrypi](./raspberrypi/)|
|
|Pi |`make rpi` |[rpi](../../buildroot-external/configs/rpi_defconfig)|[raspberrypi](./raspberrypi/)|
|
||||||
|Odroid-C2 |`make odroid_c2` |[odroid_c2](../../buildroot-external/configs/odroid_c2_defconfig)|[hardkernel](./hardkernel/)|
|
|Odroid-C2 |`make odroid_c2` |[odroid_c2](../../buildroot-external/configs/odroid_c2_defconfig)|[hardkernel](./hardkernel/)|
|
||||||
|
|Odroid-C4 |`make odroid_c4` |[odroid_c4](../../buildroot-external/configs/odroid_c4_defconfig)|[hardkernel](./hardkernel/)|
|
||||||
|Odroid-N2 |`make odroid_n2` |[odroid_n2](../../buildroot-external/configs/odroid_n2_defconfig)|[hardkernel](./hardkernel/)|
|
|Odroid-N2 |`make odroid_n2` |[odroid_n2](../../buildroot-external/configs/odroid_n2_defconfig)|[hardkernel](./hardkernel/)|
|
||||||
|Odroid-XU4 |`make odroid_xu4`|[odroid_xu4](../../buildroot-external/configs/odroid_xu4_defconfig)|[hardkernel](./hardkernel/)|
|
|Odroid-XU4 |`make odroid_xu4`|[odroid_xu4](../../buildroot-external/configs/odroid_xu4_defconfig)|[hardkernel](./hardkernel/)|
|
||||||
|NUC |`make intel_nuc` |[intel_nuc](../../buildroot-external/configs/intel_nuc_defconfig)|[intel](./intel/)|
|
|NUC |`make intel_nuc` |[intel_nuc](../../buildroot-external/configs/intel_nuc_defconfig)|[intel](./intel/)|
|
||||||
|
|||||||
@@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
## Supported Hardware
|
## Supported Hardware
|
||||||
|
|
||||||
| Device | Release Date | Support | Config |
|
| Device | Release Date | Support | Config |
|
||||||
|----------------|---------------|---------|-----------|
|
|----------------|---------------|--------------|-----------|
|
||||||
| ODROID-XU4 | 2015 | yes | [odroid_xu4](../../../buildroot-external/configs/odroid_xu4_defconfig)|
|
| ODROID-XU4 | 2015 | yes | [odroid_xu4](../../../buildroot-external/configs/odroid_xu4_defconfig)|
|
||||||
| ODROID-C2 | 2016 | yes | [odroid_c2](../../../buildroot-external/configs/odroid_c2_defconfig) |
|
| ODROID-C2 | 2016 | yes | [odroid_c2](../../../buildroot-external/configs/odroid_c2_defconfig) |
|
||||||
| ODROID-N2 | 2019 | yes | [odroid_n2](../../../buildroot-external/configs/odroid_n2_defconfig) |
|
| ODROID-C4 | 2020 | experimental | [odroid_c4](../../../buildroot-external/configs/odroid_c4_defconfig) |
|
||||||
|
| ODROID-N2 | 2019 | yes | [odroid_n2](../../../buildroot-external/configs/odroid_n2_defconfig) |
|
||||||
|
|
||||||
See separate documentation for each board.
|
See separate documentation for each board.
|
||||||
|
|||||||
16
Documentation/boards/hardkernel/odroid-c4.md
Normal file
16
Documentation/boards/hardkernel/odroid-c4.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Odroid-C4
|
||||||
|
|
||||||
|
## Experimental
|
||||||
|
|
||||||
|
Odroid-C4 support is based heavily on the Odroid-C2 and N2 configurations. Given the similarity of the SoCs, as well as the comparable level of support in the Linux kernel, the C4 should hopefully present few surprises. However, Home Assistant support should be regarded as experimental.
|
||||||
|
|
||||||
|
Please also refer to the documentation pages for the [Odroid-C2](./odroid-c2.md) and [Odroid-N2](./odroid-n2.md), as some of that information may apply to the C4 as well.
|
||||||
|
|
||||||
|
Common C4 issues that have been specifically tested and appear to be working:
|
||||||
|
- boot from SD
|
||||||
|
- boot from eMMC
|
||||||
|
- MAC address obtained from eFuse
|
||||||
|
|
||||||
|
## GPIO
|
||||||
|
|
||||||
|
Refer to [the odroid wiki](https://wiki.odroid.com/odroid-c4/hardware/expansion_connectors).
|
||||||
@@ -53,4 +53,4 @@ For more information see [RaspberryPi](https://www.raspberrypi.org/documentation
|
|||||||
|
|
||||||
If you don't need bluetooth, disabled it with add `dtoverlay=pi3-disable-bt` into `config.txt`.
|
If you don't need bluetooth, disabled it with add `dtoverlay=pi3-disable-bt` into `config.txt`.
|
||||||
|
|
||||||
[config]: ../configuration.md#automatic
|
[config]: ../../configuration.md#automatic
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ Default 2. That is the size of end image in GB.
|
|||||||
|
|
||||||
- intel-nuc
|
- intel-nuc
|
||||||
- odroid-c2
|
- odroid-c2
|
||||||
|
- odroid-c4
|
||||||
- odroid-n2
|
- odroid-n2
|
||||||
- odroid-xu
|
- odroid-xu
|
||||||
- qemuarm
|
- qemuarm
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ Default Kernel tree: 5.4
|
|||||||
| Raspberry Pi 3 | 4.19.127 |
|
| Raspberry Pi 3 | 4.19.127 |
|
||||||
| Raspberry Pi 4 | 4.19.127 |
|
| Raspberry Pi 4 | 4.19.127 |
|
||||||
| Tinker Board | 5.4.63 |
|
| Tinker Board | 5.4.63 |
|
||||||
| Odroid-C2 | 5.7.19 |
|
| Odroid-C2 | 5.9.6 |
|
||||||
| Odroid-N2 | 5.7.19 |
|
| Odroid-C4 | 5.9.6 |
|
||||||
| Odroid-XU4 | 5.7.19 |
|
| Odroid-N2 | 5.9.6 |
|
||||||
|
| Odroid-XU4 | 5.9.6 |
|
||||||
| Intel NUC | 5.4.63 |
|
| Intel NUC | 5.4.63 |
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ Only a manual configuration using NetworkManager connection files is supported.
|
|||||||
|
|
||||||
You can read the [NetworkManager manual][nm-manual] or find many configuration examples across the internet. Keep in mind that the system is read-only. If you don't want the IP address to change on every boot, you should modify the UUID property to a generic [UUID4][uuid]. Inside the `\CONFIG\network\` directory on the USB drive or SD card, create a file called `my-network` and add the appropriate contents below:
|
You can read the [NetworkManager manual][nm-manual] or find many configuration examples across the internet. Keep in mind that the system is read-only. If you don't want the IP address to change on every boot, you should modify the UUID property to a generic [UUID4][uuid]. Inside the `\CONFIG\network\` directory on the USB drive or SD card, create a file called `my-network` and add the appropriate contents below:
|
||||||
|
|
||||||
|
**NOTE: Please make sure to save this file with UNIX line endings (LF, and not Windows' default CRLF endings). You can do this using Notepad these days!**
|
||||||
|
|
||||||
### Default
|
### Default
|
||||||
|
|
||||||
A preinstalled connection profile is provided by default:
|
A preinstalled connection profile is provided by default:
|
||||||
|
|||||||
@@ -51,15 +51,7 @@ Log in as `root` to get to the Home Assistant CLI and then enter `login` to cont
|
|||||||
|
|
||||||
Confirm your USB SSD/HD is connected and recognized using `fdisk -l`.
|
Confirm your USB SSD/HD is connected and recognized using `fdisk -l`.
|
||||||
|
|
||||||
It is recommended to use fdisk to remove the existing partition(s) before proceeding.
|
Make sure the drive has no partition named `hassos-data` (or no partition at all). With the drive, use the below command (again, replacing XXX with your drive)
|
||||||
|
|
||||||
- Type `fdisk /dev/XXX` (replacing XXX with your drive)
|
|
||||||
- Type `d` to delete a partition.
|
|
||||||
- Continue if needed, then write the changes.
|
|
||||||
|
|
||||||
Creating a new partition is not necessary.
|
|
||||||
|
|
||||||
With the drive now prepared, use the below command (again, replacing XXX with your drive)
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ datactl move /dev/xxx
|
$ datactl move /dev/xxx
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Home Assistant Operating System uses Docker as Container engine. It by default d
|
|||||||
- Asus Tinker Board
|
- Asus Tinker Board
|
||||||
- Virtual appliances
|
- Virtual appliances
|
||||||
|
|
||||||
See full list and specific models [here](./Documentation/boards/README.md)
|
See the full list and specific models [here](./Documentation/boards/README.md)
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ If you're interested in finding out more about Home Assistant Operating System a
|
|||||||
- **Security:**
|
- **Security:**
|
||||||
- [AppArmor](https://apparmor.net/) Linux kernel security module
|
- [AppArmor](https://apparmor.net/) Linux kernel security module
|
||||||
|
|
||||||
If you don't have experience with these, embedded systems, buildroot or the build process for Linux distributions, then please read up on these topics. The rest of the documentation in this project is for developers and assumes you have experience of embedded systems or a strong understanding of the internal workings of operating systems.
|
If you don't have experience with these, embedded systems, buildroot or the build process for Linux distributions, then please read up on these topics. The rest of the documentation in this project is for developers and assumes you have experience with embedded systems or a strong understanding of the internal workings of operating systems.
|
||||||
|
|
||||||
## Developer Documentation
|
## Developer Documentation
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ jobs:
|
|||||||
board: 'intel_nuc'
|
board: 'intel_nuc'
|
||||||
OdroidC2:
|
OdroidC2:
|
||||||
board: 'odroid_c2'
|
board: 'odroid_c2'
|
||||||
|
OdroidC4:
|
||||||
|
board: 'odroid_c4'
|
||||||
OdroidN2:
|
OdroidN2:
|
||||||
board: 'odroid_n2'
|
board: 'odroid_n2'
|
||||||
OdroidXU4:
|
OdroidXU4:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
|||||||
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
# HassOS bootargs
|
# HassOS bootargs
|
||||||
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory"
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory fsck.repair=yes"
|
||||||
|
|
||||||
# HassOS system A/B
|
# HassOS system A/B
|
||||||
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro rootwait"
|
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro rootwait"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
|||||||
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
# HassOS bootargs
|
# HassOS bootargs
|
||||||
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory"
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory fsck.repair=yes"
|
||||||
|
|
||||||
# HassOS system A/B
|
# HassOS system A/B
|
||||||
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
|
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
|
||||||
|
|||||||
23
buildroot-external/board/hardkernel/odroid-c4/hassos-hook.sh
Executable file
23
buildroot-external/board/hardkernel/odroid-c4/hassos-hook.sh
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# shellcheck disable=SC2155
|
||||||
|
|
||||||
|
function hassos_pre_image() {
|
||||||
|
local BOOT_DATA="$(path_boot_dir)"
|
||||||
|
local UBOOT_SM1="${BINARIES_DIR}/u-boot.sm1"
|
||||||
|
local SPL_IMG="$(path_spl_img)"
|
||||||
|
|
||||||
|
cp "${BINARIES_DIR}/boot.scr" "${BOOT_DATA}/boot.scr"
|
||||||
|
cp "${BINARIES_DIR}/meson-sm1-odroid-c4.dtb" "${BOOT_DATA}/meson-sm1-odroid-c4.dtb"
|
||||||
|
|
||||||
|
echo "console=tty0 console=ttyAML0,115200n8" > "${BOOT_DATA}/cmdline.txt"
|
||||||
|
|
||||||
|
# SPL
|
||||||
|
create_spl_image
|
||||||
|
|
||||||
|
dd if="${UBOOT_SM1}" of="${SPL_IMG}" conv=notrunc bs=512 seek=1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function hassos_post_image() {
|
||||||
|
convert_disk_image_gz
|
||||||
|
}
|
||||||
10
buildroot-external/board/hardkernel/odroid-c4/meta
Normal file
10
buildroot-external/board/hardkernel/odroid-c4/meta
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
BOARD_ID=odroid-c4
|
||||||
|
BOARD_NAME="Hardkernel Odroid-C4"
|
||||||
|
CHASSIS=embedded
|
||||||
|
BOOTLOADER=uboot
|
||||||
|
KERNEL_FILE=Image
|
||||||
|
BOOT_SYS=mbr
|
||||||
|
BOOT_SPL=true
|
||||||
|
BOOT_ENV_SIZE=0x2000
|
||||||
|
SUPERVISOR_MACHINE=odroid-c4
|
||||||
|
SUPERVISOR_ARCH=aarch64
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
From 64017a2cc9e501329016d50b701c5e9a9488991d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
|
Date: Mon, 2 Sep 2019 15:42:04 +0200
|
||||||
|
Subject: [PATCH 3/3] HACK: mmc: meson-gx: limit to 24MHz
|
||||||
|
|
||||||
|
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
|
---
|
||||||
|
drivers/mmc/meson_gx_mmc.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c
|
||||||
|
index b5f5122b..00bfa324 100644
|
||||||
|
--- a/drivers/mmc/meson_gx_mmc.c
|
||||||
|
+++ b/drivers/mmc/meson_gx_mmc.c
|
||||||
|
@@ -252,7 +252,7 @@ static int meson_mmc_probe(struct udevice *dev)
|
||||||
|
cfg->host_caps = MMC_MODE_8BIT | MMC_MODE_4BIT |
|
||||||
|
MMC_MODE_HS_52MHz | MMC_MODE_HS;
|
||||||
|
cfg->f_min = DIV_ROUND_UP(SD_EMMC_CLKSRC_24M, CLK_MAX_DIV);
|
||||||
|
- cfg->f_max = 100000000; /* 100 MHz */
|
||||||
|
+ cfg->f_max = SD_EMMC_CLKSRC_24M;
|
||||||
|
cfg->b_max = 511; /* max 512 - 1 blocks */
|
||||||
|
cfg->name = dev->name;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.22.0
|
||||||
83
buildroot-external/board/hardkernel/odroid-c4/uboot-boot.ush
Normal file
83
buildroot-external/board/hardkernel/odroid-c4/uboot-boot.ush
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
part start mmc ${devnum} 9 mmc_env
|
||||||
|
mmc dev ${devnum}
|
||||||
|
setenv loadbootstate " \
|
||||||
|
echo 'loading env...'; \
|
||||||
|
mmc read ${ramdisk_addr_r} ${mmc_env} 0x10; \
|
||||||
|
env import -c ${ramdisk_addr_r} 0x2000;"
|
||||||
|
|
||||||
|
setenv storebootstate " \
|
||||||
|
echo 'storing env...'; \
|
||||||
|
env export -c -s 0x2000 ${ramdisk_addr_r} BOOT_ORDER BOOT_A_LEFT BOOT_B_LEFT MACHINE_ID; \
|
||||||
|
mmc write ${ramdisk_addr_r} ${mmc_env} 0x10;"
|
||||||
|
|
||||||
|
run loadbootstate
|
||||||
|
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 systemd.machine_id=${MACHINE_ID} cgroup_enable=memory clk_ignore_unused usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u"
|
||||||
|
|
||||||
|
# HassOS system A/B
|
||||||
|
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
|
||||||
|
setenv bootargs_b "root=PARTUUID=48617373-08 rootfstype=squashfs ro rootwait"
|
||||||
|
|
||||||
|
usb start
|
||||||
|
|
||||||
|
# Load extraargs
|
||||||
|
fileenv mmc ${devnum}:1 ${ramdisk_addr_r} cmdline.txt cmdline
|
||||||
|
fatload mmc ${devnum}:1 ${fdt_addr_r} meson-sm1-odroid-c4.dtb
|
||||||
|
|
||||||
|
# logical volumes get numbered after physical ones.
|
||||||
|
# 1. boot
|
||||||
|
# 2. Extended partition
|
||||||
|
# 3. Overlay
|
||||||
|
# 4. Data
|
||||||
|
# 5. KernelA
|
||||||
|
# 6. SystemA
|
||||||
|
# 7. KernelB
|
||||||
|
# 8. SystemB
|
||||||
|
# 9. BootInfo
|
||||||
|
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 ${devnum}:5 ${kernel_addr_r} Image"
|
||||||
|
setenv bootargs "${bootargs_hassos} ${bootargs_a} rauc.slot=A ${cmdline}"
|
||||||
|
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 ${devnum}:7 ${kernel_addr_r} Image"
|
||||||
|
setenv bootargs "${bootargs_hassos} ${bootargs_b} rauc.slot=B ${cmdline}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -n "${bootargs}"; then
|
||||||
|
run storebootstate
|
||||||
|
else
|
||||||
|
echo "No valid slot found, resetting tries to 3"
|
||||||
|
setenv BOOT_A_LEFT 3
|
||||||
|
setenv BOOT_B_LEFT 3
|
||||||
|
run storebootstate
|
||||||
|
reset
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Loading kernel"
|
||||||
|
run load_kernel
|
||||||
|
echo " Starting kernel"
|
||||||
|
printenv load_kernel
|
||||||
|
printenv bootargs
|
||||||
|
booti ${kernel_addr_r} - ${fdt_addr_r}
|
||||||
|
|
||||||
|
echo "Fails on boot"
|
||||||
|
reset
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
CONFIG_DOS_PARTITION=y
|
||||||
|
# CONFIG_EFI_PARTITION is not set
|
||||||
|
# CONFIG_USB_STORAGE is not set
|
||||||
|
CONFIG_DISPLAY_BOARDINFO=y
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
|
||||||
@@ -19,7 +19,7 @@ test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
|||||||
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
# HassOS bootargs
|
# HassOS bootargs
|
||||||
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory"
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory fsck.repair=yes"
|
||||||
|
|
||||||
# HassOS system A/B
|
# HassOS system A/B
|
||||||
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
|
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
|||||||
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
# HassOS bootargs
|
# HassOS bootargs
|
||||||
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory"
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=${MACHINE_ID} cgroup_enable=memory fsck.repair=yes"
|
||||||
|
|
||||||
# HassOS system A/B
|
# HassOS system A/B
|
||||||
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
|
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
From e2b93751cfd0722801b65b4603b588ab9df4c12b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Date: Tue, 21 Apr 2020 18:39:30 +0200
|
|
||||||
Subject: [PATCH 2/8] arm64: defconfig: enable meson gx audio as module
|
|
||||||
|
|
||||||
Enable the module config for the Amlogic GX audio card.
|
|
||||||
This module will imply the internal components usually associated
|
|
||||||
with it to make a functional sound card on these platforms.
|
|
||||||
|
|
||||||
Also enable the simple amplifier module which often used on the
|
|
||||||
output stage of those cards.
|
|
||||||
|
|
||||||
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
|
||||||
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
||||||
Link: https://lore.kernel.org/r/20200421163935.775935-2-jbrunet@baylibre.com
|
|
||||||
---
|
|
||||||
arch/arm64/configs/defconfig | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
|
|
||||||
index 03d0189f7d68..ceb60ee9c340 100644
|
|
||||||
--- a/arch/arm64/configs/defconfig
|
|
||||||
+++ b/arch/arm64/configs/defconfig
|
|
||||||
@@ -644,6 +644,7 @@ CONFIG_SND_HDA_CODEC_HDMI=m
|
|
||||||
CONFIG_SND_SOC=y
|
|
||||||
CONFIG_SND_BCM2835_SOC_I2S=m
|
|
||||||
CONFIG_SND_MESON_AXG_SOUND_CARD=m
|
|
||||||
+CONFIG_SND_MESON_GX_SOUND_CARD=m
|
|
||||||
CONFIG_SND_SOC_SDM845=m
|
|
||||||
CONFIG_SND_SOC_ROCKCHIP=m
|
|
||||||
CONFIG_SND_SOC_ROCKCHIP_SPDIF=m
|
|
||||||
@@ -656,6 +657,7 @@ CONFIG_SND_SOC_AK4613=m
|
|
||||||
CONFIG_SND_SOC_ES7134=m
|
|
||||||
CONFIG_SND_SOC_ES7241=m
|
|
||||||
CONFIG_SND_SOC_PCM3168A_I2C=m
|
|
||||||
+CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m
|
|
||||||
CONFIG_SND_SOC_TAS571X=m
|
|
||||||
CONFIG_SND_SOC_WCD934X=m
|
|
||||||
CONFIG_SND_SOC_WSA881X=m
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -1,32 +1,32 @@
|
|||||||
From 9443f2cd21a8ebd08f0fb64f5b3a8ccb6cd77d8e Mon Sep 17 00:00:00 2001
|
From 734f52f38625ce29c964517255538b3b0b546e8d Mon Sep 17 00:00:00 2001
|
||||||
Message-Id: <9443f2cd21a8ebd08f0fb64f5b3a8ccb6cd77d8e.1596660075.git.stefan@agner.ch>
|
Message-Id: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
In-Reply-To: <f72fc1866396fed30036e0f06007c15217e47f22.1596660075.git.stefan@agner.ch>
|
|
||||||
References: <f72fc1866396fed30036e0f06007c15217e47f22.1596660075.git.stefan@agner.ch>
|
|
||||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||||
Date: Sun, 19 Jul 2020 14:10:32 +0000
|
Date: Tue, 15 Sep 2020 17:24:30 +0200
|
||||||
Subject: [PATCH 08/10] arm64: dts: meson: convert ODROID-N2 to dtsi
|
Subject: [PATCH 1/7] arm64: dts: meson: convert ODROID-N2 to dtsi
|
||||||
|
|
||||||
Convert the current ODROID-N2 dts into a common dtsi in preparation
|
Convert the current ODROID-N2 dts into a common dtsi in preparation
|
||||||
for adding ODROID-N2+ support.
|
for adding ODROID-N2+ support.
|
||||||
|
|
||||||
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
||||||
[rebased ontop of sound patches]
|
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
||||||
|
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
|
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||||
|
Link: https://lore.kernel.org/r/20200915152432.30616-2-narmstrong@baylibre.com
|
||||||
---
|
---
|
||||||
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 619 +----------------
|
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 618 +----------------
|
||||||
.../dts/amlogic/meson-g12b-odroid-n2.dtsi | 626 ++++++++++++++++++
|
.../dts/amlogic/meson-g12b-odroid-n2.dtsi | 625 ++++++++++++++++++
|
||||||
2 files changed, 627 insertions(+), 618 deletions(-)
|
2 files changed, 626 insertions(+), 617 deletions(-)
|
||||||
create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
||||||
|
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
||||||
index 34fffa6d859d..5fd51a87ae9b 100644
|
index 34fffa6d859d..a198a91259ec 100644
|
||||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
||||||
@@ -6,626 +6,9 @@
|
@@ -7,625 +7,9 @@
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
-#include "meson-g12b-s922x.dtsi"
|
#include "meson-g12b-s922x.dtsi"
|
||||||
-#include <dt-bindings/input/input.h>
|
-#include <dt-bindings/input/input.h>
|
||||||
-#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
-#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||||
-#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
-#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
||||||
@@ -652,17 +652,16 @@ index 34fffa6d859d..5fd51a87ae9b 100644
|
|||||||
};
|
};
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000000..e5bc132ce7d5
|
index 000000000000..6982632ae646
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
||||||
@@ -0,0 +1,626 @@
|
@@ -0,0 +1,625 @@
|
||||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2019 BayLibre, SAS
|
+ * Copyright (c) 2019 BayLibre, SAS
|
||||||
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
|
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
+ */
|
+ */
|
||||||
+
|
+
|
||||||
+#include "meson-g12b-s922x.dtsi"
|
|
||||||
+#include <dt-bindings/input/input.h>
|
+#include <dt-bindings/input/input.h>
|
||||||
+#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
+#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||||
+#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
+#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
||||||
@@ -1067,7 +1066,7 @@ index 000000000000..e5bc132ce7d5
|
|||||||
+
|
+
|
||||||
+&ext_mdio {
|
+&ext_mdio {
|
||||||
+ external_phy: ethernet-phy@0 {
|
+ external_phy: ethernet-phy@0 {
|
||||||
+ /* Realtek RTL8211F (0x001cc916) */
|
+ /* Realtek RTL8211F (0x001cc916) */
|
||||||
+ reg = <0>;
|
+ reg = <0>;
|
||||||
+ max-speed = <1000>;
|
+ max-speed = <1000>;
|
||||||
+
|
+
|
||||||
@@ -1283,5 +1282,5 @@ index 000000000000..e5bc132ce7d5
|
|||||||
+ phy-supply = <&hub_5v>;
|
+ phy-supply = <&hub_5v>;
|
||||||
+};
|
+};
|
||||||
--
|
--
|
||||||
2.27.0
|
2.28.0
|
||||||
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
From 821b8ac21b1675910423ee69d37cb1977b8f271e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Date: Mon, 30 Mar 2020 17:39:04 +0200
|
|
||||||
Subject: [PATCH 3/8] ASoC: meson: imply acodec glue on axg sound card
|
|
||||||
|
|
||||||
When axg card driver support is enabled, lets enable the related
|
|
||||||
internal DAC glue by default.
|
|
||||||
|
|
||||||
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
---
|
|
||||||
sound/soc/meson/Kconfig | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/sound/soc/meson/Kconfig b/sound/soc/meson/Kconfig
|
|
||||||
index 8b6295283989..363dc3b1bbe4 100644
|
|
||||||
--- a/sound/soc/meson/Kconfig
|
|
||||||
+++ b/sound/soc/meson/Kconfig
|
|
||||||
@@ -68,6 +68,7 @@ config SND_MESON_AXG_SOUND_CARD
|
|
||||||
imply SND_MESON_AXG_SPDIFOUT
|
|
||||||
imply SND_MESON_AXG_SPDIFIN
|
|
||||||
imply SND_MESON_AXG_PDM
|
|
||||||
+ imply SND_MESON_G12A_TOACODEC
|
|
||||||
imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
|
|
||||||
help
|
|
||||||
Select Y or M to add support for the AXG SoC sound card
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
From 75f1e8330dac46a0bef8a360be0ae4566d9a470c Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <75f1e8330dac46a0bef8a360be0ae4566d9a470c.1603528796.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
|
References: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||||
|
Date: Tue, 15 Sep 2020 17:24:31 +0200
|
||||||
|
Subject: [PATCH 2/7] dt-bindings: arm: amlogic: add support for the ODROID-N2+
|
||||||
|
|
||||||
|
HardKernel ODROID-N2+ uses a revised Amlogic S922X v2 chip that supports
|
||||||
|
higher cpu clock speeds than the original ODROID-N2.
|
||||||
|
|
||||||
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
||||||
|
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
|
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
||||||
|
Acked-by: Rob Herring <robh@kernel.org>
|
||||||
|
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||||
|
Link: https://lore.kernel.org/r/20200915152432.30616-3-narmstrong@baylibre.com
|
||||||
|
---
|
||||||
|
Documentation/devicetree/bindings/arm/amlogic.yaml | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
|
||||||
|
index 5eba9f48823e..12ba8d074370 100644
|
||||||
|
--- a/Documentation/devicetree/bindings/arm/amlogic.yaml
|
||||||
|
+++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
|
||||||
|
@@ -153,6 +153,7 @@ properties:
|
||||||
|
- azw,gtking
|
||||||
|
- azw,gtking-pro
|
||||||
|
- hardkernel,odroid-n2
|
||||||
|
+ - hardkernel,odroid-n2-plus
|
||||||
|
- khadas,vim3
|
||||||
|
- ugoos,am6
|
||||||
|
- const: amlogic,s922x
|
||||||
|
--
|
||||||
|
2.28.0
|
||||||
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
From 60164df03c6314d8f5f3afef56b0bf97962ec9ee Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Date: Mon, 24 Feb 2020 14:35:17 +0100
|
|
||||||
Subject: [PATCH 4/8] ASoC: meson: gx-card: fix sound-dai dt schema
|
|
||||||
|
|
||||||
There is a fair amount of warnings when running 'make dtbs_check' with
|
|
||||||
amlogic,gx-sound-card.yaml.
|
|
||||||
|
|
||||||
Ex:
|
|
||||||
arch/arm64/boot/dts/amlogic/meson-gxm-q200.dt.yaml: sound: dai-link-0:sound-dai:0:1: missing phandle tag in 0
|
|
||||||
arch/arm64/boot/dts/amlogic/meson-gxm-q200.dt.yaml: sound: dai-link-0:sound-dai:0:2: missing phandle tag in 0
|
|
||||||
arch/arm64/boot/dts/amlogic/meson-gxm-q200.dt.yaml: sound: dai-link-0:sound-dai:0: [66, 0, 0] is too long
|
|
||||||
|
|
||||||
The reason is that the sound-dai phandle provided has cells, and in such
|
|
||||||
case the schema should use 'phandle-array' instead of 'phandle'.
|
|
||||||
|
|
||||||
Fixes: fd00366b8e41 ("ASoC: meson: gx: add sound card dt-binding documentation")
|
|
||||||
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
---
|
|
||||||
.../devicetree/bindings/sound/amlogic,gx-sound-card.yaml | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml
|
|
||||||
index fb374c659be1..a48222e8cd08 100644
|
|
||||||
--- a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml
|
|
||||||
+++ b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml
|
|
||||||
@@ -57,7 +57,7 @@ patternProperties:
|
|
||||||
rate
|
|
||||||
|
|
||||||
sound-dai:
|
|
||||||
- $ref: /schemas/types.yaml#/definitions/phandle
|
|
||||||
+ $ref: /schemas/types.yaml#/definitions/phandle-array
|
|
||||||
description: phandle of the CPU DAI
|
|
||||||
|
|
||||||
patternProperties:
|
|
||||||
@@ -71,7 +71,7 @@ patternProperties:
|
|
||||||
|
|
||||||
properties:
|
|
||||||
sound-dai:
|
|
||||||
- $ref: /schemas/types.yaml#/definitions/phandle
|
|
||||||
+ $ref: /schemas/types.yaml#/definitions/phandle-array
|
|
||||||
description: phandle of the codec DAI
|
|
||||||
|
|
||||||
required:
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -1,31 +1,34 @@
|
|||||||
From 188bc924b34b7d845324eb2e0e7493a9eaeb2cb5 Mon Sep 17 00:00:00 2001
|
From c714cb26fcb59f5201f7aac68dfd9883319881b2 Mon Sep 17 00:00:00 2001
|
||||||
Message-Id: <188bc924b34b7d845324eb2e0e7493a9eaeb2cb5.1595882680.git.stefan@agner.ch>
|
Message-Id: <c714cb26fcb59f5201f7aac68dfd9883319881b2.1603528796.git.stefan@agner.ch>
|
||||||
In-Reply-To: <d83d79b085486a605462fa91e3c6746e4ff0b263.1595882680.git.stefan@agner.ch>
|
In-Reply-To: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
References: <d83d79b085486a605462fa91e3c6746e4ff0b263.1595882680.git.stefan@agner.ch>
|
References: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||||
Date: Sun, 19 Jul 2020 14:10:34 +0000
|
Date: Tue, 15 Sep 2020 17:24:32 +0200
|
||||||
Subject: [PATCH 10/10] arm64: dts: meson: add support for the ODROID-N2+
|
Subject: [PATCH 3/7] arm64: dts: meson: add support for the ODROID-N2+
|
||||||
|
|
||||||
HardKernel ODROID-N2+ uses an Amlogic S922X rev. C chip capable of higher
|
HardKernel ODROID-N2+ uses an Amlogic S922X rev. C chip capable of higher
|
||||||
clock speeds than the original ODROID-N2. Hardkernel supports the big cpu
|
clock speeds than the original ODROID-N2.
|
||||||
cluster at 2.4GHz and the little cpu cluster at 2.0GHz. Opp points and
|
|
||||||
regulator changess are from the HardKernel Linux kernel sources.
|
The rev. C support a slighly higher VDDCPU_A & VDDCPU_B voltages and supports
|
||||||
|
the same OPPs as the Amlogic A311D SoC from the same G12B family.
|
||||||
|
|
||||||
Suggested-by: Dongjin Kim <tobetter@hardkernel.com>
|
Suggested-by: Dongjin Kim <tobetter@hardkernel.com>
|
||||||
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
||||||
[Integrated Neil Armstrong's feedback from mailing list]
|
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
||||||
|
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||||
|
Link: https://lore.kernel.org/r/20200915152432.30616-4-narmstrong@baylibre.com
|
||||||
---
|
---
|
||||||
arch/arm64/boot/dts/amlogic/Makefile | 1 +
|
arch/arm64/boot/dts/amlogic/Makefile | 1 +
|
||||||
.../dts/amlogic/meson-g12b-odroid-n2-plus.dts | 53 +++++++++++++++++++
|
.../dts/amlogic/meson-g12b-odroid-n2-plus.dts | 31 +++++++++++++++++++
|
||||||
2 files changed, 54 insertions(+)
|
2 files changed, 32 insertions(+)
|
||||||
create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||||
|
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
|
diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
|
||||||
index eef0045320f2..7524cf9680f5 100644
|
index 4e2239ffcaa5..b0b3d6791499 100644
|
||||||
--- a/arch/arm64/boot/dts/amlogic/Makefile
|
--- a/arch/arm64/boot/dts/amlogic/Makefile
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/Makefile
|
+++ b/arch/arm64/boot/dts/amlogic/Makefile
|
||||||
@@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-g12a-x96-max.dtb
|
@@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-g12b-gtking-pro.dtb
|
||||||
dtb-$(CONFIG_ARCH_MESON) += meson-g12b-a311d-khadas-vim3.dtb
|
dtb-$(CONFIG_ARCH_MESON) += meson-g12b-a311d-khadas-vim3.dtb
|
||||||
dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-khadas-vim3.dtb
|
dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-khadas-vim3.dtb
|
||||||
dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2.dtb
|
dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2.dtb
|
||||||
@@ -35,10 +38,10 @@ index eef0045320f2..7524cf9680f5 100644
|
|||||||
dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nanopi-k2.dtb
|
dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nanopi-k2.dtb
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000000..4ebb448d233f
|
index 000000000000..5de2815ba99d
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||||
@@ -0,0 +1,53 @@
|
@@ -0,0 +1,31 @@
|
||||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2019 BayLibre, SAS
|
+ * Copyright (c) 2019 BayLibre, SAS
|
||||||
@@ -47,18 +50,20 @@ index 000000000000..4ebb448d233f
|
|||||||
+
|
+
|
||||||
+/dts-v1/;
|
+/dts-v1/;
|
||||||
+
|
+
|
||||||
|
+/* The Amlogic S922X Rev. C supports the same OPPs as the A311D variant */
|
||||||
|
+#include "meson-g12b-a311d.dtsi"
|
||||||
+#include "meson-g12b-odroid-n2.dtsi"
|
+#include "meson-g12b-odroid-n2.dtsi"
|
||||||
+
|
+
|
||||||
+/ {
|
+/ {
|
||||||
+ compatible = "hardkernel,odroid-n2-plus", "amlogic,s922x", "amlogic,g12b";
|
+ compatible = "hardkernel,odroid-n2-plus", "amlogic,s922x", "amlogic,g12b";
|
||||||
+ model = "Hardkernel ODROID-N2+";
|
+ model = "Hardkernel ODROID-N2Plus";
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&vddcpu_a {
|
+&vddcpu_a {
|
||||||
+ regulator-min-microvolt = <680000>;
|
+ regulator-min-microvolt = <680000>;
|
||||||
+ regulator-max-microvolt = <1040000>;
|
+ regulator-max-microvolt = <1040000>;
|
||||||
+
|
+
|
||||||
+ pwms = <&pwm_ab 0 1500 0>;
|
+ pwms = <&pwm_AO_cd 1 1500 0>;
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&vddcpu_b {
|
+&vddcpu_b {
|
||||||
@@ -68,30 +73,6 @@ index 000000000000..4ebb448d233f
|
|||||||
+ pwms = <&pwm_AO_cd 1 1500 0>;
|
+ pwms = <&pwm_AO_cd 1 1500 0>;
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&cpu_opp_table_0 {
|
|
||||||
+ opp-1908000000 {
|
|
||||||
+ opp-hz = /bits/ 64 <1908000000>;
|
|
||||||
+ opp-microvolt = <1030000>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ opp-2016000000 {
|
|
||||||
+ opp-hz = /bits/ 64 <2016000000>;
|
|
||||||
+ opp-microvolt = <1040000>;
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&cpub_opp_table_1 {
|
|
||||||
+ opp-2304000000 {
|
|
||||||
+ opp-hz = /bits/ 64 <2304000000>;
|
|
||||||
+ opp-microvolt = <1030000>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ opp-2400000000 {
|
|
||||||
+ opp-hz = /bits/ 64 <2400000000>;
|
|
||||||
+ opp-microvolt = <1040000>;
|
|
||||||
+ };
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
--
|
--
|
||||||
2.27.0
|
2.28.0
|
||||||
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
From f2eead311d9dd9ff7ee0846914147250d7711f98 Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <f2eead311d9dd9ff7ee0846914147250d7711f98.1603528796.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
|
References: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
|
From: Scott K Logan <logans@cottsay.net>
|
||||||
|
Date: Fri, 25 Sep 2020 01:43:53 -0700
|
||||||
|
Subject: [PATCH 4/7] arm64: dts: meson: add missing g12 rng clock
|
||||||
|
|
||||||
|
This adds the missing perpheral clock for the RNG for Amlogic G12. As
|
||||||
|
stated in amlogic,meson-rng.yaml, this isn't always necessary for the
|
||||||
|
RNG to function, but is better to have in case the clock is disabled for
|
||||||
|
some reason prior to loading.
|
||||||
|
|
||||||
|
Signed-off-by: Scott K Logan <logans@cottsay.net>
|
||||||
|
Suggested-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
|
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
|
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
||||||
|
Link: https://lore.kernel.org/r/520a1a8ec7a958b3d918d89563ec7e93a4100a45.camel@cottsay.net
|
||||||
|
---
|
||||||
|
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
||||||
|
index 1e83ec5b8c91..81f490e404ca 100644
|
||||||
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
||||||
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
||||||
|
@@ -282,6 +282,8 @@ apb_efuse: bus@30000 {
|
||||||
|
hwrng: rng@218 {
|
||||||
|
compatible = "amlogic,meson-rng";
|
||||||
|
reg = <0x0 0x218 0x0 0x4>;
|
||||||
|
+ clocks = <&clkc CLKID_RNG0>;
|
||||||
|
+ clock-names = "core";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
--
|
||||||
|
2.28.0
|
||||||
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
From e128dd1ca079c5ee558ab100387d9f81bd4f3980 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Date: Thu, 7 May 2020 00:16:55 +0200
|
|
||||||
Subject: [PATCH 5/8] arm64: dts: meson: g12: add internal DAC
|
|
||||||
|
|
||||||
add internal audio DAC support on the g12 and sm1 SoC family
|
|
||||||
|
|
||||||
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
|
||||||
Link: https://lore.kernel.org/r/20200506221656.477379-7-jbrunet@baylibre.com
|
|
||||||
---
|
|
||||||
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 11 +++++++++++
|
|
||||||
1 file changed, 11 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
|
||||||
index c0aef7d69117..593a006f4b7b 100644
|
|
||||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
|
|
||||||
@@ -250,6 +250,17 @@
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
+ acodec: audio-controller@32000 {
|
|
||||||
+ compatible = "amlogic,t9015";
|
|
||||||
+ reg = <0x0 0x32000 0x0 0x14>;
|
|
||||||
+ #sound-dai-cells = <0>;
|
|
||||||
+ sound-name-prefix = "ACODEC";
|
|
||||||
+ clocks = <&clkc CLKID_AUDIO_CODEC>;
|
|
||||||
+ clock-names = "pclk";
|
|
||||||
+ resets = <&reset RESET_AUDIO_CODEC>;
|
|
||||||
+ status = "disabled";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
periphs: bus@34400 {
|
|
||||||
compatible = "simple-bus";
|
|
||||||
reg = <0x0 0x34400 0x0 0x400>;
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
From 5ea4085da165fd3f3aa211cb3664dd166d0d5fd7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Date: Thu, 7 May 2020 00:16:56 +0200
|
|
||||||
Subject: [PATCH 6/8] arm64: dts: meson: g12: add internal DAC glue
|
|
||||||
|
|
||||||
add the internal DAC glue support on the g12 and sm1 family
|
|
||||||
This glue connects the different TDM interfaces of the SoC to
|
|
||||||
the internal audio DAC codec.
|
|
||||||
|
|
||||||
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
|
||||||
Link: https://lore.kernel.org/r/20200506221656.477379-8-jbrunet@baylibre.com
|
|
||||||
---
|
|
||||||
arch/arm64/boot/dts/amlogic/meson-g12.dtsi | 9 +++++++++
|
|
||||||
1 file changed, 9 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12.dtsi
|
|
||||||
index 55d39020ec72..0d14409f509c 100644
|
|
||||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12.dtsi
|
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12.dtsi
|
|
||||||
@@ -343,6 +343,15 @@
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
+ toacodec: audio-controller@740 {
|
|
||||||
+ compatible = "amlogic,g12a-toacodec";
|
|
||||||
+ reg = <0x0 0x740 0x0 0x4>;
|
|
||||||
+ #sound-dai-cells = <1>;
|
|
||||||
+ sound-name-prefix = "TOACODEC";
|
|
||||||
+ resets = <&clkc_audio AUD_RESET_TOACODEC>;
|
|
||||||
+ status = "disabled";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
tohdmitx: audio-controller@744 {
|
|
||||||
compatible = "amlogic,g12a-tohdmitx";
|
|
||||||
reg = <0x0 0x744 0x0 0x4>;
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
From 0a3a45efeefaf65c170df265126a07da3236e178 Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <0a3a45efeefaf65c170df265126a07da3236e178.1603528796.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
|
References: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
|
From: Jerome Brunet <jbrunet@baylibre.com>
|
||||||
|
Date: Fri, 23 Oct 2020 11:41:39 +0200
|
||||||
|
Subject: [PATCH 5/7] arm64: dts: meson: odroid-n2 plus: fix vddcpu_a pwm
|
||||||
|
|
||||||
|
On the odroid N2 plus, cpufreq is not available due to an error on the cpu
|
||||||
|
regulators. vddcpu a and b get the same PWM. The one provided to vddcpu A
|
||||||
|
is incorrect. Because vddcpu B PWM is busy the regulator cannot register:
|
||||||
|
|
||||||
|
> pwm-regulator regulator-vddcpu-b: Failed to get PWM: -16
|
||||||
|
|
||||||
|
Like on the odroid n2, use PWM A out of GPIOE_2 for vddcpu A to fix the
|
||||||
|
problem
|
||||||
|
|
||||||
|
Fixes: 98d24896ee11 ("arm64: dts: meson: add support for the ODROID-N2+")
|
||||||
|
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
||||||
|
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||||
|
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
||||||
|
Link: https://lore.kernel.org/r/20201023094139.809379-1-jbrunet@baylibre.com
|
||||||
|
---
|
||||||
|
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||||
|
index 5de2815ba99d..ce1198ad34e4 100644
|
||||||
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||||
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||||
|
@@ -19,7 +19,7 @@ &vddcpu_a {
|
||||||
|
regulator-min-microvolt = <680000>;
|
||||||
|
regulator-max-microvolt = <1040000>;
|
||||||
|
|
||||||
|
- pwms = <&pwm_AO_cd 1 1500 0>;
|
||||||
|
+ pwms = <&pwm_ab 0 1500 0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&vddcpu_b {
|
||||||
|
--
|
||||||
|
2.28.0
|
||||||
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
From 15b3cef2ea75c4d81cb067264be1cf49c49f81b1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Date: Mon, 15 Jun 2020 15:38:44 +0200
|
|
||||||
Subject: [PATCH 7/8] arm64: dts: meson-g12b: odroid-n2: enable audio loopback
|
|
||||||
|
|
||||||
Add capture pcm interfaces and loopback routes to the odroid-n2
|
|
||||||
|
|
||||||
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
---
|
|
||||||
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 65 +++++++++++++++++--
|
|
||||||
1 file changed, 61 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
|
||||||
index 169ea283d4ee..d4421ad164bd 100644
|
|
||||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
|
||||||
@@ -209,11 +209,28 @@
|
|
||||||
sound {
|
|
||||||
compatible = "amlogic,axg-sound-card";
|
|
||||||
model = "G12B-ODROID-N2";
|
|
||||||
- audio-aux-devs = <&tdmout_b>;
|
|
||||||
+ audio-aux-devs = <&tdmout_b>, <&tdmin_a>, <&tdmin_b>,
|
|
||||||
+ <&tdmin_c>, <&tdmin_lb>;
|
|
||||||
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
|
|
||||||
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
|
|
||||||
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
|
|
||||||
- "TDM_B Playback", "TDMOUT_B OUT";
|
|
||||||
+ "TDM_B Playback", "TDMOUT_B OUT",
|
|
||||||
+ "TDMIN_A IN 4", "TDM_B Loopback",
|
|
||||||
+ "TDMIN_B IN 4", "TDM_B Loopback",
|
|
||||||
+ "TDMIN_C IN 4", "TDM_B Loopback",
|
|
||||||
+ "TDMIN_LB IN 1", "TDM_B Loopback",
|
|
||||||
+ "TODDR_A IN 0", "TDMIN_A OUT",
|
|
||||||
+ "TODDR_B IN 0", "TDMIN_A OUT",
|
|
||||||
+ "TODDR_C IN 0", "TDMIN_A OUT",
|
|
||||||
+ "TODDR_A IN 1", "TDMIN_B OUT",
|
|
||||||
+ "TODDR_B IN 1", "TDMIN_B OUT",
|
|
||||||
+ "TODDR_C IN 1", "TDMIN_B OUT",
|
|
||||||
+ "TODDR_A IN 2", "TDMIN_C OUT",
|
|
||||||
+ "TODDR_B IN 2", "TDMIN_C OUT",
|
|
||||||
+ "TODDR_C IN 2", "TDMIN_C OUT",
|
|
||||||
+ "TODDR_A IN 6", "TDMIN_LB OUT",
|
|
||||||
+ "TODDR_B IN 6", "TDMIN_LB OUT",
|
|
||||||
+ "TODDR_C IN 6", "TDMIN_LB OUT";
|
|
||||||
|
|
||||||
assigned-clocks = <&clkc CLKID_MPLL2>,
|
|
||||||
<&clkc CLKID_MPLL0>,
|
|
||||||
@@ -236,8 +253,20 @@
|
|
||||||
sound-dai = <&frddr_c>;
|
|
||||||
};
|
|
||||||
|
|
||||||
- /* 8ch hdmi interface */
|
|
||||||
dai-link-3 {
|
|
||||||
+ sound-dai = <&toddr_a>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ dai-link-4 {
|
|
||||||
+ sound-dai = <&toddr_b>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ dai-link-5 {
|
|
||||||
+ sound-dai = <&toddr_c>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ /* 8ch hdmi interface */
|
|
||||||
+ dai-link-6 {
|
|
||||||
sound-dai = <&tdmif_b>;
|
|
||||||
dai-format = "i2s";
|
|
||||||
dai-tdm-slot-tx-mask-0 = <1 1>;
|
|
||||||
@@ -252,7 +281,7 @@
|
|
||||||
};
|
|
||||||
|
|
||||||
/* hdmi glue */
|
|
||||||
- dai-link-4 {
|
|
||||||
+ dai-link-7 {
|
|
||||||
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
|
|
||||||
|
|
||||||
codec {
|
|
||||||
@@ -476,6 +505,22 @@
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
+&tdmin_a {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&tdmin_b {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&tdmin_c {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&tdmin_lb {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
&tdmout_b {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
@@ -484,6 +529,18 @@
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
+&toddr_a {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&toddr_b {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&toddr_c {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
&uart_AO {
|
|
||||||
status = "okay";
|
|
||||||
pinctrl-0 = <&uart_ao_a_pins>;
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
From c33df0ebe8be16b56741ce7f873221ab9087a0a6 Mon Sep 17 00:00:00 2001
|
From 03041630d824a775b71f6008067955a51d069845 Mon Sep 17 00:00:00 2001
|
||||||
Message-Id: <c33df0ebe8be16b56741ce7f873221ab9087a0a6.1598564789.git.stefan@agner.ch>
|
Message-Id: <03041630d824a775b71f6008067955a51d069845.1603528796.git.stefan@agner.ch>
|
||||||
In-Reply-To: <f72fc1866396fed30036e0f06007c15217e47f22.1598564789.git.stefan@agner.ch>
|
In-Reply-To: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
References: <f72fc1866396fed30036e0f06007c15217e47f22.1598564789.git.stefan@agner.ch>
|
References: <734f52f38625ce29c964517255538b3b0b546e8d.1603528796.git.stefan@agner.ch>
|
||||||
From: Stefan Agner <stefan@agner.ch>
|
From: Stefan Agner <stefan@agner.ch>
|
||||||
Date: Thu, 27 Aug 2020 23:29:57 +0200
|
Date: Thu, 27 Aug 2020 23:29:57 +0200
|
||||||
Subject: [PATCH 11/11] clk: meson: g12a: mark fclk_div2 as critical
|
Subject: [PATCH 6/7] clk: meson: g12a: mark fclk_div2 as critical
|
||||||
|
|
||||||
On Amlogic Meson G12b platform, similar to fclk_div3, the fclk_div2
|
On Amlogic Meson G12b platform, similar to fclk_div3, the fclk_div2
|
||||||
seems to be necessary for the system to operate correctly as well.
|
seems to be necessary for the system to operate correctly as well.
|
||||||
@@ -22,7 +22,7 @@ Signed-off-by: Stefan Agner <stefan@agner.ch>
|
|||||||
1 file changed, 1 insertion(+)
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
|
diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
|
||||||
index fad616cac01e..2214b974f748 100644
|
index 9803d44bb157..9a6722a1dc19 100644
|
||||||
--- a/drivers/clk/meson/g12a.c
|
--- a/drivers/clk/meson/g12a.c
|
||||||
+++ b/drivers/clk/meson/g12a.c
|
+++ b/drivers/clk/meson/g12a.c
|
||||||
@@ -298,6 +298,7 @@ static struct clk_regmap g12a_fclk_div2 = {
|
@@ -298,6 +298,7 @@ static struct clk_regmap g12a_fclk_div2 = {
|
||||||
@@ -1,168 +0,0 @@
|
|||||||
From 978cc250574b7f1ab45f494cc2a094e3c9fd1fa4 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
Date: Mon, 15 Jun 2020 16:34:37 +0200
|
|
||||||
Subject: [PATCH 8/8] arm64: dts: meson: odroid-n2: add jack audio output
|
|
||||||
support
|
|
||||||
|
|
||||||
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
||||||
---
|
|
||||||
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 79 +++++++++++++++++--
|
|
||||||
1 file changed, 74 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
|
||||||
index d4421ad164bd..34fffa6d859d 100644
|
|
||||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
|
||||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
|
||||||
@@ -9,6 +9,7 @@
|
|
||||||
#include "meson-g12b-s922x.dtsi"
|
|
||||||
#include <dt-bindings/input/input.h>
|
|
||||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
|
||||||
+#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
|
||||||
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
|
|
||||||
|
|
||||||
/ {
|
|
||||||
@@ -20,6 +21,14 @@
|
|
||||||
ethernet0 = ðmac;
|
|
||||||
};
|
|
||||||
|
|
||||||
+ dioo2133: audio-amplifier-0 {
|
|
||||||
+ compatible = "simple-audio-amplifier";
|
|
||||||
+ enable-gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
|
|
||||||
+ VCC-supply = <&vcc_5v>;
|
|
||||||
+ sound-name-prefix = "U19";
|
|
||||||
+ status = "okay";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
chosen {
|
|
||||||
stdout-path = "serial0:115200n8";
|
|
||||||
};
|
|
||||||
@@ -209,16 +218,26 @@
|
|
||||||
sound {
|
|
||||||
compatible = "amlogic,axg-sound-card";
|
|
||||||
model = "G12B-ODROID-N2";
|
|
||||||
- audio-aux-devs = <&tdmout_b>, <&tdmin_a>, <&tdmin_b>,
|
|
||||||
- <&tdmin_c>, <&tdmin_lb>;
|
|
||||||
+ audio-widgets = "Line", "Lineout";
|
|
||||||
+ audio-aux-devs = <&tdmout_b>, <&tdmout_c>, <&tdmin_a>,
|
|
||||||
+ <&tdmin_b>, <&tdmin_c>, <&tdmin_lb>,
|
|
||||||
+ <&dioo2133>;
|
|
||||||
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
|
|
||||||
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
|
|
||||||
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
|
|
||||||
"TDM_B Playback", "TDMOUT_B OUT",
|
|
||||||
+ "TDMOUT_C IN 0", "FRDDR_A OUT 2",
|
|
||||||
+ "TDMOUT_C IN 1", "FRDDR_B OUT 2",
|
|
||||||
+ "TDMOUT_C IN 2", "FRDDR_C OUT 2",
|
|
||||||
+ "TDM_C Playback", "TDMOUT_C OUT",
|
|
||||||
"TDMIN_A IN 4", "TDM_B Loopback",
|
|
||||||
"TDMIN_B IN 4", "TDM_B Loopback",
|
|
||||||
"TDMIN_C IN 4", "TDM_B Loopback",
|
|
||||||
"TDMIN_LB IN 1", "TDM_B Loopback",
|
|
||||||
+ "TDMIN_A IN 5", "TDM_C Loopback",
|
|
||||||
+ "TDMIN_B IN 5", "TDM_C Loopback",
|
|
||||||
+ "TDMIN_C IN 5", "TDM_C Loopback",
|
|
||||||
+ "TDMIN_LB IN 2", "TDM_C Loopback",
|
|
||||||
"TODDR_A IN 0", "TDMIN_A OUT",
|
|
||||||
"TODDR_B IN 0", "TDMIN_A OUT",
|
|
||||||
"TODDR_C IN 0", "TDMIN_A OUT",
|
|
||||||
@@ -230,7 +249,11 @@
|
|
||||||
"TODDR_C IN 2", "TDMIN_C OUT",
|
|
||||||
"TODDR_A IN 6", "TDMIN_LB OUT",
|
|
||||||
"TODDR_B IN 6", "TDMIN_LB OUT",
|
|
||||||
- "TODDR_C IN 6", "TDMIN_LB OUT";
|
|
||||||
+ "TODDR_C IN 6", "TDMIN_LB OUT",
|
|
||||||
+ "U19 INL", "ACODEC LOLP",
|
|
||||||
+ "U19 INR", "ACODEC LORP",
|
|
||||||
+ "Lineout", "U19 OUTL",
|
|
||||||
+ "Lineout", "U19 OUTR";
|
|
||||||
|
|
||||||
assigned-clocks = <&clkc CLKID_MPLL2>,
|
|
||||||
<&clkc CLKID_MPLL0>,
|
|
||||||
@@ -275,22 +298,56 @@
|
|
||||||
dai-tdm-slot-tx-mask-3 = <1 1>;
|
|
||||||
mclk-fs = <256>;
|
|
||||||
|
|
||||||
- codec {
|
|
||||||
+ codec-0 {
|
|
||||||
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
|
|
||||||
};
|
|
||||||
+
|
|
||||||
+ codec-1 {
|
|
||||||
+ sound-dai = <&toacodec TOACODEC_IN_B>;
|
|
||||||
+ };
|
|
||||||
};
|
|
||||||
|
|
||||||
- /* hdmi glue */
|
|
||||||
+ /* i2s jack output interface */
|
|
||||||
dai-link-7 {
|
|
||||||
+ sound-dai = <&tdmif_c>;
|
|
||||||
+ dai-format = "i2s";
|
|
||||||
+ dai-tdm-slot-tx-mask-0 = <1 1>;
|
|
||||||
+ mclk-fs = <256>;
|
|
||||||
+
|
|
||||||
+ codec-0 {
|
|
||||||
+ sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>;
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ codec-1 {
|
|
||||||
+ sound-dai = <&toacodec TOACODEC_IN_C>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ /* hdmi glue */
|
|
||||||
+ dai-link-8 {
|
|
||||||
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
|
|
||||||
|
|
||||||
codec {
|
|
||||||
sound-dai = <&hdmi_tx>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
+
|
|
||||||
+ /* acodec glue */
|
|
||||||
+ dai-link-9 {
|
|
||||||
+ sound-dai = <&toacodec TOACODEC_OUT>;
|
|
||||||
+
|
|
||||||
+ codec {
|
|
||||||
+ sound-dai = <&acodec>;
|
|
||||||
+ };
|
|
||||||
+ };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
+&acodec {
|
|
||||||
+ AVDD-supply = <&vddao_1v8>;
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
&arb {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
@@ -505,6 +562,10 @@
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
+&tdmif_c {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
&tdmin_a {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
@@ -525,6 +586,14 @@
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
+&tdmout_c {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
+&toacodec {
|
|
||||||
+ status = "okay";
|
|
||||||
+};
|
|
||||||
+
|
|
||||||
&tohdmitx {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
From 54d8ae2ae7a10dab6998b2d4ac507aec96c6f1da Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <54d8ae2ae7a10dab6998b2d4ac507aec96c6f1da.1595882680.git.stefan@agner.ch>
|
|
||||||
In-Reply-To: <d83d79b085486a605462fa91e3c6746e4ff0b263.1595882680.git.stefan@agner.ch>
|
|
||||||
References: <d83d79b085486a605462fa91e3c6746e4ff0b263.1595882680.git.stefan@agner.ch>
|
|
||||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
||||||
Date: Sun, 19 Jul 2020 14:10:33 +0000
|
|
||||||
Subject: [PATCH 09/10] dt-bindings: arm: amlogic: add support for the
|
|
||||||
ODROID-N2+
|
|
||||||
|
|
||||||
HardKernel ODROID-N2+ uses a revised Amlogic S922X v2 chip that supports
|
|
||||||
higher cpu clock speeds than the original ODROID-N2.
|
|
||||||
|
|
||||||
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
||||||
---
|
|
||||||
Documentation/devicetree/bindings/arm/amlogic.yaml | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml
|
|
||||||
index f74aba48cec1..915ef4f355ad 100644
|
|
||||||
--- a/Documentation/devicetree/bindings/arm/amlogic.yaml
|
|
||||||
+++ b/Documentation/devicetree/bindings/arm/amlogic.yaml
|
|
||||||
@@ -149,6 +149,7 @@ properties:
|
|
||||||
items:
|
|
||||||
- enum:
|
|
||||||
- hardkernel,odroid-n2
|
|
||||||
+ - hardkernel,odroid-n2-plus
|
|
||||||
- khadas,vim3
|
|
||||||
- ugoos,am6
|
|
||||||
- const: amlogic,s922x
|
|
||||||
--
|
|
||||||
2.27.0
|
|
||||||
|
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
From c67fb4dbb332ed38bc7fbee13079e5ea11390f4e Mon Sep 17 00:00:00 2001
|
From 698972869afda7095e31892c48051350788aa0a1 Mon Sep 17 00:00:00 2001
|
||||||
Message-Id: <c67fb4dbb332ed38bc7fbee13079e5ea11390f4e.1602104035.git.stefan@agner.ch>
|
Message-Id: <698972869afda7095e31892c48051350788aa0a1.1603550330.git.stefan@agner.ch>
|
||||||
In-Reply-To: <f40f83d023b2e1dd82e751aee35c1f0d386b8b4f.1602104035.git.stefan@agner.ch>
|
|
||||||
References: <f40f83d023b2e1dd82e751aee35c1f0d386b8b4f.1602104035.git.stefan@agner.ch>
|
|
||||||
From: Stefan Agner <stefan@agner.ch>
|
From: Stefan Agner <stefan@agner.ch>
|
||||||
Date: Mon, 31 Aug 2020 13:40:18 +0200
|
Date: Mon, 31 Aug 2020 13:40:18 +0200
|
||||||
Subject: [PATCH 2/3] ARM: meson: isolate loading of socinfo
|
Subject: [PATCH 1/2] ARM: meson: isolate loading of socinfo
|
||||||
|
|
||||||
Move loading of socinfo into a separate function so the value can be
|
Move loading of socinfo into a separate function so the value can be
|
||||||
reused later.
|
reused later.
|
||||||
@@ -59,5 +57,5 @@ index 3abb27e03b..cfcd5bbd3b 100644
|
|||||||
socinfo_to_soc_id(socinfo),
|
socinfo_to_soc_id(socinfo),
|
||||||
socinfo_to_package_id(socinfo),
|
socinfo_to_package_id(socinfo),
|
||||||
--
|
--
|
||||||
2.28.0
|
2.29.1
|
||||||
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
From f40f83d023b2e1dd82e751aee35c1f0d386b8b4f Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <f40f83d023b2e1dd82e751aee35c1f0d386b8b4f.1602104035.git.stefan@agner.ch>
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Sat, 1 Feb 2020 20:55:39 +0000
|
|
||||||
Subject: [PATCH 1/3] Amlogic w400: read ethaddr from efuse
|
|
||||||
|
|
||||||
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
---
|
|
||||||
board/amlogic/w400/w400.c | 27 ++++++++++++++++++++++++---
|
|
||||||
1 file changed, 24 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/board/amlogic/w400/w400.c b/board/amlogic/w400/w400.c
|
|
||||||
index 47a51710dc..d74aab899a 100644
|
|
||||||
--- a/board/amlogic/w400/w400.c
|
|
||||||
+++ b/board/amlogic/w400/w400.c
|
|
||||||
@@ -6,15 +6,36 @@
|
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
|
||||||
-#include <env_internal.h>
|
|
||||||
-#include <init.h>
|
|
||||||
-#include <net.h>
|
|
||||||
+#include <env.h>
|
|
||||||
#include <asm/io.h>
|
|
||||||
+#include <asm/arch/sm.h>
|
|
||||||
#include <asm/arch/eth.h>
|
|
||||||
|
|
||||||
+#define EFUSE_MAC_OFFSET 20
|
|
||||||
+#define EFUSE_MAC_SIZE 12
|
|
||||||
+
|
|
||||||
int misc_init_r(void)
|
|
||||||
{
|
|
||||||
+ u8 mac_addr[6];
|
|
||||||
+ char efuse_mac_addr[EFUSE_MAC_SIZE], buff[3];
|
|
||||||
+ ssize_t len;
|
|
||||||
+
|
|
||||||
meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
|
|
||||||
|
|
||||||
+ if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
|
|
||||||
+ len = meson_sm_read_efuse(EFUSE_MAC_OFFSET,
|
|
||||||
+ efuse_mac_addr, EFUSE_MAC_SIZE);
|
|
||||||
+ if (len != EFUSE_MAC_SIZE)
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
+ for (int i = 0; i < 6; i++){
|
|
||||||
+ buff[0] = efuse_mac_addr[i * 2];
|
|
||||||
+ buff[1] = efuse_mac_addr[i * 2 + 1];
|
|
||||||
+ mac_addr[i] = simple_strtoul(buff, NULL, 16);
|
|
||||||
+ }
|
|
||||||
+ if(is_valid_ethaddr(mac_addr))
|
|
||||||
+ eth_env_set_enetaddr("ethaddr", mac_addr);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.28.0
|
|
||||||
|
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
From bb86524d84909ffe5d1d6ff3afe41d26396ba561 Mon Sep 17 00:00:00 2001
|
From 439e2a240062c4be21ac7879b130ef590106cdd8 Mon Sep 17 00:00:00 2001
|
||||||
Message-Id: <bb86524d84909ffe5d1d6ff3afe41d26396ba561.1602104035.git.stefan@agner.ch>
|
Message-Id: <439e2a240062c4be21ac7879b130ef590106cdd8.1603550497.git.stefan@agner.ch>
|
||||||
In-Reply-To: <f40f83d023b2e1dd82e751aee35c1f0d386b8b4f.1602104035.git.stefan@agner.ch>
|
In-Reply-To: <698972869afda7095e31892c48051350788aa0a1.1603550497.git.stefan@agner.ch>
|
||||||
References: <f40f83d023b2e1dd82e751aee35c1f0d386b8b4f.1602104035.git.stefan@agner.ch>
|
References: <698972869afda7095e31892c48051350788aa0a1.1603550497.git.stefan@agner.ch>
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
From: Pascal Vizeli <pvizeli@syshack.ch>
|
||||||
Date: Tue, 4 Aug 2020 13:50:57 +0000
|
Date: Tue, 4 Aug 2020 13:50:57 +0000
|
||||||
Subject: [PATCH 3/3] meson: Add board_rev to env
|
Subject: [PATCH 2/2] meson: Add board_rev to env
|
||||||
|
|
||||||
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
||||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
||||||
---
|
---
|
||||||
arch/arm/include/asm/arch-meson/boot.h | 4 ++++
|
arch/arm/include/asm/arch-meson/boot.h | 4 ++++
|
||||||
arch/arm/mach-meson/board-info.c | 12 ++++++++++++
|
arch/arm/mach-meson/board-info.c | 12 ++++++++++++
|
||||||
board/amlogic/w400/w400.c | 5 +++++
|
board/amlogic/odroid-n2/odroid-n2.c | 5 +++++
|
||||||
3 files changed, 21 insertions(+)
|
3 files changed, 21 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/arm/include/asm/arch-meson/boot.h b/arch/arm/include/asm/arch-meson/boot.h
|
diff --git a/arch/arm/include/asm/arch-meson/boot.h b/arch/arm/include/asm/arch-meson/boot.h
|
||||||
@@ -54,11 +54,11 @@ index cfcd5bbd3b..3ea7eb7251 100644
|
|||||||
+ /* Write SoC info */
|
+ /* Write SoC info */
|
||||||
+ return snprintf(buff, buff_len, "%x", socinfo_to_minor(socinfo));
|
+ return snprintf(buff, buff_len, "%x", socinfo_to_minor(socinfo));
|
||||||
+}
|
+}
|
||||||
diff --git a/board/amlogic/w400/w400.c b/board/amlogic/w400/w400.c
|
diff --git a/board/amlogic/odroid-n2/odroid-n2.c b/board/amlogic/odroid-n2/odroid-n2.c
|
||||||
index d74aab899a..cb2e5edf5e 100644
|
index caf7fd6810..c2a191ba6a 100644
|
||||||
--- a/board/amlogic/w400/w400.c
|
--- a/board/amlogic/odroid-n2/odroid-n2.c
|
||||||
+++ b/board/amlogic/w400/w400.c
|
+++ b/board/amlogic/odroid-n2/odroid-n2.c
|
||||||
@@ -10,6 +10,7 @@
|
@@ -12,6 +12,7 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/sm.h>
|
#include <asm/arch/sm.h>
|
||||||
#include <asm/arch/eth.h>
|
#include <asm/arch/eth.h>
|
||||||
@@ -66,17 +66,17 @@ index d74aab899a..cb2e5edf5e 100644
|
|||||||
|
|
||||||
#define EFUSE_MAC_OFFSET 20
|
#define EFUSE_MAC_OFFSET 20
|
||||||
#define EFUSE_MAC_SIZE 12
|
#define EFUSE_MAC_SIZE 12
|
||||||
@@ -20,6 +21,10 @@ int misc_init_r(void)
|
@@ -23,6 +24,10 @@ int misc_init_r(void)
|
||||||
char efuse_mac_addr[EFUSE_MAC_SIZE], buff[3];
|
char efuse_mac_addr[EFUSE_MAC_SIZE], tmp[3];
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
|
||||||
+ if (meson_get_soc_rev(buff, sizeof(buff))) {
|
+ if (meson_get_soc_rev(tmp, sizeof(tmp)) > 0) {
|
||||||
+ env_set("board_rev", buff);
|
+ env_set("board_rev", tmp);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
|
meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
|
||||||
|
|
||||||
if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
|
if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
|
||||||
--
|
--
|
||||||
2.28.0
|
2.29.1
|
||||||
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
From d6fc5f89ac905cb3efc9c61ce79dbfad5d91883b Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <d6fc5f89ac905cb3efc9c61ce79dbfad5d91883b.1597690408.git.stefan@agner.ch>
|
|
||||||
From: Chung-Hsien Hsu <stanley.hsu@cypress.com>
|
|
||||||
Date: Wed, 15 Aug 2018 05:32:39 -0500
|
|
||||||
Subject: [PATCH] brcmfmac: add FT-based AKMs in brcmf_set_key_mgmt() for FT
|
|
||||||
support
|
|
||||||
|
|
||||||
Add WLAN_AKM_SUITE_FT_8021X and WLAN_AKM_SUITE_FT_PSK in
|
|
||||||
brcmf_set_key_mgmt() for FT support.
|
|
||||||
|
|
||||||
Signed-off-by: Chung-Hsien Hsu <stanley.hsu@cypress.com>
|
|
||||||
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
|
|
||||||
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
|
||||||
---
|
|
||||||
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 6 ++++++
|
|
||||||
.../net/wireless/broadcom/brcm80211/include/brcmu_wifi.h | 1 +
|
|
||||||
2 files changed, 7 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
||||||
index 71b7e5c19434..c312626c0a27 100644
|
|
||||||
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
||||||
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
||||||
@@ -1649,6 +1649,12 @@ brcmf_set_key_mgmt(struct net_device *ndev, struct cfg80211_connect_params *sme)
|
|
||||||
case WLAN_AKM_SUITE_PSK:
|
|
||||||
val = WPA2_AUTH_PSK;
|
|
||||||
break;
|
|
||||||
+ case WLAN_AKM_SUITE_FT_8021X:
|
|
||||||
+ val = WPA2_AUTH_UNSPECIFIED | WPA2_AUTH_FT;
|
|
||||||
+ break;
|
|
||||||
+ case WLAN_AKM_SUITE_FT_PSK:
|
|
||||||
+ val = WPA2_AUTH_PSK | WPA2_AUTH_FT;
|
|
||||||
+ break;
|
|
||||||
default:
|
|
||||||
brcmf_err("invalid cipher group (%d)\n",
|
|
||||||
sme->crypto.cipher_group);
|
|
||||||
diff --git a/drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h b/drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h
|
|
||||||
index 75b2a0438cfa..dddebaa60352 100644
|
|
||||||
--- a/drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h
|
|
||||||
+++ b/drivers/net/wireless/broadcom/brcm80211/include/brcmu_wifi.h
|
|
||||||
@@ -239,6 +239,7 @@ static inline bool ac_bitmap_tst(u8 bitmap, int prec)
|
|
||||||
#define WPA2_AUTH_RESERVED4 0x0400
|
|
||||||
#define WPA2_AUTH_RESERVED5 0x0800
|
|
||||||
#define WPA2_AUTH_1X_SHA256 0x1000 /* 1X with SHA256 key derivation */
|
|
||||||
+#define WPA2_AUTH_FT 0x4000 /* Fast BSS Transition */
|
|
||||||
#define WPA2_AUTH_PSK_SHA256 0x8000 /* PSK with SHA256 key derivation */
|
|
||||||
|
|
||||||
#define DOT11_DEFAULT_RTS_LEN 2347
|
|
||||||
--
|
|
||||||
2.28.0
|
|
||||||
|
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
From 3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73 Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
From: Florian Fainelli <f.fainelli@gmail.com>
|
||||||
|
Date: Mon, 15 Jun 2020 10:40:41 +0200
|
||||||
|
Subject: [PATCH 1/8] dt-bindings: arm: bcm: Convert BCM2835 firmware binding
|
||||||
|
to YAML
|
||||||
|
|
||||||
|
Convert the Raspberry Pi BCM2835 firmware binding document to YAML.
|
||||||
|
Verified with dt_binding_check and dtbs_check.
|
||||||
|
|
||||||
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||||
|
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||||
|
Link: https://lore.kernel.org/r/5bc0b9be8544b07300fccab4d4f26e5e5d8e62b2.1592210452.git-series.maxime@cerno.tech
|
||||||
|
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
|
||||||
|
(cherry picked from commit d4c708c032df3d95de297232e20041737e99d126)
|
||||||
|
---
|
||||||
|
.../arm/bcm/raspberrypi,bcm2835-firmware.txt | 14 --------
|
||||||
|
.../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 35 +++++++++++++++++++
|
||||||
|
2 files changed, 35 insertions(+), 14 deletions(-)
|
||||||
|
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
|
||||||
|
create mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
|
||||||
|
diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
|
||||||
|
deleted file mode 100644
|
||||||
|
index 6824b3180ffb..000000000000
|
||||||
|
--- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,14 +0,0 @@
|
||||||
|
-Raspberry Pi VideoCore firmware driver
|
||||||
|
-
|
||||||
|
-Required properties:
|
||||||
|
-
|
||||||
|
-- compatible: Should be "raspberrypi,bcm2835-firmware"
|
||||||
|
-- mboxes: Phandle to the firmware device's Mailbox.
|
||||||
|
- (See: ../mailbox/mailbox.txt for more information)
|
||||||
|
-
|
||||||
|
-Example:
|
||||||
|
-
|
||||||
|
-firmware {
|
||||||
|
- compatible = "raspberrypi,bcm2835-firmware";
|
||||||
|
- mboxes = <&mailbox>;
|
||||||
|
-};
|
||||||
|
diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
new file mode 100644
|
||||||
|
index 000000000000..cec540c052b6
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
@@ -0,0 +1,35 @@
|
||||||
|
+# SPDX-License-Identifier: GPL-2.0
|
||||||
|
+%YAML 1.2
|
||||||
|
+---
|
||||||
|
+$id: http://devicetree.org/schemas/arm/bcm/raspberrypi,bcm2835-firmware.yaml#
|
||||||
|
+$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
+
|
||||||
|
+title: Raspberry Pi VideoCore firmware driver
|
||||||
|
+
|
||||||
|
+maintainers:
|
||||||
|
+ - Eric Anholt <eric@anholt.net>
|
||||||
|
+ - Stefan Wahren <wahrenst@gmx.net>
|
||||||
|
+
|
||||||
|
+properties:
|
||||||
|
+ compatible:
|
||||||
|
+ items:
|
||||||
|
+ - const: raspberrypi,bcm2835-firmware
|
||||||
|
+ - const: simple-bus
|
||||||
|
+
|
||||||
|
+ mboxes:
|
||||||
|
+ $ref: '/schemas/types.yaml#/definitions/phandle'
|
||||||
|
+ description: |
|
||||||
|
+ Phandle to the firmware device's Mailbox.
|
||||||
|
+ (See: ../mailbox/mailbox.txt for more information)
|
||||||
|
+
|
||||||
|
+required:
|
||||||
|
+ - compatible
|
||||||
|
+ - mboxes
|
||||||
|
+
|
||||||
|
+examples:
|
||||||
|
+ - |
|
||||||
|
+ firmware {
|
||||||
|
+ compatible = "raspberrypi,bcm2835-firmware", "simple-bus";
|
||||||
|
+ mboxes = <&mailbox>;
|
||||||
|
+ };
|
||||||
|
+...
|
||||||
|
--
|
||||||
|
2.29.1
|
||||||
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
From a9f92163e6c07e5c6f57f00f4931098e0e1ee826 Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <a9f92163e6c07e5c6f57f00f4931098e0e1ee826.1595152741.git.stefan@agner.ch>
|
|
||||||
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
|
||||||
Date: Mon, 29 Jun 2020 18:18:37 +0200
|
|
||||||
Subject: [PATCH 1/4] dt-bindings: reset: Add a binding for the RPi Firmware
|
|
||||||
reset controller
|
|
||||||
|
|
||||||
The firmware running on the RPi VideoCore can be used to reset and
|
|
||||||
initialize HW controlled by the firmware.
|
|
||||||
|
|
||||||
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
|
||||||
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
|
|
||||||
[backport for RPi 4.19 kernel]
|
|
||||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
|
||||||
---
|
|
||||||
.../dt-bindings/reset/raspberrypi,firmware-reset.h | 13 +++++++++++++
|
|
||||||
1 file changed, 13 insertions(+)
|
|
||||||
create mode 100644 include/dt-bindings/reset/raspberrypi,firmware-reset.h
|
|
||||||
|
|
||||||
diff --git a/include/dt-bindings/reset/raspberrypi,firmware-reset.h b/include/dt-bindings/reset/raspberrypi,firmware-reset.h
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000000..1a4f4c792723
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/include/dt-bindings/reset/raspberrypi,firmware-reset.h
|
|
||||||
@@ -0,0 +1,13 @@
|
|
||||||
+/* SPDX-License-Identifier: GPL-2.0 */
|
|
||||||
+/*
|
|
||||||
+ * Copyright (c) 2020 Nicolas Saenz Julienne
|
|
||||||
+ * Author: Nicolas Saenz Julienne <nsaenzjulienne@suse.com>
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+#ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H
|
|
||||||
+#define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H
|
|
||||||
+
|
|
||||||
+#define RASPBERRYPI_FIRMWARE_RESET_ID_USB 0
|
|
||||||
+#define RASPBERRYPI_FIRMWARE_RESET_NUM_IDS 1
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
--
|
|
||||||
2.27.0
|
|
||||||
|
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
From 3ad7fb9329eabd1d7f692f612742ca5ac38854a5 Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <3ad7fb9329eabd1d7f692f612742ca5ac38854a5.1604762912.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
References: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
From: Maxime Ripard <maxime@cerno.tech>
|
||||||
|
Date: Mon, 15 Jun 2020 10:40:42 +0200
|
||||||
|
Subject: [PATCH 2/8] dt-bindings: clock: Add a binding for the RPi Firmware
|
||||||
|
clocks
|
||||||
|
|
||||||
|
The firmware running on the RPi VideoCore can be used to discover and
|
||||||
|
change the various clocks running in the BCM2711. Since devices will
|
||||||
|
need to use them through the DT, let's add a pretty simple binding.
|
||||||
|
|
||||||
|
Cc: Michael Turquette <mturquette@baylibre.com>
|
||||||
|
Cc: linux-clk@vger.kernel.org
|
||||||
|
Cc: devicetree@vger.kernel.org
|
||||||
|
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
|
||||||
|
Reviewed-by: Rob Herring <robh+dt@kernel.org>
|
||||||
|
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||||
|
Link: https://lore.kernel.org/r/f6105207e7ef5a5ea8d7a1774faf989d341a25f5.1592210452.git-series.maxime@cerno.tech
|
||||||
|
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
|
||||||
|
(cherry picked from commit 74a0caa5ef1c25905c4409b350ed9a8e0d9a3b74)
|
||||||
|
---
|
||||||
|
.../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 24 +++++++++++++++++++
|
||||||
|
1 file changed, 24 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
index cec540c052b6..b48ed875eb8e 100644
|
||||||
|
--- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
+++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
@@ -22,6 +22,25 @@ properties:
|
||||||
|
Phandle to the firmware device's Mailbox.
|
||||||
|
(See: ../mailbox/mailbox.txt for more information)
|
||||||
|
|
||||||
|
+ clocks:
|
||||||
|
+ type: object
|
||||||
|
+
|
||||||
|
+ properties:
|
||||||
|
+ compatible:
|
||||||
|
+ const: raspberrypi,firmware-clocks
|
||||||
|
+
|
||||||
|
+ "#clock-cells":
|
||||||
|
+ const: 1
|
||||||
|
+ description: >
|
||||||
|
+ The argument is the ID of the clocks contained by the
|
||||||
|
+ firmware messages.
|
||||||
|
+
|
||||||
|
+ required:
|
||||||
|
+ - compatible
|
||||||
|
+ - "#clock-cells"
|
||||||
|
+
|
||||||
|
+ additionalProperties: false
|
||||||
|
+
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- mboxes
|
||||||
|
@@ -31,5 +50,10 @@ examples:
|
||||||
|
firmware {
|
||||||
|
compatible = "raspberrypi,bcm2835-firmware", "simple-bus";
|
||||||
|
mboxes = <&mailbox>;
|
||||||
|
+
|
||||||
|
+ firmware_clocks: clocks {
|
||||||
|
+ compatible = "raspberrypi,firmware-clocks";
|
||||||
|
+ #clock-cells = <1>;
|
||||||
|
+ };
|
||||||
|
};
|
||||||
|
...
|
||||||
|
--
|
||||||
|
2.29.1
|
||||||
|
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
From 305aeb868929695699e04e26dd590e64ad3c42dd Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <305aeb868929695699e04e26dd590e64ad3c42dd.1604762912.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
References: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
From: Maxime Ripard <maxime@cerno.tech>
|
||||||
|
Date: Fri, 26 Jun 2020 13:54:33 +0200
|
||||||
|
Subject: [PATCH 3/8] dt-bindings: arm: bcm: Add a select to the RPI Firmware
|
||||||
|
binding
|
||||||
|
|
||||||
|
The RaspberryPi firmware binding uses two compatible, include simple-bus.
|
||||||
|
The select statement generated by default will thus select any node that
|
||||||
|
has simple-bus, not all of them being the raspberrypi firmware node.
|
||||||
|
|
||||||
|
This results in warnings being wrongfully reported. Let's add a custom
|
||||||
|
select statement to fix that.
|
||||||
|
|
||||||
|
Fixes: d4c708c032df ("dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML")
|
||||||
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||||
|
Link: https://lore.kernel.org/r/20200626115433.125735-1-maxime@cerno.tech
|
||||||
|
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||||
|
Acked-by: Rob Herring <robh@kernel.org>
|
||||||
|
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
|
||||||
|
(cherry picked from commit 2a08a9232ba2e6103843870e68edae8e381eb02a)
|
||||||
|
---
|
||||||
|
.../bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml | 9 +++++++++
|
||||||
|
1 file changed, 9 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
index b48ed875eb8e..17e4f20c8d39 100644
|
||||||
|
--- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
+++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
@@ -10,6 +10,15 @@ maintainers:
|
||||||
|
- Eric Anholt <eric@anholt.net>
|
||||||
|
- Stefan Wahren <wahrenst@gmx.net>
|
||||||
|
|
||||||
|
+select:
|
||||||
|
+ properties:
|
||||||
|
+ compatible:
|
||||||
|
+ contains:
|
||||||
|
+ const: raspberrypi,bcm2835-firmware
|
||||||
|
+
|
||||||
|
+ required:
|
||||||
|
+ - compatible
|
||||||
|
+
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
items:
|
||||||
|
--
|
||||||
|
2.29.1
|
||||||
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
From dcfb930f9c271ad303a888ce94227d2d78974e39 Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <dcfb930f9c271ad303a888ce94227d2d78974e39.1595152741.git.stefan@agner.ch>
|
|
||||||
In-Reply-To: <a9f92163e6c07e5c6f57f00f4931098e0e1ee826.1595152741.git.stefan@agner.ch>
|
|
||||||
References: <a9f92163e6c07e5c6f57f00f4931098e0e1ee826.1595152741.git.stefan@agner.ch>
|
|
||||||
From: Stefan Agner <stefan@agner.ch>
|
|
||||||
Date: Sun, 19 Jul 2020 11:49:45 +0200
|
|
||||||
Subject: [PATCH 4/4] ARM: dts: bcm2838: add upstream property to enable PCIe
|
|
||||||
spread-spectrum
|
|
||||||
|
|
||||||
Add the upstream device tree property brcm,enable-ssc to enable
|
|
||||||
spread-spectrum for PCIe. This is used by the upstream U-Boot.
|
|
||||||
|
|
||||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
|
||||||
---
|
|
||||||
arch/arm/boot/dts/bcm2838.dtsi | 13 ++++++++-----
|
|
||||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/bcm2838.dtsi b/arch/arm/boot/dts/bcm2838.dtsi
|
|
||||||
index 36d250d7053b..d6cc876bc720 100644
|
|
||||||
--- a/arch/arm/boot/dts/bcm2838.dtsi
|
|
||||||
+++ b/arch/arm/boot/dts/bcm2838.dtsi
|
|
||||||
@@ -353,11 +353,14 @@
|
|
||||||
*/
|
|
||||||
ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000
|
|
||||||
0x0 0x04000000>;
|
|
||||||
- /* Map inbound accesses from pci:0x0_00000000..ffffffff
|
|
||||||
- * to scb:0x0_00000000-ffffffff
|
|
||||||
- */
|
|
||||||
- dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000
|
|
||||||
- 0x1 0x00000000>;
|
|
||||||
+ /*
|
|
||||||
+ * The wrapper around the PCIe block has a bug
|
|
||||||
+ * preventing it from accessing beyond the first 3GB of
|
|
||||||
+ * memory.
|
|
||||||
+ */
|
|
||||||
+ dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000
|
|
||||||
+ 0x0 0xc0000000>;
|
|
||||||
+ brcm,enable-ssc;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
--
|
|
||||||
2.27.0
|
|
||||||
|
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
From 33743cfcff296b1011e46168ecab185a00e0f00d Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <33743cfcff296b1011e46168ecab185a00e0f00d.1604762912.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
References: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
|
Date: Mon, 29 Jun 2020 18:18:37 +0200
|
||||||
|
Subject: [PATCH 4/8] dt-bindings: reset: Add a binding for the RPi Firmware
|
||||||
|
reset controller
|
||||||
|
|
||||||
|
The firmware running on the RPi VideoCore can be used to reset and
|
||||||
|
initialize HW controlled by the firmware.
|
||||||
|
|
||||||
|
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||||
|
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
|
Link: https://lore.kernel.org/r/20200629161845.6021-2-nsaenzjulienne@suse.de
|
||||||
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||||
|
(cherry picked from commit 242841992ae6f22bd761add2f380b2ef3271ba9a)
|
||||||
|
---
|
||||||
|
.../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 21 +++++++++++++++++++
|
||||||
|
.../reset/raspberrypi,firmware-reset.h | 13 ++++++++++++
|
||||||
|
2 files changed, 34 insertions(+)
|
||||||
|
create mode 100644 include/dt-bindings/reset/raspberrypi,firmware-reset.h
|
||||||
|
|
||||||
|
diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
index 17e4f20c8d39..c78499a41c72 100644
|
||||||
|
--- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
+++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
|
||||||
|
@@ -48,6 +48,22 @@ properties:
|
||||||
|
- compatible
|
||||||
|
- "#clock-cells"
|
||||||
|
|
||||||
|
+ reset:
|
||||||
|
+ type: object
|
||||||
|
+
|
||||||
|
+ properties:
|
||||||
|
+ compatible:
|
||||||
|
+ const: raspberrypi,firmware-reset
|
||||||
|
+
|
||||||
|
+ "#reset-cells":
|
||||||
|
+ const: 1
|
||||||
|
+ description: >
|
||||||
|
+ The argument is the ID of the firmware reset line to affect.
|
||||||
|
+
|
||||||
|
+ required:
|
||||||
|
+ - compatible
|
||||||
|
+ - "#reset-cells"
|
||||||
|
+
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
required:
|
||||||
|
@@ -64,5 +80,10 @@ examples:
|
||||||
|
compatible = "raspberrypi,firmware-clocks";
|
||||||
|
#clock-cells = <1>;
|
||||||
|
};
|
||||||
|
+
|
||||||
|
+ reset: reset {
|
||||||
|
+ compatible = "raspberrypi,firmware-reset";
|
||||||
|
+ #reset-cells = <1>;
|
||||||
|
+ };
|
||||||
|
};
|
||||||
|
...
|
||||||
|
diff --git a/include/dt-bindings/reset/raspberrypi,firmware-reset.h b/include/dt-bindings/reset/raspberrypi,firmware-reset.h
|
||||||
|
new file mode 100644
|
||||||
|
index 000000000000..1a4f4c792723
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/include/dt-bindings/reset/raspberrypi,firmware-reset.h
|
||||||
|
@@ -0,0 +1,13 @@
|
||||||
|
+/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
+/*
|
||||||
|
+ * Copyright (c) 2020 Nicolas Saenz Julienne
|
||||||
|
+ * Author: Nicolas Saenz Julienne <nsaenzjulienne@suse.com>
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H
|
||||||
|
+#define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H
|
||||||
|
+
|
||||||
|
+#define RASPBERRYPI_FIRMWARE_RESET_ID_USB 0
|
||||||
|
+#define RASPBERRYPI_FIRMWARE_RESET_NUM_IDS 1
|
||||||
|
+
|
||||||
|
+#endif
|
||||||
|
--
|
||||||
|
2.29.1
|
||||||
|
|
||||||
@@ -1,28 +1,29 @@
|
|||||||
From b15414057bc9a023fc865242f499807d82933e58 Mon Sep 17 00:00:00 2001
|
From fecb02cc3664de0d1c43ce566ff95c1b68fca51e Mon Sep 17 00:00:00 2001
|
||||||
Message-Id: <b15414057bc9a023fc865242f499807d82933e58.1595152741.git.stefan@agner.ch>
|
Message-Id: <fecb02cc3664de0d1c43ce566ff95c1b68fca51e.1604762912.git.stefan@agner.ch>
|
||||||
In-Reply-To: <a9f92163e6c07e5c6f57f00f4931098e0e1ee826.1595152741.git.stefan@agner.ch>
|
In-Reply-To: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
References: <a9f92163e6c07e5c6f57f00f4931098e0e1ee826.1595152741.git.stefan@agner.ch>
|
References: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
Date: Mon, 29 Jun 2020 18:18:39 +0200
|
Date: Mon, 29 Jun 2020 18:18:39 +0200
|
||||||
Subject: [PATCH 2/4] ARM: dts: bcm2711: Add firmware usb reset node
|
Subject: [PATCH 5/8] ARM: dts: bcm2711: Add firmware usb reset node
|
||||||
|
|
||||||
Now that the reset driver exposing Raspberry Pi 4's firmware based USB
|
Now that the reset driver exposing Raspberry Pi 4's firmware based USB
|
||||||
reset routine is available, let's add the device tree node exposing it.
|
reset routine is available, let's add the device tree node exposing it.
|
||||||
|
|
||||||
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
|
||||||
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
|
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||||
[backport for RPi 4.19 kernel]
|
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
Link: https://lore.kernel.org/r/20200629161845.6021-4-nsaenzjulienne@suse.de
|
||||||
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||||
|
(cherry picked from commit b03300db06bed1997a1eecc4c26f3a2895c57726)
|
||||||
---
|
---
|
||||||
arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 5 +++++
|
arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 5 +++++
|
||||||
1 file changed, 5 insertions(+)
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
||||||
index 42259dbf3919..ec0b3bb64de8 100644
|
index 21b20e334b1a..d77d61d41bbc 100644
|
||||||
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
||||||
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
||||||
@@ -80,6 +80,11 @@
|
@@ -72,6 +72,11 @@
|
||||||
"";
|
"SD_OC_N";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
+
|
+
|
||||||
@@ -32,7 +33,7 @@ index 42259dbf3919..ec0b3bb64de8 100644
|
|||||||
+ };
|
+ };
|
||||||
};
|
};
|
||||||
|
|
||||||
&uart0 {
|
&gpio {
|
||||||
--
|
--
|
||||||
2.27.0
|
2.29.1
|
||||||
|
|
||||||
@@ -1,41 +1,43 @@
|
|||||||
From 08558575c0f3d1437994590ad418d6c2cf18d96b Mon Sep 17 00:00:00 2001
|
From e0231cd65d8c13be1cebae1e6b5fbef61be6be0d Mon Sep 17 00:00:00 2001
|
||||||
Message-Id: <08558575c0f3d1437994590ad418d6c2cf18d96b.1595152741.git.stefan@agner.ch>
|
Message-Id: <e0231cd65d8c13be1cebae1e6b5fbef61be6be0d.1604762912.git.stefan@agner.ch>
|
||||||
In-Reply-To: <a9f92163e6c07e5c6f57f00f4931098e0e1ee826.1595152741.git.stefan@agner.ch>
|
In-Reply-To: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
References: <a9f92163e6c07e5c6f57f00f4931098e0e1ee826.1595152741.git.stefan@agner.ch>
|
References: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
Date: Mon, 29 Jun 2020 18:18:40 +0200
|
Date: Mon, 29 Jun 2020 18:18:40 +0200
|
||||||
Subject: [PATCH 3/4] ARM: dts: bcm2711: Add reset controller to xHCI node
|
Subject: [PATCH 6/8] ARM: dts: bcm2711: Add reset controller to xHCI node
|
||||||
|
|
||||||
The chip is hardwired to the board's PCIe bus and needs to be properly
|
The chip is hardwired to the board's PCIe bus and needs to be properly
|
||||||
setup trough a firmware routine after a PCI fundamental reset. Pass the
|
setup trough a firmware routine after a PCI fundamental reset. Pass the
|
||||||
reset controller phandle that takes care of triggering the
|
reset controller phandle that takes care of triggering the
|
||||||
initialization to the relevant PCI device.
|
initialization to the relevant PCI device.
|
||||||
|
|
||||||
|
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||||
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||||||
[backport for RPi 4.19 kernel]
|
Link: https://lore.kernel.org/r/20200629161845.6021-5-nsaenzjulienne@suse.de
|
||||||
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||||
|
(cherry picked from commit 258f92d2f840b6ea62c0b33f04eb4d9270935bba)
|
||||||
---
|
---
|
||||||
arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 17 +++++++++++++++++
|
arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 17 +++++++++++++++++
|
||||||
1 file changed, 17 insertions(+)
|
1 file changed, 17 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
||||||
index ec0b3bb64de8..2c6aa1933600 100644
|
index d77d61d41bbc..513cae21e64c 100644
|
||||||
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
||||||
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
|
||||||
@@ -4,6 +4,8 @@
|
@@ -3,6 +3,8 @@
|
||||||
#include "bcm2711-rpi.dtsi"
|
#include "bcm2711.dtsi"
|
||||||
#include "bcm283x-rpi-csi1-2lane.dtsi"
|
#include "bcm2835-rpi.dtsi"
|
||||||
|
|
||||||
+#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
|
+#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
|
||||||
+
|
+
|
||||||
/ {
|
/ {
|
||||||
compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
|
compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
|
||||||
model = "Raspberry Pi 4 Model B";
|
model = "Raspberry Pi 4 Model B";
|
||||||
@@ -87,6 +89,21 @@
|
@@ -195,6 +197,21 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
+&pcie_0 {
|
+&pcie0 {
|
||||||
+ pci@1,0 {
|
+ pci@1,0 {
|
||||||
+ #address-cells = <3>;
|
+ #address-cells = <3>;
|
||||||
+ #size-cells = <2>;
|
+ #size-cells = <2>;
|
||||||
@@ -50,9 +52,9 @@ index ec0b3bb64de8..2c6aa1933600 100644
|
|||||||
+ };
|
+ };
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
|
/* uart0 communicates with the BT module */
|
||||||
&uart0 {
|
&uart0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart0_pins &bt_pins>;
|
|
||||||
--
|
--
|
||||||
2.27.0
|
2.29.1
|
||||||
|
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
From 635706b878ef1263c4d495947a51c70c88707bbf Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <635706b878ef1263c4d495947a51c70c88707bbf.1604762912.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
References: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1604762912.git.stefan@agner.ch>
|
||||||
|
From: Stefan Agner <stefan@agner.ch>
|
||||||
|
Date: Sat, 7 Nov 2020 16:00:09 +0100
|
||||||
|
Subject: [PATCH 7/8] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS
|
||||||
|
|
||||||
|
Most architectures define MAX_PHYSMEM_BITS in asm/sparsemem.h and don't
|
||||||
|
include it in asm/pgtable.h. Include asm/sparsemem.h directly to get
|
||||||
|
the MAX_PHYSMEM_BITS define on all architectures.
|
||||||
|
|
||||||
|
This fixes a crash when accessing zram on 32-bit ARM platform with LPAE and
|
||||||
|
more than 4GB of memory:
|
||||||
|
Unable to handle kernel NULL pointer dereference at virtual address 00000000
|
||||||
|
pgd = a27bd01c
|
||||||
|
[00000000] *pgd=236a0003, *pmd=1ffa64003
|
||||||
|
Internal error: Oops: 207 [#1] SMP ARM
|
||||||
|
Modules linked in: mdio_bcm_unimac(+) brcmfmac cfg80211 brcmutil raspberrypi_hwmon hci_uart crc32_arm_ce bcm2711_thermal phy_generic genet
|
||||||
|
CPU: 0 PID: 123 Comm: mkfs.ext4 Not tainted 5.9.6 #1
|
||||||
|
Hardware name: BCM2711
|
||||||
|
PC is at zs_map_object+0x94/0x338
|
||||||
|
LR is at zram_bvec_rw.constprop.0+0x330/0xa64
|
||||||
|
pc : [<c0602b38>] lr : [<c0bda6a0>] psr: 60000013
|
||||||
|
sp : e376bbe0 ip : 00000000 fp : c1e2921c
|
||||||
|
r10: 00000002 r9 : c1dda730 r8 : 00000000
|
||||||
|
r7 : e8ff7a00 r6 : 00000000 r5 : 02f9ffa0 r4 : e3710000
|
||||||
|
r3 : 000fdffe r2 : c1e0ce80 r1 : ebf979a0 r0 : 00000000
|
||||||
|
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
|
||||||
|
Control: 30c5383d Table: 235c2a80 DAC: fffffffd
|
||||||
|
Process mkfs.ext4 (pid: 123, stack limit = 0x495a22e6)
|
||||||
|
Stack: (0xe376bbe0 to 0xe376c000)
|
||||||
|
...
|
||||||
|
[<c0602b38>] (zs_map_object) from [<c0bda6a0>] (zram_bvec_rw.constprop.0+0x330/0xa64)
|
||||||
|
[<c0bda6a0>] (zram_bvec_rw.constprop.0) from [<c0bdaf78>] (zram_submit_bio+0x1a4/0x40c)
|
||||||
|
[<c0bdaf78>] (zram_submit_bio) from [<c085806c>] (submit_bio_noacct+0xd0/0x3c8)
|
||||||
|
[<c085806c>] (submit_bio_noacct) from [<c08583b0>] (submit_bio+0x4c/0x190)
|
||||||
|
[<c08583b0>] (submit_bio) from [<c06496b4>] (submit_bh_wbc+0x188/0x1b8)
|
||||||
|
[<c06496b4>] (submit_bh_wbc) from [<c064ce98>] (__block_write_full_page+0x340/0x5e4)
|
||||||
|
[<c064ce98>] (__block_write_full_page) from [<c064d3ec>] (block_write_full_page+0x128/0x170)
|
||||||
|
[<c064d3ec>] (block_write_full_page) from [<c0591ae8>] (__writepage+0x14/0x68)
|
||||||
|
[<c0591ae8>] (__writepage) from [<c0593efc>] (write_cache_pages+0x1bc/0x494)
|
||||||
|
[<c0593efc>] (write_cache_pages) from [<c059422c>] (generic_writepages+0x58/0x8c)
|
||||||
|
[<c059422c>] (generic_writepages) from [<c0594c24>] (do_writepages+0x48/0xec)
|
||||||
|
[<c0594c24>] (do_writepages) from [<c0589330>] (__filemap_fdatawrite_range+0xf0/0x128)
|
||||||
|
[<c0589330>] (__filemap_fdatawrite_range) from [<c05894bc>] (file_write_and_wait_range+0x48/0x98)
|
||||||
|
[<c05894bc>] (file_write_and_wait_range) from [<c064f3f8>] (blkdev_fsync+0x1c/0x44)
|
||||||
|
[<c064f3f8>] (blkdev_fsync) from [<c064408c>] (do_fsync+0x3c/0x70)
|
||||||
|
[<c064408c>] (do_fsync) from [<c0400374>] (__sys_trace_return+0x0/0x2c)
|
||||||
|
Exception stack(0xe376bfa8 to 0xe376bff0)
|
||||||
|
bfa0: 0003d2e0 b6f7b6f0 00000003 00046e40 00001000 00000000
|
||||||
|
bfc0: 0003d2e0 b6f7b6f0 00000000 00000076 00000000 00000000 befcbb20 befcbb28
|
||||||
|
bfe0: b6f4e060 befcbad8 b6f23e0c b6dc4a80
|
||||||
|
Code: e5927000 e0050391 e0871005 e5918018 (e5983000)
|
||||||
|
|
||||||
|
Fixes: 61989a80fb3a ("staging: zsmalloc: zsmalloc memory allocation library")
|
||||||
|
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
||||||
|
---
|
||||||
|
mm/zsmalloc.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
|
||||||
|
index 22d17ecfe7df..b815c39dda19 100644
|
||||||
|
--- a/mm/zsmalloc.c
|
||||||
|
+++ b/mm/zsmalloc.c
|
||||||
|
@@ -39,6 +39,7 @@
|
||||||
|
#include <linux/highmem.h>
|
||||||
|
#include <linux/string.h>
|
||||||
|
#include <linux/slab.h>
|
||||||
|
+#include <asm/sparsemem.h>
|
||||||
|
#include <asm/tlbflush.h>
|
||||||
|
#include <asm/pgtable.h>
|
||||||
|
#include <linux/cpumask.h>
|
||||||
|
--
|
||||||
|
2.29.1
|
||||||
|
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
From df50ba2a4538ce9a43d28c2a9ef56377b7bad59f Mon Sep 17 00:00:00 2001
|
||||||
|
Message-Id: <df50ba2a4538ce9a43d28c2a9ef56377b7bad59f.1605026982.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1605026982.git.stefan@agner.ch>
|
||||||
|
References: <3651b4af52d63d4e37f40c7a6d0809b0a6c9dd73.1605026982.git.stefan@agner.ch>
|
||||||
|
From: Pascal Vizeli <pvizeli@syshack.ch>
|
||||||
|
Date: Tue, 2 Jun 2020 21:20:08 +0000
|
||||||
|
Subject: [PATCH 8/8] ARM: dts: bcm283x: add compatible picked up by U-Boot
|
||||||
|
|
||||||
|
Without brcm,bcm2835-pl011 in compatible U-Boot uses the regular PL011
|
||||||
|
driver which seems to crash when enable_uart=1 is not used. Using
|
||||||
|
brcm,bcm2835-pl011 works around that and does not affect Linux since its
|
||||||
|
not using that compatible string.
|
||||||
|
|
||||||
|
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
||||||
|
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
||||||
|
---
|
||||||
|
arch/arm/boot/dts/bcm2711.dtsi | 8 ++++----
|
||||||
|
arch/arm/boot/dts/bcm283x.dtsi | 2 +-
|
||||||
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi
|
||||||
|
index 4f87bb4fd3d1..12f0d90e8957 100644
|
||||||
|
--- a/arch/arm/boot/dts/bcm2711.dtsi
|
||||||
|
+++ b/arch/arm/boot/dts/bcm2711.dtsi
|
||||||
|
@@ -110,7 +110,7 @@
|
||||||
|
};
|
||||||
|
|
||||||
|
uart2: serial@7e201400 {
|
||||||
|
- compatible = "arm,pl011", "arm,primecell";
|
||||||
|
+ compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
|
||||||
|
reg = <0x7e201400 0x200>;
|
||||||
|
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
clocks = <&clocks BCM2835_CLOCK_UART>,
|
||||||
|
@@ -121,7 +121,7 @@
|
||||||
|
};
|
||||||
|
|
||||||
|
uart3: serial@7e201600 {
|
||||||
|
- compatible = "arm,pl011", "arm,primecell";
|
||||||
|
+ compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
|
||||||
|
reg = <0x7e201600 0x200>;
|
||||||
|
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
clocks = <&clocks BCM2835_CLOCK_UART>,
|
||||||
|
@@ -132,7 +132,7 @@
|
||||||
|
};
|
||||||
|
|
||||||
|
uart4: serial@7e201800 {
|
||||||
|
- compatible = "arm,pl011", "arm,primecell";
|
||||||
|
+ compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
|
||||||
|
reg = <0x7e201800 0x200>;
|
||||||
|
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
clocks = <&clocks BCM2835_CLOCK_UART>,
|
||||||
|
@@ -143,7 +143,7 @@
|
||||||
|
};
|
||||||
|
|
||||||
|
uart5: serial@7e201a00 {
|
||||||
|
- compatible = "arm,pl011", "arm,primecell";
|
||||||
|
+ compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
|
||||||
|
reg = <0x7e201a00 0x200>;
|
||||||
|
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
clocks = <&clocks BCM2835_CLOCK_UART>,
|
||||||
|
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
|
||||||
|
index 4426f9e6ba92..abcf677fe416 100644
|
||||||
|
--- a/arch/arm/boot/dts/bcm283x.dtsi
|
||||||
|
+++ b/arch/arm/boot/dts/bcm283x.dtsi
|
||||||
|
@@ -306,7 +306,7 @@
|
||||||
|
};
|
||||||
|
|
||||||
|
uart0: serial@7e201000 {
|
||||||
|
- compatible = "arm,pl011", "arm,primecell";
|
||||||
|
+ compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
|
||||||
|
reg = <0x7e201000 0x200>;
|
||||||
|
interrupts = <2 25>;
|
||||||
|
clocks = <&clocks BCM2835_CLOCK_UART>,
|
||||||
|
--
|
||||||
|
2.29.1
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
KERNEL=="ttyAMA[01]", ATTR{iomem_base}=="0xFE201000", PROGRAM="/bin/sh -c '\
|
|
||||||
|
KERNEL=="ttyAMA0", PROGRAM="/bin/sh -c '\
|
||||||
ALIASES=/proc/device-tree/aliases; \
|
ALIASES=/proc/device-tree/aliases; \
|
||||||
if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
|
if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
|
||||||
echo 0;\
|
echo 0;\
|
||||||
@@ -9,6 +10,19 @@ KERNEL=="ttyAMA[01]", ATTR{iomem_base}=="0xFE201000", PROGRAM="/bin/sh -c '\
|
|||||||
fi\
|
fi\
|
||||||
'", SYMLINK+="serial%c"
|
'", SYMLINK+="serial%c"
|
||||||
|
|
||||||
|
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c '\
|
||||||
|
ALIASES=/proc/device-tree/aliases; \
|
||||||
|
if [ -e /dev/ttyAMA0 ]; then \
|
||||||
|
exit 1; \
|
||||||
|
elif 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 '\
|
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
|
||||||
ALIASES=/proc/device-tree/aliases; \
|
ALIASES=/proc/device-tree/aliases; \
|
||||||
if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
|
if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
|
||||||
@@ -18,7 +18,7 @@ test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
|||||||
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
# HassOS bootargs
|
# HassOS bootargs
|
||||||
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor rootwait systemd.machine_id=${MACHINE_ID} cgroup_enable=memory"
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor rootwait systemd.machine_id=${MACHINE_ID} cgroup_enable=memory fsck.repair=yes"
|
||||||
|
|
||||||
# HassOS system A/B
|
# HassOS system A/B
|
||||||
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
|
|||||||
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3
|
||||||
|
|
||||||
# HassOS bootargs
|
# HassOS bootargs
|
||||||
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor rootwait systemd.machine_id=${MACHINE_ID} cgroup_enable=memory"
|
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor rootwait systemd.machine_id=${MACHINE_ID} cgroup_enable=memory fsck.repair=yes"
|
||||||
|
|
||||||
# HassOS system A/B
|
# HassOS system A/B
|
||||||
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
setenv bootargs_a "root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -104,5 +104,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="amd64"
|
BR2_PACKAGE_HASSIO_ARCH="amd64"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="intel-nuc"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_INTEL_E1000E=y
|
BR2_PACKAGE_INTEL_E1000E=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2 $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2 $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2/hassos-hook.sh"
|
||||||
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="5.7.19"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.9.6"
|
||||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/kernel-amlogic.config"
|
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/kernel-amlogic.config"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config"
|
||||||
@@ -57,7 +57,7 @@ BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
|
|||||||
BR2_PACKAGE_DHCP=y
|
BR2_PACKAGE_DHCP=y
|
||||||
BR2_PACKAGE_DHCP_CLIENT=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=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -89,7 +89,7 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="odroid-c2"
|
|||||||
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2/uboot.config"
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c2/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -97,6 +97,9 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="odroid-c2"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_HARDKERNEL_BOOT=y
|
BR2_PACKAGE_HARDKERNEL_BOOT=y
|
||||||
BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C2=y
|
BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C2=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
103
buildroot-external/configs/odroid_c4_defconfig
Normal file
103
buildroot-external/configs/odroid_c4_defconfig
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
BR2_aarch64=y
|
||||||
|
BR2_DL_DIR="/cache/dl"
|
||||||
|
BR2_CCACHE=y
|
||||||
|
BR2_CCACHE_DIR="/cache/cc"
|
||||||
|
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_HASSOS_PATH)/patches $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/patches $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c4/patches"
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
|
BR2_GCC_VERSION_9_X=y
|
||||||
|
BR2_OPTIMIZE_2=y
|
||||||
|
BR2_SSP_REGULAR=y
|
||||||
|
BR2_SSP_OPTION="-fstack-protector"
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||||
|
BR2_BINUTILS_ENABLE_LTO=y
|
||||||
|
BR2_GCC_ENABLE_LTO=y
|
||||||
|
BR2_TARGET_GENERIC_HOSTNAME="homeassistant"
|
||||||
|
BR2_TARGET_GENERIC_ISSUE="Welcome to Home Assistant"
|
||||||
|
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)/scripts/post-image.sh"
|
||||||
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c4 $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c4/hassos-hook.sh"
|
||||||
|
BR2_LINUX_KERNEL=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.9.6"
|
||||||
|
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||||
|
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/kernel-amlogic.config"
|
||||||
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config"
|
||||||
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="amlogic/meson-sm1-odroid-c4"
|
||||||
|
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_PROCPS_NG=y
|
||||||
|
BR2_PACKAGE_JQ=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS=y
|
||||||
|
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||||
|
BR2_PACKAGE_SQUASHFS=y
|
||||||
|
BR2_PACKAGE_CRDA=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_NSS_MDNS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
|
||||||
|
BR2_PACKAGE_DHCP=y
|
||||||
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
|
BR2_PACKAGE_TINI=y
|
||||||
|
BR2_PACKAGE_DOCKER_ENGINE=y
|
||||||
|
BR2_PACKAGE_DOCKER_CLI=y
|
||||||
|
BR2_PACKAGE_RAUC=y
|
||||||
|
BR2_PACKAGE_RAUC_NETWORK=y
|
||||||
|
BR2_PACKAGE_RNG_TOOLS=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_SYSTEMD_COREDUMP=y
|
||||||
|
BR2_PACKAGE_SYSTEMD_LOGIND=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_PARTX=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_ZRAMCTL=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_LOGIN=y
|
||||||
|
BR2_PACKAGE_UTIL_LINUX_NOLOGIN=y
|
||||||
|
BR2_PACKAGE_USB_MODESWITCH=y
|
||||||
|
BR2_PACKAGE_USB_MODESWITCH_DATA=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="2020.10"
|
||||||
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="odroid-c4"
|
||||||
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c4/uboot.config"
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-c4/uboot-boot.ush"
|
||||||
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
|
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_HASSIO=y
|
||||||
|
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="odroid-c4"
|
||||||
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
BR2_PACKAGE_HARDKERNEL_BOOT=y
|
||||||
|
BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C4=y
|
||||||
@@ -22,10 +22,10 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2 $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2 $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2/hassos-hook.sh"
|
||||||
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="5.7.19"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.9.6"
|
||||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/kernel-amlogic.config"
|
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/kernel-amlogic.config"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2/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="amlogic/meson-g12b-odroid-n2 amlogic/meson-g12b-odroid-n2-plus"
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="amlogic/meson-g12b-odroid-n2 amlogic/meson-g12b-odroid-n2-plus"
|
||||||
@@ -57,7 +57,7 @@ BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
|
|||||||
BR2_PACKAGE_DHCP=y
|
BR2_PACKAGE_DHCP=y
|
||||||
BR2_PACKAGE_DHCP_CLIENT=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=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -89,7 +89,7 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="odroid-n2"
|
|||||||
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2/uboot.config"
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-n2/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -97,6 +97,9 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="odroid-n2"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_HARDKERNEL_BOOT=y
|
BR2_PACKAGE_HARDKERNEL_BOOT=y
|
||||||
BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2=y
|
BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4 $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4 $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4/hassos-hook.sh"
|
||||||
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="5.7.19"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.9.6"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="exynos"
|
BR2_LINUX_KERNEL_DEFCONFIG="exynos"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -59,7 +59,7 @@ BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
|
|||||||
BR2_PACKAGE_DHCP=y
|
BR2_PACKAGE_DHCP=y
|
||||||
BR2_PACKAGE_DHCP_CLIENT=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=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -93,7 +93,7 @@ BR2_TARGET_UBOOT_FORMAT_DTB_BIN=y
|
|||||||
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4/uboot.config"
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/hardkernel/odroid-xu4/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -101,6 +101,9 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="odroid-xu"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_HARDKERNEL_BOOT=y
|
BR2_PACKAGE_HARDKERNEL_BOOT=y
|
||||||
BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4=y
|
BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -95,4 +95,7 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="amd64"
|
BR2_PACKAGE_HASSIO_ARCH="amd64"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="qemux86-64"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi0-w $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi0-w $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/cc39f1c9f82f6fe5a437836811d906c709e0661c.tar.gz"
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/2ae9829c3da54597a4701285f91985c4d08ee793.tar.gz"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -60,7 +60,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -92,7 +92,7 @@ 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_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -100,5 +100,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="armhf"
|
BR2_PACKAGE_HASSIO_ARCH="armhf"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="raspberrypi"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi2 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi2 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/cc39f1c9f82f6fe5a437836811d906c709e0661c.tar.gz"
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/2ae9829c3da54597a4701285f91985c4d08ee793.tar.gz"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -59,7 +59,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -91,7 +91,7 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_2"
|
|||||||
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -99,4 +99,7 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="raspberrypi2"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi3-64 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi3-64 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/cc39f1c9f82f6fe5a437836811d906c709e0661c.tar.gz"
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/2ae9829c3da54597a4701285f91985c4d08ee793.tar.gz"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi3"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -60,7 +60,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -92,7 +92,7 @@ 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_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot64.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot64.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -100,5 +100,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="raspberrypi3-64"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi3 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi3 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/cc39f1c9f82f6fe5a437836811d906c709e0661c.tar.gz"
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/2ae9829c3da54597a4701285f91985c4d08ee793.tar.gz"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -60,7 +60,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -92,7 +92,7 @@ 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_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -100,5 +100,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="raspberrypi3"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi4-64 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi4-64 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/cc39f1c9f82f6fe5a437836811d906c709e0661c.tar.gz"
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/2ae9829c3da54597a4701285f91985c4d08ee793.tar.gz"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -61,7 +61,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -93,7 +93,7 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_4"
|
|||||||
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot64.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot64.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -101,5 +101,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
BR2_PACKAGE_HASSIO_ARCH="aarch64"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="raspberrypi4-64"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi4 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi4 $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/cc39f1c9f82f6fe5a437836811d906c709e0661c.tar.gz"
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/2ae9829c3da54597a4701285f91985c4d08ee793.tar.gz"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -61,7 +61,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -93,7 +93,7 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_4_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_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -101,5 +101,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="raspberrypi4"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
BR2_PACKAGE_BLUETOOTH_BCM43XX=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_HASSOS_PATH)/scripts/post-image.sh"
|
|||||||
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/rpi $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/hassos-hook.sh"
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/cc39f1c9f82f6fe5a437836811d906c709e0661c.tar.gz"
|
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/2ae9829c3da54597a4701285f91985c4d08ee793.tar.gz"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
|
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
|
||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/kernel/hassos.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/docker.config $(BR2_EXTERNAL_HASSOS_PATH)/kernel/device-support.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/kernel.config"
|
||||||
BR2_LINUX_KERNEL_LZ4=y
|
BR2_LINUX_KERNEL_LZ4=y
|
||||||
@@ -59,7 +59,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -91,7 +91,7 @@ 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_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_HASSOS_PATH)/bootloader/uboot.config $(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot.config"
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
BR2_TARGET_UBOOT_BOOT_SCRIPT=y
|
||||||
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_HASSOS_PATH)/board/raspberrypi/uboot-boot.ush"
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y
|
||||||
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
|
||||||
@@ -99,4 +99,7 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="armhf"
|
BR2_PACKAGE_HASSIO_ARCH="armhf"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="raspberrypi"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ BR2_PACKAGE_DHCP=y
|
|||||||
BR2_PACKAGE_DHCP_CLIENT=y
|
BR2_PACKAGE_DHCP_CLIENT=y
|
||||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||||
BR2_PACKAGE_DROPBEAR=y
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||||
BR2_PACKAGE_NETWORK_MANAGER=y
|
BR2_PACKAGE_NETWORK_MANAGER=y
|
||||||
BR2_PACKAGE_TINI=y
|
BR2_PACKAGE_TINI=y
|
||||||
@@ -106,5 +106,8 @@ BR2_PACKAGE_HOST_MTOOLS=y
|
|||||||
BR2_PACKAGE_HOST_RAUC=y
|
BR2_PACKAGE_HOST_RAUC=y
|
||||||
BR2_PACKAGE_HASSIO=y
|
BR2_PACKAGE_HASSIO=y
|
||||||
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
BR2_PACKAGE_HASSIO_ARCH="armv7"
|
||||||
|
BR2_PACKAGE_HASSIO_MACHINE="tinker"
|
||||||
BR2_PACKAGE_APPARMOR=y
|
BR2_PACKAGE_APPARMOR=y
|
||||||
BR2_PACKAGE_BLUETOOTH_RTL8723=y
|
BR2_PACKAGE_BLUETOOTH_RTL8723=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS=y
|
||||||
|
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
CONFIG_KERNEL_LZ4=y
|
CONFIG_KERNEL_LZ4=y
|
||||||
CONFIG_CMDLINE=""
|
CONFIG_CMDLINE=""
|
||||||
|
CONFIG_PANIC_TIMEOUT=5
|
||||||
|
|
||||||
CONFIG_ZRAM=y
|
CONFIG_ZRAM=y
|
||||||
CONFIG_ZSMALLOC=y
|
CONFIG_ZSMALLOC=y
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
VERSION_MAJOR=5
|
VERSION_MAJOR=5
|
||||||
VERSION_BUILD=3
|
VERSION_BUILD=5
|
||||||
|
|
||||||
HASSOS_NAME="HassOS"
|
HASSOS_NAME="HassOS"
|
||||||
HASSOS_ID="hassos"
|
HASSOS_ID="hassos"
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ BLUETOOTH_BCM43XX_SITE = $(BR2_EXTERNAL_HASSOS_PATH)/package/bluetooth-bcm43xx
|
|||||||
BLUETOOTH_BCM43XX_SITE_METHOD = local
|
BLUETOOTH_BCM43XX_SITE_METHOD = local
|
||||||
|
|
||||||
define BLUETOOTH_BCM43XX_BUILD_CMDS
|
define BLUETOOTH_BCM43XX_BUILD_CMDS
|
||||||
curl -L -o $(@D)/BCM43430A1.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/fff76cb15527c435ce99a9787848eacd6288282c/broadcom/BCM43430A1.hcd
|
curl -L -o $(@D)/BCM43430A1.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/a4e08822e3f24a6211f6ac94bc98b7ef87700c70/broadcom/BCM43430A1.hcd
|
||||||
curl -L -o $(@D)/BCM4345C0.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/fff76cb15527c435ce99a9787848eacd6288282c/broadcom/BCM4345C0.hcd
|
curl -L -o $(@D)/BCM4345C0.hcd https://raw.githubusercontent.com/RPi-Distro/bluez-firmware/a4e08822e3f24a6211f6ac94bc98b7ef87700c70/broadcom/BCM4345C0.hcd
|
||||||
curl -L -o $(@D)/btuart https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/cbdbcb66bcc5b9af05f1a9fffe2254c872bb0ace/usr/bin/btuart
|
curl -L -o $(@D)/btuart https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/cbdbcb66bcc5b9af05f1a9fffe2254c872bb0ace/usr/bin/btuart
|
||||||
curl -L -o $(@D)/bthelper https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/cbdbcb66bcc5b9af05f1a9fffe2254c872bb0ace/usr/bin/bthelper
|
curl -L -o $(@D)/bthelper https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/cbdbcb66bcc5b9af05f1a9fffe2254c872bb0ace/usr/bin/bthelper
|
||||||
curl -L -o $(@D)/90-pi-bluetooth.rules https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/cbdbcb66bcc5b9af05f1a9fffe2254c872bb0ace/lib/udev/rules.d/90-pi-bluetooth.rules
|
curl -L -o $(@D)/90-pi-bluetooth.rules https://raw.githubusercontent.com/RPi-Distro/pi-bluetooth/cbdbcb66bcc5b9af05f1a9fffe2254c872bb0ace/lib/udev/rules.d/90-pi-bluetooth.rules
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C2
|
|||||||
help
|
help
|
||||||
For the Odroid-C2
|
For the Odroid-C2
|
||||||
|
|
||||||
|
config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C4
|
||||||
|
bool "Odroid-C4"
|
||||||
|
help
|
||||||
|
For the Odroid-C4
|
||||||
|
|
||||||
config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4
|
config BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4
|
||||||
bool "Odroid-XU4"
|
bool "Odroid-XU4"
|
||||||
help
|
help
|
||||||
|
|||||||
@@ -32,6 +32,60 @@ define HARDKERNEL_BOOT_BUILD_CMDS
|
|||||||
dd if=$(@D)/u-boot.img of=$(@D)/u-boot.gxbb bs=512 skip=96
|
dd if=$(@D)/u-boot.img of=$(@D)/u-boot.gxbb bs=512 skip=96
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_C4),y)
|
||||||
|
# travis/odroidc4-153 20201014
|
||||||
|
HARDKERNEL_BOOT_VERSION = 2a4e31e3fde9bced8a150d338aa397a0362df191
|
||||||
|
|
||||||
|
HARDKERNEL_BOOT_BINS += u-boot.sm1
|
||||||
|
define HARDKERNEL_BOOT_BUILD_CMDS
|
||||||
|
curl -L -o $(@D)/fip/blx_fix.sh https://raw.githubusercontent.com/home-assistant/operating-system-blobs/75fa51f44221da614a717673a27bec4fa01ccd6c/hardkernel/blx_fix_g12a.sh
|
||||||
|
curl -L -o $(@D)/fip/acs.bin https://raw.githubusercontent.com/home-assistant/operating-system-blobs/75fa51f44221da614a717673a27bec4fa01ccd6c/hardkernel/odroid-c4/acs.bin
|
||||||
|
curl -L -o $(@D)/fip/bl301.bin https://raw.githubusercontent.com/home-assistant/operating-system-blobs/75fa51f44221da614a717673a27bec4fa01ccd6c/hardkernel/odroid-c4/bl301.bin
|
||||||
|
|
||||||
|
bash $(@D)/fip/blx_fix.sh \
|
||||||
|
$(@D)/fip/g12a/bl30.bin $(@D)/fip/zero_tmp $(@D)/fip/bl30_zero.bin \
|
||||||
|
$(@D)/fip/bl301.bin $(@D)/fip/bl301_zero.bin $(@D)/fip/bl30_new.bin \
|
||||||
|
bl30
|
||||||
|
|
||||||
|
bash $(@D)/fip/blx_fix.sh \
|
||||||
|
$(@D)/fip/g12a/bl2.bin $(@D)/fip/zero_tmp $(@D)/fip/bl2_zero.bin \
|
||||||
|
$(@D)/fip/acs.bin $(@D)/fip/bl21_zero.bin $(@D)/fip/bl2_new.bin \
|
||||||
|
bl2
|
||||||
|
|
||||||
|
$(@D)/fip/g12a/aml_encrypt_g12a --bl30sig --input $(@D)/fip/bl30_new.bin \
|
||||||
|
--output $(@D)/fip/bl30_new.bin.g12a.enc \
|
||||||
|
--level v3
|
||||||
|
$(@D)/fip/g12a/aml_encrypt_g12a --bl3sig --input $(@D)/fip/bl30_new.bin.g12a.enc \
|
||||||
|
--output $(@D)/fip/bl30_new.bin.enc \
|
||||||
|
--level v3 --type bl30
|
||||||
|
$(@D)/fip/g12a/aml_encrypt_g12a --bl3sig --input $(@D)/fip/g12a/bl31.img \
|
||||||
|
--output $(@D)/fip/bl31.img.enc \
|
||||||
|
--level v3 --type bl31
|
||||||
|
$(@D)/fip/g12a/aml_encrypt_g12a --bl3sig --input $(BINARIES_DIR)/u-boot.bin \
|
||||||
|
--output $(@D)/fip/bl33.bin.enc \
|
||||||
|
--level v3 --type bl33
|
||||||
|
$(@D)/fip/g12a/aml_encrypt_g12a --bl2sig --input $(@D)/fip/bl2_new.bin \
|
||||||
|
--output $(@D)/fip/bl2.n.bin.sig
|
||||||
|
$(@D)/fip/g12a/aml_encrypt_g12a --bootmk \
|
||||||
|
--output $(@D)/fip/u-boot.bin \
|
||||||
|
--bl2 $(@D)/fip/bl2.n.bin.sig \
|
||||||
|
--bl30 $(@D)/fip/bl30_new.bin.enc \
|
||||||
|
--bl31 $(@D)/fip/bl31.img.enc \
|
||||||
|
--bl33 $(@D)/fip/bl33.bin.enc \
|
||||||
|
--ddrfw1 $(@D)/fip/g12a/ddr4_1d.fw \
|
||||||
|
--ddrfw2 $(@D)/fip/g12a/ddr4_2d.fw \
|
||||||
|
--ddrfw3 $(@D)fip/g12a/ddr3_1d.fw \
|
||||||
|
--ddrfw4 $(@D)/fip/g12a/piei.fw \
|
||||||
|
--ddrfw5 $(@D)/fip/g12a/lpddr4_1d.fw \
|
||||||
|
--ddrfw6 $(@D)/fip/g12a/lpddr4_2d.fw \
|
||||||
|
--ddrfw7 $(@D)/fip/g12a/diag_lpddr4.fw \
|
||||||
|
--ddrfw8 $(@D)/fip/g12a/aml_ddr.fw \
|
||||||
|
--ddrfw9 $(@D)/fip/g12a/lpddr3_1d.fw \
|
||||||
|
--level v3
|
||||||
|
|
||||||
|
cp $(@D)/fip/u-boot.bin $(@D)/u-boot.sm1
|
||||||
|
endef
|
||||||
|
|
||||||
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4),y)
|
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_XU4),y)
|
||||||
HARDKERNEL_BOOT_VERSION = 88af53fbcef8386cb4d5f04c19f4b2bcb69e90ca
|
HARDKERNEL_BOOT_VERSION = 88af53fbcef8386cb4d5f04c19f4b2bcb69e90ca
|
||||||
|
|
||||||
@@ -42,13 +96,13 @@ define HARDKERNEL_BOOT_BUILD_CMDS
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2),y)
|
else ifeq ($(BR2_PACKAGE_HARDKERNEL_BOOT_ODROID_N2),y)
|
||||||
HARDKERNEL_BOOT_VERSION = c989da31a5c1da3ab57d7c6dc5a3fdbcc1c3eed7
|
HARDKERNEL_BOOT_VERSION = ca5bdd0f1c291d1ec135cd134e01aa2619203d4c
|
||||||
|
|
||||||
HARDKERNEL_BOOT_BINS += u-boot.g12b
|
HARDKERNEL_BOOT_BINS += u-boot.g12b
|
||||||
define HARDKERNEL_BOOT_BUILD_CMDS
|
define HARDKERNEL_BOOT_BUILD_CMDS
|
||||||
curl -L -o $(@D)/fip/blx_fix.sh https://raw.githubusercontent.com/home-assistant/hassos-blobs/d88ec078470f236d694ba1f9e69a44759ddf41ea/odroid-n2/blx_fix_g12a.sh
|
curl -L -o $(@D)/fip/blx_fix.sh https://raw.githubusercontent.com/home-assistant/operating-system-blobs/f17a8e81e0b7e1bd2475441465cc737c0891edfa/hardkernel/blx_fix_g12a.sh
|
||||||
curl -L -o $(@D)/fip/acs.bin https://raw.githubusercontent.com/home-assistant/hassos-blobs/d88ec078470f236d694ba1f9e69a44759ddf41ea/odroid-n2/acs.bin
|
curl -L -o $(@D)/fip/acs.bin https://raw.githubusercontent.com/home-assistant/operating-system-blobs/f17a8e81e0b7e1bd2475441465cc737c0891edfa/hardkernel/odroid-n2/acs.bin
|
||||||
curl -L -o $(@D)/fip/bl301.bin https://raw.githubusercontent.com/home-assistant/hassos-blobs/d88ec078470f236d694ba1f9e69a44759ddf41ea/odroid-n2/bl301.bin
|
curl -L -o $(@D)/fip/bl301.bin https://raw.githubusercontent.com/home-assistant/operating-system-blobs/f17a8e81e0b7e1bd2475441465cc737c0891edfa/hardkernel/odroid-n2/bl301.bin
|
||||||
|
|
||||||
bash $(@D)/fip/blx_fix.sh \
|
bash $(@D)/fip/blx_fix.sh \
|
||||||
$(@D)/fip/g12b/bl30.bin $(@D)/fip/zero_tmp $(@D)/fip/bl30_zero.bin \
|
$(@D)/fip/g12b/bl30.bin $(@D)/fip/zero_tmp $(@D)/fip/bl30_zero.bin \
|
||||||
|
|||||||
@@ -13,4 +13,9 @@ config BR2_PACKAGE_HASSIO_ARCH
|
|||||||
help
|
help
|
||||||
Supervisor architecture which should be pull.
|
Supervisor architecture which should be pull.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_HASSIO_MACHINE
|
||||||
|
string "Supervisor Machine"
|
||||||
|
help
|
||||||
|
Machine to pull containers for (used for landing page).
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
ARCH=
|
ARCH=
|
||||||
|
MACHINE=
|
||||||
DATA_IMG="/export/data.ext4"
|
DATA_IMG="/export/data.ext4"
|
||||||
VERSION_URL="https://version.home-assistant.io/stable.json"
|
VERSION_URL="https://version.home-assistant.io/stable.json"
|
||||||
APPARMOR_URL="https://version.home-assistant.io/apparmor.txt"
|
APPARMOR_URL="https://version.home-assistant.io/apparmor.txt"
|
||||||
@@ -14,6 +15,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
ARCH=$2
|
ARCH=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--machine)
|
||||||
|
MACHINE=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@@ -27,6 +32,7 @@ AUDIO="homeassistant/${ARCH}-hassio-audio"
|
|||||||
CLI="homeassistant/${ARCH}-hassio-cli"
|
CLI="homeassistant/${ARCH}-hassio-cli"
|
||||||
MULTICAST="homeassistant/${ARCH}-hassio-multicast"
|
MULTICAST="homeassistant/${ARCH}-hassio-multicast"
|
||||||
OBSERVER="homeassistant/${ARCH}-hassio-observer"
|
OBSERVER="homeassistant/${ARCH}-hassio-observer"
|
||||||
|
LANDINGPAGE="homeassistant/${MACHINE}-homeassistant:landingpage"
|
||||||
|
|
||||||
SUPERVISOR_VERSION=$(curl -s ${VERSION_URL} | jq -e -r '.supervisor')
|
SUPERVISOR_VERSION=$(curl -s ${VERSION_URL} | jq -e -r '.supervisor')
|
||||||
DNS_VERSION=$(curl -s ${VERSION_URL} | jq -e -r '.dns')
|
DNS_VERSION=$(curl -s ${VERSION_URL} | jq -e -r '.dns')
|
||||||
@@ -76,6 +82,9 @@ docker pull "${AUDIO}:${AUDIO_VERSION}"
|
|||||||
docker pull "${MULTICAST}:${MULTICAST_VERSION}"
|
docker pull "${MULTICAST}:${MULTICAST_VERSION}"
|
||||||
docker pull "${OBSERVER}:${OBSERVER_VERSION}"
|
docker pull "${OBSERVER}:${OBSERVER_VERSION}"
|
||||||
|
|
||||||
|
# Install landing page
|
||||||
|
docker pull "${LANDINGPAGE}"
|
||||||
|
|
||||||
# Setup AppArmor
|
# Setup AppArmor
|
||||||
mkdir -p "/mnt/data/supervisor/apparmor"
|
mkdir -p "/mnt/data/supervisor/apparmor"
|
||||||
curl -sL -o "/mnt/data/supervisor/apparmor/hassio-supervisor" "${APPARMOR_URL}"
|
curl -sL -o "/mnt/data/supervisor/apparmor/hassio-supervisor" "${APPARMOR_URL}"
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ define HASSIO_INSTALL_TARGET_CMDS
|
|||||||
-e BUILDER_UID="$(shell id -u)" -e BUILDER_GID="$(shell id -g)" \
|
-e BUILDER_UID="$(shell id -u)" -e BUILDER_GID="$(shell id -g)" \
|
||||||
-v $(BINARIES_DIR):/export \
|
-v $(BINARIES_DIR):/export \
|
||||||
hassos-hostapps \
|
hassos-hostapps \
|
||||||
--arch $(BR2_PACKAGE_HASSIO_ARCH)
|
--arch $(BR2_PACKAGE_HASSIO_ARCH) \
|
||||||
|
--machine $(BR2_PACKAGE_HASSIO_MACHINE)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
From 4a4298ef78e943d36f3b8d8e78bfa21b1506961e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aman Gupta Karmani <aman@tmm1.net>
|
||||||
|
Date: Mon, 12 Oct 2020 13:39:26 -0700
|
||||||
|
Subject: [PATCH] time-wait-sync: log errors trying to watch
|
||||||
|
/run/systemd/timesync
|
||||||
|
|
||||||
|
---
|
||||||
|
src/time-wait-sync/time-wait-sync.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/time-wait-sync/time-wait-sync.c b/src/time-wait-sync/time-wait-sync.c
|
||||||
|
index 96072445f6e..c8ec4850426 100644
|
||||||
|
--- a/src/time-wait-sync/time-wait-sync.c
|
||||||
|
+++ b/src/time-wait-sync/time-wait-sync.c
|
||||||
|
@@ -50,7 +50,7 @@ static void clock_state_release(ClockState *sp) {
|
||||||
|
static int clock_state_update(ClockState *sp, sd_event *event);
|
||||||
|
|
||||||
|
static int update_notify_run_systemd_timesync(ClockState *sp) {
|
||||||
|
- sp->run_systemd_timesync_wd = inotify_add_watch(sp->inotify_fd, "/run/systemd/timesync", IN_CREATE|IN_DELETE_SELF);
|
||||||
|
+ sp->run_systemd_timesync_wd = inotify_add_watch_and_warn(sp->inotify_fd, "/run/systemd/timesync", IN_CREATE|IN_DELETE_SELF);
|
||||||
|
return sp->run_systemd_timesync_wd;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
From f6f4f5fe5395a57f10dd446c7266c53f0673eaac Mon Sep 17 00:00:00 2001
|
||||||
|
From: Balaji Punnuru <balaji_punnuru@cable.comcast.com>
|
||||||
|
Date: Thu, 9 Apr 2020 12:21:49 -0400
|
||||||
|
Subject: [PATCH] util: return the correct correct wd from inotify helpers
|
||||||
|
|
||||||
|
We need to propagate the acquired watch descriptors because our callers
|
||||||
|
are counting on them.
|
||||||
|
|
||||||
|
[Lennart: this is split out of #15381 and simplified]
|
||||||
|
---
|
||||||
|
src/basic/fs-util.c | 14 ++++++++------
|
||||||
|
1 file changed, 8 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
|
||||||
|
index 558cafbcaf5..ef3b5a51842 100644
|
||||||
|
--- a/src/basic/fs-util.c
|
||||||
|
+++ b/src/basic/fs-util.c
|
||||||
|
@@ -692,28 +692,30 @@ int unlink_or_warn(const char *filename) {
|
||||||
|
|
||||||
|
int inotify_add_watch_fd(int fd, int what, uint32_t mask) {
|
||||||
|
char path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
|
||||||
|
- int r;
|
||||||
|
+ int wd;
|
||||||
|
|
||||||
|
/* This is like inotify_add_watch(), except that the file to watch is not referenced by a path, but by an fd */
|
||||||
|
xsprintf(path, "/proc/self/fd/%i", what);
|
||||||
|
|
||||||
|
- r = inotify_add_watch(fd, path, mask);
|
||||||
|
- if (r < 0)
|
||||||
|
+ wd = inotify_add_watch(fd, path, mask);
|
||||||
|
+ if (wd < 0)
|
||||||
|
return -errno;
|
||||||
|
|
||||||
|
- return r;
|
||||||
|
+ return wd;
|
||||||
|
}
|
||||||
|
|
||||||
|
int inotify_add_watch_and_warn(int fd, const char *pathname, uint32_t mask) {
|
||||||
|
+ int wd;
|
||||||
|
|
||||||
|
- if (inotify_add_watch(fd, pathname, mask) < 0) {
|
||||||
|
+ wd = inotify_add_watch(fd, pathname, mask);
|
||||||
|
+ if (wd < 0) {
|
||||||
|
if (errno == ENOSPC)
|
||||||
|
return log_error_errno(errno, "Failed to add a watch for %s: inotify watch limit reached", pathname);
|
||||||
|
|
||||||
|
return log_error_errno(errno, "Failed to add a watch for %s: %m", pathname);
|
||||||
|
}
|
||||||
|
|
||||||
|
- return 0;
|
||||||
|
+ return wd;
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool unsafe_transition(const struct stat *a, const struct stat *b) {
|
||||||
@@ -5,7 +5,7 @@ RefuseManualStart=true
|
|||||||
RefuseManualStop=true
|
RefuseManualStop=true
|
||||||
Requires=mnt-overlay.mount dev-disk-by\x2dlabel-hassos\x2ddata.device
|
Requires=mnt-overlay.mount dev-disk-by\x2dlabel-hassos\x2ddata.device
|
||||||
Wants=hassos-expand.service
|
Wants=hassos-expand.service
|
||||||
After=mnt-overlay.mount dev-disk-by\x2dlabel-hassos\x2ddata.device
|
After=mnt-overlay.mount dev-disk-by\x2dlabel-hassos\x2ddata.device systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
|
||||||
Before=hassos-expand.service
|
Before=hassos-expand.service
|
||||||
ConditionPathExists=/mnt/overlay/data.opt
|
ConditionPathExists=/mnt/overlay/data.opt
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Before=mnt-data.mount
|
|||||||
RefuseManualStart=true
|
RefuseManualStart=true
|
||||||
RefuseManualStop=true
|
RefuseManualStop=true
|
||||||
Requires=dev-disk-by\x2dlabel-hassos\x2ddata.device
|
Requires=dev-disk-by\x2dlabel-hassos\x2ddata.device
|
||||||
After=dev-disk-by\x2dlabel-hassos\x2ddata.device
|
After=dev-disk-by\x2dlabel-hassos\x2ddata.device systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ Description=HassOS boot partition
|
|||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=umount.target local-fs.target
|
Before=umount.target local-fs.target
|
||||||
Conflicts=umount.target
|
Conflicts=umount.target
|
||||||
|
After=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2dboot.service
|
||||||
|
Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2dboot.service
|
||||||
|
|
||||||
[Mount]
|
[Mount]
|
||||||
What=/dev/disk/by-label/hassos-boot
|
What=/dev/disk/by-label/hassos-boot
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ DefaultDependencies=no
|
|||||||
After=hassos-expand.service
|
After=hassos-expand.service
|
||||||
Before=umount.target local-fs.target
|
Before=umount.target local-fs.target
|
||||||
Conflicts=umount.target
|
Conflicts=umount.target
|
||||||
|
After=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
|
||||||
|
Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
|
||||||
|
|
||||||
[Mount]
|
[Mount]
|
||||||
What=/dev/disk/by-label/hassos-data
|
What=/dev/disk/by-label/hassos-data
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ Description=HassOS overlay partition
|
|||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=umount.target local-fs.target
|
Before=umount.target local-fs.target
|
||||||
Conflicts=umount.target
|
Conflicts=umount.target
|
||||||
|
After=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2doverlay.service
|
||||||
|
Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2doverlay.service
|
||||||
|
|
||||||
[Mount]
|
[Mount]
|
||||||
What=/dev/disk/by-label/hassos-overlay
|
What=/dev/disk/by-label/hassos-overlay
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=NetworkManager persistent data
|
Description=NetworkManager persistent data
|
||||||
Requires=mnt-data.mount
|
Requires=mnt-overlay.mount
|
||||||
After=mnt-data.mount
|
After=mnt-overlay.mount hassos-overlay.service
|
||||||
Before=NetworkManager.service
|
Before=NetworkManager.service
|
||||||
|
|
||||||
[Mount]
|
[Mount]
|
||||||
|
|||||||
@@ -9,35 +9,28 @@ set -e
|
|||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
|
||||||
# Init supervisor
|
# Init supervisor
|
||||||
SUPERVISOR_MIN_RUNTIME=15
|
SUPERVISOR_STARTUP_MARKER="/run/supervisor/startup-marker"
|
||||||
SUPERVISOR_IMAGE="homeassistant/${SUPERVISOR_ARCH}-hassio-supervisor"
|
SUPERVISOR_IMAGE="homeassistant/${SUPERVISOR_ARCH}-hassio-supervisor"
|
||||||
SUPERVISOR_DATA=/mnt/data/supervisor
|
SUPERVISOR_DATA=/mnt/data/supervisor
|
||||||
SUPERVISOR_IMAGE_ID=$(docker inspect --format='{{.Id}}' "${SUPERVISOR_IMAGE}" || echo "")
|
SUPERVISOR_IMAGE_ID=$(docker images --no-trunc --filter "reference=${SUPERVISOR_IMAGE}:latest" --format "{{.ID}}" || echo "")
|
||||||
SUPERVISOR_CONTAINER_ID=$(docker inspect --format='{{.Image}}' hassio_supervisor || echo "")
|
SUPERVISOR_CONTAINER_ID=$(docker inspect --format='{{.Image}}' hassio_supervisor || echo "")
|
||||||
|
|
||||||
# Check if previous runtime of the container meets the minimal runtime
|
# Check if previous run left the startup-marker in place. If so, we assume the
|
||||||
# If not, we might be in trouble. Image or container corruption, bad release?
|
# Container image or container is somehow corrupted.
|
||||||
# Delete the container, delete the image, pull a fresh one
|
# Delete the container, delete the image, pull a fresh one
|
||||||
if [ -n "${SUPERVISOR_CONTAINER_ID}" ] && [ "${SUPERVISOR_IMAGE_ID}" = "${SUPERVISOR_CONTAINER_ID}" ]; then
|
if [ -f "${SUPERVISOR_STARTUP_MARKER}" ]; then
|
||||||
SUPERVISOR_START=$(docker inspect --format='{{.State.StartedAt}}' hassio_supervisor | sed -re "s/([-0-9]+)T([0-9\:]+).*/\1 \2/g")
|
echo "[WARNING] Supervisor container did not remove the startup marker file. Assuming container image or container corruption."
|
||||||
SUPERVISOR_STOP=$(docker inspect --format='{{.State.FinishedAt}}' hassio_supervisor | sed -re "s/([-0-9]+)T([0-9\:]+).*/\1 \2/g")
|
docker container rm --force hassio_supervisor || true
|
||||||
|
SUPERVISOR_CONTAINER_ID=""
|
||||||
if [ -n "${SUPERVISOR_START}" ] && [ -n "${SUPERVISOR_STOP}" ]; then
|
# Make sure we delete all supervisor images
|
||||||
START=$(date --date="${SUPERVISOR_START}" +%s)
|
SUPERVISOR_IMAGE_IDS=$(docker images --no-trunc --filter "reference=${SUPERVISOR_IMAGE}" --format "{{.ID}}" | uniq || echo "")
|
||||||
STOP=$(date --date="${SUPERVISOR_STOP}" +%s)
|
docker image rm --force "${SUPERVISOR_IMAGE_IDS}" || true
|
||||||
SUPERVISOR_RUNTIME=$((STOP-START))
|
SUPERVISOR_IMAGE_ID=""
|
||||||
# Minimial runtime not met, remove container and image
|
|
||||||
if [ "${SUPERVISOR_RUNTIME}" -lt "${SUPERVISOR_MIN_RUNTIME}" ]; then
|
|
||||||
echo "[WARNING] Supervisor container exited too quickly, forcing a fresh image and container..."
|
|
||||||
docker container rm --force hassio_supervisor || true
|
|
||||||
SUPERVISOR_CONTAINER_ID=""
|
|
||||||
docker rmi --force "${SUPERVISOR_IMAGE_ID}" || true
|
|
||||||
SUPERVISOR_IMAGE_ID=""
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If Supervisor image is missing, pull it
|
# If Supervisor image is missing, pull it
|
||||||
|
mkdir -p "$(dirname ${SUPERVISOR_STARTUP_MARKER})"
|
||||||
|
touch ${SUPERVISOR_STARTUP_MARKER}
|
||||||
if [ -z "${SUPERVISOR_IMAGE_ID}" ]; then
|
if [ -z "${SUPERVISOR_IMAGE_ID}" ]; then
|
||||||
# Get the latest from update information
|
# Get the latest from update information
|
||||||
# Using updater information instead of config. If the config version is
|
# Using updater information instead of config. If the config version is
|
||||||
@@ -78,6 +71,7 @@ if [ -z "${SUPERVISOR_CONTAINER_ID}" ]; then
|
|||||||
--privileged --security-opt apparmor="hassio-supervisor" \
|
--privileged --security-opt apparmor="hassio-supervisor" \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /var/run/dbus:/var/run/dbus \
|
-v /var/run/dbus:/var/run/dbus \
|
||||||
|
-v /run/supervisor:/run/os:rw \
|
||||||
-v /etc/machine-id:/etc/machine-id:ro \
|
-v /etc/machine-id:/etc/machine-id:ro \
|
||||||
-v ${SUPERVISOR_DATA}:/data:rw \
|
-v ${SUPERVISOR_DATA}:/data:rw \
|
||||||
-v /mnt/overlay:/os/overlay:rw \
|
-v /mnt/overlay:/os/overlay:rw \
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ index 59ab1da0c6..e3ba1bf99c 100644
|
|||||||
@@ -1,3 +1,3 @@
|
@@ -1,3 +1,3 @@
|
||||||
# Locally computed
|
# Locally computed
|
||||||
-sha256 31a84340be08be319570a9d1439f25c0e3513fed73065a56aa5dd61dd605d5d9 rpi-firmware-01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5.tar.gz
|
-sha256 31a84340be08be319570a9d1439f25c0e3513fed73065a56aa5dd61dd605d5d9 rpi-firmware-01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5.tar.gz
|
||||||
+sha256 4789d4422b3bc7eab157471ba36aebd54efc2a6de4c937f5cfdb4392af04fe80 rpi-firmware-7caead9416f64b2d33361c703fb243b8e157eba4.tar.gz
|
+sha256 30e91cc1b502bb1a8aeddf49e7d9dd3fb4a8c2f3b9154a2fea9ecc9071f54bc7 rpi-firmware-2ba11f2a07760588546821aed578010252c9ecb3.tar.gz
|
||||||
sha256 c7283ff51f863d93a275c66e3b4cb08021a5dd4d8c1e7acc47d872fbe52d3d6b boot/LICENCE.broadcom
|
sha256 c7283ff51f863d93a275c66e3b4cb08021a5dd4d8c1e7acc47d872fbe52d3d6b boot/LICENCE.broadcom
|
||||||
diff --git a/package/rpi-firmware/rpi-firmware.mk b/package/rpi-firmware/rpi-firmware.mk
|
diff --git a/package/rpi-firmware/rpi-firmware.mk b/package/rpi-firmware/rpi-firmware.mk
|
||||||
index 6fee60b08c..2177ca9859 100644
|
index 6fee60b08c..2177ca9859 100644
|
||||||
@@ -27,7 +27,7 @@ index 6fee60b08c..2177ca9859 100644
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
-RPI_FIRMWARE_VERSION = 01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5
|
-RPI_FIRMWARE_VERSION = 01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5
|
||||||
+RPI_FIRMWARE_VERSION = 7caead9416f64b2d33361c703fb243b8e157eba4
|
+RPI_FIRMWARE_VERSION = 2ba11f2a07760588546821aed578010252c9ecb3
|
||||||
RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION))
|
RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION))
|
||||||
RPI_FIRMWARE_LICENSE = BSD-3-Clause
|
RPI_FIRMWARE_LICENSE = BSD-3-Clause
|
||||||
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom
|
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom
|
||||||
|
|||||||
@@ -1,68 +0,0 @@
|
|||||||
From e36dc9a2a030204b5b6c6868348878b596f88de3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
Date: Fri, 5 Jun 2020 14:18:26 +0000
|
|
||||||
Subject: [PATCH 1/1] Linux 5.7
|
|
||||||
|
|
||||||
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
|
|
||||||
---
|
|
||||||
package/linux-headers/Config.in.host | 4 ++++
|
|
||||||
toolchain/Config.in | 5 +++++
|
|
||||||
.../toolchain-external-custom/Config.in.options | 4 ++++
|
|
||||||
3 files changed, 13 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
|
|
||||||
index 95e85a00..88b9ff99 100644
|
|
||||||
--- a/package/linux-headers/Config.in.host
|
|
||||||
+++ b/package/linux-headers/Config.in.host
|
|
||||||
@@ -127,6 +127,10 @@ choice
|
|
||||||
If your kernel headers are more recent than the latest version
|
|
||||||
in the choice, then select the latest version.
|
|
||||||
|
|
||||||
+config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7
|
|
||||||
+ bool "5.7.x or later"
|
|
||||||
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
|
|
||||||
+
|
|
||||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4
|
|
||||||
bool "5.4.x or later"
|
|
||||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
|
||||||
diff --git a/toolchain/Config.in b/toolchain/Config.in
|
|
||||||
index bff57280..c07a92ce 100644
|
|
||||||
--- a/toolchain/Config.in
|
|
||||||
+++ b/toolchain/Config.in
|
|
||||||
@@ -470,6 +470,10 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
|
||||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
|
|
||||||
select BR2_TOOLCHAIN_HEADERS_LATEST
|
|
||||||
|
|
||||||
+config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
|
|
||||||
+ bool
|
|
||||||
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
|
||||||
+
|
|
||||||
# This should be selected by the latest version, above, to indicate that
|
|
||||||
# Buildroot does not know of more recent headers than the ones selected.
|
|
||||||
# This allows using toolchains with headers more recent than Buildroot
|
|
||||||
@@ -481,6 +485,7 @@ config BR2_TOOLCHAIN_HEADERS_LATEST
|
|
||||||
# stops affecting a value on the first matching default.
|
|
||||||
config BR2_TOOLCHAIN_HEADERS_AT_LEAST
|
|
||||||
string
|
|
||||||
+ default "5.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
|
|
||||||
default "5.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
|
||||||
default "5.3" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
|
|
||||||
default "5.2" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
|
|
||||||
diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
|
|
||||||
index 8c38dd9f..b49231e1 100644
|
|
||||||
--- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
|
|
||||||
+++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
|
|
||||||
@@ -115,6 +115,10 @@ choice
|
|
||||||
If your toolchain uses headers newer than the latest version
|
|
||||||
in the choice, then select the latest version.
|
|
||||||
|
|
||||||
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_7
|
|
||||||
+ bool "5.7.x or later"
|
|
||||||
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
|
|
||||||
+
|
|
||||||
config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_4
|
|
||||||
bool "5.4.x or later"
|
|
||||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -4,12 +4,13 @@
|
|||||||
# It needs to be regenerated every time a defconfig is added, using
|
# It needs to be regenerated every time a defconfig is added, using
|
||||||
# "make .gitlab-ci.yml".
|
# "make .gitlab-ci.yml".
|
||||||
|
|
||||||
image: buildroot/base:20191027.2027
|
image: buildroot/base:20200814.2228
|
||||||
|
|
||||||
.check_base:
|
.check_base:
|
||||||
except:
|
rules:
|
||||||
- /^.*-.*_defconfig$/
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-.*_defconfig$/ || $CI_COMMIT_REF_NAME =~ /^.*-tests\..*$/'
|
||||||
- /^.*-tests\..*$/
|
when: never
|
||||||
|
- when: always
|
||||||
|
|
||||||
check-DEVELOPERS:
|
check-DEVELOPERS:
|
||||||
extends: .check_base
|
extends: .check_base
|
||||||
@@ -27,7 +28,7 @@ check-flake8:
|
|||||||
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
||||||
- sort -u files.txt | tee files.processed
|
- sort -u files.txt | tee files.processed
|
||||||
script:
|
script:
|
||||||
- python -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
|
- python3 -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
|
||||||
after_script:
|
after_script:
|
||||||
- wc -l files.processed
|
- wc -l files.processed
|
||||||
|
|
||||||
@@ -69,17 +70,21 @@ check-package:
|
|||||||
extends: .defconfig_base
|
extends: .defconfig_base
|
||||||
# Running the defconfigs for every push is too much, so limit to
|
# Running the defconfigs for every push is too much, so limit to
|
||||||
# explicit triggers through the API.
|
# explicit triggers through the API.
|
||||||
only:
|
rules:
|
||||||
- triggers
|
# For tags, create a pipeline.
|
||||||
- tags
|
- if: '$CI_COMMIT_TAG'
|
||||||
- /-defconfigs$/
|
# For pipeline created by using a trigger token.
|
||||||
|
- if: '$CI_PIPELINE_TRIGGERED'
|
||||||
|
# For the branch or tag name named *-defconfigs, create a pipeline.
|
||||||
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-defconfigs$/'
|
||||||
before_script:
|
before_script:
|
||||||
- DEFCONFIG_NAME=${CI_JOB_NAME}
|
- DEFCONFIG_NAME=${CI_JOB_NAME}
|
||||||
|
|
||||||
one-defconfig:
|
one-defconfig:
|
||||||
extends: .defconfig_base
|
extends: .defconfig_base
|
||||||
only:
|
rules:
|
||||||
- /^.*-.*_defconfig$/
|
# For the branch or tag name named *-*_defconfigs, create a pipeline.
|
||||||
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-.*_defconfig$/'
|
||||||
before_script:
|
before_script:
|
||||||
- DEFCONFIG_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
- DEFCONFIG_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
||||||
|
|
||||||
@@ -103,17 +108,20 @@ one-defconfig:
|
|||||||
extends: .runtime_test_base
|
extends: .runtime_test_base
|
||||||
# Running the runtime tests for every push is too much, so limit to
|
# Running the runtime tests for every push is too much, so limit to
|
||||||
# explicit triggers through the API.
|
# explicit triggers through the API.
|
||||||
only:
|
rules:
|
||||||
- triggers
|
# For tags, create a pipeline.
|
||||||
- tags
|
- if: '$CI_COMMIT_TAG'
|
||||||
- /-runtime-tests$/
|
# For pipeline created by using a trigger token.
|
||||||
|
- if: '$CI_PIPELINE_TRIGGERED'
|
||||||
|
# For the branch or tag name named *-runtime-tests, create a pipeline.
|
||||||
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-runtime-tests$/'
|
||||||
before_script:
|
before_script:
|
||||||
- TEST_CASE_NAME=${CI_JOB_NAME}
|
- TEST_CASE_NAME=${CI_JOB_NAME}
|
||||||
|
|
||||||
one-runtime_test:
|
one-runtime_test:
|
||||||
extends: .runtime_test_base
|
extends: .runtime_test_base
|
||||||
only:
|
rules:
|
||||||
- /^.*-tests\..*$/
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-tests\..*$/'
|
||||||
before_script:
|
before_script:
|
||||||
- TEST_CASE_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
- TEST_CASE_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
||||||
aarch64_efi_defconfig: { extends: .defconfig }
|
aarch64_efi_defconfig: { extends: .defconfig }
|
||||||
|
|||||||
@@ -4,12 +4,13 @@
|
|||||||
# It needs to be regenerated every time a defconfig is added, using
|
# It needs to be regenerated every time a defconfig is added, using
|
||||||
# "make .gitlab-ci.yml".
|
# "make .gitlab-ci.yml".
|
||||||
|
|
||||||
image: buildroot/base:20191027.2027
|
image: buildroot/base:20200814.2228
|
||||||
|
|
||||||
.check_base:
|
.check_base:
|
||||||
except:
|
rules:
|
||||||
- /^.*-.*_defconfig$/
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-.*_defconfig$/ || $CI_COMMIT_REF_NAME =~ /^.*-tests\..*$/'
|
||||||
- /^.*-tests\..*$/
|
when: never
|
||||||
|
- when: always
|
||||||
|
|
||||||
check-DEVELOPERS:
|
check-DEVELOPERS:
|
||||||
extends: .check_base
|
extends: .check_base
|
||||||
@@ -27,7 +28,7 @@ check-flake8:
|
|||||||
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
- find * -type f -print0 | xargs -0 file | grep 'Python script' | cut -d':' -f1 >> files.txt
|
||||||
- sort -u files.txt | tee files.processed
|
- sort -u files.txt | tee files.processed
|
||||||
script:
|
script:
|
||||||
- python -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
|
- python3 -m flake8 --statistics --count --max-line-length=132 $(cat files.processed)
|
||||||
after_script:
|
after_script:
|
||||||
- wc -l files.processed
|
- wc -l files.processed
|
||||||
|
|
||||||
@@ -69,17 +70,21 @@ check-package:
|
|||||||
extends: .defconfig_base
|
extends: .defconfig_base
|
||||||
# Running the defconfigs for every push is too much, so limit to
|
# Running the defconfigs for every push is too much, so limit to
|
||||||
# explicit triggers through the API.
|
# explicit triggers through the API.
|
||||||
only:
|
rules:
|
||||||
- triggers
|
# For tags, create a pipeline.
|
||||||
- tags
|
- if: '$CI_COMMIT_TAG'
|
||||||
- /-defconfigs$/
|
# For pipeline created by using a trigger token.
|
||||||
|
- if: '$CI_PIPELINE_TRIGGERED'
|
||||||
|
# For the branch or tag name named *-defconfigs, create a pipeline.
|
||||||
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-defconfigs$/'
|
||||||
before_script:
|
before_script:
|
||||||
- DEFCONFIG_NAME=${CI_JOB_NAME}
|
- DEFCONFIG_NAME=${CI_JOB_NAME}
|
||||||
|
|
||||||
one-defconfig:
|
one-defconfig:
|
||||||
extends: .defconfig_base
|
extends: .defconfig_base
|
||||||
only:
|
rules:
|
||||||
- /^.*-.*_defconfig$/
|
# For the branch or tag name named *-*_defconfigs, create a pipeline.
|
||||||
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-.*_defconfig$/'
|
||||||
before_script:
|
before_script:
|
||||||
- DEFCONFIG_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
- DEFCONFIG_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
||||||
|
|
||||||
@@ -103,16 +108,19 @@ one-defconfig:
|
|||||||
extends: .runtime_test_base
|
extends: .runtime_test_base
|
||||||
# Running the runtime tests for every push is too much, so limit to
|
# Running the runtime tests for every push is too much, so limit to
|
||||||
# explicit triggers through the API.
|
# explicit triggers through the API.
|
||||||
only:
|
rules:
|
||||||
- triggers
|
# For tags, create a pipeline.
|
||||||
- tags
|
- if: '$CI_COMMIT_TAG'
|
||||||
- /-runtime-tests$/
|
# For pipeline created by using a trigger token.
|
||||||
|
- if: '$CI_PIPELINE_TRIGGERED'
|
||||||
|
# For the branch or tag name named *-runtime-tests, create a pipeline.
|
||||||
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-runtime-tests$/'
|
||||||
before_script:
|
before_script:
|
||||||
- TEST_CASE_NAME=${CI_JOB_NAME}
|
- TEST_CASE_NAME=${CI_JOB_NAME}
|
||||||
|
|
||||||
one-runtime_test:
|
one-runtime_test:
|
||||||
extends: .runtime_test_base
|
extends: .runtime_test_base
|
||||||
only:
|
rules:
|
||||||
- /^.*-tests\..*$/
|
- if: '$CI_COMMIT_REF_NAME =~ /^.*-tests\..*$/'
|
||||||
before_script:
|
before_script:
|
||||||
- TEST_CASE_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
- TEST_CASE_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g')
|
||||||
|
|||||||
@@ -1,3 +1,94 @@
|
|||||||
|
2020.02.7, released October 12th, 2020
|
||||||
|
|
||||||
|
Important / security related fixes.
|
||||||
|
|
||||||
|
meson: Correct SDK cross-compilation.conf file when
|
||||||
|
per-package builds were used to build SDK.
|
||||||
|
|
||||||
|
systemd: Use /run rather than /var/run for PID files in units.
|
||||||
|
|
||||||
|
Toolchain: use Secure-PLT rather than BSS-PLT for PowerPC 32.
|
||||||
|
|
||||||
|
support/script/pycompile: Rework logic to ensure .pyc files
|
||||||
|
contain absolute target paths, fixing code inspection at
|
||||||
|
runtime when executed with cwd != '/'.
|
||||||
|
|
||||||
|
support/scripts/setlocalversion: Correct Mercurial output to
|
||||||
|
match behaviour with Git.
|
||||||
|
|
||||||
|
support/scripts/apply-patches.sh: Use patch
|
||||||
|
--no-backup-if-mismatch, so we no longer blindly have to
|
||||||
|
remove *.orig files after patching, fixing issues with
|
||||||
|
packages containing such files.
|
||||||
|
|
||||||
|
Updated/fixed packages: bandwidthd, barebox, bash, bison,
|
||||||
|
brotli, cifs-utils, cryptsetup, dhcpcd, dhcpdump, docker-cli,
|
||||||
|
docker-engine, ecryptfs-utils, efl, fail2ban, freetype, gcc,
|
||||||
|
gdb, ghostscript, gnutls, go, gst1-plugins-base,
|
||||||
|
gst1-plugins-ugly, ipmitool, libhtp, libraw, libssh, libxml2,
|
||||||
|
libxml-parser-perl, localedef, lua, memcached, mesa3d, meson,
|
||||||
|
minidlna, nginx, nodejs, nss-pam-ldapd, openvmtools, php,
|
||||||
|
postgresql, python, python-aenum, python-autobahn,
|
||||||
|
python-engineio, python-fire, python-pymodbus, python-scapy,
|
||||||
|
python-semver, python-sentry-sdk, python-socketio,
|
||||||
|
python-texttable, python-tinyrpc, python-txtorcon, python3,
|
||||||
|
qt5base, runc, samba4, strace, supertux, suricata, systemd,
|
||||||
|
vlc, wayland-protocols, wireguard-linux-compat, wireshark,
|
||||||
|
xserver_xorg-server, zeromq, zstd
|
||||||
|
|
||||||
|
Issues resolved (http://bugs.uclibc.org):
|
||||||
|
|
||||||
|
#12911: usb_modeswitch installation race condition
|
||||||
|
#13251: cryptsetup does not work on branch 2020.02 following..
|
||||||
|
|
||||||
|
2020.02.6, released September 5th, 2020
|
||||||
|
|
||||||
|
Important / security related fixes.
|
||||||
|
|
||||||
|
Fix a 2020.02.5 build regression in busybox when systemd (and
|
||||||
|
not less) are enabled because of missing infrastructure.
|
||||||
|
|
||||||
|
Updated/fixed packages: alsa-utils, avahi, busybox, cups,
|
||||||
|
docker-cli, graphite2, imagemagick, libeXosip2, mbedtls,
|
||||||
|
nvidia-driver, paho-mqtt-c, python-django, systemd, uclibc,
|
||||||
|
usb_modeswitch, wolfssl
|
||||||
|
|
||||||
|
Issues resolved (http://bugs.uclibc.org):
|
||||||
|
|
||||||
|
#12911: usb_modeswitch installation race condition
|
||||||
|
|
||||||
|
2020.02.5, released August 29th, 2020
|
||||||
|
|
||||||
|
Important / security related fixes.
|
||||||
|
|
||||||
|
Infrastructure: Ensure RPATH entries that may be needed for
|
||||||
|
dlopen() are not dropped by patchelf.
|
||||||
|
|
||||||
|
BR_VERSION_FULL/setlocalversion (used by make print-version
|
||||||
|
and /etc/os-release): Properly handle local git tags
|
||||||
|
|
||||||
|
Updated/fixed packages: apache, at91bootstrap3, bind, boost,
|
||||||
|
busybox, capnproto, chrony, collectd, cpio, cryptsetup, cups,
|
||||||
|
cvs, dbus, docker-engine, domoticz, dovecot,
|
||||||
|
dovecot-pigeonhole, dropbear, efl, elixir, f2fs-tools, ffmpeg,
|
||||||
|
gd, gdk-pixbuf, ghostscript, glibc, grub2, gst1-plugins-bad,
|
||||||
|
hostapd, iputils, jasper, json-c, libcurl, libwebsockets,
|
||||||
|
linux, live555, mesa3d, mosquitto, mpv, nodejs, opencv,
|
||||||
|
opencv3, openjpeg, patchelf, perl, php, postgresql,
|
||||||
|
python-django, python-gunicorn, python-matplotlib, ripgrep,
|
||||||
|
rtl8188eu, rtl8821au, ruby, shadowsocks-libev, squid,
|
||||||
|
tpm2-abrmd, tpm2-tools, trousers, uacme, webkitgtk, wireshark,
|
||||||
|
wolfssl, wpa_supplicant, wpewebkit, xen, xlib_libX11,
|
||||||
|
xserver_xorg-server
|
||||||
|
|
||||||
|
Issues resolved (http://bugs.uclibc.org):
|
||||||
|
|
||||||
|
#12876: nodejs fails to build when host-icu has been built before
|
||||||
|
#13111: python-gunicorn: missing dependency on python-setuptools
|
||||||
|
#13121: wpa_supplicant fails to build without libopenssl enabled
|
||||||
|
#13141: Target-finalize fail with "depmod: ERROR: Bad version passed"
|
||||||
|
#13156: package live555 new license
|
||||||
|
|
||||||
2020.02.4, released July 26th, 2020
|
2020.02.4, released July 26th, 2020
|
||||||
|
|
||||||
Important / security related fixes.
|
Important / security related fixes.
|
||||||
|
|||||||
@@ -186,18 +186,25 @@ F: package/rauc/
|
|||||||
|
|
||||||
N: Angelo Compagnucci <angelo.compagnucci@gmail.com>
|
N: Angelo Compagnucci <angelo.compagnucci@gmail.com>
|
||||||
F: package/corkscrew/
|
F: package/corkscrew/
|
||||||
|
F: package/cups/
|
||||||
|
F: package/cups-filters/
|
||||||
F: package/fail2ban/
|
F: package/fail2ban/
|
||||||
|
F: package/grep/
|
||||||
F: package/i2c-tools/
|
F: package/i2c-tools/
|
||||||
|
F: package/jq/
|
||||||
|
F: package/libb64/
|
||||||
F: package/mender/
|
F: package/mender/
|
||||||
F: package/mender-artifact/
|
F: package/mender-artifact/
|
||||||
F: package/mono/
|
F: package/mono/
|
||||||
F: package/mono-gtksharp3/
|
F: package/mono-gtksharp3/
|
||||||
F: package/monolite/
|
F: package/monolite/
|
||||||
|
F: package/openjpeg/
|
||||||
F: package/python-can/
|
F: package/python-can/
|
||||||
F: package/python-pillow/
|
F: package/python-pillow/
|
||||||
F: package/python-pydal/
|
F: package/python-pydal/
|
||||||
F: package/python-spidev/
|
F: package/python-spidev/
|
||||||
F: package/python-web2py/
|
F: package/python-web2py/
|
||||||
|
F: package/sam-ba/
|
||||||
F: package/sshguard/
|
F: package/sshguard/
|
||||||
F: package/sunwait/
|
F: package/sunwait/
|
||||||
F: package/sysdig/
|
F: package/sysdig/
|
||||||
@@ -211,6 +218,8 @@ N: Anthony Viallard <viallard@syscom-instruments.com>
|
|||||||
F: package/gnuplot/
|
F: package/gnuplot/
|
||||||
|
|
||||||
N: Antoine Ténart <antoine.tenart@bootlin.com>
|
N: Antoine Ténart <antoine.tenart@bootlin.com>
|
||||||
|
F: package/libselinux/
|
||||||
|
F: package/refpolicy/
|
||||||
F: package/wf111/
|
F: package/wf111/
|
||||||
|
|
||||||
N: Antony Pavlov <antonynpavlov@gmail.com>
|
N: Antony Pavlov <antonynpavlov@gmail.com>
|
||||||
@@ -1035,6 +1044,7 @@ N: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
|
|||||||
F: package/gnuradio/
|
F: package/gnuradio/
|
||||||
F: package/gqrx/
|
F: package/gqrx/
|
||||||
F: package/gr-osmosdr/
|
F: package/gr-osmosdr/
|
||||||
|
F: package/librtlsdr/
|
||||||
F: package/libusbgx/
|
F: package/libusbgx/
|
||||||
F: package/python-cheetah/
|
F: package/python-cheetah/
|
||||||
F: package/python-markdown/
|
F: package/python-markdown/
|
||||||
@@ -1713,9 +1723,6 @@ F: package/systemd-bootchart/
|
|||||||
F: package/tinyalsa/
|
F: package/tinyalsa/
|
||||||
F: package/tinyxml/
|
F: package/tinyxml/
|
||||||
|
|
||||||
N: Maxime Ripard <maxime.ripard@bootlin.com>
|
|
||||||
F: package/kmsxx/
|
|
||||||
|
|
||||||
N: Michael Durrant <mdurrant@arcturusnetworks.com>
|
N: Michael Durrant <mdurrant@arcturusnetworks.com>
|
||||||
F: board/arcturus/
|
F: board/arcturus/
|
||||||
F: configs/arcturus_ucp1020_defconfig
|
F: configs/arcturus_ucp1020_defconfig
|
||||||
@@ -1810,6 +1817,7 @@ F: package/tpm-tools/
|
|||||||
F: package/trousers/
|
F: package/trousers/
|
||||||
|
|
||||||
N: Norbert Lange <nolange79@gmail.com>
|
N: Norbert Lange <nolange79@gmail.com>
|
||||||
|
F: package/systemd/
|
||||||
F: package/tcf-agent/
|
F: package/tcf-agent/
|
||||||
|
|
||||||
N: Nylon Chen <nylon7@andestech.com>
|
N: Nylon Chen <nylon7@andestech.com>
|
||||||
@@ -2135,6 +2143,7 @@ F: package/davfs2/
|
|||||||
|
|
||||||
N: Ryan Barnett <ryan.barnett@rockwellcollins.com>
|
N: Ryan Barnett <ryan.barnett@rockwellcollins.com>
|
||||||
F: package/atftp/
|
F: package/atftp/
|
||||||
|
F: package/c-periphery/
|
||||||
F: package/miraclecast/
|
F: package/miraclecast/
|
||||||
F: package/python-pyasn/
|
F: package/python-pyasn/
|
||||||
F: package/python-pysnmp/
|
F: package/python-pysnmp/
|
||||||
|
|||||||
@@ -92,9 +92,9 @@ all:
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
# Set and export the version string
|
# Set and export the version string
|
||||||
export BR2_VERSION := 2020.02.4
|
export BR2_VERSION := 2020.02.7
|
||||||
# Actual time the release is cut (for reproducible builds)
|
# Actual time the release is cut (for reproducible builds)
|
||||||
BR2_VERSION_EPOCH = 1595750000
|
BR2_VERSION_EPOCH = 1602538000
|
||||||
|
|
||||||
# Save running make version since it's clobbered by the make package
|
# Save running make version since it's clobbered by the make package
|
||||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||||
@@ -113,7 +113,13 @@ DATE := $(shell date +%Y%m%d)
|
|||||||
|
|
||||||
# Compute the full local version string so packages can use it as-is
|
# Compute the full local version string so packages can use it as-is
|
||||||
# Need to export it, so it can be got from environment in children (eg. mconf)
|
# Need to export it, so it can be got from environment in children (eg. mconf)
|
||||||
export BR2_VERSION_FULL := $(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setlocalversion)
|
|
||||||
|
BR2_LOCALVERSION := $(shell $(TOPDIR)/support/scripts/setlocalversion)
|
||||||
|
ifeq ($(BR2_LOCALVERSION),)
|
||||||
|
export BR2_VERSION_FULL := $(BR2_VERSION)
|
||||||
|
else
|
||||||
|
export BR2_VERSION_FULL := $(BR2_LOCALVERSION)
|
||||||
|
endif
|
||||||
|
|
||||||
# List of targets and target patterns for which .config doesn't need to be read in
|
# List of targets and target patterns for which .config doesn't need to be read in
|
||||||
noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
||||||
@@ -793,9 +799,9 @@ endif
|
|||||||
# counterparts are appropriately setup as symlinks ones to the others.
|
# counterparts are appropriately setup as symlinks ones to the others.
|
||||||
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
||||||
|
|
||||||
@$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \
|
$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \
|
||||||
$(call MESSAGE,"Sanity check in overlay $(d)"); \
|
@$(call MESSAGE,"Sanity check in overlay $(d)")$(sep) \
|
||||||
not_merged_dirs="$$(support/scripts/check-merged-usr.sh $(d))"; \
|
$(Q)not_merged_dirs="$$(support/scripts/check-merged-usr.sh $(d))"; \
|
||||||
test -n "$$not_merged_dirs" && { \
|
test -n "$$not_merged_dirs" && { \
|
||||||
echo "ERROR: The overlay in $(d) is not" \
|
echo "ERROR: The overlay in $(d) is not" \
|
||||||
"using a merged /usr for the following directories:" \
|
"using a merged /usr for the following directories:" \
|
||||||
@@ -805,20 +811,20 @@ ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
|||||||
|
|
||||||
endif # merged /usr
|
endif # merged /usr
|
||||||
|
|
||||||
@$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \
|
$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \
|
||||||
$(call MESSAGE,"Copying overlay $(d)"); \
|
@$(call MESSAGE,"Copying overlay $(d)")$(sep) \
|
||||||
$(call SYSTEM_RSYNC,$(d),$(TARGET_DIR))$(sep))
|
$(Q)$(call SYSTEM_RSYNC,$(d),$(TARGET_DIR))$(sep))
|
||||||
|
|
||||||
$(if $(TARGET_DIR_FILES_LISTS), \
|
$(Q)$(if $(TARGET_DIR_FILES_LISTS), \
|
||||||
cat $(TARGET_DIR_FILES_LISTS)) > $(BUILD_DIR)/packages-file-list.txt
|
cat $(TARGET_DIR_FILES_LISTS)) > $(BUILD_DIR)/packages-file-list.txt
|
||||||
$(if $(HOST_DIR_FILES_LISTS), \
|
$(Q)$(if $(HOST_DIR_FILES_LISTS), \
|
||||||
cat $(HOST_DIR_FILES_LISTS)) > $(BUILD_DIR)/packages-file-list-host.txt
|
cat $(HOST_DIR_FILES_LISTS)) > $(BUILD_DIR)/packages-file-list-host.txt
|
||||||
$(if $(STAGING_DIR_FILES_LISTS), \
|
$(Q)$(if $(STAGING_DIR_FILES_LISTS), \
|
||||||
cat $(STAGING_DIR_FILES_LISTS)) > $(BUILD_DIR)/packages-file-list-staging.txt
|
cat $(STAGING_DIR_FILES_LISTS)) > $(BUILD_DIR)/packages-file-list-staging.txt
|
||||||
|
|
||||||
@$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_BUILD_SCRIPT)), \
|
$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_BUILD_SCRIPT)), \
|
||||||
$(call MESSAGE,"Executing post-build script $(s)"); \
|
@$(call MESSAGE,"Executing post-build script $(s)")$(sep) \
|
||||||
$(EXTRA_ENV) $(s) $(TARGET_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep))
|
$(Q)$(EXTRA_ENV) $(s) $(TARGET_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep))
|
||||||
|
|
||||||
touch $(TARGET_DIR)/usr
|
touch $(TARGET_DIR)/usr
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
config BR2_TARGET_AT91BOOTSTRAP3
|
config BR2_TARGET_AT91BOOTSTRAP3
|
||||||
bool "AT91 Bootstrap 3"
|
bool "AT91 Bootstrap 3"
|
||||||
depends on BR2_arm926t || BR2_cortex_a5
|
depends on BR2_arm926t || BR2_cortex_a5 || BR2_cortex_a7
|
||||||
help
|
help
|
||||||
AT91Bootstrap is a first level bootloader for the Atmel AT91
|
AT91Bootstrap is a first level bootloader for the Atmel AT91
|
||||||
devices. It integrates algorithms for:
|
devices. It integrates algorithms for:
|
||||||
|
|||||||
@@ -88,13 +88,6 @@ $(1)_KCONFIG_DEPENDENCIES = \
|
|||||||
$(BR2_BISON_HOST_DEPENDENCY) \
|
$(BR2_BISON_HOST_DEPENDENCY) \
|
||||||
$(BR2_FLEX_HOST_DEPENDENCY)
|
$(BR2_FLEX_HOST_DEPENDENCY)
|
||||||
|
|
||||||
ifeq ($$(BR2_TARGET_$(1)_BAREBOXENV),y)
|
|
||||||
define $(1)_BUILD_BAREBOXENV_CMDS
|
|
||||||
$$(TARGET_CC) $$(TARGET_CFLAGS) $$(TARGET_LDFLAGS) -o $$(@D)/bareboxenv \
|
|
||||||
$$(@D)/scripts/bareboxenv.c
|
|
||||||
endef
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($$(BR2_TARGET_$(1)_CUSTOM_ENV),y)
|
ifeq ($$(BR2_TARGET_$(1)_CUSTOM_ENV),y)
|
||||||
$(1)_ENV_NAME = $$(notdir $$(call qstrip,\
|
$(1)_ENV_NAME = $$(notdir $$(call qstrip,\
|
||||||
$$(BR2_TARGET_$(1)_CUSTOM_ENV_PATH)))
|
$$(BR2_TARGET_$(1)_CUSTOM_ENV_PATH)))
|
||||||
@@ -109,12 +102,23 @@ endef
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($$($(1)_CUSTOM_EMBEDDED_ENV_PATH),)
|
ifneq ($$($(1)_CUSTOM_EMBEDDED_ENV_PATH),)
|
||||||
define $(1)_KCONFIG_FIXUP_CMDS
|
define $(1)_KCONFIG_FIXUP_CUSTOM_EMBEDDED_ENV_PATH
|
||||||
$$(call KCONFIG_ENABLE_OPT,CONFIG_DEFAULT_ENVIRONMENT,$$(@D)/.config)
|
$$(call KCONFIG_ENABLE_OPT,CONFIG_DEFAULT_ENVIRONMENT)
|
||||||
$$(call KCONFIG_SET_OPT,CONFIG_DEFAULT_ENVIRONMENT_PATH,"$$($(1)_CUSTOM_EMBEDDED_ENV_PATH)",$$(@D)/.config)
|
$$(call KCONFIG_SET_OPT,CONFIG_DEFAULT_ENVIRONMENT_PATH,"$$($(1)_CUSTOM_EMBEDDED_ENV_PATH)")
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
define $(1)_KCONFIG_FIXUP_BAREBOXENV
|
||||||
|
$$(if $$(BR2_TARGET_$(1)_BAREBOXENV),\
|
||||||
|
$$(call KCONFIG_ENABLE_OPT,CONFIG_BAREBOXENV_TARGET),\
|
||||||
|
$$(call KCONFIG_DISABLE_OPT,CONFIG_BAREBOXENV_TARGET))
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(1)_KCONFIG_FIXUP_CMDS
|
||||||
|
$$($(1)_KCONFIG_FIXUP_CUSTOM_EMBEDDED_ENV_PATH)
|
||||||
|
$$($(1)_KCONFIG_FIXUP_BAREBOXENV)
|
||||||
|
endef
|
||||||
|
|
||||||
define $(1)_BUILD_CMDS
|
define $(1)_BUILD_CMDS
|
||||||
$$($(1)_BUILD_BAREBOXENV_CMDS)
|
$$($(1)_BUILD_BAREBOXENV_CMDS)
|
||||||
$$(TARGET_MAKE_ENV) $$(MAKE) $$($(1)_MAKE_FLAGS) -C $$(@D)
|
$$(TARGET_MAKE_ENV) $$(MAKE) $$($(1)_MAKE_FLAGS) -C $$(@D)
|
||||||
@@ -136,7 +140,7 @@ endef
|
|||||||
|
|
||||||
ifeq ($$(BR2_TARGET_$(1)_BAREBOXENV),y)
|
ifeq ($$(BR2_TARGET_$(1)_BAREBOXENV),y)
|
||||||
define $(1)_INSTALL_TARGET_CMDS
|
define $(1)_INSTALL_TARGET_CMDS
|
||||||
cp $$(@D)/bareboxenv $$(TARGET_DIR)/usr/bin
|
cp $$(@D)/scripts/bareboxenv-target $$(TARGET_DIR)/usr/bin/bareboxenv
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,73 @@
|
|||||||
|
From a7ab0cc98fa89a3d5098c29cbe44bcd24b0a6454 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Jones <pjones@redhat.com>
|
||||||
|
Date: Wed, 15 Apr 2020 15:45:02 -0400
|
||||||
|
Subject: [PATCH] yylex: Make lexer fatal errors actually be fatal
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
When presented with a command that can't be tokenized to anything
|
||||||
|
smaller than YYLMAX characters, the parser calls YY_FATAL_ERROR(errmsg),
|
||||||
|
expecting that will stop further processing, as such:
|
||||||
|
|
||||||
|
#define YY_DO_BEFORE_ACTION \
|
||||||
|
yyg->yytext_ptr = yy_bp; \
|
||||||
|
yyleng = (int) (yy_cp - yy_bp); \
|
||||||
|
yyg->yy_hold_char = *yy_cp; \
|
||||||
|
*yy_cp = '\0'; \
|
||||||
|
if ( yyleng >= YYLMAX ) \
|
||||||
|
YY_FATAL_ERROR( "token too large, exceeds YYLMAX" ); \
|
||||||
|
yy_flex_strncpy( yytext, yyg->yytext_ptr, yyleng + 1 , yyscanner); \
|
||||||
|
yyg->yy_c_buf_p = yy_cp;
|
||||||
|
|
||||||
|
The code flex generates expects that YY_FATAL_ERROR() will either return
|
||||||
|
for it or do some form of longjmp(), or handle the error in some way at
|
||||||
|
least, and so the strncpy() call isn't in an "else" clause, and thus if
|
||||||
|
YY_FATAL_ERROR() is *not* actually fatal, it does the call with the
|
||||||
|
questionable limit, and predictable results ensue.
|
||||||
|
|
||||||
|
Unfortunately, our implementation of YY_FATAL_ERROR() is:
|
||||||
|
|
||||||
|
#define YY_FATAL_ERROR(msg) \
|
||||||
|
do { \
|
||||||
|
grub_printf (_("fatal error: %s\n"), _(msg)); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
The same pattern exists in yyless(), and similar problems exist in users
|
||||||
|
of YY_INPUT(), several places in the main parsing loop,
|
||||||
|
yy_get_next_buffer(), yy_load_buffer_state(), yyensure_buffer_stack,
|
||||||
|
yy_scan_buffer(), etc.
|
||||||
|
|
||||||
|
All of these callers expect YY_FATAL_ERROR() to actually be fatal, and
|
||||||
|
the things they do if it returns after calling it are wildly unsafe.
|
||||||
|
|
||||||
|
Fixes: CVE-2020-10713
|
||||||
|
|
||||||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||||||
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||||
|
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
|
||||||
|
---
|
||||||
|
grub-core/script/yylex.l | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/grub-core/script/yylex.l b/grub-core/script/yylex.l
|
||||||
|
index 7b44c37b7..b7203c823 100644
|
||||||
|
--- a/grub-core/script/yylex.l
|
||||||
|
+++ b/grub-core/script/yylex.l
|
||||||
|
@@ -37,11 +37,11 @@
|
||||||
|
|
||||||
|
/*
|
||||||
|
* As we don't have access to yyscanner, we cannot do much except to
|
||||||
|
- * print the fatal error.
|
||||||
|
+ * print the fatal error and exit.
|
||||||
|
*/
|
||||||
|
#define YY_FATAL_ERROR(msg) \
|
||||||
|
do { \
|
||||||
|
- grub_printf (_("fatal error: %s\n"), _(msg)); \
|
||||||
|
+ grub_fatal (_("fatal error: %s\n"), _(msg));\
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
#define COPY(str, hint) \
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
@@ -0,0 +1,128 @@
|
|||||||
|
From 782a4580a5e347793443aa8e9152db1bf4a0fff8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Jones <pjones@redhat.com>
|
||||||
|
Date: Mon, 15 Jun 2020 10:58:42 -0400
|
||||||
|
Subject: [PATCH] safemath: Add some arithmetic primitives that check for
|
||||||
|
overflow
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
This adds a new header, include/grub/safemath.h, that includes easy to
|
||||||
|
use wrappers for __builtin_{add,sub,mul}_overflow() declared like:
|
||||||
|
|
||||||
|
bool OP(a, b, res)
|
||||||
|
|
||||||
|
where OP is grub_add, grub_sub or grub_mul. OP() returns true in the
|
||||||
|
case where the operation would overflow and res is not modified.
|
||||||
|
Otherwise, false is returned and the operation is executed.
|
||||||
|
|
||||||
|
These arithmetic primitives require newer compiler versions. So, bump
|
||||||
|
these requirements in the INSTALL file too.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||||||
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||||
|
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
|
||||||
|
---
|
||||||
|
INSTALL | 22 ++--------------------
|
||||||
|
include/grub/compiler.h | 8 ++++++++
|
||||||
|
include/grub/safemath.h | 37 +++++++++++++++++++++++++++++++++++++
|
||||||
|
3 files changed, 47 insertions(+), 20 deletions(-)
|
||||||
|
create mode 100644 include/grub/safemath.h
|
||||||
|
|
||||||
|
diff --git a/INSTALL b/INSTALL
|
||||||
|
index 8acb40902..dcb9b7d7b 100644
|
||||||
|
--- a/INSTALL
|
||||||
|
+++ b/INSTALL
|
||||||
|
@@ -11,27 +11,9 @@ GRUB depends on some software packages installed into your system. If
|
||||||
|
you don't have any of them, please obtain and install them before
|
||||||
|
configuring the GRUB.
|
||||||
|
|
||||||
|
-* GCC 4.1.3 or later
|
||||||
|
- Note: older versions may work but support is limited
|
||||||
|
-
|
||||||
|
- Experimental support for clang 3.3 or later (results in much bigger binaries)
|
||||||
|
+* GCC 5.1.0 or later
|
||||||
|
+ Experimental support for clang 3.8.0 or later (results in much bigger binaries)
|
||||||
|
for i386, x86_64, arm (including thumb), arm64, mips(el), powerpc, sparc64
|
||||||
|
- Note: clang 3.2 or later works for i386 and x86_64 targets but results in
|
||||||
|
- much bigger binaries.
|
||||||
|
- earlier versions not tested
|
||||||
|
- Note: clang 3.2 or later works for arm
|
||||||
|
- earlier versions not tested
|
||||||
|
- Note: clang on arm64 is not supported due to
|
||||||
|
- https://llvm.org/bugs/show_bug.cgi?id=26030
|
||||||
|
- Note: clang 3.3 or later works for mips(el)
|
||||||
|
- earlier versions fail to generate .reginfo and hence gprel relocations
|
||||||
|
- fail.
|
||||||
|
- Note: clang 3.2 or later works for powerpc
|
||||||
|
- earlier versions not tested
|
||||||
|
- Note: clang 3.5 or later works for sparc64
|
||||||
|
- earlier versions return "error: unable to interface with target machine"
|
||||||
|
- Note: clang has no support for ia64 and hence you can't compile GRUB
|
||||||
|
- for ia64 with clang
|
||||||
|
* GNU Make
|
||||||
|
* GNU Bison 2.3 or later
|
||||||
|
* GNU gettext 0.17 or later
|
||||||
|
diff --git a/include/grub/compiler.h b/include/grub/compiler.h
|
||||||
|
index c9e1d7a73..8f3be3ae7 100644
|
||||||
|
--- a/include/grub/compiler.h
|
||||||
|
+++ b/include/grub/compiler.h
|
||||||
|
@@ -48,4 +48,12 @@
|
||||||
|
# define WARN_UNUSED_RESULT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if defined(__clang__) && defined(__clang_major__) && defined(__clang_minor__)
|
||||||
|
+# define CLANG_PREREQ(maj,min) \
|
||||||
|
+ ((__clang_major__ > (maj)) || \
|
||||||
|
+ (__clang_major__ == (maj) && __clang_minor__ >= (min)))
|
||||||
|
+#else
|
||||||
|
+# define CLANG_PREREQ(maj,min) 0
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#endif /* ! GRUB_COMPILER_HEADER */
|
||||||
|
diff --git a/include/grub/safemath.h b/include/grub/safemath.h
|
||||||
|
new file mode 100644
|
||||||
|
index 000000000..c17b89bba
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/include/grub/safemath.h
|
||||||
|
@@ -0,0 +1,37 @@
|
||||||
|
+/*
|
||||||
|
+ * GRUB -- GRand Unified Bootloader
|
||||||
|
+ * Copyright (C) 2020 Free Software Foundation, Inc.
|
||||||
|
+ *
|
||||||
|
+ * GRUB 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 3 of the License, or
|
||||||
|
+ * (at your option) any later version.
|
||||||
|
+ *
|
||||||
|
+ * GRUB 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 GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
+ *
|
||||||
|
+ * Arithmetic operations that protect against overflow.
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#ifndef GRUB_SAFEMATH_H
|
||||||
|
+#define GRUB_SAFEMATH_H 1
|
||||||
|
+
|
||||||
|
+#include <grub/compiler.h>
|
||||||
|
+
|
||||||
|
+/* These appear in gcc 5.1 and clang 3.8. */
|
||||||
|
+#if GNUC_PREREQ(5, 1) || CLANG_PREREQ(3, 8)
|
||||||
|
+
|
||||||
|
+#define grub_add(a, b, res) __builtin_add_overflow(a, b, res)
|
||||||
|
+#define grub_sub(a, b, res) __builtin_sub_overflow(a, b, res)
|
||||||
|
+#define grub_mul(a, b, res) __builtin_mul_overflow(a, b, res)
|
||||||
|
+
|
||||||
|
+#else
|
||||||
|
+#error gcc 5.1 or newer or clang 3.8 or newer is required
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#endif /* GRUB_SAFEMATH_H */
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
@@ -0,0 +1,246 @@
|
|||||||
|
From 5775eb40862b67468ced816e6d7560dbe22a3670 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Jones <pjones@redhat.com>
|
||||||
|
Date: Mon, 15 Jun 2020 12:15:29 -0400
|
||||||
|
Subject: [PATCH] calloc: Make sure we always have an overflow-checking
|
||||||
|
calloc() available
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
This tries to make sure that everywhere in this source tree, we always have
|
||||||
|
an appropriate version of calloc() (i.e. grub_calloc(), xcalloc(), etc.)
|
||||||
|
available, and that they all safely check for overflow and return NULL when
|
||||||
|
it would occur.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||||||
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||||
|
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
|
||||||
|
---
|
||||||
|
grub-core/kern/emu/misc.c | 12 +++++++++
|
||||||
|
grub-core/kern/emu/mm.c | 10 ++++++++
|
||||||
|
grub-core/kern/mm.c | 40 ++++++++++++++++++++++++++++++
|
||||||
|
grub-core/lib/libgcrypt_wrap/mem.c | 11 ++++++--
|
||||||
|
grub-core/lib/posix_wrap/stdlib.h | 8 +++++-
|
||||||
|
include/grub/emu/misc.h | 1 +
|
||||||
|
include/grub/mm.h | 6 +++++
|
||||||
|
7 files changed, 85 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/grub-core/kern/emu/misc.c b/grub-core/kern/emu/misc.c
|
||||||
|
index 65db79baa..dfd8a8ec4 100644
|
||||||
|
--- a/grub-core/kern/emu/misc.c
|
||||||
|
+++ b/grub-core/kern/emu/misc.c
|
||||||
|
@@ -85,6 +85,18 @@ grub_util_error (const char *fmt, ...)
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
|
+void *
|
||||||
|
+xcalloc (grub_size_t nmemb, grub_size_t size)
|
||||||
|
+{
|
||||||
|
+ void *p;
|
||||||
|
+
|
||||||
|
+ p = calloc (nmemb, size);
|
||||||
|
+ if (!p)
|
||||||
|
+ grub_util_error ("%s", _("out of memory"));
|
||||||
|
+
|
||||||
|
+ return p;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void *
|
||||||
|
xmalloc (grub_size_t size)
|
||||||
|
{
|
||||||
|
diff --git a/grub-core/kern/emu/mm.c b/grub-core/kern/emu/mm.c
|
||||||
|
index f262e95e3..145b01d37 100644
|
||||||
|
--- a/grub-core/kern/emu/mm.c
|
||||||
|
+++ b/grub-core/kern/emu/mm.c
|
||||||
|
@@ -25,6 +25,16 @@
|
||||||
|
#include <string.h>
|
||||||
|
#include <grub/i18n.h>
|
||||||
|
|
||||||
|
+void *
|
||||||
|
+grub_calloc (grub_size_t nmemb, grub_size_t size)
|
||||||
|
+{
|
||||||
|
+ void *ret;
|
||||||
|
+ ret = calloc (nmemb, size);
|
||||||
|
+ if (!ret)
|
||||||
|
+ grub_error (GRUB_ERR_OUT_OF_MEMORY, N_("out of memory"));
|
||||||
|
+ return ret;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void *
|
||||||
|
grub_malloc (grub_size_t size)
|
||||||
|
{
|
||||||
|
diff --git a/grub-core/kern/mm.c b/grub-core/kern/mm.c
|
||||||
|
index ee88ff611..f2822a836 100644
|
||||||
|
--- a/grub-core/kern/mm.c
|
||||||
|
+++ b/grub-core/kern/mm.c
|
||||||
|
@@ -67,8 +67,10 @@
|
||||||
|
#include <grub/dl.h>
|
||||||
|
#include <grub/i18n.h>
|
||||||
|
#include <grub/mm_private.h>
|
||||||
|
+#include <grub/safemath.h>
|
||||||
|
|
||||||
|
#ifdef MM_DEBUG
|
||||||
|
+# undef grub_calloc
|
||||||
|
# undef grub_malloc
|
||||||
|
# undef grub_zalloc
|
||||||
|
# undef grub_realloc
|
||||||
|
@@ -375,6 +377,30 @@ grub_memalign (grub_size_t align, grub_size_t size)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/*
|
||||||
|
+ * Allocate NMEMB instances of SIZE bytes and return the pointer, or error on
|
||||||
|
+ * integer overflow.
|
||||||
|
+ */
|
||||||
|
+void *
|
||||||
|
+grub_calloc (grub_size_t nmemb, grub_size_t size)
|
||||||
|
+{
|
||||||
|
+ void *ret;
|
||||||
|
+ grub_size_t sz = 0;
|
||||||
|
+
|
||||||
|
+ if (grub_mul (nmemb, size, &sz))
|
||||||
|
+ {
|
||||||
|
+ grub_error (GRUB_ERR_OUT_OF_RANGE, N_("overflow is detected"));
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ ret = grub_memalign (0, sz);
|
||||||
|
+ if (!ret)
|
||||||
|
+ return NULL;
|
||||||
|
+
|
||||||
|
+ grub_memset (ret, 0, sz);
|
||||||
|
+ return ret;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
/* Allocate SIZE bytes and return the pointer. */
|
||||||
|
void *
|
||||||
|
grub_malloc (grub_size_t size)
|
||||||
|
@@ -561,6 +587,20 @@ grub_mm_dump (unsigned lineno)
|
||||||
|
grub_printf ("\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
+void *
|
||||||
|
+grub_debug_calloc (const char *file, int line, grub_size_t nmemb, grub_size_t size)
|
||||||
|
+{
|
||||||
|
+ void *ptr;
|
||||||
|
+
|
||||||
|
+ if (grub_mm_debug)
|
||||||
|
+ grub_printf ("%s:%d: calloc (0x%" PRIxGRUB_SIZE ", 0x%" PRIxGRUB_SIZE ") = ",
|
||||||
|
+ file, line, size);
|
||||||
|
+ ptr = grub_calloc (nmemb, size);
|
||||||
|
+ if (grub_mm_debug)
|
||||||
|
+ grub_printf ("%p\n", ptr);
|
||||||
|
+ return ptr;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void *
|
||||||
|
grub_debug_malloc (const char *file, int line, grub_size_t size)
|
||||||
|
{
|
||||||
|
diff --git a/grub-core/lib/libgcrypt_wrap/mem.c b/grub-core/lib/libgcrypt_wrap/mem.c
|
||||||
|
index beeb661a3..74c6eafe5 100644
|
||||||
|
--- a/grub-core/lib/libgcrypt_wrap/mem.c
|
||||||
|
+++ b/grub-core/lib/libgcrypt_wrap/mem.c
|
||||||
|
@@ -4,6 +4,7 @@
|
||||||
|
#include <grub/crypto.h>
|
||||||
|
#include <grub/dl.h>
|
||||||
|
#include <grub/env.h>
|
||||||
|
+#include <grub/safemath.h>
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
|
@@ -36,7 +37,10 @@ void *
|
||||||
|
gcry_xcalloc (size_t n, size_t m)
|
||||||
|
{
|
||||||
|
void *ret;
|
||||||
|
- ret = grub_zalloc (n * m);
|
||||||
|
+ size_t sz;
|
||||||
|
+ if (grub_mul (n, m, &sz))
|
||||||
|
+ grub_fatal ("gcry_xcalloc would overflow");
|
||||||
|
+ ret = grub_zalloc (sz);
|
||||||
|
if (!ret)
|
||||||
|
grub_fatal ("gcry_xcalloc failed");
|
||||||
|
return ret;
|
||||||
|
@@ -56,7 +60,10 @@ void *
|
||||||
|
gcry_xcalloc_secure (size_t n, size_t m)
|
||||||
|
{
|
||||||
|
void *ret;
|
||||||
|
- ret = grub_zalloc (n * m);
|
||||||
|
+ size_t sz;
|
||||||
|
+ if (grub_mul (n, m, &sz))
|
||||||
|
+ grub_fatal ("gcry_xcalloc would overflow");
|
||||||
|
+ ret = grub_zalloc (sz);
|
||||||
|
if (!ret)
|
||||||
|
grub_fatal ("gcry_xcalloc failed");
|
||||||
|
return ret;
|
||||||
|
diff --git a/grub-core/lib/posix_wrap/stdlib.h b/grub-core/lib/posix_wrap/stdlib.h
|
||||||
|
index 3b46f47ff..7a8d385e9 100644
|
||||||
|
--- a/grub-core/lib/posix_wrap/stdlib.h
|
||||||
|
+++ b/grub-core/lib/posix_wrap/stdlib.h
|
||||||
|
@@ -21,6 +21,7 @@
|
||||||
|
|
||||||
|
#include <grub/mm.h>
|
||||||
|
#include <grub/misc.h>
|
||||||
|
+#include <grub/safemath.h>
|
||||||
|
|
||||||
|
static inline void
|
||||||
|
free (void *ptr)
|
||||||
|
@@ -37,7 +38,12 @@ malloc (grub_size_t size)
|
||||||
|
static inline void *
|
||||||
|
calloc (grub_size_t size, grub_size_t nelem)
|
||||||
|
{
|
||||||
|
- return grub_zalloc (size * nelem);
|
||||||
|
+ grub_size_t sz;
|
||||||
|
+
|
||||||
|
+ if (grub_mul (size, nelem, &sz))
|
||||||
|
+ return NULL;
|
||||||
|
+
|
||||||
|
+ return grub_zalloc (sz);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void *
|
||||||
|
diff --git a/include/grub/emu/misc.h b/include/grub/emu/misc.h
|
||||||
|
index ce464cfd0..ff9c48a64 100644
|
||||||
|
--- a/include/grub/emu/misc.h
|
||||||
|
+++ b/include/grub/emu/misc.h
|
||||||
|
@@ -47,6 +47,7 @@ grub_util_device_is_mapped (const char *dev);
|
||||||
|
#define GRUB_HOST_PRIuLONG_LONG "llu"
|
||||||
|
#define GRUB_HOST_PRIxLONG_LONG "llx"
|
||||||
|
|
||||||
|
+void * EXPORT_FUNC(xcalloc) (grub_size_t nmemb, grub_size_t size) WARN_UNUSED_RESULT;
|
||||||
|
void * EXPORT_FUNC(xmalloc) (grub_size_t size) WARN_UNUSED_RESULT;
|
||||||
|
void * EXPORT_FUNC(xrealloc) (void *ptr, grub_size_t size) WARN_UNUSED_RESULT;
|
||||||
|
char * EXPORT_FUNC(xstrdup) (const char *str) WARN_UNUSED_RESULT;
|
||||||
|
diff --git a/include/grub/mm.h b/include/grub/mm.h
|
||||||
|
index 28e2e53eb..9c38dd3ca 100644
|
||||||
|
--- a/include/grub/mm.h
|
||||||
|
+++ b/include/grub/mm.h
|
||||||
|
@@ -29,6 +29,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void grub_mm_init_region (void *addr, grub_size_t size);
|
||||||
|
+void *EXPORT_FUNC(grub_calloc) (grub_size_t nmemb, grub_size_t size);
|
||||||
|
void *EXPORT_FUNC(grub_malloc) (grub_size_t size);
|
||||||
|
void *EXPORT_FUNC(grub_zalloc) (grub_size_t size);
|
||||||
|
void EXPORT_FUNC(grub_free) (void *ptr);
|
||||||
|
@@ -48,6 +49,9 @@ extern int EXPORT_VAR(grub_mm_debug);
|
||||||
|
void grub_mm_dump_free (void);
|
||||||
|
void grub_mm_dump (unsigned lineno);
|
||||||
|
|
||||||
|
+#define grub_calloc(nmemb, size) \
|
||||||
|
+ grub_debug_calloc (GRUB_FILE, __LINE__, nmemb, size)
|
||||||
|
+
|
||||||
|
#define grub_malloc(size) \
|
||||||
|
grub_debug_malloc (GRUB_FILE, __LINE__, size)
|
||||||
|
|
||||||
|
@@ -63,6 +67,8 @@ void grub_mm_dump (unsigned lineno);
|
||||||
|
#define grub_free(ptr) \
|
||||||
|
grub_debug_free (GRUB_FILE, __LINE__, ptr)
|
||||||
|
|
||||||
|
+void *EXPORT_FUNC(grub_debug_calloc) (const char *file, int line,
|
||||||
|
+ grub_size_t nmemb, grub_size_t size);
|
||||||
|
void *EXPORT_FUNC(grub_debug_malloc) (const char *file, int line,
|
||||||
|
grub_size_t size);
|
||||||
|
void *EXPORT_FUNC(grub_debug_zalloc) (const char *file, int line,
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
1840
buildroot/boot/grub2/0005-calloc-Use-calloc-at-most-places.patch
Normal file
1840
buildroot/boot/grub2/0005-calloc-Use-calloc-at-most-places.patch
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,72 @@
|
|||||||
|
From e0dd17a3ce79c6622dc78c96e1f2ef1b20e2bf7b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Jones <pjones@redhat.com>
|
||||||
|
Date: Sat, 4 Jul 2020 12:25:09 -0400
|
||||||
|
Subject: [PATCH] iso9660: Don't leak memory on realloc() failures
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||||||
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||||
|
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
|
||||||
|
---
|
||||||
|
grub-core/fs/iso9660.c | 24 ++++++++++++++++++++----
|
||||||
|
1 file changed, 20 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/grub-core/fs/iso9660.c b/grub-core/fs/iso9660.c
|
||||||
|
index 7ba5b300b..5ec4433b8 100644
|
||||||
|
--- a/grub-core/fs/iso9660.c
|
||||||
|
+++ b/grub-core/fs/iso9660.c
|
||||||
|
@@ -533,14 +533,20 @@ add_part (struct iterate_dir_ctx *ctx,
|
||||||
|
{
|
||||||
|
int size = ctx->symlink ? grub_strlen (ctx->symlink) : 0;
|
||||||
|
grub_size_t sz;
|
||||||
|
+ char *new;
|
||||||
|
|
||||||
|
if (grub_add (size, len2, &sz) ||
|
||||||
|
grub_add (sz, 1, &sz))
|
||||||
|
return;
|
||||||
|
|
||||||
|
- ctx->symlink = grub_realloc (ctx->symlink, sz);
|
||||||
|
- if (! ctx->symlink)
|
||||||
|
- return;
|
||||||
|
+ new = grub_realloc (ctx->symlink, sz);
|
||||||
|
+ if (!new)
|
||||||
|
+ {
|
||||||
|
+ grub_free (ctx->symlink);
|
||||||
|
+ ctx->symlink = NULL;
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+ ctx->symlink = new;
|
||||||
|
|
||||||
|
grub_memcpy (ctx->symlink + size, part, len2);
|
||||||
|
ctx->symlink[size + len2] = 0;
|
||||||
|
@@ -634,7 +640,12 @@ susp_iterate_dir (struct grub_iso9660_susp_entry *entry,
|
||||||
|
is the length. Both are part of the `Component
|
||||||
|
Record'. */
|
||||||
|
if (ctx->symlink && !ctx->was_continue)
|
||||||
|
- add_part (ctx, "/", 1);
|
||||||
|
+ {
|
||||||
|
+ add_part (ctx, "/", 1);
|
||||||
|
+ if (grub_errno)
|
||||||
|
+ return grub_errno;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
add_part (ctx, (char *) &entry->data[pos + 2],
|
||||||
|
entry->data[pos + 1]);
|
||||||
|
ctx->was_continue = (entry->data[pos] & 1);
|
||||||
|
@@ -653,6 +664,11 @@ susp_iterate_dir (struct grub_iso9660_susp_entry *entry,
|
||||||
|
add_part (ctx, "/", 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ /* Check if grub_realloc() failed in add_part(). */
|
||||||
|
+ if (grub_errno)
|
||||||
|
+ return grub_errno;
|
||||||
|
+
|
||||||
|
/* In pos + 1 the length of the `Component Record' is
|
||||||
|
stored. */
|
||||||
|
pos += entry->data[pos + 1] + 2;
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
From 73bc7a964c9496d5b0f00dbd69959dacf5adcebe Mon Sep 17 00:00:00 2001
|
||||||
|
From: Daniel Kiper <daniel.kiper@oracle.com>
|
||||||
|
Date: Tue, 7 Jul 2020 15:36:26 +0200
|
||||||
|
Subject: [PATCH] font: Do not load more than one NAME section
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
The GRUB font file can have one NAME section only. Though if somebody
|
||||||
|
crafts a broken font file with many NAME sections and loads it then the
|
||||||
|
GRUB leaks memory. So, prevent against that by loading first NAME
|
||||||
|
section and failing in controlled way on following one.
|
||||||
|
|
||||||
|
Reported-by: Chris Coulson <chris.coulson@canonical.com>
|
||||||
|
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||||
|
Reviewed-by: Jan Setje-Eilers <jan.setjeeilers@oracle.com>
|
||||||
|
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
|
||||||
|
---
|
||||||
|
grub-core/font/font.c | 6 ++++++
|
||||||
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/grub-core/font/font.c b/grub-core/font/font.c
|
||||||
|
index 5edb477ac..d09bb38d8 100644
|
||||||
|
--- a/grub-core/font/font.c
|
||||||
|
+++ b/grub-core/font/font.c
|
||||||
|
@@ -532,6 +532,12 @@ grub_font_load (const char *filename)
|
||||||
|
if (grub_memcmp (section.name, FONT_FORMAT_SECTION_NAMES_FONT_NAME,
|
||||||
|
sizeof (FONT_FORMAT_SECTION_NAMES_FONT_NAME) - 1) == 0)
|
||||||
|
{
|
||||||
|
+ if (font->name != NULL)
|
||||||
|
+ {
|
||||||
|
+ grub_error (GRUB_ERR_BAD_FONT, "invalid font file: too many NAME sections");
|
||||||
|
+ goto fail;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
font->name = read_section_as_string (§ion);
|
||||||
|
if (!font->name)
|
||||||
|
goto fail;
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user