Update to 2016.01 RC1, Enable Orange Pi (original, mini, PC, plus)
This commit is contained in:
parent
1db9ba469e
commit
b5af79c725
|
@ -1,76 +0,0 @@
|
||||||
From patchwork Wed Nov 11 15:10:52 2015
|
|
||||||
Content-Type: text/plain; charset="utf-8"
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Transfer-Encoding: 7bit
|
|
||||||
Subject: [U-Boot] board/ti/am335x: add support for BeagleBone Green
|
|
||||||
From: robertcnelson@gmail.com
|
|
||||||
X-Patchwork-Id: 542919
|
|
||||||
Message-Id: <1447254652-19150-1-git-send-email-robertcnelson@gmail.com>
|
|
||||||
To: u-boot@lists.denx.de
|
|
||||||
Cc: Jason Kridner <jkridner@gmail.com>, Tom Rini <trini@konsulko.com>
|
|
||||||
Date: Wed, 11 Nov 2015 09:10:52 -0600
|
|
||||||
|
|
||||||
SeeedStudio BeagleBone Green (BBG) is clone of the BeagleBone Black (BBB) minus
|
|
||||||
the HDMI port and addition of two Grove connectors (i2c2 and usart2).
|
|
||||||
|
|
||||||
This board can be identified by the 1A value after A335BNLT (BBB) in the at24 eeprom:
|
|
||||||
1A: [aa 55 33 ee 41 33 33 35 42 4e 4c 54 1a 00 00 00 |.U3.A335BNLT....|]
|
|
||||||
|
|
||||||
http://beagleboard.org/green
|
|
||||||
http://www.seeedstudio.com/wiki/Beaglebone_green
|
|
||||||
|
|
||||||
In Mainline Kernel as of:
|
|
||||||
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=79a4e64c679d8a0b1037da174e4aea578c80c4e6
|
|
||||||
|
|
||||||
Patch tested on BeagleBone Black (rev C) and BeagleBone Green (production model)
|
|
||||||
|
|
||||||
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
|
|
||||||
CC: Tom Rini <trini@konsulko.com>
|
|
||||||
CC: Jason Kridner <jkridner@gmail.com>
|
|
||||||
Reviewed-by: Tom Rini <trini@konsulko.com>
|
|
||||||
---
|
|
||||||
board/ti/am335x/board.c | 12 +++++++++---
|
|
||||||
include/configs/am335x_evm.h | 7 ++++++-
|
|
||||||
2 files changed, 15 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
|
|
||||||
index f0cb1e2..f56d17e 100644
|
|
||||||
--- a/board/ti/am335x/board.c
|
|
||||||
+++ b/board/ti/am335x/board.c
|
|
||||||
@@ -507,9 +507,15 @@ int board_late_init(void)
|
|
||||||
safe_string[sizeof(header.name)] = 0;
|
|
||||||
setenv("board_name", safe_string);
|
|
||||||
|
|
||||||
- strncpy(safe_string, (char *)header.version, sizeof(header.version));
|
|
||||||
- safe_string[sizeof(header.version)] = 0;
|
|
||||||
- setenv("board_rev", safe_string);
|
|
||||||
+ /* BeagleBone Green eeprom, board_rev: 0x1a 0x00 0x00 0x00 */
|
|
||||||
+ if ( (header.version[0] == 0x1a) && (header.version[1] == 0x00) &&
|
|
||||||
+ (header.version[2] == 0x00) && (header.version[3] == 0x00) ) {
|
|
||||||
+ setenv("board_rev", "BBG1");
|
|
||||||
+ } else {
|
|
||||||
+ strncpy(safe_string, (char *)header.version, sizeof(header.version));
|
|
||||||
+ safe_string[sizeof(header.version)] = 0;
|
|
||||||
+ setenv("board_rev", safe_string);
|
|
||||||
+ }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
|
|
||||||
index d58816d..ed3fd34 100644
|
|
||||||
--- a/include/configs/am335x_evm.h
|
|
||||||
+++ b/include/configs/am335x_evm.h
|
|
||||||
@@ -186,7 +186,12 @@
|
|
||||||
"if test $board_name = A335BONE; then " \
|
|
||||||
"setenv fdtfile am335x-bone.dtb; fi; " \
|
|
||||||
"if test $board_name = A335BNLT; then " \
|
|
||||||
- "setenv fdtfile am335x-boneblack.dtb; fi; " \
|
|
||||||
+ "if test $board_rev = BBG1; then " \
|
|
||||||
+ "setenv fdtfile am335x-bonegreen.dtb; " \
|
|
||||||
+ "else " \
|
|
||||||
+ "setenv fdtfile am335x-boneblack.dtb; " \
|
|
||||||
+ "fi; " \
|
|
||||||
+ "fi; " \
|
|
||||||
"if test $board_name = A33515BB; then " \
|
|
||||||
"setenv fdtfile am335x-evm.dtb; fi; " \
|
|
||||||
"if test $board_name = A335X_SK; then " \
|
|
|
@ -60,6 +60,10 @@ novena
|
||||||
nyan-big
|
nyan-big
|
||||||
odroid
|
odroid
|
||||||
odroid-xu3
|
odroid-xu3
|
||||||
|
Orangepi
|
||||||
|
Orangepi_mini
|
||||||
|
orangepi_pc
|
||||||
|
orangepi_plus
|
||||||
omap3_beagle
|
omap3_beagle
|
||||||
omap4_panda
|
omap4_panda
|
||||||
omap5_uevm
|
omap5_uevm
|
||||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
||||||
16240974a8ba9babf1f65c1a70375c9b u-boot-2016.01-rc1.tar.bz2
|
aca6c7a38534812ab529e90aae976422 u-boot-2016.01-rc2.tar.bz2
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
%global candidate rc1
|
%global candidate rc2
|
||||||
|
|
||||||
Name: uboot-tools
|
Name: uboot-tools
|
||||||
Version: 2016.01
|
Version: 2016.01
|
||||||
Release: 0.1%{?candidate:.%{candidate}}%{?dist}
|
Release: 0.2%{?candidate:.%{candidate}}%{?dist}
|
||||||
Summary: U-Boot utilities
|
Summary: U-Boot utilities
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
@ -13,7 +13,6 @@ Source1: armv7-boards
|
||||||
|
|
||||||
Patch1: 0004-Add-BOOTENV_INIT_COMMAND-for-commands-that-may-be-ne.patch
|
Patch1: 0004-Add-BOOTENV_INIT_COMMAND-for-commands-that-may-be-ne.patch
|
||||||
Patch2: 0005-port-utilite-to-distro-generic-boot-commands.patch
|
Patch2: 0005-port-utilite-to-distro-generic-boot-commands.patch
|
||||||
Patch3: U-Boot-board-ti-am335x-add-support-for-BeagleBone-Green.patch
|
|
||||||
|
|
||||||
BuildRequires: bc
|
BuildRequires: bc
|
||||||
BuildRequires: dtc
|
BuildRequires: dtc
|
||||||
|
@ -163,6 +162,10 @@ install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 8 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2016.01-0.2rc2
|
||||||
|
- Update to 2016.01 RC1
|
||||||
|
- Enable Orange Pi (original, mini, PC, plus)
|
||||||
|
|
||||||
* Tue Nov 17 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2016.01-0.1rc1
|
* Tue Nov 17 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2016.01-0.1rc1
|
||||||
- Update to 2016.01 RC1
|
- Update to 2016.01 RC1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue