Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
5
target/linux/sunxi/image/Config.in
Normal file
5
target/linux/sunxi/image/Config.in
Normal file
@@ -0,0 +1,5 @@
|
||||
config SUNXI_SD_BOOT_PARTSIZE
|
||||
int "Boot (SD Card) filesystem partition size (in MB)"
|
||||
depends on TARGET_sunxi
|
||||
default 20
|
||||
|
||||
43
target/linux/sunxi/image/Makefile
Normal file
43
target/linux/sunxi/image/Makefile
Normal file
@@ -0,0 +1,43 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013-2016 OpenWrt.org
|
||||
# Copyright (C) 2016 Yousong Zhou
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/image.mk
|
||||
|
||||
FAT32_BLOCK_SIZE=1024
|
||||
FAT32_BLOCKS=$(shell echo $$(($(CONFIG_SUNXI_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
|
||||
|
||||
DEVICE_VARS := SUNXI_DTS SUNXI_DTS_DIR
|
||||
|
||||
define Build/sunxi-sdcard
|
||||
rm -f $@.boot
|
||||
mkfs.fat $@.boot -C $(FAT32_BLOCKS)
|
||||
|
||||
mcopy -i $@.boot $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)-boot.scr ::boot.scr
|
||||
mcopy -i $@.boot $(DTS_DIR)/$(SUNXI_DTS).dtb ::dtb
|
||||
mcopy -i $@.boot $(IMAGE_KERNEL) ::uImage
|
||||
./gen_sunxi_sdcard_img.sh $@ \
|
||||
$@.boot \
|
||||
$(IMAGE_ROOTFS) \
|
||||
$(CONFIG_SUNXI_SD_BOOT_PARTSIZE) \
|
||||
$(CONFIG_TARGET_ROOTFS_PARTSIZE) \
|
||||
$(STAGING_DIR_IMAGE)/$(DEVICE_NAME)-u-boot-with-spl.bin
|
||||
rm -f $@.boot
|
||||
endef
|
||||
|
||||
# why \x00\x00\x00\x00 for zImage-initramfs
|
||||
define Device/Default
|
||||
PROFILES := Default
|
||||
KERNEL_NAME := zImage
|
||||
KERNEL := kernel-bin | uImage none
|
||||
IMAGES := sdcard.img.gz
|
||||
IMAGE/sdcard.img.gz := sunxi-sdcard | append-metadata | gzip
|
||||
SUNXI_DTS_DIR :=allwinner/
|
||||
SUNXI_DTS = $$(SUNXI_DTS_DIR)$$(SOC)-$(lastword $(subst _, ,$(1)))
|
||||
endef
|
||||
|
||||
include $(SUBTARGET).mk
|
||||
|
||||
$(eval $(call BuildImage))
|
||||
142
target/linux/sunxi/image/cortexa53.mk
Normal file
142
target/linux/sunxi/image/cortexa53.mk
Normal file
@@ -0,0 +1,142 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013-2016 OpenWrt.org
|
||||
# Copyright (C) 2016 Yousong Zhou
|
||||
|
||||
KERNEL_LOADADDR:=0x40008000
|
||||
|
||||
define Device/sun50i
|
||||
SUNXI_DTS_DIR := allwinner/
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
endef
|
||||
|
||||
define Device/sun50i-a64
|
||||
SOC := sun50i-a64
|
||||
$(Device/sun50i)
|
||||
endef
|
||||
|
||||
define Device/sun50i-h5
|
||||
SOC := sun50i-h5
|
||||
$(Device/sun50i)
|
||||
endef
|
||||
|
||||
define Device/sun50i-h6
|
||||
SOC := sun50i-h6
|
||||
$(Device/sun50i)
|
||||
endef
|
||||
|
||||
define Device/sun50i-h616
|
||||
SOC := sun50i-h616
|
||||
$(Device/sun50i)
|
||||
endef
|
||||
|
||||
define Device/sun50i-h618
|
||||
SOC := sun50i-h618
|
||||
$(Device/sun50i)
|
||||
endef
|
||||
|
||||
define Device/friendlyarm_nanopi-neo-plus2
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := NanoPi NEO Plus2
|
||||
SUPPORTED_DEVICES:=nanopi-neo-plus2
|
||||
$(Device/sun50i-h5)
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_nanopi-neo-plus2
|
||||
|
||||
define Device/friendlyarm_nanopi-neo2
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := NanoPi NEO2
|
||||
SUPPORTED_DEVICES:=nanopi-neo2
|
||||
$(Device/sun50i-h5)
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_nanopi-neo2
|
||||
|
||||
define Device/friendlyarm_nanopi-r1s-h5
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := Nanopi R1S H5
|
||||
DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-usb-net-rtl8152
|
||||
SUPPORTED_DEVICES:=nanopi-r1s-h5
|
||||
$(Device/sun50i-h5)
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_nanopi-r1s-h5
|
||||
|
||||
define Device/libretech_all-h3-cc-h5
|
||||
DEVICE_VENDOR := Libre Computer
|
||||
DEVICE_MODEL := ALL-H3-CC
|
||||
DEVICE_VARIANT := H5
|
||||
$(Device/sun50i-h5)
|
||||
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-libretech-all-h3-cc
|
||||
endef
|
||||
TARGET_DEVICES += libretech_all-h3-cc-h5
|
||||
|
||||
define Device/olimex_a64-olinuxino
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A64-Olinuxino
|
||||
DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bu-firmware
|
||||
$(Device/sun50i-a64)
|
||||
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-olinuxino
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a64-olinuxino
|
||||
|
||||
define Device/olimex_a64-olinuxino-emmc
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A64-Olinuxino
|
||||
DEVICE_VARIANT := eMMC
|
||||
DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bu-firmware
|
||||
$(Device/sun50i-a64)
|
||||
SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-olinuxino-emmc
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a64-olinuxino-emmc
|
||||
|
||||
define Device/pine64_pine64-plus
|
||||
DEVICE_VENDOR := Pine64
|
||||
DEVICE_MODEL := Pine64+
|
||||
DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bu-firmware
|
||||
$(Device/sun50i-a64)
|
||||
endef
|
||||
TARGET_DEVICES += pine64_pine64-plus
|
||||
|
||||
define Device/pine64_sopine-baseboard
|
||||
DEVICE_VENDOR := Pine64
|
||||
DEVICE_MODEL := SoPine
|
||||
DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bu-firmware
|
||||
$(Device/sun50i-a64)
|
||||
endef
|
||||
TARGET_DEVICES += pine64_sopine-baseboard
|
||||
|
||||
define Device/xunlong_orangepi-one-plus
|
||||
$(Device/sun50i-h6)
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi One Plus
|
||||
SUNXI_DTS_DIR := allwinner/
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-one-plus
|
||||
|
||||
define Device/xunlong_orangepi-pc2
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi PC 2
|
||||
$(Device/sun50i-h5)
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-pc2
|
||||
|
||||
define Device/xunlong_orangepi-zero2
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi Zero 2
|
||||
$(Device/sun50i-h616)
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-zero2
|
||||
|
||||
define Device/xunlong_orangepi-zero3
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi Zero 3
|
||||
$(Device/sun50i-h618)
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-zero3
|
||||
|
||||
define Device/xunlong_orangepi-zero-plus
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi Zero Plus
|
||||
$(Device/sun50i-h5)
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-zero-plus
|
||||
262
target/linux/sunxi/image/cortexa7.mk
Normal file
262
target/linux/sunxi/image/cortexa7.mk
Normal file
@@ -0,0 +1,262 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013-2019 OpenWrt.org
|
||||
# Copyright (C) 2016 Yousong Zhou
|
||||
|
||||
KERNEL_LOADADDR:=0x40008000
|
||||
|
||||
define Device/cubietech_cubieboard2
|
||||
DEVICE_VENDOR := Cubietech
|
||||
DEVICE_MODEL := Cubieboard2
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi
|
||||
SOC := sun7i-a20
|
||||
endef
|
||||
TARGET_DEVICES += cubietech_cubieboard2
|
||||
|
||||
define Device/cubietech_cubietruck
|
||||
DEVICE_VENDOR := Cubietech
|
||||
DEVICE_MODEL := Cubietruck
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-brcmfmac
|
||||
SOC := sun7i-a20
|
||||
endef
|
||||
TARGET_DEVICES += cubietech_cubietruck
|
||||
|
||||
define Device/friendlyarm_nanopi-m1-plus
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := NanoPi M1 Plus
|
||||
DEVICE_PACKAGES:=kmod-leds-gpio kmod-brcmfmac \
|
||||
cypress-firmware-43430-sdio wpad-basic-mbedtls
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_nanopi-m1-plus
|
||||
|
||||
define Device/friendlyarm_nanopi-neo
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := NanoPi NEO
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_nanopi-neo
|
||||
|
||||
define Device/friendlyarm_nanopi-neo-air
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := NanoPi NEO Air
|
||||
DEVICE_PACKAGES := kmod-leds-gpio kmod-brcmfmac \
|
||||
brcmfmac-firmware-43430a0-sdio wpad-basic-mbedtls
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_nanopi-neo-air
|
||||
|
||||
define Device/friendlyarm_nanopi-r1
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := NanoPi R1
|
||||
DEVICE_PACKAGES := kmod-usb-net-rtl8152 kmod-leds-gpio \
|
||||
kmod-brcmfmac cypress-firmware-43430-sdio wpad-basic-mbedtls
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_nanopi-r1
|
||||
|
||||
define Device/friendlyarm_zeropi
|
||||
DEVICE_VENDOR := FriendlyARM
|
||||
DEVICE_MODEL := ZeroPi
|
||||
DEVICE_PACKAGES := kmod-rtc-sunxi
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += friendlyarm_zeropi
|
||||
|
||||
define Device/lamobo_lamobo-r1
|
||||
DEVICE_VENDOR := Lamobo
|
||||
DEVICE_MODEL := Lamobo R1
|
||||
DEVICE_ALT0_VENDOR := Bananapi
|
||||
DEVICE_ALT0_MODEL := BPi-R1
|
||||
DEVICE_PACKAGES := kmod-ata-sunxi kmod-rtl8192cu wpad-basic-mbedtls
|
||||
DEVICE_COMPAT_VERSION := 1.1
|
||||
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
|
||||
SOC := sun7i-a20
|
||||
endef
|
||||
TARGET_DEVICES += lamobo_lamobo-r1
|
||||
|
||||
define Device/lemaker_bananapi
|
||||
DEVICE_VENDOR := LeMaker
|
||||
DEVICE_MODEL := Banana Pi
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi
|
||||
SOC := sun7i-a20
|
||||
endef
|
||||
TARGET_DEVICES += lemaker_bananapi
|
||||
|
||||
define Device/sinovoip_bananapi-m2-berry
|
||||
DEVICE_VENDOR := Sinovoip
|
||||
DEVICE_MODEL := Banana Pi M2 Berry
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-brcmfmac \
|
||||
cypress-firmware-43430-sdio wpad-basic-mbedtls
|
||||
SUPPORTED_DEVICES:=lemaker,bananapi-m2-berry
|
||||
SOC := sun8i-v40
|
||||
endef
|
||||
TARGET_DEVICES += sinovoip_bananapi-m2-berry
|
||||
|
||||
define Device/sinovoip_bananapi-m2-ultra
|
||||
DEVICE_VENDOR := Sinovoip
|
||||
DEVICE_MODEL := Banana Pi M2 Ultra
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-brcmfmac \
|
||||
brcmfmac-firmware-43430a0-sdio wpad-basic-mbedtls
|
||||
SUPPORTED_DEVICES:=lemaker,bananapi-m2-ultra
|
||||
SOC := sun8i-r40
|
||||
endef
|
||||
TARGET_DEVICES += sinovoip_bananapi-m2-ultra
|
||||
|
||||
define Device/lemaker_bananapro
|
||||
DEVICE_VENDOR := LeMaker
|
||||
DEVICE_MODEL := Banana Pro
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi kmod-brcmfmac \
|
||||
cypress-firmware-43362-sdio wpad-basic-mbedtls
|
||||
SOC := sun7i-a20
|
||||
endef
|
||||
TARGET_DEVICES += lemaker_bananapro
|
||||
|
||||
define Device/licheepi_licheepi-zero-dock
|
||||
DEVICE_VENDOR := LicheePi
|
||||
DEVICE_MODEL := Zero with Dock (V3s)
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi
|
||||
SOC := sun8i-v3s
|
||||
endef
|
||||
TARGET_DEVICES += licheepi_licheepi-zero-dock
|
||||
|
||||
define Device/linksprite_pcduino3
|
||||
DEVICE_VENDOR := LinkSprite
|
||||
DEVICE_MODEL := pcDuino3
|
||||
DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-ata-sunxi kmod-rtl8xxxu \
|
||||
rtl8188eu-firmware
|
||||
SOC := sun7i-a20
|
||||
endef
|
||||
TARGET_DEVICES += linksprite_pcduino3
|
||||
|
||||
define Device/linksprite_pcduino3-nano
|
||||
DEVICE_VENDOR := LinkSprite
|
||||
DEVICE_MODEL := pcDuino3 Nano
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi
|
||||
SOC := sun7i-a20
|
||||
endef
|
||||
TARGET_DEVICES += linksprite_pcduino3-nano
|
||||
|
||||
define Device/mele_m9
|
||||
DEVICE_VENDOR := Mele
|
||||
DEVICE_MODEL := M9
|
||||
DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtl8192cu
|
||||
SOC := sun6i-a31
|
||||
endef
|
||||
TARGET_DEVICES += mele_m9
|
||||
|
||||
define Device/olimex_a20-olinuxino-lime
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A20-OLinuXino-LIME
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi
|
||||
SOC := sun7i
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a20-olinuxino-lime
|
||||
|
||||
define Device/olimex_a20-olinuxino-lime2
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A20-OLinuXino-LIME2
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid
|
||||
SOC := sun7i
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a20-olinuxino-lime2
|
||||
|
||||
define Device/olimex_a20-olinuxino-lime2-emmc
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A20-OLinuXino-LIME2
|
||||
DEVICE_VARIANT := eMMC
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid
|
||||
SOC := sun7i
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a20-olinuxino-lime2-emmc
|
||||
|
||||
define Device/olimex_a20-olinuxino-micro
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A20-OLinuXino-MICRO
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi
|
||||
SOC := sun7i
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a20-olinuxino-micro
|
||||
|
||||
define Device/sinovoip_bananapi-m2-plus
|
||||
DEVICE_VENDOR := Sinovoip
|
||||
DEVICE_MODEL := Banana Pi M2+
|
||||
DEVICE_PACKAGES:=kmod-leds-gpio kmod-brcmfmac \
|
||||
brcmfmac-firmware-43430a0-sdio wpad-basic-mbedtls
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += sinovoip_bananapi-m2-plus
|
||||
|
||||
define Device/sinovoip_bananapi-m3
|
||||
DEVICE_VENDOR := Sinovoip
|
||||
DEVICE_MODEL := Banana Pi M3
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-leds-gpio kmod-rtc-ac100 \
|
||||
kmod-brcmfmac cypress-firmware-43430-sdio wpad-basic-mbedtls
|
||||
SOC := sun8i-a83t
|
||||
endef
|
||||
TARGET_DEVICES += sinovoip_bananapi-m3
|
||||
|
||||
define Device/sinovoip_bananapi-p2-zero
|
||||
DEVICE_VENDOR := Sinovoip
|
||||
DEVICE_MODEL := Banana Pi P2 Zero
|
||||
DEVICE_PACKAGES:=kmod-leds-gpio kmod-brcmfmac \
|
||||
cypress-firmware-43430-sdio wpad-basic-mbedtls
|
||||
SOC := sun8i-h2-plus
|
||||
endef
|
||||
TARGET_DEVICES += sinovoip_bananapi-p2-zero
|
||||
|
||||
define Device/xunlong_orangepi-one
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi One
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-one
|
||||
|
||||
define Device/xunlong_orangepi-pc
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi PC
|
||||
DEVICE_PACKAGES:=kmod-gpio-button-hotplug
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-pc
|
||||
|
||||
define Device/xunlong_orangepi-pc-plus
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi PC Plus
|
||||
DEVICE_PACKAGES:=kmod-gpio-button-hotplug
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-pc-plus
|
||||
|
||||
define Device/xunlong_orangepi-plus
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi Plus
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-plus
|
||||
|
||||
define Device/xunlong_orangepi-r1
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi R1
|
||||
DEVICE_PACKAGES:=kmod-usb-net-rtl8152
|
||||
SOC := sun8i-h2-plus
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-r1
|
||||
|
||||
define Device/xunlong_orangepi-zero
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi Zero
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi
|
||||
SOC := sun8i-h2-plus
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-zero
|
||||
|
||||
define Device/xunlong_orangepi-2
|
||||
DEVICE_VENDOR := Xunlong
|
||||
DEVICE_MODEL := Orange Pi 2
|
||||
DEVICE_PACKAGES:=kmod-rtc-sunxi
|
||||
SOC := sun8i-h3
|
||||
endef
|
||||
TARGET_DEVICES += xunlong_orangepi-2
|
||||
58
target/linux/sunxi/image/cortexa8.mk
Normal file
58
target/linux/sunxi/image/cortexa8.mk
Normal file
@@ -0,0 +1,58 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013-2016 OpenWrt.org
|
||||
# Copyright (C) 2016 Yousong Zhou
|
||||
|
||||
KERNEL_LOADADDR:=0x40008000
|
||||
|
||||
define Device/cubietech_a10-cubieboard
|
||||
DEVICE_VENDOR := Cubietech
|
||||
DEVICE_MODEL := Cubieboard
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi
|
||||
SOC := sun4i
|
||||
endef
|
||||
TARGET_DEVICES += cubietech_a10-cubieboard
|
||||
|
||||
define Device/haoyu_a10-marsboard
|
||||
DEVICE_VENDOR := HAOYU Electronics
|
||||
DEVICE_MODEL := MarsBoard A10
|
||||
DEVICE_PACKAGES:=kmod-ata-core kmod-ata-sunxi kmod-sun4i-emac \
|
||||
kmod-rtc-sunxi kmod-sound-core kmod-sound-soc-sunxi
|
||||
SUPPORTED_DEVICES += marsboard,a10-marsboard
|
||||
SOC := sun4i
|
||||
endef
|
||||
TARGET_DEVICES += haoyu_a10-marsboard
|
||||
|
||||
define Device/linksprite_a10-pcduino
|
||||
DEVICE_VENDOR := LinkSprite
|
||||
DEVICE_MODEL := pcDuino
|
||||
DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-rtl8192cu
|
||||
SOC := sun4i
|
||||
endef
|
||||
TARGET_DEVICES += linksprite_a10-pcduino
|
||||
|
||||
define Device/olimex_a10-olinuxino-lime
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A10-OLinuXino-LIME
|
||||
DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi
|
||||
SOC := sun4i
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a10-olinuxino-lime
|
||||
|
||||
define Device/olimex_a13-olimex-som
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A13-SOM
|
||||
DEVICE_PACKAGES:=kmod-rtl8192cu
|
||||
SUPPORTED_DEVICES:=olimex,a13-olinuxino
|
||||
SOC := sun5i-a13
|
||||
SUNXI_DTS := $$(SUNXI_DTS_DIR)sun5i-a13-olinuxino
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a13-olimex-som
|
||||
|
||||
define Device/olimex_a13-olinuxino
|
||||
DEVICE_VENDOR := Olimex
|
||||
DEVICE_MODEL := A13-OLinuXino
|
||||
DEVICE_PACKAGES:=kmod-rtl8192cu
|
||||
SOC := sun5i
|
||||
endef
|
||||
TARGET_DEVICES += olimex_a13-olinuxino
|
||||
31
target/linux/sunxi/image/gen_sunxi_sdcard_img.sh
Executable file
31
target/linux/sunxi/image/gen_sunxi_sdcard_img.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
|
||||
set -ex
|
||||
[ $# -eq 6 ] || {
|
||||
echo "SYNTAX: $0 <file> <bootfs image> <rootfs image> <bootfs size> <rootfs size> <u-boot image>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
OUTPUT="$1"
|
||||
BOOTFS="$2"
|
||||
ROOTFS="$3"
|
||||
BOOTFSSIZE="$4"
|
||||
ROOTFSSIZE="$5"
|
||||
UBOOT="$6"
|
||||
|
||||
head=4
|
||||
sect=63
|
||||
|
||||
set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M)
|
||||
|
||||
BOOTOFFSET="$(($1 / 512))"
|
||||
BOOTSIZE="$(($2 / 512))"
|
||||
ROOTFSOFFSET="$(($3 / 512))"
|
||||
ROOTFSSIZE="$(($4 / 512))"
|
||||
|
||||
dd bs=1024 if="$UBOOT" of="$OUTPUT" seek=8 conv=notrunc
|
||||
dd bs=512 if="$BOOTFS" of="$OUTPUT" seek="$BOOTOFFSET" conv=notrunc
|
||||
dd bs=512 if="$ROOTFS" of="$OUTPUT" seek="$ROOTFSOFFSET" conv=notrunc
|
||||
Reference in New Issue
Block a user