diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/Makefile | 7 | ||||
-rw-r--r-- | target/arm/kernel/st-stm32f746g | 31 | ||||
-rw-r--r-- | target/arm/st-stm32f746g/extlinux.conf | 4 | ||||
-rw-r--r-- | target/arm/st-stm32f746g/genimage.cfg | 27 | ||||
-rw-r--r-- | target/arm/systems/st-stm32f746g | 17 | ||||
-rw-r--r-- | target/config/Config.in.kernelfmt | 1 | ||||
-rw-r--r-- | target/config/Config.in.rootfs | 5 | ||||
-rw-r--r-- | target/config/Config.in.runtime | 1 | ||||
-rw-r--r-- | target/config/Config.in.tools | 1 | ||||
-rw-r--r-- | target/linux/Config.in.kernelcfg | 1 | ||||
-rw-r--r-- | target/linux/Config.in.kernelversion | 6 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/alpha-remove-coff.patch (renamed from target/linux/patches/4.14.252/alpha-remove-coff.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/arm-nommu.patch (renamed from target/linux/patches/4.14.252/arm-nommu.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/arm-thumb2.patch (renamed from target/linux/patches/4.14.252/arm-thumb2.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/h8300.patch (renamed from target/linux/patches/4.14.252/h8300.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/initramfs-nosizelimit.patch (renamed from target/linux/patches/4.14.252/initramfs-nosizelimit.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/microblaze-sigaltstack.patch (renamed from target/linux/patches/4.14.252/microblaze-sigaltstack.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/or1k-more-ram.patch (renamed from target/linux/patches/4.14.252/or1k-more-ram.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/startup.patch (renamed from target/linux/patches/4.14.252/startup.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.14.293/vdso2.patch (renamed from target/linux/patches/4.14.252/vdso2.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/arc.patch (renamed from target/linux/patches/4.19.213/arc.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/arm-nommu.patch (renamed from target/linux/patches/4.19.213/arm-nommu.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/darwin-dtc.patch (renamed from target/linux/patches/4.19.213/darwin-dtc.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/darwin-file2alias.patch (renamed from target/linux/patches/4.19.213/darwin-file2alias.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/fec-coldfire.patch (renamed from target/linux/patches/4.19.213/fec-coldfire.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/or1k-more-ram.patch (renamed from target/linux/patches/4.19.213/or1k-more-ram.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/relocs.patch (renamed from target/linux/patches/4.19.213/relocs.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/startup.patch (renamed from target/linux/patches/4.19.213/startup.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/4.19.258/vdso2.patch (renamed from target/linux/patches/4.19.213/vdso2.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/5.19.9/darwin-dtc.patch | 26 | ||||
-rw-r--r-- | target/linux/patches/5.19.9/darwin-file2alias.patch | 14 | ||||
-rw-r--r-- | target/linux/patches/5.19.9/dtc-noyaml.patch | 16 | ||||
-rw-r--r-- | target/linux/patches/5.19.9/or1k-more-ram.patch | 12 | ||||
-rw-r--r-- | target/linux/patches/5.19.9/relocs.patch | 2698 | ||||
-rw-r--r-- | target/linux/patches/5.19.9/startup.patch | 25 |
35 files changed, 2885 insertions, 7 deletions
diff --git a/target/arm/Makefile b/target/arm/Makefile index d92e10d6a..4f7ffc009 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -148,9 +148,9 @@ endif endif ifeq ($(ADK_TARGET_FS),genimage) targethelp: - @echo "The disk image is: $(FW_DIR)/disk.img" + @echo "The disk image is: $(FW_DIR)/sdcard.img" @echo "Use following command to install it on SD card:" - @echo 'sudo dd if=$(FW_DIR)/disk.img of=/dev/sdX bs=2048k' + @echo 'sudo dd if=$(FW_DIR)/sdcard.img of=/dev/sdX bs=2048k' endif kernel-strip: @@ -220,6 +220,9 @@ endif ifeq ($(ADK_TARGET_SYSTEM_ST_STM32F769),y) ${KERNEL_MAKE} dtbs $(MAKE_TRACE) endif +ifeq ($(ADK_TARGET_SYSTEM_ST_STM32F746G),y) + ${KERNEL_MAKE} dtbs $(MAKE_TRACE) +endif for x in $(LINUX_DIR)/arch/arm/boot/dts/*.dtb; do \ [[ -e "$$x" ]] && cp $(LINUX_DIR)/arch/arm/boot/dts/*.dtb $(FW_DIR); \ break; \ diff --git a/target/arm/kernel/st-stm32f746g b/target/arm/kernel/st-stm32f746g new file mode 100644 index 000000000..0459ccf8b --- /dev/null +++ b/target/arm/kernel/st-stm32f746g @@ -0,0 +1,31 @@ +CONFIG_ARM_SINGLE_ARMV7M=y +CONFIG_ARCH_STM32=y +CONFIG_MACH_STM32F746=y +CONFIG_SET_MEM_PARAM=y +CONFIG_DRAM_BASE=0xC0000000 +CONFIG_DRAM_SIZE=0x01000000 +CONFIG_FLASH_MEM_BASE=0x08000000 +CONFIG_FLASH_SIZE=0x00200000 +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_SERIAL_STM32=y +CONFIG_SERIAL_STM32_CONSOLE=y +CONFIG_I2C=y +CONFIG_I2C_CHARDEV=y +CONFIG_I2C_STM32F4=y +CONFIG_I2C_STM32F7=y +CONFIG_GPIO_STMPE=y +CONFIG_MFD_STMPE=y +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_MMC=y +CONFIG_MMC_BLOCK=y +CONFIG_MMC_ARMMMCI=y +CONFIG_MMC_STM32_SDMMC=y +CONFIG_DMADEVICES=y +CONFIG_STM32_DMA=y +CONFIG_STM32_DMAMUX=y +CONFIG_STM32_MDMA=y +#CONFIG_NET_VENDOR_STMICRO=y +#CONFIG_STMMAC_ETH=y +#CONFIG_STMMAC_PLATFORM=y +#CONFIG_DWMAC_STM32=y diff --git a/target/arm/st-stm32f746g/extlinux.conf b/target/arm/st-stm32f746g/extlinux.conf new file mode 100644 index 000000000..9a6728417 --- /dev/null +++ b/target/arm/st-stm32f746g/extlinux.conf @@ -0,0 +1,4 @@ +label stm32f746g-disco-openadk + kernel /kernel + devicetree /stm32f746-disco.dtb + append console=ttySTM0,115200 root=/dev/mmcblk0p2 rw rootwait consoleblank=0 diff --git a/target/arm/st-stm32f746g/genimage.cfg b/target/arm/st-stm32f746g/genimage.cfg new file mode 100644 index 000000000..79e9e89f0 --- /dev/null +++ b/target/arm/st-stm32f746g/genimage.cfg @@ -0,0 +1,27 @@ +image boot.vfat { + vfat { + files = { + "kernel", + "stm32f746-disco.dtb", + "extlinux" + } + } + + size = 16M +} + +image sdcard.img { + hdimage { + } + + partition boot { + partition-type = 0xC + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext" + size = 32M + } +} diff --git a/target/arm/systems/st-stm32f746g b/target/arm/systems/st-stm32f746g new file mode 100644 index 000000000..8bb4be52f --- /dev/null +++ b/target/arm/systems/st-stm32f746g @@ -0,0 +1,17 @@ +config ADK_TARGET_SYSTEM_ST_STM32F746G + bool "STMicroelectronics STM32F746G Disco" + depends on ADK_TARGET_OS_LINUX + select ADK_TARGET_LITTLE_ENDIAN + select ADK_TARGET_CPU_ARM_CORTEX_M7 + select ADK_TARGET_ARCH_ARM_WITH_THUMB + select ADK_TARGET_WITH_SERIAL + select ADK_TARGET_WITH_VGA + select ADK_TARGET_WITH_NET + select ADK_TARGET_WITH_NETDEVICE + select ADK_TARGET_UCLINUX + select ADK_TARGET_KERNEL_WITH_COMPRESSION + select ADK_TARGET_KERNEL_ZIMAGE + select ADK_HOST_BUILD_OPENOCD + help + STMicroelectronics STM32F746G Disco + diff --git a/target/config/Config.in.kernelfmt b/target/config/Config.in.kernelfmt index 84433dfb1..f64eb32b2 100644 --- a/target/config/Config.in.kernelfmt +++ b/target/config/Config.in.kernelfmt @@ -73,6 +73,7 @@ config ADK_TARGET_KERNEL_LOADADDR default 0x8000 if ADK_TARGET_SYSTEM_SYNOLOGY_DS414 default 0x40008000 if ADK_TARGET_SYSTEM_BANANA_PRO default 0x40008000 if ADK_TARGET_SYSTEM_ORANGE_PI0 + default 0xc0008000 if ADK_TARGET_SYSTEM_ST_STM32F746G config ADK_TARGET_KERNEL_APPEND_DTB string diff --git a/target/config/Config.in.rootfs b/target/config/Config.in.rootfs index 80baf4d02..f51e57e16 100644 --- a/target/config/Config.in.rootfs +++ b/target/config/Config.in.rootfs @@ -167,7 +167,6 @@ config ADK_TARGET_ROOTFS_GENIMAGE select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU select ADK_TARGET_QEMU_WITH_BOOTLOADER if ADK_TARGET_QEMU select ADK_HOST_BUILD_GENIMAGE - depends on ADK_TARGET_ARCH_X86_64 help Create a complete disk image for the target with genimage. @@ -199,3 +198,7 @@ config ADK_TARGET_GENIMAGE_FILENAME default "genimage-efi.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86 default "genimage-dual.cfg" if ADK_TARGET_DUAL_BOOT default "genimage.cfg" + +config ADK_TARGET_EXTLINUX_FILENAME + string + default "extlinux.conf" diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime index 18f1d1794..eb349c79a 100644 --- a/target/config/Config.in.runtime +++ b/target/config/Config.in.runtime @@ -374,6 +374,7 @@ config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE default "ttyO2" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK default "ttyO0" if ADK_TARGET_SYSTEM_PHYTEC_WEGA default "ttyS4" if ADK_TARGET_SYSTEM_IMGTEC_CI20 + default "ttySTM0" if ADK_TARGET_SYSTEM_ST_STM32F746G default "ttyS0" config ADK_RUNTIME_CONSOLE_SERIAL_SPEED diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools index 5cecf85c1..0f20f3afe 100644 --- a/target/config/Config.in.tools +++ b/target/config/Config.in.tools @@ -164,7 +164,6 @@ config ADK_HOST_BUILD_MTOOLS config ADK_HOST_BUILD_GENIMAGE bool - select ADK_HOST_BUILD_MKE2IMG select ADK_HOST_BUILD_MTOOLS select ADK_HOST_BUILD_GENEXT2FS select ADK_HOST_BUILD_GPTFDISK diff --git a/target/linux/Config.in.kernelcfg b/target/linux/Config.in.kernelcfg index 50fff5c5d..5e09b182e 100644 --- a/target/linux/Config.in.kernelcfg +++ b/target/linux/Config.in.kernelcfg @@ -48,6 +48,7 @@ config ADK_TARGET_LINUX_KERNEL_DEFCONFIG default "i386_defconfig" if ADK_TARGET_SYSTEM_GENERIC_X86 default "stm32_defconfig" if ADK_TARGET_SYSTEM_ST_STM32F429 default "stm32_defconfig" if ADK_TARGET_SYSTEM_ST_STM32F769 + default "stm32_defconfig" if ADK_TARGET_SYSTEM_ST_STM32F746G default "nommu_k210_defconfig" if ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT default "loongson3_defconfig" if ADK_TARGET_SYSTEM_QEMU_LOONGARCH default "" diff --git a/target/linux/Config.in.kernelversion b/target/linux/Config.in.kernelversion index 43b34b7b9..6c192a820 100644 --- a/target/linux/Config.in.kernelversion +++ b/target/linux/Config.in.kernelversion @@ -35,7 +35,7 @@ config ADK_TARGET_LINUX_KERNEL_VERSION_GIT select ADK_TARGET_LINUX_KERNEL_IMAGE if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK config ADK_TARGET_LINUX_KERNEL_VERSION_5_19 - bool "5.19" + bool "5.19.9" depends on !ADK_TARGET_ARCH_AVR32 depends on !ADK_TARGET_ARCH_BFIN depends on !ADK_TARGET_ARCH_CRIS @@ -69,7 +69,7 @@ config ADK_TARGET_LINUX_KERNEL_VERSION_5_4 depends on !ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT config ADK_TARGET_LINUX_KERNEL_VERSION_4_19 - bool "4.19.213" + bool "4.19.258" depends on !ADK_TARGET_ARCH_AVR32 depends on !ADK_TARGET_ARCH_BFIN depends on !ADK_TARGET_ARCH_CRIS @@ -80,7 +80,7 @@ config ADK_TARGET_LINUX_KERNEL_VERSION_4_19 depends on !ADK_TARGET_ARCH_RISCV64 config ADK_TARGET_LINUX_KERNEL_VERSION_4_14 - bool "4.14.252" + bool "4.14.293" depends on !ADK_TARGET_ARCH_AVR32 depends on !ADK_TARGET_ARCH_BFIN depends on !ADK_TARGET_ARCH_CRIS diff --git a/target/linux/patches/4.14.252/alpha-remove-coff.patch b/target/linux/patches/4.14.293/alpha-remove-coff.patch index 51b7bcc14..51b7bcc14 100644 --- a/target/linux/patches/4.14.252/alpha-remove-coff.patch +++ b/target/linux/patches/4.14.293/alpha-remove-coff.patch diff --git a/target/linux/patches/4.14.252/arm-nommu.patch b/target/linux/patches/4.14.293/arm-nommu.patch index b91aaf712..b91aaf712 100644 --- a/target/linux/patches/4.14.252/arm-nommu.patch +++ b/target/linux/patches/4.14.293/arm-nommu.patch diff --git a/target/linux/patches/4.14.252/arm-thumb2.patch b/target/linux/patches/4.14.293/arm-thumb2.patch index d8d1f4984..d8d1f4984 100644 --- a/target/linux/patches/4.14.252/arm-thumb2.patch +++ b/target/linux/patches/4.14.293/arm-thumb2.patch diff --git a/target/linux/patches/4.14.252/h8300.patch b/target/linux/patches/4.14.293/h8300.patch index 836a414e5..836a414e5 100644 --- a/target/linux/patches/4.14.252/h8300.patch +++ b/target/linux/patches/4.14.293/h8300.patch diff --git a/target/linux/patches/4.14.252/initramfs-nosizelimit.patch b/target/linux/patches/4.14.293/initramfs-nosizelimit.patch index 0e524c1d9..0e524c1d9 100644 --- a/target/linux/patches/4.14.252/initramfs-nosizelimit.patch +++ b/target/linux/patches/4.14.293/initramfs-nosizelimit.patch diff --git a/target/linux/patches/4.14.252/microblaze-sigaltstack.patch b/target/linux/patches/4.14.293/microblaze-sigaltstack.patch index 80413890a..80413890a 100644 --- a/target/linux/patches/4.14.252/microblaze-sigaltstack.patch +++ b/target/linux/patches/4.14.293/microblaze-sigaltstack.patch diff --git a/target/linux/patches/4.14.252/or1k-more-ram.patch b/target/linux/patches/4.14.293/or1k-more-ram.patch index de848c838..de848c838 100644 --- a/target/linux/patches/4.14.252/or1k-more-ram.patch +++ b/target/linux/patches/4.14.293/or1k-more-ram.patch diff --git a/target/linux/patches/4.14.252/startup.patch b/target/linux/patches/4.14.293/startup.patch index f52660a95..f52660a95 100644 --- a/target/linux/patches/4.14.252/startup.patch +++ b/target/linux/patches/4.14.293/startup.patch diff --git a/target/linux/patches/4.14.252/vdso2.patch b/target/linux/patches/4.14.293/vdso2.patch index b6c32f31b..b6c32f31b 100644 --- a/target/linux/patches/4.14.252/vdso2.patch +++ b/target/linux/patches/4.14.293/vdso2.patch diff --git a/target/linux/patches/4.19.213/arc.patch b/target/linux/patches/4.19.258/arc.patch index 20810ce64..20810ce64 100644 --- a/target/linux/patches/4.19.213/arc.patch +++ b/target/linux/patches/4.19.258/arc.patch diff --git a/target/linux/patches/4.19.213/arm-nommu.patch b/target/linux/patches/4.19.258/arm-nommu.patch index d23d3f4eb..d23d3f4eb 100644 --- a/target/linux/patches/4.19.213/arm-nommu.patch +++ b/target/linux/patches/4.19.258/arm-nommu.patch diff --git a/target/linux/patches/4.19.213/darwin-dtc.patch b/target/linux/patches/4.19.258/darwin-dtc.patch index 0cdc23ab4..0cdc23ab4 100644 --- a/target/linux/patches/4.19.213/darwin-dtc.patch +++ b/target/linux/patches/4.19.258/darwin-dtc.patch diff --git a/target/linux/patches/4.19.213/darwin-file2alias.patch b/target/linux/patches/4.19.258/darwin-file2alias.patch index fdbc598a8..fdbc598a8 100644 --- a/target/linux/patches/4.19.213/darwin-file2alias.patch +++ b/target/linux/patches/4.19.258/darwin-file2alias.patch diff --git a/target/linux/patches/4.19.213/fec-coldfire.patch b/target/linux/patches/4.19.258/fec-coldfire.patch index 09d8ad047..09d8ad047 100644 --- a/target/linux/patches/4.19.213/fec-coldfire.patch +++ b/target/linux/patches/4.19.258/fec-coldfire.patch diff --git a/target/linux/patches/4.19.213/or1k-more-ram.patch b/target/linux/patches/4.19.258/or1k-more-ram.patch index de848c838..de848c838 100644 --- a/target/linux/patches/4.19.213/or1k-more-ram.patch +++ b/target/linux/patches/4.19.258/or1k-more-ram.patch diff --git a/target/linux/patches/4.19.213/relocs.patch b/target/linux/patches/4.19.258/relocs.patch index 5bcd974c7..5bcd974c7 100644 --- a/target/linux/patches/4.19.213/relocs.patch +++ b/target/linux/patches/4.19.258/relocs.patch diff --git a/target/linux/patches/4.19.213/startup.patch b/target/linux/patches/4.19.258/startup.patch index 4f42e84a7..4f42e84a7 100644 --- a/target/linux/patches/4.19.213/startup.patch +++ b/target/linux/patches/4.19.258/startup.patch diff --git a/target/linux/patches/4.19.213/vdso2.patch b/target/linux/patches/4.19.258/vdso2.patch index 3d9d47ede..3d9d47ede 100644 --- a/target/linux/patches/4.19.213/vdso2.patch +++ b/target/linux/patches/4.19.258/vdso2.patch diff --git a/target/linux/patches/5.19.9/darwin-dtc.patch b/target/linux/patches/5.19.9/darwin-dtc.patch new file mode 100644 index 000000000..0cdc23ab4 --- /dev/null +++ b/target/linux/patches/5.19.9/darwin-dtc.patch @@ -0,0 +1,26 @@ +diff -Nur linux-4.19.132.orig/scripts/dtc/dtc.h linux-4.19.132/scripts/dtc/dtc.h +--- linux-4.19.132.orig/scripts/dtc/dtc.h 2020-07-09 09:37:13.000000000 +0200 ++++ linux-4.19.132/scripts/dtc/dtc.h 2020-07-15 02:38:00.000000000 +0200 +@@ -33,8 +33,8 @@ + #include <unistd.h> + #include <inttypes.h> + +-#include <libfdt_env.h> +-#include <fdt.h> ++#include "libfdt/libfdt_env.h" ++#include "libfdt/fdt.h" + + #include "util.h" + +diff -Nur linux-4.19.132.orig/scripts/dtc/util.c linux-4.19.132/scripts/dtc/util.c +--- linux-4.19.132.orig/scripts/dtc/util.c 2020-07-09 09:37:13.000000000 +0200 ++++ linux-4.19.132/scripts/dtc/util.c 2020-07-15 02:38:18.000000000 +0200 +@@ -32,7 +32,7 @@ + #include <fcntl.h> + #include <unistd.h> + +-#include "libfdt.h" ++#include "libfdt/libfdt.h" + #include "util.h" + #include "version_gen.h" + diff --git a/target/linux/patches/5.19.9/darwin-file2alias.patch b/target/linux/patches/5.19.9/darwin-file2alias.patch new file mode 100644 index 000000000..fdbc598a8 --- /dev/null +++ b/target/linux/patches/5.19.9/darwin-file2alias.patch @@ -0,0 +1,14 @@ +diff -Nur linux-5.4.42.orig/scripts/mod/file2alias.c linux-5.4.42/scripts/mod/file2alias.c +--- linux-5.4.42.orig/scripts/mod/file2alias.c 2020-05-20 08:20:41.000000000 +0200 ++++ linux-5.4.42/scripts/mod/file2alias.c 2020-06-06 20:14:59.000000000 +0200 +@@ -10,6 +10,10 @@ + * of the GNU General Public License, incorporated herein by reference. + */ + ++/* workaround for Darwin */ ++#define _UUID_T ++#define __GETHOSTUUID_H ++ + #include "modpost.h" + #include "devicetable-offsets.h" + diff --git a/target/linux/patches/5.19.9/dtc-noyaml.patch b/target/linux/patches/5.19.9/dtc-noyaml.patch new file mode 100644 index 000000000..759bb01f7 --- /dev/null +++ b/target/linux/patches/5.19.9/dtc-noyaml.patch @@ -0,0 +1,16 @@ +diff -Nur linux-5.4.53.orig/scripts/dtc/dtc.c linux-5.4.53/scripts/dtc/dtc.c +--- linux-5.4.53.orig/scripts/dtc/dtc.c 2020-07-22 09:33:18.000000000 +0200 ++++ linux-5.4.53/scripts/dtc/dtc.c 2020-07-28 14:20:10.000000000 +0200 +@@ -349,12 +349,6 @@ + + if (streq(outform, "dts")) { + dt_to_source(outf, dti); +-#ifndef NO_YAML +- } else if (streq(outform, "yaml")) { +- if (!streq(inform, "dts")) +- die("YAML output format requires dts input format\n"); +- dt_to_yaml(outf, dti); +-#endif + } else if (streq(outform, "dtb")) { + dt_to_blob(outf, dti, outversion); + } else if (streq(outform, "asm")) { diff --git a/target/linux/patches/5.19.9/or1k-more-ram.patch b/target/linux/patches/5.19.9/or1k-more-ram.patch new file mode 100644 index 000000000..de848c838 --- /dev/null +++ b/target/linux/patches/5.19.9/or1k-more-ram.patch @@ -0,0 +1,12 @@ +diff -Nur linux-4.8.11.orig/arch/openrisc/boot/dts/or1ksim.dts linux-4.8.11/arch/openrisc/boot/dts/or1ksim.dts +--- linux-4.8.11.orig/arch/openrisc/boot/dts/or1ksim.dts 2016-11-26 09:57:13.000000000 +0100 ++++ linux-4.8.11/arch/openrisc/boot/dts/or1ksim.dts 2016-12-04 14:39:46.092952799 +0100 +@@ -11,7 +11,7 @@ + + memory@0 { + device_type = "memory"; +- reg = <0x00000000 0x02000000>; ++ reg = <0x00000000 0x04000000>; + }; + + cpus { diff --git a/target/linux/patches/5.19.9/relocs.patch b/target/linux/patches/5.19.9/relocs.patch new file mode 100644 index 000000000..5bcd974c7 --- /dev/null +++ b/target/linux/patches/5.19.9/relocs.patch @@ -0,0 +1,2698 @@ +diff -Nur linux-5.4.42.orig/arch/x86/tools/relocs.h linux-5.4.42/arch/x86/tools/relocs.h +--- linux-5.4.42.orig/arch/x86/tools/relocs.h 2020-05-20 08:20:41.000000000 +0200 ++++ linux-5.4.42/arch/x86/tools/relocs.h 2020-06-06 18:18:17.000000000 +0200 +@@ -10,11 +10,19 @@ + #include <string.h> + #include <errno.h> + #include <unistd.h> ++#ifdef __linux__ + #include <elf.h> + #include <byteswap.h> + #define USE_BSD + #include <endian.h> ++#else ++#include "elf.h" ++#endif ++#ifdef __APPLE__ ++#include <pcreposix.h> ++#else + #include <regex.h> ++#endif + #include <tools/le_byteshift.h> + + void die(char *fmt, ...) __attribute__((noreturn)); +diff -Nur linux-5.4.42.orig/tools/include/elf.h linux-5.4.42/tools/include/elf.h +--- linux-5.4.42.orig/tools/include/elf.h 1970-01-01 01:00:00.000000000 +0100 ++++ linux-5.4.42/tools/include/elf.h 2020-06-06 18:18:17.000000000 +0200 +@@ -0,0 +1,2671 @@ ++#ifndef _ELF_H ++#define _ELF_H ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include <stdint.h> ++ ++typedef uint16_t Elf32_Half; ++typedef uint16_t Elf64_Half; ++ ++typedef uint32_t Elf32_Word; ++typedef int32_t Elf32_Sword; ++typedef uint32_t Elf64_Word; ++typedef int32_t Elf64_Sword; ++ ++typedef uint64_t Elf32_Xword; ++typedef int64_t Elf32_Sxword; ++typedef uint64_t Elf64_Xword; ++typedef int64_t Elf64_Sxword; ++ ++typedef uint32_t Elf32_Addr; ++typedef uint64_t Elf64_Addr; ++ ++typedef uint32_t Elf32_Off; ++typedef uint64_t Elf64_Off; ++ ++typedef uint16_t Elf32_Section; ++typedef uint16_t Elf64_Section; ++ ++typedef Elf32_Half Elf32_Versym; ++typedef Elf64_Half Elf64_Versym; ++ ++#define EI_NIDENT (16) ++ ++typedef struct { ++ unsigned char e_ident[EI_NIDENT]; ++ Elf32_Half e_type; ++ Elf32_Half e_machine; ++ Elf32_Word e_version; ++ Elf32_Addr e_entry; ++ Elf32_Off e_phoff; ++ Elf32_Off e_shoff; ++ Elf32_Word e_flags; ++ Elf32_Half e_ehsize; ++ Elf32_Half e_phentsize; ++ Elf32_Half e_phnum; ++ Elf32_Half e_shentsize; ++ Elf32_Half e_shnum; ++ Elf32_Half e_shstrndx; ++} Elf32_Ehdr; ++ ++typedef struct { ++ unsigned char e_ident[EI_NIDENT]; ++ Elf64_Half e_type; ++ Elf64_Half e_machine; ++ Elf64_Word e_version; ++ Elf64_Addr e_entry; ++ Elf64_Off e_phoff; ++ Elf64_Off e_shoff; ++ Elf64_Word e_flags; ++ Elf64_Half e_ehsize; ++ Elf64_Half e_phentsize; ++ Elf64_Half e_phnum; ++ Elf64_Half e_shentsize; ++ Elf64_Half e_shnum; ++ Elf64_Half e_shstrndx; ++} Elf64_Ehdr; ++ ++#define EI_MAG0 0 ++#define ELFMAG0 0x7f ++ ++#define EI_MAG1 1 ++#define ELFMAG1 'E' ++ ++#define EI_MAG2 2 ++#define ELFMAG2 'L' ++ ++#define EI_MAG3 3 ++#define ELFMAG3 'F' ++ ++ ++#define ELFMAG "\177ELF" ++#define SELFMAG 4 ++ ++#define EI_CLASS 4 ++#define ELFCLASSNONE 0 ++#define ELFCLASS32 1 ++#define ELFCLASS64 2 ++#define ELFCLASSNUM 3 ++ ++#define EI_DATA 5 ++#define ELFDATANONE 0 ++#define ELFDATA2LSB 1 ++#define ELFDATA2MSB 2 ++#define ELFDATANUM 3 ++ ++#define EI_VERSION 6 ++ ++ ++#define EI_OSABI 7 ++#define ELFOSABI_NONE 0 ++#define ELFOSABI_SYSV 0 ++#define ELFOSABI_HPUX 1 ++#define ELFOSABI_NETBSD 2 ++#define ELFOSABI_LINUX 3 ++#define ELFOSABI_GNU 3 ++#define ELFOSABI_SOLARIS 6 ++#define ELFOSABI_AIX 7 ++#define ELFOSABI_IRIX 8 ++#define ELFOSABI_FREEBSD 9 ++#define ELFOSABI_TRU64 10 ++#define ELFOSABI_MODESTO 11 ++#define ELFOSABI_OPENBSD 12 ++#define ELFOSABI_ARM 97 ++#define ELFOSABI_STANDALONE 255 ++ ++#define EI_ABIVERSION 8 ++ ++#define EI_PAD 9 ++ ++ ++ ++#define ET_NONE 0 ++#define ET_REL 1 ++#define ET_EXEC 2 ++#define ET_DYN 3 ++#define ET_CORE 4 ++#define ET_NUM 5 ++#define ET_LOOS 0xfe00 ++#define ET_HIOS 0xfeff ++#define ET_LOPROC 0xff00 ++#define ET_HIPROC 0xffff ++ ++ ++ ++#define EM_NONE 0 ++#define EM_M32 1 ++#define EM_SPARC 2 ++#define EM_386 3 ++#define EM_68K 4 ++#define EM_88K 5 ++#define EM_860 7 ++#define EM_MIPS 8 ++#define EM_S370 9 ++#define EM_MIPS_RS3_LE 10 ++ ++#define EM_PARISC 15 ++#define EM_VPP500 17 ++#define EM_SPARC32PLUS 18 ++#define EM_960 19 ++#define EM_PPC 20 ++#define EM_PPC64 21 ++#define EM_S390 22 ++ ++#define EM_V800 36 ++#define EM_FR20 37 ++#define EM_RH32 38 ++#define EM_RCE 39 ++#define EM_ARM 40 ++#define EM_FAKE_ALPHA 41 ++#define EM_SH 42 ++#define EM_SPARCV9 43 ++#define EM_TRICORE 44 ++#define EM_ARC 45 ++#define EM_H8_300 46 ++#define EM_H8_300H 47 ++#define EM_H8S 48 ++#define EM_H8_500 49 ++#define EM_IA_64 50 ++#define EM_MIPS_X 51 ++#define EM_COLDFIRE 52 ++#define EM_68HC12 53 ++#define EM_MMA 54 ++#define EM_PCP 55 ++#define EM_NCPU 56 ++#define EM_NDR1 57 ++#define EM_STARCORE 58 ++#define EM_ME16 59 ++#define EM_ST100 60 ++#define EM_TINYJ 61 ++#define EM_X86_64 62 ++#define EM_PDSP 63 ++ ++#define EM_FX66 66 ++#define EM_ST9PLUS 67 ++#define EM_ST7 68 ++#define EM_68HC16 69 ++#define EM_68HC11 70 ++#define EM_68HC08 71 ++#define EM_68HC05 72 ++#define EM_SVX 73 ++#define EM_ST19 74 ++#define EM_VAX 75 ++#define EM_CRIS 76 ++#define EM_JAVELIN 77 ++#define EM_FIREPATH 78 ++#define EM_ZSP 79 ++#define EM_MMIX 80 ++#define EM_HUANY 81 ++#define EM_PRISM 82 ++#define EM_AVR 83 ++#define EM_FR30 84 ++#define EM_D10V 85 ++#define EM_D30V 86 ++#define EM_V850 87 ++#define EM_M32R 88 ++#define EM_MN10300 89 ++#define EM_MN10200 90 ++#define EM_PJ 91 ++#define EM_OPENRISC 92 ++#define EM_ARC_A5 93 ++#define EM_XTENSA 94 ++#define EM_AARCH64 183 ++#define EM_TILEPRO 188 ++#define EM_MICROBLAZE 189 ++#define EM_TILEGX 191 ++#define EM_NUM 192 ++#define EM_ALPHA 0x9026 ++ ++#define EV_NONE 0 ++#define EV_CURRENT 1 ++#define EV_NUM 2 ++ ++typedef struct { ++ Elf32_Word sh_name; ++ Elf32_Word sh_type; ++ Elf32_Word sh_flags; ++ Elf32_Addr sh_addr; ++ Elf32_Off sh_offset; ++ Elf32_Word sh_size; ++ Elf32_Word sh_link; ++ Elf32_Word sh_info; ++ Elf32_Word sh_addralign; ++ Elf32_Word sh_entsize; ++} Elf32_Shdr; ++ ++typedef struct { ++ Elf64_Word sh_name; ++ Elf64_Word sh_type; ++ Elf64_Xword sh_flags; ++ Elf64_Addr sh_addr; ++ Elf64_Off sh_offset; ++ Elf64_Xword sh_size; ++ Elf64_Word sh_link; ++ Elf64_Word sh_info; ++ Elf64_Xword sh_addralign; ++ Elf64_Xword sh_entsize; ++} Elf64_Shdr; ++ ++ ++ ++#define SHN_UNDEF 0 ++#define SHN_LORESERVE 0xff00 ++#define SHN_LOPROC 0xff00 ++#define SHN_BEFORE 0xff00 ++ ++#define SHN_AFTER 0xff01 ++ ++#define SHN_HIPROC 0xff1f ++#define SHN_LOOS 0xff20 ++#define SHN_HIOS 0xff3f ++#define SHN_ABS 0xfff1 ++#define SHN_COMMON 0xfff2 ++#define SHN_XINDEX 0xffff ++#define SHN_HIRESERVE 0xffff ++ ++ ++ ++#define SHT_NULL 0 ++#define SHT_PROGBITS 1 ++#define SHT_SYMTAB 2 ++#define SHT_STRTAB 3 ++#define SHT_RELA 4 ++#define SHT_HASH 5 ++#define SHT_DYNAMIC 6 ++#define SHT_NOTE 7 ++#define SHT_NOBITS 8 ++#define SHT_REL 9 ++#define SHT_SHLIB 10 ++#define SHT_DYNSYM 11 ++#define SHT_INIT_ARRAY 14 ++#define SHT_FINI_ARRAY 15 ++#define SHT_PREINIT_ARRAY 16 ++#define SHT_GROUP 17 ++#define SHT_SYMTAB_SHNDX 18 ++#define SHT_NUM 19 ++#define SHT_LOOS 0x60000000 ++#define SHT_GNU_ATTRIBUTES 0x6ffffff5 |