diff mbox

[1/1] configs: update config for Atmel SAMA5D3 Xplained board

Message ID 1425526590-5961-1-git-send-email-ryanbarnett3@gmail.com
State Accepted
Headers show

Commit Message

Ryan Barnett March 5, 2015, 3:36 a.m. UTC
Update configuration to use the 3.18.8 kernel and update U-Boot to
2015.01. With the switch to 2015.01. use the U-Boot SPL image for the
first stage bootloader instead of the at91bootstrap. The U-Boot SPL
requires that the U-Boot image format be u-boot.img in order to load
from the SD card.

Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com>
---
 board/atmel/xplained/readme.txt  |  4 ++--
 configs/atmel_xplained_defconfig | 16 +++++++---------
 2 files changed, 9 insertions(+), 11 deletions(-)

Comments

Thomas Petazzoni March 5, 2015, 11:30 a.m. UTC | #1
Dear Ryan Barnett,

On Wed,  4 Mar 2015 21:36:30 -0600, Ryan Barnett wrote:
> Update configuration to use the 3.18.8 kernel and update U-Boot to
> 2015.01. With the switch to 2015.01. use the U-Boot SPL image for the
> first stage bootloader instead of the at91bootstrap. The U-Boot SPL
> requires that the U-Boot image format be u-boot.img in order to load
> from the SD card.
> 
> Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com>
> ---
>  board/atmel/xplained/readme.txt  |  4 ++--
>  configs/atmel_xplained_defconfig | 16 +++++++---------
>  2 files changed, 9 insertions(+), 11 deletions(-)

I've tested this on HW, and applied, thanks!

Now that there is a sama5d4 Xplained board, maybe we should rename this
defconfig, and the board directory to sama5d3-xplained or something
like that.

Thomas
Alexandre Belloni March 5, 2015, 12:43 p.m. UTC | #2
On 05/03/2015 at 12:30:54 +0100, Thomas Petazzoni wrote :
> Dear Ryan Barnett,
> 
> On Wed,  4 Mar 2015 21:36:30 -0600, Ryan Barnett wrote:
> > Update configuration to use the 3.18.8 kernel and update U-Boot to
> > 2015.01. With the switch to 2015.01. use the U-Boot SPL image for the
> > first stage bootloader instead of the at91bootstrap. The U-Boot SPL
> > requires that the U-Boot image format be u-boot.img in order to load
> > from the SD card.
> > 
> > Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com>
> > ---
> >  board/atmel/xplained/readme.txt  |  4 ++--
> >  configs/atmel_xplained_defconfig | 16 +++++++---------
> >  2 files changed, 9 insertions(+), 11 deletions(-)
> 
> I've tested this on HW, and applied, thanks!
> 
> Now that there is a sama5d4 Xplained board, maybe we should rename this

The sama5d4 Xplained real name is actually sama5d4 Xplained Ultra. That
would probably be different enough, unless Linux starts running on the
MCUs.
diff mbox

Patch

diff --git a/board/atmel/xplained/readme.txt b/board/atmel/xplained/readme.txt
index e29a116..63744dd 100644
--- a/board/atmel/xplained/readme.txt
+++ b/board/atmel/xplained/readme.txt
@@ -52,8 +52,8 @@  sudo mount /dev/mmcblk0p2 /media/rootfs
 Copy the bootloaders, kernel image and Device Tree blob to the first
 partition:
 
-cp output/images/sama5d3_xplained-sdcardboot-uboot-3.6.2.bin /media/boot/boot.bin
-cp output/images/u-boot.bin /media/boot/u-boot.bin
+cp output/images/uboot-spl.bin /media/boot/boot.bin
+cp output/images/u-boot.img /media/boot/u-boot.img
 cp output/images/zImage /media/boot/zImage
 cp output/images/at91-sama5d3_xplained.dtb /media/boot/at91-sama5d3_xplained.dtb
 
diff --git a/configs/atmel_xplained_defconfig b/configs/atmel_xplained_defconfig
index 8c06489..087f4fa 100644
--- a/configs/atmel_xplained_defconfig
+++ b/configs/atmel_xplained_defconfig
@@ -5,24 +5,22 @@  BR2_cortex_a5=y
 # Toolchain configuration
 BR2_ARM_EABIHF=y
 BR2_KERNEL_HEADERS_VERSION=y
-BR2_DEFAULT_KERNEL_VERSION="3.15"
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_15=y
+BR2_DEFAULT_KERNEL_VERSION="3.18.8"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
 
 # Kernel configuration
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.15"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.18.8"
 BR2_LINUX_KERNEL_DEFCONFIG="sama5"
 BR2_LINUX_KERNEL_ZIMAGE=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91-sama5d3_xplained"
 
-# First stage bootloader
-BR2_TARGET_AT91BOOTSTRAP3=y
-BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG="sama5d3_xplainedsd_uboot"
-
-# Second stage bootloader
+# First/second stage bootloader
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BOARDNAME="sama5d3_xplained_mmc"
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2014.04"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2015.01"
+BR2_TARGET_UBOOT_FORMAT_IMG=y
+BR2_TARGET_UBOOT_SPL=y