SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,64 @@
VERSION= 2021.10
REVISION= 7
SOC= arm
SOC_CPU= arm
OMAP=\
omap4_panda \
am335x_evm
SUNXI64=
SUNXI=\
A10-OLinuXino-Lime \
A10s-OLinuXino-M \
A20-OLinuXino-Lime \
A20-OLinuXino-Lime2 \
A20-OLinuXino-Lime2-eMMC \
A20-OLinuXino_MICRO \
Bananapi \
Bananapi_M2_Ultra \
Bananapi_m2m \
bananapi_m2_plus_h3 \
bananapi_m2_zero \
Bananapro \
CHIP \
Cubieboard \
Cubieboard2 \
Cubieboard4 \
Cubietruck \
Lamobo_R1 \
Linksprite_pcDuino \
Linksprite_pcDuino3 \
Linksprite_pcDuino3_Nano \
nanopi_neo \
Orangepi \
Orangepi_mini \
orangepi_2 \
orangepi_lite \
orangepi_one \
orangepi_pc \
orangepi_pc_plus \
orangepi_plus \
orangepi_plus2e \
orangepi_zero
IMX=\
cm_fx6 \
mx6cuboxi \
mx6qsabrelite \
nitrogen6q \
novena \
udoo \
usbarmory \
wandboard
BOARDS=\
${OMAP} \
${SUNXI} \
${IMX} \
clearfog \
qemu_arm \
rpi_2 \
rpi_3_32b \
tinker-rk3288 \
turris_omnia
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (u-boot-2021.10.tar.bz2) = zecj4ZJi5kbyZw0l5exLGzaEkN6VDU4mJ1qYjDbfC9Q=
SIZE (u-boot-2021.10.tar.bz2) = 17358295

View file

@ -0,0 +1,28 @@
rpi: Use firmware provided device tree
Currently the firmware generates a device tree for us that we could
just use to adjust ourselves. We then on boot throw that away and
use our own built-in device tree to configure device access.
This is bad for a multitude of reasons. For starters, it breaks
overlay support in config.txt, confusing users. Much worse however
is that we are stuck with individual U-Boot builds per board.
The firmware can easily give us the right DT depending on the
target board and revision though.
So let's use the firmware provided device tree instead. That way
U-Boot as well as payloads loaded by it can automatically adapt
to variants of RPi hardware.
Index: configs/rpi_2_defconfig
--- configs/rpi_2_defconfig.orig
+++ configs/rpi_2_defconfig
@@ -17,7 +17,7 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
-CONFIG_OF_EMBED=y
+CONFIG_OF_BOARD=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y

View file

@ -0,0 +1,28 @@
rpi: Use firmware provided device tree
Currently the firmware generates a device tree for us that we could
just use to adjust ourselves. We then on boot throw that away and
use our own built-in device tree to configure device access.
This is bad for a multitude of reasons. For starters, it breaks
overlay support in config.txt, confusing users. Much worse however
is that we are stuck with individual U-Boot builds per board.
The firmware can easily give us the right DT depending on the
target board and revision though.
So let's use the firmware provided device tree instead. That way
U-Boot as well as payloads loaded by it can automatically adapt
to variants of RPi hardware.
Index: configs/rpi_3_32b_defconfig
--- configs/rpi_3_32b_defconfig.orig
+++ configs/rpi_3_32b_defconfig
@@ -18,7 +18,7 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
CONFIG_CMD_FS_UUID=y
-CONFIG_OF_EMBED=y
+CONFIG_OF_BOARD=y
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y

View file

