Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
config BR2_PACKAGE_SUNXI_TOOLS
bool "sunxi-tools"
depends on BR2_arm
help
Tools for Allwinner A10 (aka sun4i) and A13 (aka sun5i)
based devices.
http://linux-sunxi.org/Sunxi-tools
if BR2_PACKAGE_SUNXI_TOOLS
config BR2_PACKAGE_SUNXI_TOOLS_FEXC
bool "sunxi-fexc (fex2bin & bin2fex)"
help
Convert between .fex board definition files and binary
format. These tools are specific for the linux-sunxi kernel
and do not apply to the mainline Linux kernel version.
config BR2_PACKAGE_SUNXI_TOOLS_BOOTINFO
bool "sunxi-bootinfo"
help
Displays information about sunxi boot code.
config BR2_PACKAGE_SUNXI_TOOLS_FEL
bool "sunxi-fel"
depends on !BR2_STATIC_LIBS # dtc
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
select BR2_PACKAGE_DTC
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_ZLIB
help
The sunxi-fel command can interact with a sunxi device in
fel mode. This allows do download code to memory and execute
it.
comment "sunxi-fel needs a toolchain w/ dynamic library, threads, gcc >= 4.9"
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
config BR2_PACKAGE_SUNXI_TOOLS_NAND_PART
bool "sunxi-nand-part"
default y
help
The sunxi-nand-part command allows to repartition the internal
NAND on sunxi devices.
config BR2_PACKAGE_SUNXI_TOOLS_PIO
bool "sunxi-pio"
help
GPIO manipulation tool for sunxi boards.
config BR2_PACKAGE_SUNXI_TOOLS_MEMINFO
bool "sunxi-meminfo"
help
Utility to retrieve DRAM information from registers on
Allwinner SoCs. Specific for the linux-sunxi kernel - does
not apply to the mainline Linux kernel version.
config BR2_PACKAGE_SUNXI_TOOLS_PHOENIX_INFO
bool "phoenix_info"
help
Display information about self-installing SD card images
(created with Phoenix Card).
https://linux-sunxi.org/PhoenixCard
config BR2_PACKAGE_SUNXI_TOOLS_NAND_IMAGE_BUILDER
bool "sunxi-nand-image-builder"
help
Creates a raw NAND image that can be read by the sunxi NAND
controller.
endif # BR2_PACKAGE_SUNXI_TOOLS

View File

@@ -0,0 +1,18 @@
config BR2_PACKAGE_HOST_SUNXI_TOOLS
bool "host sunxi-tools"
depends on BR2_arm
depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-libusb
select BR2_PACKAGE_HOST_DTC
help
Tools for Allwinner A10 (aka sun4i) and A13 (aka sun5i)
based devices. This includes fex2bin which can be used to
compile .fex board definition files to the binary script.bin
format required by the linux-sunxi kernel. These tools are
specific for linux-sunxi kernel and do not apply to the
mainline Linux kernel version.
http://linux-sunxi.org/Sunxi-tools
comment "host sunxi-tools needs a toolchain w/ host gcc >= 4.9"
depends on BR2_arm
depends on !BR2_HOST_GCC_AT_LEAST_4_9

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 6589f32e9c2a5991cc49928e83aceea675f0165ce6f13cdd2dd784139a8d4efd sunxi-tools-1.4.2-168-ged3039cdbeeb28fc0011c3585d8f7dfb91038292.tar.gz
sha256 2b0d4dda4bf8034e1506507a67f80f982131137afe62bf144d248f9faea31da4 LICENSE.md

View File

@@ -0,0 +1,64 @@
################################################################################
#
# sunxi-tools
#
################################################################################
SUNXI_TOOLS_VERSION = 1.4.2-168-ged3039cdbeeb28fc0011c3585d8f7dfb91038292
SUNXI_TOOLS_SITE = $(call github,linux-sunxi,sunxi-tools,v$(SUNXI_TOOLS_VERSION))
SUNXI_TOOLS_LICENSE = GPL-2.0+
SUNXI_TOOLS_LICENSE_FILES = LICENSE.md
HOST_SUNXI_TOOLS_DEPENDENCIES = host-dtc host-libzlib host-libusb host-pkgconf
FEX2BIN = $(HOST_DIR)/bin/fex2bin
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_FEXC) += sunxi-fexc
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_BOOTINFO) += sunxi-bootinfo
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_FEL) += sunxi-fel
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_NAND_PART) += sunxi-nand-part
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_PIO) += sunxi-pio
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_MEMINFO) += sunxi-meminfo
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_PHOENIX_INFO) += phoenix_info
SUNXI_TOOLS_TARGETS_$(BR2_PACKAGE_SUNXI_TOOLS_NAND_IMAGE_BUILDER) += \
sunxi-nand-image-builder
ifeq ($(BR2_PACKAGE_SUNXI_TOOLS_FEXC),y)
SUNXI_TOOLS_FEXC_LINKS += fex2bin bin2fex
endif
ifeq ($(BR2_PACKAGE_SUNXI_TOOLS_FEL),y)
SUNXI_TOOLS_DEPENDENCIES += dtc libusb zlib host-pkgconf
endif
define HOST_SUNXI_TOOLS_BUILD_CMDS
$(HOST_MAKE_ENV) $(MAKE) CROSS_COMPILE="" CC="$(HOSTCC)" \
PREFIX=$(HOST_DIR) EXTRA_CFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS) -I$(HOST_DIR)/include/libfdt" \
-C $(@D) tools misc
endef
define HOST_SUNXI_TOOLS_INSTALL_CMDS
$(HOST_MAKE_ENV) $(MAKE) CROSS_COMPILE="" CC="$(HOSTCC)" \
PREFIX=$(HOST_DIR) EXTRA_CFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" -C $(@D) install-tools install-misc
endef
define SUNXI_TOOLS_BUILD_CMDS
$(foreach t,$(SUNXI_TOOLS_TARGETS_y), \
$(TARGET_MAKE_ENV) $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" PREFIX=/usr \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) $(t)
)
endef
define SUNXI_TOOLS_INSTALL_TARGET_CMDS
$(foreach t,$(SUNXI_TOOLS_TARGETS_y), \
$(INSTALL) -D -m 0755 $(@D)/$(t) $(TARGET_DIR)/usr/bin/$(t)
)
$(foreach t,$(SUNXI_TOOLS_FEXC_LINKS), \
ln -nfs sunxi-fexc $(TARGET_DIR)/usr/bin/$(t)
)
endef
$(eval $(generic-package))
$(eval $(host-generic-package))