Skip to contentSkip to conversation

arm: mx5: Add support for USB armory board

PATCH Superseded andrej at inversepath.com 2 participants 2 messages Mar 18, 2015 – Mar 19, 2015

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm: mx5: Add support for USB armory board

From: Andrej Rosano <[email protected]>

Add support for Inverse Path USB armory board, an open source flash-drive sized computer based on Freescale i.MX53 SoC.

http://inversepath.com/usbarmory

Cc Stefano Babic <[email protected]>
Cc Chris Kuethe <[email protected]>
Cc Fabio Estevam <[email protected]>

---
Changes for v2:
- Fix double print_cpuinfo() call
- Fix CONFIG_BOOTCOMMAND typo
- Fix CONFIG_SYS_FSL_ESDHC_NUM to 1

 arch/arm/Kconfig                         |    5 +
 board/inversepath/usbarmory/Kconfig      |   15 +
 board/inversepath/usbarmory/MAINTAINERS  |    6 +
 board/inversepath/usbarmory/Makefile     |   10 +
 board/inversepath/usbarmory/imximage.cfg |   82 ++++++
 board/inversepath/usbarmory/usbarmory.c  |  439 ++++++++++++++++++++++++++++++
 configs/usbarmory_defconfig              |    3 +
 include/configs/usbarmory.h              |  115 ++++++++
 8 files changed, 675 insertions(+)
 create mode 100644 board/inversepath/usbarmory/Kconfig
 create mode 100644 board/inversepath/usbarmory/MAINTAINERS
 create mode 100644 board/inversepath/usbarmory/Makefile
 create mode 100644 board/inversepath/usbarmory/imximage.cfg
 create mode 100644 board/inversepath/usbarmory/usbarmory.c
 create mode 100644 configs/usbarmory_defconfig
 create mode 100644 include/configs/usbarmory.h
arch/arm/Kconfig +5 -0
index b9ebee1..a490084 100644
@@ -462,6 +462,10 @@ config TARGET_MX53SMD
 	bool "Support mx53smd"
 	select CPU_V7
 
+config TARGET_USBARMORY
+	bool "Support USB armory"
+	select CPU_V7
+
 config TARGET_MX51_EFIKAMX
 	bool "Support mx51_efikamx"
 	select CPU_V7
@@ -819,6 +823,7 @@ source "board/h2200/Kconfig"
 source "board/hale/tt01/Kconfig"
 source "board/icpdas/lp8x4x/Kconfig"
 source "board/imx31_phycore/Kconfig"
+source "board/inversepath/usbarmory/Kconfig"
 source "board/isee/igep0033/Kconfig"
 source "board/jornada/Kconfig"
 source "board/karo/tx25/Kconfig"
board/inversepath/usbarmory/Kconfig new file +15 -0
new file mode 100644
index 0000000..254b6c9
@@ -0,0 +1,15 @@
+if TARGET_USBARMORY
+
+config SYS_BOARD
+	default "usbarmory"
+
+config SYS_VENDOR
+	default "inversepath"
+
+config SYS_SOC
+	default "mx5"
+
+config SYS_CONFIG_NAME
+	default "usbarmory"
+
+endif
board/inversepath/usbarmory/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..71a3dd4
@@ -0,0 +1,6 @@
+USBARMORY BOARD
+M:	Andrej Rosano <[email protected]>
+S:	Maintained
+F:	board/inversepath/usbarmory/
+F:	include/configs/usbarmory.h
+F:	configs/usbarmory_defconfig
board/inversepath/usbarmory/Makefile new file +10 -0
new file mode 100644
index 0000000..9b8bd80
@@ -0,0 +1,10 @@
+#
+# USB armory MkI board Makefile
+# http://inversepath.com/usbarmory
+#
+# Copyright (C) 2015, Inverse Path
+# Andrej Rosano <[email protected]>
+#
+# SPDX-License-Identifier:|____GPL-2.0+
+
+obj-y	:= usbarmory.o
board/inversepath/usbarmory/imximage.cfg new file +82 -0

82 lines not on this page · raw message

board/inversepath/usbarmory/usbarmory.c new file +439 -0

439 lines not on this page · raw message

configs/usbarmory_defconfig new file +3 -0
new file mode 100644
index 0000000..994d2c7
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/inversepath/usbarmory/imximage.cfg"
+CONFIG_ARM=y
+CONFIG_TARGET_USBARMORY=y
include/configs/usbarmory.h new file +115 -0

115 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 arm: mx5: Add support for USB armory board

Quoted 11 lines · On Wed, Mar 18, 2015 at 3:53 PM, <[email protected]> wrote:

From: Andrej Rosano <[email protected]>

Add support for Inverse Path USB armory board, an open source flash-drive sized computer based on Freescale i.MX53 SoC.

http://inversepath.com/usbarmory

Cc Stefano Babic <[email protected]>
Cc Chris Kuethe <[email protected]>
Cc Fabio Estevam <[email protected]>

---
I don't have the default kernel image in place; the board boots when I do point it at a valid image.

U-Boot 2015.04-rc4-dirty (Mar 18 2015 - 16:12:11)

CPU:   Freescale i.MX53 rev2.1 at 800 MHz
Reset cause: POR
Board: Inverse Path USB armory MkI
I2C:   ready
DRAM:  512 MiB
MMC:   FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   CPU Net Initialization Failed

No ethernet found.
Hit any key to stop autoboot: 1 0
** File not found /boot/uImage **
16610 bytes read in 70 ms (231.4 KiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=> reset
resetting ...

U-Boot 2015.04-rc4-dirty (Mar 18 2015 - 16:12:11)

CPU:   Freescale i.MX53 rev2.1 at 800 MHz
Reset cause: WDOG
Board: Inverse Path USB armory MkI
I2C:   ready
DRAM:  512 MiB
MMC:   FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   CPU Net Initialization Failed

No ethernet found.
Hit any key to stop autoboot: 1 0
** File not found /boot/uImage **
16610 bytes read in 69 ms (234.4 KiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>

Signature · 1 line
GDB has a 'break' feature; why doesn't it have 'fix' too?