Skip to contentSkip to conversation

u-boot 2011.10rc: Read EEPROM header correctly for BeagleBone board detection

PATCH Applied Joel A Fernandes 2 participants 2 messages Oct 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 u-boot 2011.10rc: Read EEPROM header correctly for BeagleBone board detection

This patch fixes the case where the EEPROM is programmed but we still use the fall back case to detect the bone board. Now that EEPROMs are programmed, we should correctly detect the bone board instead of relying on fall back to bone mode.

PR bumped

---
v2: Resolved merge conflict with 54906ebbec3447b47f298c92772fb619c969ec8a

 ...Read-name-field-in-EEPROM-header-for-Beag.patch |   28 ++++++++++++++++++++
 recipes-bsp/u-boot/u-boot_2011.10rc.bb             |    3 +-
 2 files changed, 30 insertions(+), 1 deletions(-)
 create mode 100644 recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch
recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch new file +28 -0
new file mode 100644
index 0000000..ef901a9
@@ -0,0 +1,28 @@
+From 186250ee6abca3f080b5321504a1c5881ffbf7c6 Mon Sep 17 00:00:00 2001
+From: Joel A Fernandes <[email protected]>
+Date: Thu, 20 Oct 2011 19:46:53 -0500
+Subject: [PATCH] am335x-evm: Read name field in EEPROM header for BeagleBoard bone detection
+
+Signed-off-by: Joel A Fernandes <[email protected]>
+---
+ board/ti/am335x/evm.c |    4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
+index 37e348f..b63dcbe 100755
+--- a/board/ti/am335x/evm.c
++++ b/board/ti/am335x/evm.c
+@@ -501,6 +501,10 @@ int board_init(void)
+ 		detect_daughter_board_profile();
+ 	} else if (!strncmp("SKU#03", header.config, 6)) {
+ 		board_id = IPP_BOARD;
++	} else if (!strncmp("A335BONE", header.name, 8)) {
++		board_id = BONE_BOARD;
++		profile = 1;	/* profile 0 is internally considered as 1 */
++		daughter_board_connected = 0;
+ 	} else {
+ 		printf("Did not find a recognized configuration, "
+ 			"assuming BeagleBone\n");
+-- 
+1.7.1
+
recipes-bsp/u-boot/u-boot_2011.10rc.bb +2 -1
index 0bd39d3..ca7b670 100644
@@ -4,7 +4,7 @@ require u-boot.inc
 COMPATIBLE_MACHINE = "(ti33x)"
 DEFAULT_PREFERENCE_ti33x = "99"
 PV = "2011.09+git"
-PR = "r14"
+PR = "r15"
 
 # SPL build
 UBOOT_BINARY = "u-boot.img"
@@ -18,6 +18,7 @@ SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;br
            file://2011.09git/0001-mach-types-Add-new-beaglebone-machine-type.patch \
            file://2011.09git/0003-am335x_evm-single-byte-address-EEPROM-for-board-iden.patch \
            file://2011.09git/0004-am335x-evm-fall-back-to-bone-if-header.config-is-emp.patch \
+           file://2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch \
           "
 
 SRCREV = "9158d7f37d596b867039345cb2e3f8f18f54fe46"
Signature · 1 line
1.7.0.4
Applied
#1 lore raw

Applied, thanks!

Op 21 okt. 2011, om 16:31 heeft Joel A Fernandes het volgende geschreven:

Quoted 77 lines

This patch fixes the case where the EEPROM is programmed but we still use the fall back case to detect the bone board. Now that EEPROMs are programmed, we should correctly detect the bone board instead of relying on fall back to bone mode.

PR bumped

---
v2: Resolved merge conflict with 54906ebbec3447b47f298c92772fb619c969ec8a

...Read-name-field-in-EEPROM-header-for-Beag.patch | 28 ++++++++++++++++++++
recipes-bsp/u-boot/u-boot_2011.10rc.bb | 3 +-

2 files changed, 30 insertions(+), 1 deletions(-)

create mode 100644 recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch

recipes-bsp/u-boot/u-boot/2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch new file +28 -0
new file mode 100644
index 0000000..ef901a9
@@ -0,0 +1,28 @@
+From 186250ee6abca3f080b5321504a1c5881ffbf7c6 Mon Sep 17 00:00:00 2001
+From: Joel A Fernandes <[email protected]>
+Date: Thu, 20 Oct 2011 19:46:53 -0500
+Subject: [PATCH] am335x-evm: Read name field in EEPROM header for BeagleBoard bone detection
+
+Signed-off-by: Joel A Fernandes <[email protected]>
+---
+ board/ti/am335x/evm.c |    4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
+index 37e348f..b63dcbe 100755
+--- a/board/ti/am335x/evm.c
++++ b/board/ti/am335x/evm.c
+@@ -501,6 +501,10 @@ int board_init(void)
+ 		detect_daughter_board_profile();
+ 	} else if (!strncmp("SKU#03", header.config, 6)) {
+ 		board_id = IPP_BOARD;
++	} else if (!strncmp("A335BONE", header.name, 8)) {
++		board_id = BONE_BOARD;
++		profile = 1;	/* profile 0 is internally considered as 1 */
++		daughter_board_connected = 0;
+ 	} else {
+ 		printf("Did not find a recognized configuration, "
+ 			"assuming BeagleBone\n");
+-- 
+1.7.1
+
recipes-bsp/u-boot/u-boot_2011.10rc.bb +0 -0
index 0bd39d3..ca7b670 100644
@@ -4,7 +4,7 @@ require u-boot.inc

COMPATIBLE_MACHINE = "(ti33x)"
DEFAULT_PREFERENCE_ti33x = "99"
PV = "2011.09+git"

recipes-bsp/u-boot/u-boot_2011.10rc.bb +1 -1
-PR = "r14"
+PR = "r15"

# SPL build
UBOOT_BINARY = "u-boot.img"

recipes-bsp/u-boot/u-boot_2011.10rc.bb +1 -0
@@ -18,6 +18,7 @@ SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;br
           file://2011.09git/0001-mach-types-Add-new-beaglebone-machine-type.patch \
           file://2011.09git/0003-am335x_evm-single-byte-address-EEPROM-for-board-iden.patch \
           file://2011.09git/0004-am335x-evm-fall-back-to-bone-if-header.config-is-emp.patch \
+           file://2011.09git/0005-am335x-evm-Read-name-field-in-EEPROM-header-for-Beag.patch \
          "
 

SRCREV = "9158d7f37d596b867039345cb2e3f8f18f54fe46"

Signature · 6 lines
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti