Skip to contentSkip to conversation

config: am335x_evm: detect Black Wireless using BWA

PATCH New Robert Nelson 3 participants 13 messages Mar 30, 2017 – Apr 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 config: am335x_evm: detect Black Wireless using BWA

BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom:
BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|]

http://beagleboard.org/black-wireless
https://github.com/beagleboard/beaglebone-black-wireless

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
---
 board/ti/am335x/board.c      | 7 +++++++
 include/configs/am335x_evm.h | 2 ++
 2 files changed, 9 insertions(+)
board/ti/am335x/board.c +7 -0
index 8eaf3e9a5c..304ae34fb7 100644
@@ -651,6 +651,13 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 	char *name = NULL;
 
+	if (board_is_bone_lt()) {
+		/* BeagleBoard.org BeagleBone Black Wireless: */
+		if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
+			name = "BBBW";
+		}
+	}
+
 	if (board_is_bbg1())
 		name = "BBG1";
 	set_board_info_env(name);
include/configs/am335x_evm.h +2 -0
index 27126871f7..dcac2f5816 100644
@@ -138,6 +138,8 @@
 			"setenv fdtfile am335x-bone.dtb; fi; " \
 		"if test $board_name = A335BNLT; then " \
 			"setenv fdtfile am335x-boneblack.dtb; fi; " \
+		"if test $board_name = BBBW; then " \
+			"setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
 		"if test $board_name = BBG1; then " \
 			"setenv fdtfile am335x-bonegreen.dtb; fi; " \
 		"if test $board_name = A33515BB; then " \
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/3 config: am335x_evm: detect Black Wireless using BWA

fyi: these are board only, SPL/device tree will need a bigger resync on am33xx from kernel.rog

Regards,

Quoted 56 lines · Robert Nelson

BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom:
BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|]

http://beagleboard.org/black-wireless
https://github.com/beagleboard/beaglebone-black-wireless

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
---
 board/ti/am335x/board.c      | 7 +++++++
 include/configs/am335x_evm.h | 2 ++
 2 files changed, 9 insertions(+)
board/ti/am335x/board.c +7 -0
index 8eaf3e9a5c..304ae34fb7 100644
@@ -651,6 +651,13 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
        char *name = NULL;
 
+       if (board_is_bone_lt()) {
+               /* BeagleBoard.org BeagleBone Black Wireless: */
+               if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
+                       name = "BBBW";
+               }
+       }
+
        if (board_is_bbg1())
                name = "BBG1";
        set_board_info_env(name);
include/configs/am335x_evm.h +2 -1
index 27126871f7..dcac2f5816 100644
@@ -138,6 +138,8 @@
                        "setenv fdtfile am335x-bone.dtb; fi; " \
                "if test $board_name = A335BNLT; then " \
                        "setenv fdtfile am335x-boneblack.dtb; fi; " \
+               "if test $board_name = BBBW; then " \
+                       "setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
                "if test $board_name = BBG1; then " \
                        "setenv fdtfile am335x-bonegreen.dtb; fi; " \
                "if test $board_name = A33515BB; then " \
--

2.11.0

Signature · 2 lines
Robert Nelson
https://rcn-ee.com/
#2 lore raw

PATCH 2/3 config: am335x_evm: detect Green Wireless using GW1

In reply to Robert Nelson

SeeedStudio BeagleBone Green Wireless (BBGW) is an expansion of the SeeedStudio Green (BBG) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the GW1x value after A335BNLT (BBB) in the at24 eeprom:
GW1x [aa 55 33 ee 41 33 33 35 42 4e 4c 54 47 57 31 41 |.U3.A335BNLTGW1A|]

http://beagleboard.org/green-wireless
http://wiki.seeed.cc/BeagleBone_Green_Wireless/

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: Stored in at24 eeprom at address 5-16:
hexdump -e '8/1 "%c"' /sys/bus/i2c/devices/0-0050/eeprom | cut -b 5-16

CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
---
 board/ti/am335x/board.c      | 4 ++++
 include/configs/am335x_evm.h | 2 ++
 2 files changed, 6 insertions(+)
board/ti/am335x/board.c +4 -0
index 304ae34fb7..54589638b3 100644
@@ -656,6 +656,10 @@ int board_late_init(void)
 		if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
 			name = "BBBW";
 		}
+		/* SeeedStudio BeagleBone Green Wireless */
+		if (!strncmp(board_ti_get_rev(), "GW1", 3)) {
+			name = "BBGW";
+		}
 	}
 
 	if (board_is_bbg1())
include/configs/am335x_evm.h +2 -0
index dcac2f5816..d90c5156d3 100644
@@ -142,6 +142,8 @@
 			"setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
 		"if test $board_name = BBG1; then " \
 			"setenv fdtfile am335x-bonegreen.dtb; fi; " \
