package/sunxi-tools: additional build options
PATCH 1/1 package/sunxi-tools: additional build options
From: Alex Kaplan <[email protected]>
This patch allows to select the installation of additional commands which are part of the sunxi-tools. It's now possible to e.g. install sunxi-fel on the target device. The corresponding options have been added to Config.in and sunxi-tools.mk has been modified respectively. The default setting is to only build sunxi-nand-part.
On the host building of the misc-tools target is added, which provides sunxi-nand-image-builder and phoenix_info.
--- package/sunxi-tools/Config.in | 67 +++++++++++++++++++++++++++++++++++--- package/sunxi-tools/Config.in.host | 1 + package/sunxi-tools/sunxi-tools.mk | 45 ++++++++++++++++++++----- 3 files changed, 100 insertions(+), 13 deletions(-)
package/sunxi-tools/Config.in +63 -4
@@ -1,9 +1,68 @@ config BR2_PACKAGE_SUNXI_TOOLS - bool "sunxi nand-part" + bool "sunxi-tools" depends on BR2_arm help - nand-part is part of sunxi-tools for Allwinner A10 (aka - sun4i) and A13 (aka sun5i) based devices. It is a tool to - repartition the internal NAND on sunxi devices. + Tools for Allwinner A10 (aka sun4i) and A13 (aka sun5i) + based devices. http://linux-sunxi.org/Sunxi-tools + +if BR2_PACKAGE_SUNXI_TOOLS + +# from the "tools" make target +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_TOOLCHAIN_HAS_THREADS #libusb + select BR2_PACKAGE_LIBUSB + 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/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + +config BR2_PACKAGE_SUNXI_TOOLS_NAND_PART + bool "sunxi-nand-part" + help + The sunxi-nand-part command allows to repartition the internal + NAND on sunxi devices. + default y + +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
package/sunxi-tools/Config.in.host +1 -0
@@ -1,6 +1,7 @@ config BR2_PACKAGE_HOST_SUNXI_TOOLS bool "host sunxi-tools" depends on BR2_arm + select BR2_PACKAGE_HOST_LIBUSB help Tools for Allwinner A10 (aka sun4i) and A13 (aka sun5i) based devices. This includes fex2bin which can be used to
package/sunxi-tools/sunxi-tools.mk +36 -9
61 lines not on this page · raw message
Signature · 1 line
2.7.4
Thomas Petazzoni
AppliedPATCH 1/1 package/sunxi-tools: additional build options
Hello Alex,
Quoted 11 lines · On Mon, 12 Nov 2018 23:09:58 -0800, kaplan2539 at gmail.com wrote:
From: Alex Kaplan <[email protected]>
This patch allows to select the installation of additional commands which are part of the sunxi-tools. It's now possible to e.g. install sunxi-fel on the target device. The corresponding options have been added to Config.in and sunxi-tools.mk has been modified respectively. The default setting is to only build sunxi-nand-part.
On the host building of the misc-tools target is added, which provides sunxi-nand-image-builder and
phoenix_info.
Quoted 6 lines
Signed-off-by Alex Kaplan <[email protected]>--- package/sunxi-tools/Config.in | 67 +++++++++++++++++++++++++++++++++++--- package/sunxi-tools/Config.in.host | 1 + package/sunxi-tools/sunxi-tools.mk | 45 ++++++++++++++++++++----- 3 files changed, 100 insertions(+), 13 deletions(-)
Applied to master with the following changes:
[Thomas:
- properly format Config.in
- do not select BR2_PACKAGE_HOST_LIBUSB in Config.in.host, since this option doesn't exist
- properly indent code in sunxi-tools.mk]
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/sunxi-tools: additional build options
In reply to kaplan2539 at gmail.comHello,
Quoted 8 lines · On Mon, 12 Nov 2018 23:09:58 -0800, kaplan2539 at gmail.com wrote:
From: Alex Kaplan <[email protected]>
This patch allows to select the installation of additional commands which are part of the sunxi-tools. It's now possible to e.g. install sunxi-fel on the target device. The corresponding options have been added to Config.in and sunxi-tools.mk has been modified respectively. The default setting is to only build sunxi-nand-part.
Quoted 4 lines
On the host building of the misc-tools target is added, which provides sunxi-nand-image-builder and
phoenix_info.Signed-off-by Alex Kaplan <[email protected]>
This patch seems to be causing some build issues:
http://autobuild.buildroot.net/?reason=sunxi-tools-v1.4.1
Some new code that gets compiled uses inl/outl, which apparently aren't provided by musl on ARM ?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com