@ -0,0 +1,42 @@
revert 'pci: brcmstb: Cleanup controller state before handover'
85f3fddbcc2e8282f1c26dcef4684f59490d47ba
resetting pcie breaks pcie xhci on rpi4
Index: drivers/pci/pcie_brcmstb.c
--- drivers/pci/pcie_brcmstb.c.orig
+++ drivers/pci/pcie_brcmstb.c
@@ -577,24 +577,6 @@ static int brcm_pcie_probe(struct udevice *dev)
return 0;
}
-static int brcm_pcie_remove(struct udevice *dev)
-{
- struct brcm_pcie *pcie = dev_get_priv(dev);
- void __iomem *base = pcie->base;
-
- /* Assert fundamental reset */
- setbits_le32(base + PCIE_RGR1_SW_INIT_1, RGR1_SW_INIT_1_PERST_MASK);
-
- /* Turn off SerDes */
- setbits_le32(base + PCIE_MISC_HARD_PCIE_HARD_DEBUG,
- PCIE_HARD_DEBUG_SERDES_IDDQ_MASK);
-
- /* Shutdown bridge */
- setbits_le32(base + PCIE_RGR1_SW_INIT_1, RGR1_SW_INIT_1_INIT_MASK);
-
- return 0;
-}
-
static int brcm_pcie_of_to_plat(struct udevice *dev)
{
struct brcm_pcie *pcie = dev_get_priv(dev);
@@ -634,8 +616,6 @@ U_BOOT_DRIVER(pcie_brcm_base) = {
.ops = &brcm_pcie_ops,
.of_match = brcm_pcie_ids,
.probe = brcm_pcie_probe,
- .remove = brcm_pcie_remove,
.of_to_plat = brcm_pcie_of_to_plat,
.priv_auto = sizeof(struct brcm_pcie),
- .flags = DM_FLAG_OS_PREPARE,
};

View file

@ -0,0 +1,8 @@
U-Boot is a firmware for embedded boards based on PowerPC, ARM, MIPS and
several other processors, which can be installed in a boot ROM and used to
initialize and test the hardware or to download and run application code.
As ARM systems often do not come with firmware it must be supplied on
an SD card or MMC device to have a bootable system.
This package provides U-Boot for various boards using ARM processors.

View file

@ -0,0 +1,265 @@
@pkgpath sysutils/u-boot,
@pkgpath sysutils/u-boot,arm
share/u-boot/
share/u-boot/A10-OLinuXino-Lime/
share/u-boot/A10-OLinuXino-Lime/sunxi-spl.bin
@comment share/u-boot/A10-OLinuXino-Lime/u-boot
share/u-boot/A10-OLinuXino-Lime/u-boot-sunxi-with-spl.bin
@comment share/u-boot/A10-OLinuXino-Lime/u-boot.bin
@comment share/u-boot/A10-OLinuXino-Lime/u-boot.img
share/u-boot/A10s-OLinuXino-M/
share/u-boot/A10s-OLinuXino-M/sunxi-spl.bin
@comment share/u-boot/A10s-OLinuXino-M/u-boot
share/u-boot/A10s-OLinuXino-M/u-boot-sunxi-with-spl.bin
@comment share/u-boot/A10s-OLinuXino-M/u-boot.bin
@comment share/u-boot/A10s-OLinuXino-M/u-boot.img
share/u-boot/A20-OLinuXino-Lime/
share/u-boot/A20-OLinuXino-Lime/sunxi-spl.bin
@comment share/u-boot/A20-OLinuXino-Lime/u-boot
share/u-boot/A20-OLinuXino-Lime/u-boot-sunxi-with-spl.bin
@comment share/u-boot/A20-OLinuXino-Lime/u-boot.bin
@comment share/u-boot/A20-OLinuXino-Lime/u-boot.img
share/u-boot/A20-OLinuXino-Lime2/
share/u-boot/A20-OLinuXino-Lime2-eMMC/
share/u-boot/A20-OLinuXino-Lime2-eMMC/sunxi-spl.bin
@comment share/u-boot/A20-OLinuXino-Lime2-eMMC/u-boot
share/u-boot/A20-OLinuXino-Lime2-eMMC/u-boot-sunxi-with-spl.bin
@comment share/u-boot/A20-OLinuXino-Lime2-eMMC/u-boot.bin
@comment share/u-boot/A20-OLinuXino-Lime2-eMMC/u-boot.img
share/u-boot/A20-OLinuXino-Lime2/sunxi-spl.bin
@comment share/u-boot/A20-OLinuXino-Lime2/u-boot
share/u-boot/A20-OLinuXino-Lime2/u-boot-sunxi-with-spl.bin
@comment share/u-boot/A20-OLinuXino-Lime2/u-boot.bin
@comment share/u-boot/A20-OLinuXino-Lime2/u-boot.img
share/u-boot/A20-OLinuXino_MICRO/
share/u-boot/A20-OLinuXino_MICRO/sunxi-spl.bin
@comment share/u-boot/A20-OLinuXino_MICRO/u-boot
share/u-boot/A20-OLinuXino_MICRO/u-boot-sunxi-with-spl.bin
@comment share/u-boot/A20-OLinuXino_MICRO/u-boot.bin
@comment share/u-boot/A20-OLinuXino_MICRO/u-boot.img
share/u-boot/Bananapi/
share/u-boot/Bananapi/sunxi-spl.bin
@comment share/u-boot/Bananapi/u-boot
share/u-boot/Bananapi/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Bananapi/u-boot.bin
@comment share/u-boot/Bananapi/u-boot.img
share/u-boot/Bananapi_M2_Ultra/
share/u-boot/Bananapi_M2_Ultra/sunxi-spl.bin
@comment share/u-boot/Bananapi_M2_Ultra/u-boot
share/u-boot/Bananapi_M2_Ultra/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Bananapi_M2_Ultra/u-boot.bin
@comment share/u-boot/Bananapi_M2_Ultra/u-boot.img
share/u-boot/Bananapi_m2m/
share/u-boot/Bananapi_m2m/sunxi-spl.bin
@comment share/u-boot/Bananapi_m2m/u-boot
share/u-boot/Bananapi_m2m/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Bananapi_m2m/u-boot.bin
@comment share/u-boot/Bananapi_m2m/u-boot.img
share/u-boot/Bananapro/
share/u-boot/Bananapro/sunxi-spl.bin
@comment share/u-boot/Bananapro/u-boot
share/u-boot/Bananapro/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Bananapro/u-boot.bin
@comment share/u-boot/Bananapro/u-boot.img
share/u-boot/CHIP/
share/u-boot/CHIP/sunxi-spl.bin
@comment share/u-boot/CHIP/u-boot
share/u-boot/CHIP/u-boot-sunxi-with-spl.bin
@comment share/u-boot/CHIP/u-boot.bin
@comment share/u-boot/CHIP/u-boot.img
share/u-boot/Cubieboard/
share/u-boot/Cubieboard/sunxi-spl.bin
@comment share/u-boot/Cubieboard/u-boot
share/u-boot/Cubieboard/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Cubieboard/u-boot.bin
@comment share/u-boot/Cubieboard/u-boot.img
share/u-boot/Cubieboard2/
share/u-boot/Cubieboard2/sunxi-spl.bin
@comment share/u-boot/Cubieboard2/u-boot
share/u-boot/Cubieboard2/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Cubieboard2/u-boot.bin
@comment share/u-boot/Cubieboard2/u-boot.img
share/u-boot/Cubieboard4/
share/u-boot/Cubieboard4/sunxi-spl.bin
@comment share/u-boot/Cubieboard4/u-boot
share/u-boot/Cubieboard4/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Cubieboard4/u-boot.bin
@comment share/u-boot/Cubieboard4/u-boot.img
share/u-boot/Cubietruck/
share/u-boot/Cubietruck/sunxi-spl.bin
@comment share/u-boot/Cubietruck/u-boot
share/u-boot/Cubietruck/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Cubietruck/u-boot.bin
@comment share/u-boot/Cubietruck/u-boot.img
share/u-boot/Lamobo_R1/
share/u-boot/Lamobo_R1/sunxi-spl.bin
@comment share/u-boot/Lamobo_R1/u-boot
share/u-boot/Lamobo_R1/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Lamobo_R1/u-boot.bin
@comment share/u-boot/Lamobo_R1/u-boot.img
share/u-boot/Linksprite_pcDuino/
share/u-boot/Linksprite_pcDuino/sunxi-spl.bin
@comment share/u-boot/Linksprite_pcDuino/u-boot
share/u-boot/Linksprite_pcDuino/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Linksprite_pcDuino/u-boot.bin
@comment share/u-boot/Linksprite_pcDuino/u-boot.img
share/u-boot/Linksprite_pcDuino3/
share/u-boot/Linksprite_pcDuino3/sunxi-spl.bin
@comment share/u-boot/Linksprite_pcDuino3/u-boot
share/u-boot/Linksprite_pcDuino3/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Linksprite_pcDuino3/u-boot.bin
@comment share/u-boot/Linksprite_pcDuino3/u-boot.img
share/u-boot/Linksprite_pcDuino3_Nano/
share/u-boot/Linksprite_pcDuino3_Nano/sunxi-spl.bin
@comment share/u-boot/Linksprite_pcDuino3_Nano/u-boot
share/u-boot/Linksprite_pcDuino3_Nano/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Linksprite_pcDuino3_Nano/u-boot.bin
@comment share/u-boot/Linksprite_pcDuino3_Nano/u-boot.img
share/u-boot/Orangepi/
share/u-boot/Orangepi/sunxi-spl.bin
@comment share/u-boot/Orangepi/u-boot
share/u-boot/Orangepi/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Orangepi/u-boot.bin
@comment share/u-boot/Orangepi/u-boot.img
share/u-boot/Orangepi_mini/
share/u-boot/Orangepi_mini/sunxi-spl.bin
@comment share/u-boot/Orangepi_mini/u-boot
share/u-boot/Orangepi_mini/u-boot-sunxi-with-spl.bin
@comment share/u-boot/Orangepi_mini/u-boot.bin
@comment share/u-boot/Orangepi_mini/u-boot.img
share/u-boot/am335x_evm/
share/u-boot/am335x_evm/MLO
@comment share/u-boot/am335x_evm/u-boot
@comment share/u-boot/am335x_evm/u-boot.bin
share/u-boot/am335x_evm/u-boot.img
share/u-boot/bananapi_m2_plus_h3/
share/u-boot/bananapi_m2_plus_h3/sunxi-spl.bin
@comment share/u-boot/bananapi_m2_plus_h3/u-boot
share/u-boot/bananapi_m2_plus_h3/u-boot-sunxi-with-spl.bin
@comment share/u-boot/bananapi_m2_plus_h3/u-boot.bin
@comment share/u-boot/bananapi_m2_plus_h3/u-boot.img
share/u-boot/bananapi_m2_zero/
share/u-boot/bananapi_m2_zero/sunxi-spl.bin
@comment share/u-boot/bananapi_m2_zero/u-boot
share/u-boot/bananapi_m2_zero/u-boot-sunxi-with-spl.bin
@comment share/u-boot/bananapi_m2_zero/u-boot.bin
@comment share/u-boot/bananapi_m2_zero/u-boot.img
share/u-boot/clearfog/
@comment share/u-boot/clearfog/u-boot
share/u-boot/clearfog/u-boot-spl.kwb
@comment share/u-boot/clearfog/u-boot.bin
@comment share/u-boot/clearfog/u-boot.img
share/u-boot/cm_fx6/
share/u-boot/cm_fx6/SPL
@comment share/u-boot/cm_fx6/u-boot
@comment share/u-boot/cm_fx6/u-boot.bin
share/u-boot/cm_fx6/u-boot.img
share/u-boot/mx6cuboxi/
share/u-boot/mx6cuboxi/SPL
@comment share/u-boot/mx6cuboxi/u-boot
@comment share/u-boot/mx6cuboxi/u-boot.bin
share/u-boot/mx6cuboxi/u-boot.img
share/u-boot/mx6qsabrelite/
@comment share/u-boot/mx6qsabrelite/u-boot
share/u-boot/mx6qsabrelite/u-boot-dtb.imx
@comment share/u-boot/mx6qsabrelite/u-boot.bin
share/u-boot/nanopi_neo/
share/u-boot/nanopi_neo/sunxi-spl.bin
@comment share/u-boot/nanopi_neo/u-boot
share/u-boot/nanopi_neo/u-boot-sunxi-with-spl.bin
@comment share/u-boot/nanopi_neo/u-boot.bin
@comment share/u-boot/nanopi_neo/u-boot.img
share/u-boot/nitrogen6q/
@comment share/u-boot/nitrogen6q/u-boot
share/u-boot/nitrogen6q/u-boot-dtb.imx
@comment share/u-boot/nitrogen6q/u-boot.bin
share/u-boot/novena/
share/u-boot/novena/SPL
@comment share/u-boot/novena/u-boot
@comment share/u-boot/novena/u-boot.bin
share/u-boot/novena/u-boot.img
share/u-boot/omap4_panda/
share/u-boot/omap4_panda/MLO
@comment share/u-boot/omap4_panda/u-boot
@comment share/u-boot/omap4_panda/u-boot.bin
share/u-boot/omap4_panda/u-boot.img
share/u-boot/orangepi_2/
share/u-boot/orangepi_2/sunxi-spl.bin
@comment share/u-boot/orangepi_2/u-boot
share/u-boot/orangepi_2/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_2/u-boot.bin
@comment share/u-boot/orangepi_2/u-boot.img
share/u-boot/orangepi_lite/
share/u-boot/orangepi_lite/sunxi-spl.bin
@comment share/u-boot/orangepi_lite/u-boot
share/u-boot/orangepi_lite/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_lite/u-boot.bin
@comment share/u-boot/orangepi_lite/u-boot.img
share/u-boot/orangepi_one/
share/u-boot/orangepi_one/sunxi-spl.bin
@comment share/u-boot/orangepi_one/u-boot
share/u-boot/orangepi_one/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_one/u-boot.bin
@comment share/u-boot/orangepi_one/u-boot.img
share/u-boot/orangepi_pc/
share/u-boot/orangepi_pc/sunxi-spl.bin
@comment share/u-boot/orangepi_pc/u-boot
share/u-boot/orangepi_pc/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_pc/u-boot.bin
@comment share/u-boot/orangepi_pc/u-boot.img
share/u-boot/orangepi_pc_plus/
share/u-boot/orangepi_pc_plus/sunxi-spl.bin
@comment share/u-boot/orangepi_pc_plus/u-boot
share/u-boot/orangepi_pc_plus/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_pc_plus/u-boot.bin
@comment share/u-boot/orangepi_pc_plus/u-boot.img
share/u-boot/orangepi_plus/
share/u-boot/orangepi_plus/sunxi-spl.bin
@comment share/u-boot/orangepi_plus/u-boot
share/u-boot/orangepi_plus/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_plus/u-boot.bin
@comment share/u-boot/orangepi_plus/u-boot.img
share/u-boot/orangepi_plus2e/
share/u-boot/orangepi_plus2e/sunxi-spl.bin
@comment share/u-boot/orangepi_plus2e/u-boot
share/u-boot/orangepi_plus2e/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_plus2e/u-boot.bin
@comment share/u-boot/orangepi_plus2e/u-boot.img
share/u-boot/orangepi_zero/
share/u-boot/orangepi_zero/sunxi-spl.bin
@comment share/u-boot/orangepi_zero/u-boot
share/u-boot/orangepi_zero/u-boot-sunxi-with-spl.bin
@comment share/u-boot/orangepi_zero/u-boot.bin
@comment share/u-boot/orangepi_zero/u-boot.img
share/u-boot/qemu_arm/
share/u-boot/qemu_arm/u-boot
share/u-boot/qemu_arm/u-boot.bin
share/u-boot/rpi_2/
@comment share/u-boot/rpi_2/u-boot
share/u-boot/rpi_2/u-boot.bin
share/u-boot/rpi_3_32b/
@comment share/u-boot/rpi_3_32b/u-boot
share/u-boot/rpi_3_32b/u-boot.bin
share/u-boot/tinker-rk3288/
share/u-boot/tinker-rk3288/idbloader.img
@comment share/u-boot/tinker-rk3288/u-boot
@comment share/u-boot/tinker-rk3288/u-boot.bin
share/u-boot/tinker-rk3288/u-boot.img
share/u-boot/turris_omnia/
@comment share/u-boot/turris_omnia/u-boot
share/u-boot/turris_omnia/u-boot-spl.kwb
@comment share/u-boot/turris_omnia/u-boot.bin
@comment share/u-boot/turris_omnia/u-boot.img
share/u-boot/udoo/
share/u-boot/udoo/SPL
@comment share/u-boot/udoo/u-boot
@comment share/u-boot/udoo/u-boot.bin
share/u-boot/udoo/u-boot.img
share/u-boot/usbarmory/
share/u-boot/usbarmory/u-boot
share/u-boot/usbarmory/u-boot.bin
share/u-boot/wandboard/
share/u-boot/wandboard/SPL
@comment share/u-boot/wandboard/u-boot
@comment share/u-boot/wandboard/u-boot.bin
share/u-boot/wandboard/u-boot.img