+		"if test $board_name = BBGW; then " \
+			"setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \
 		"if test $board_name = A33515BB; then " \
 			"setenv fdtfile am335x-evm.dtb; fi; " \
 		"if test $board_name = A335X_SK; then " \
Signature · 1 line
2.11.0
#3 lore raw

PATCH 2/3 config: am335x_evm: detect Green Wireless using GW1

Quoted 11 lines · Robert Nelson

SeeedStudio BeagleBone Green Wireless (BBGW) is an expansion of the SeeedStudio Green (BBG) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the GW1x value after A335BNLT (BBB) in the at24 eeprom:
GW1x [aa 55 33 ee 41 33 33 35 42 4e 4c 54 47 57 31 41 |.U3.A335BNLTGW1A|]

http://beagleboard.org/green-wireless
http://wiki.seeed.cc/BeagleBone_Green_Wireless/

Quoted 8 lines

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: Stored in at24 eeprom at address 5-16:
hexdump -e '8/1 "%c"' /sys/bus/i2c/devices/0-0050/eeprom | cut -b 5-16

CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170404/a484cb6d/attachment.sig>
#4 lore raw

PATCH 2/3 config: am335x_evm: detect Green Wireless using GW1

In reply to Robert Nelson
Quoted 15 lines · robertcnelson at gmail.com

SeeedStudio BeagleBone Green Wireless (BBGW) is an expansion of the SeeedStudio Green (BBG) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the GW1x value after A335BNLT (BBB) in the at24 eeprom:
GW1x [aa 55 33 ee 41 33 33 35 42 4e 4c 54 47 57 31 41 |.U3.A335BNLTGW1A|]

http://beagleboard.org/green-wireless
http://wiki.seeed.cc/BeagleBone_Green_Wireless/

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: Stored in at24 eeprom at address 5-16:
hexdump -e '8/1 "%c"' /sys/bus/i2c/devices/0-0050/eeprom | cut -b 5-16

Quoted 5 lines

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170408/7acf705f/attachment.sig>
#5 lore raw

PATCH 3/3 config: am335x_evm: detect BeagleBone Blue using BLA

In reply to Robert Nelson

BeagleBone Blue is next grenation of boards from BeagleBoard.org, focusing on robotics with a TI wl1835 wireless module for connectivity.

This board can be indentified by the BLAx value after A335BNLT (BBB) in the at24 eeprom:
BLAx: [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 4c 41 30 |.U3.A335BNLTBLA2|]

http://beagleboard.org/blue
https://github.com/beagleboard/beaglebone-blue

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
---
 board/ti/am335x/board.c      | 4 ++++
 include/configs/am335x_evm.h | 2 ++
 2 files changed, 6 insertions(+)
board/ti/am335x/board.c +4 -0
index 54589638b3..3e842d3187 100644
@@ -660,6 +660,10 @@ int board_late_init(void)
 		if (!strncmp(board_ti_get_rev(), "GW1", 3)) {
 			name = "BBGW";
 		}
+		/* BeagleBoard.org BeagleBone Blue */
+		if (!strncmp(board_ti_get_rev(), "BLA", 3)) {
+			name = "BBBL";
+		}
 	}
 
 	if (board_is_bbg1())
include/configs/am335x_evm.h +2 -0
index d90c5156d3..5fbc1e3ff9 100644
@@ -144,6 +144,8 @@
 			"setenv fdtfile am335x-bonegreen.dtb; fi; " \
 		"if test $board_name = BBGW; then " \
 			"setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \
+		"if test $board_name = BBBL; then " \
+			"setenv fdtfile am335x-boneblue.dtb; fi; " \
 		"if test $board_name = A33515BB; then " \
 			"setenv fdtfile am335x-evm.dtb; fi; " \
 		"if test $board_name = A335X_SK; then " \
Signature · 1 line
2.11.0
#6 lore raw

PATCH 3/3 config: am335x_evm: detect BeagleBone Blue using BLA

Quoted 10 lines · Robert Nelson

BeagleBone Blue is next grenation of boards from BeagleBoard.org, focusing on robotics with a TI wl1835 wireless module for connectivity.

This board can be indentified by the BLAx value after A335BNLT (BBB) in the at24 eeprom:
BLAx: [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 4c 41 30 |.U3.A335BNLTBLA2|]

http://beagleboard.org/blue
https://github.com/beagleboard/beaglebone-blue

Quoted 7 lines

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170404/57dc8699/attachment.sig>
#7 lore raw

PATCH 3/3 config: am335x_evm: detect BeagleBone Blue using BLA

In reply to Robert Nelson
Quoted 10 lines · robertcnelson at gmail.com

BeagleBone Blue is next grenation of boards from BeagleBoard.org, focusing on robotics with a TI wl1835 wireless module for connectivity.

This board can be indentified by the BLAx value after A335BNLT (BBB) in the at24 eeprom:
BLAx: [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 4c 41 30 |.U3.A335BNLTBLA2|]

http://beagleboard.org/blue
https://github.com/beagleboard/beaglebone-blue

Quoted 8 lines

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170408/03f52a4a/attachment.sig>
#8 lore raw

PATCH 1/3 config: am335x_evm: detect Black Wireless using BWA

In reply to Robert Nelson
Quoted 10 lines · Robert Nelson

BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom:
BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|]

http://beagleboard.org/black-wireless
https://github.com/beagleboard/beaglebone-black-wireless

Quoted 7 lines

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170404/0ac08c2e/attachment.sig>
#9 lore raw

PATCH 1/3 config: am335x_evm: detect Black Wireless using BWA

In reply to Robert Nelson
Quoted 13 lines · Robert Nelson

BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom:
BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|]

http://beagleboard.org/black-wireless
https://github.com/beagleboard/beaglebone-black-wireless

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

Quoted 7 lines
CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
---
 board/ti/am335x/board.c      | 7 +++++++
 include/configs/am335x_evm.h | 2 ++

Shouldn't this also update "CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2"" in configs/am335x_evm_defconfig ans possibly other am33xx_ configs?

Peter

Quoted 38 lines
board/ti/am335x/board.c +7 -0
index 8eaf3e9a5c..304ae34fb7 100644
@@ -651,6 +651,13 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
        char *name = NULL;
 
+       if (board_is_bone_lt()) {
+               /* BeagleBoard.org BeagleBone Black Wireless: */
+               if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
+                       name = "BBBW";
+               }
+       }
+
        if (board_is_bbg1())
                name = "BBG1";
        set_board_info_env(name);
include/configs/am335x_evm.h +2 -1
index 27126871f7..dcac2f5816 100644
@@ -138,6 +138,8 @@
                        "setenv fdtfile am335x-bone.dtb; fi; " \
                "if test $board_name = A335BNLT; then " \
                        "setenv fdtfile am335x-boneblack.dtb; fi; " \
+               "if test $board_name = BBBW; then " \
+                       "setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
                "if test $board_name = BBG1; then " \
                        "setenv fdtfile am335x-bonegreen.dtb; fi; " \
                "if test $board_name = A33515BB; then " \
--

2.11.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#10 lore raw

PATCH 1/3 config: am335x_evm: detect Black Wireless using BWA

Quoted 22 lines · Peter Robinson
Quoted 13 lines · Robert Nelson

BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom:
BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|]

http://beagleboard.org/black-wireless
https://github.com/beagleboard/beaglebone-black-wireless

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

Quoted 7 lines
CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
---
 board/ti/am335x/board.c      | 7 +++++++
 include/configs/am335x_evm.h | 2 ++
Quoted 3 lines

Shouldn't this also update "CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2"" in configs/am335x_evm_defconfig ans possibly other am33xx_ configs?

Hi Peter,

Currently these patches rely on "CONFIG_OF_CONTROL" being disabled (non-device-tree boot, aka the old boot method), after we resync with kernel.org's ti/omap device tree changes. We can go back and enable device-tree boot for these new devices.

Regards,

Signature · 2 lines
Robert Nelson
https://rcn-ee.com/
#11 lore raw

PATCH 1/3 config: am335x_evm: detect Black Wireless using BWA

Quoted 27 lines · Robert Nelson
Quoted 22 lines · Peter Robinson
Quoted 13 lines · Robert Nelson

BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom:
BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|]

http://beagleboard.org/black-wireless
https://github.com/beagleboard/beaglebone-black-wireless

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

Quoted 7 lines
CC Tom Rini <[email protected]>
CC Jason Kridner <[email protected]>
CC Will Newton <[email protected]>
---
 board/ti/am335x/board.c      | 7 +++++++
 include/configs/am335x_evm.h | 2 ++
Quoted 3 lines

Shouldn't this also update "CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2"" in configs/am335x_evm_defconfig ans possibly other am33xx_ configs?

Quoted 6 lines

Hi Peter,

Currently these patches rely on "CONFIG_OF_CONTROL" being disabled (non-device-tree boot, aka the old boot method), after we resync with kernel.org's ti/omap device tree changes. We can go back and enable device-tree boot for these new devices.

and side note, with CONFIG_OF_CONTROL enabled with these patches, they'll still just use "am335x-boneblack.dtb" in spl/device-tree boot mode.. Since they share the black's eeprom base identifier.

Regards,

Signature · 2 lines
Robert Nelson
https://rcn-ee.com/
#12 lore raw

PATCH 1/3 config: am335x_evm: detect Black Wireless using BWA

In reply to Robert Nelson
Quoted 10 lines · robertcnelson at gmail.com

BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module.

This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom:
BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|]

http://beagleboard.org/black-wireless
https://github.com/beagleboard/beaglebone-black-wireless

Quoted 8 lines

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: /proc/device-tree/ocp/ethernet at 4a100000/slave at 4a100200/mac-address

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170408/91f4eb91/attachment.sig>