Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Created December 17, 2015 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertCNelson/21f44591c78daed7c637 to your computer and use it in GitHub Desktop.
Save RobertCNelson/21f44591c78daed7c637 to your computer and use it in GitHub Desktop.
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index f56d17e..a577579 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -511,6 +511,9 @@ int board_late_init(void)
if ( (header.version[0] == 0x1a) && (header.version[1] == 0x00) &&
(header.version[2] == 0x00) && (header.version[3] == 0x00) ) {
setenv("board_rev", "BBG1");
+ } else if ( (header.version[0] == 0x74) && (header.version[1] == 0x0a) &&
+ (header.version[2] == 0x75) && (header.version[3] == 0x65) ) {
+ setenv("board_rev", "000C");
} else {
strncpy(safe_string, (char *)header.version, sizeof(header.version));
safe_string[sizeof(header.version)] = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment