Skip to contentSkip to conversation

ARM: bitmain: Extend bitmain S9 board

PATCH New Michal Simek 2 participants 5 messages Mar 22, 2021 – Mar 30, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover ARM: bitmain: Extend bitmain S9 board

Hi,

a lot of these boards are very cheap to buy now. Get this board up to date based on latest features available for zynq.

Thanks,
Michal

Michal Simek (3):
ARM: bitmain: Enable nand and smcc drivers
ARM: bitmain: Enable legacy u-boot format
ARM: bitmain: Enable saving variables to SD card

 arch/arm/dts/bitmain-antminer-s9.dts  | 8 ++++++++
 configs/bitmain_antminer_s9_defconfig | 2 ++
 2 files changed, 10 insertions(+)
Signature · 1 line
2.31.0
#1 lore raw

PATCH 1/3 ARM: bitmain: Enable nand and smcc drivers

Enable nand and smcc via DT.

---

 arch/arm/dts/bitmain-antminer-s9.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/dts/bitmain-antminer-s9.dts +8 -0
index 7362ad4e8f99..0694350555f5 100644
@@ -50,6 +50,14 @@
 	ps-clk-frequency = <33333333>;
 };
 
+&nand0 {
+	status = "okay";
+};
+
+&smcc {
+	status = "okay";
+};
+
 &gem0 {
 	status = "okay";
 	phy-mode = "rgmii-id";
Signature · 1 line
2.31.0
#2 lore raw

PATCH 2/3 ARM: bitmain: Enable legacy u-boot format

In reply to Michal Simek

Still legacy formats are used that's why enable them by default.

---

 configs/bitmain_antminer_s9_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/bitmain_antminer_s9_defconfig +1 -0
index f9904483919a..ea21a5e1e5c6 100644
@@ -19,6 +19,7 @@ CONFIG_SYS_LDSCRIPT="arch/arm/mach-zynq/u-boot.lds"
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_PREBOOT=y
 # CONFIG_DISPLAY_CPUINFO is not set
Signature · 1 line
2.31.0
#3 lore raw

PATCH 3/3 ARM: bitmain: Enable saving variables to SD card

In reply to Michal Simek

Board has NAND and SD interfaces which can be used for saving variables too.

---

Based on "xilinx: zynq: Add support for saving env based on bootmode"

---
 configs/bitmain_antminer_s9_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/bitmain_antminer_s9_defconfig +1 -0
index ea21a5e1e5c6..76cccfa586c5 100644
@@ -51,6 +51,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_ENV_OVERWRITE=y
+CONFIG_ENV_IS_IN_FAT=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
Signature · 1 line
2.31.0
Applied
#4 lore raw

cover ARM: bitmain: Extend bitmain S9 board

In reply to Michal Simek

po 22. 3. 2021 v 15:48 odes?latel Michal Simek <[email protected]> napsal:

Quoted 15 lines

Hi,

a lot of these boards are very cheap to buy now. Get this board up to date based on latest features available for zynq.

Thanks,
Michal

Michal Simek (3):
ARM: bitmain: Enable nand and smcc drivers
ARM: bitmain: Enable legacy u-boot format
ARM: bitmain: Enable saving variables to SD card

Quoted 7 lines
 arch/arm/dts/bitmain-antminer-s9.dts  | 8 ++++++++
 configs/bitmain_antminer_s9_defconfig | 2 ++
 2 files changed, 10 insertions(+)

--
2.31.0

Applied.
M

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs