u-boot_2012.10-psp05.06.00.00: Fix mmc boot environment settings
PATCH 1/5 u-boot_2012.10-psp05.06.00.00: Fix mmc boot environment settings
* Add patch that tweaks environment settings for mmc.
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- ...35x_evm-fix-mmc-boot-environment-settings.patch | 87 ++++++++++++++++++++ .../u-boot/u-boot_2012.10-psp05.06.00.00.bb | 6 +- 2 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0001-am335x_evm-fix-mmc-boot-environment-settings.patch
meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0001-am335x_evm-fix-mmc-boot-environment-settings.patch new file +87 -0
@@ -0,0 +1,87 @@ +From aecef85a39d4839d91e526b88264596417e66c45 Mon Sep 17 00:00:00 2001 +From: Chase Maupin <[email protected]> +Date: Mon, 5 Nov 2012 15:13:05 -0600 +Subject: [PATCH 1/4] am335x_evm: fix mmc boot environment settings + +* Fixed the MMC boot environment settings to try first loading + the uImage from the FAT partition instead of the ext2 partition. +* Changed to load the kernel image a kloadaddr to avoid the need + to relocate the kernel image during boot. +* Added ip_method to mmc_args +* Use bootargs_defaults to set common variables + +Signed-off-by: Chase Maupin <[email protected]> +--- + include/configs/am335x_evm.h | 33 +++++++++++++++++++++------------ + 1 files changed, 21 insertions(+), 12 deletions(-) + +diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h +index ec2d835..bd9473b 100644 +--- a/include/configs/am335x_evm.h ++++ b/include/configs/am335x_evm.h +@@ -46,20 +46,25 @@ + + #define CONFIG_EXTRA_ENV_SETTINGS \ + "loadaddr=0x80200000\0" \ ++ "kloadaddr=0x80007fc0\0" \ + "fdtaddr=0x80F80000\0" \ + "rdaddr=0x81000000\0" \ +- "bootfile=/boot/uImage\0" \ ++ "bootfile=uImage\0" \ + "console=ttyO0,115200n8\0" \ + "optargs=\0" \ + "mmcdev=0\0" \ +- "mmcroot=/dev/mmcblk0p2 ro\0" \ +- "mmcrootfstype=ext3 rootwait\0" \ ++ "mmc_root=/dev/mmcblk0p2 ro\0" \ ++ "mmc_root_fs_type=ext3 rootwait\0" \ + "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \ + "ramrootfstype=ext2\0" \ +- "mmcargs=setenv bootargs console=${console} " \ +- "${optargs} " \ +- "root=${mmcroot} " \ +- "rootfstype=${mmcrootfstype}\0" \ ++ "ip_method=none\0" \ ++ "bootargs_defaults=setenv bootargs " \ ++ "console=${console} " \ ++ "${optargs}\0" \ ++ "mmc_args=run bootargs_defaults;" \ ++ "setenv bootargs ${bootargs} " \ ++ "root=${mmc_root} " \ ++ "rootfstype=${mmc_root_fs_type} ip=${ip_method}\0" \ + "bootenv=uEnv.txt\0" \ + "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ + "importbootenv=echo Importing environment from mmc ...; " \ +@@ -69,11 +74,11 @@ + "root=${ramroot} " \ + "rootfstype=${ramrootfstype}\0" \ + "loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \ +- "loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \ +- "loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} ${bootfile}\0" \ ++ "loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}\0" \ ++ "loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}\0" \ + "mmcboot=echo Booting from mmc ...; " \ +- "run mmcargs; " \ +- "bootm ${loadaddr}\0" \ ++ "run mmc_args; " \ ++ "bootm ${kloadaddr}\0" \ + "ramboot=echo Booting from ramdisk ...; " \ + "run ramargs; " \ + "bootm ${loadaddr}\0" \ +@@ -93,8 +98,12 @@ + "echo Running uenvcmd ...;" \ + "run uenvcmd;" \ + "fi;" \ +- "if run loaduimage; then " \ ++ "if run loaduimagefat; then " \ + "run mmcboot;" \ ++ "elif run loaduimage; then " \ ++ "run mmcboot;" \ ++ "else " \ ++ "echo Cound not find ${bootfile} ;" \ + "fi;" \ + "fi;" \ + +-- +1.7.0.4 +
meta-arago-distro/recipes-bsp/u-boot/u-boot_2012.10-psp05.06.00.00.bb +4 -2
@@ -23,9 +23,11 @@ DEFAULT_PREFERENCE = "-1" PACKAGE_ARCH = "${MACHINE_ARCH}" -PR = "r1+gitr${SRCPV}" +PR = "r2+gitr${SRCPV}" -SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH}" +SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH} \ + file://0001-am335x_evm-fix-mmc-boot-environment-settings.patch \ +" BRANCH = "amsdk-05.06.00.00"
Signature · 1 line
1.7.0.4
PATCH 2/5 u-boot_2012.10-psp05.06.00.00: Add NAND environment variables
* Add support to the default environment variables for NAND boot
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- ...am335x_evm-Add-NAND-environment-variables.patch | 54 ++++++++++++++++++++ .../u-boot/u-boot_2012.10-psp05.06.00.00.bb | 3 +- 2 files changed, 56 insertions(+), 1 deletions(-) create mode 100644 meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0002-am335x_evm-Add-NAND-environment-variables.patch
meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0002-am335x_evm-Add-NAND-environment-variables.patch new file +54 -0
@@ -0,0 +1,54 @@ +From d2d417573964616b13bfc4738c2b21e187d3145c Mon Sep 17 00:00:00 2001 +From: Chase Maupin <[email protected]> +Date: Mon, 5 Nov 2012 15:20:27 -0600 +Subject: [PATCH 2/4] am335x_evm: Add NAND environment variables + +* Added support to the default environment variables for NAND + boot. + +Signed-off-by: Chase Maupin <[email protected]> +--- + include/configs/am335x_evm.h | 13 +++++++++++++ + 1 files changed, 13 insertions(+), 0 deletions(-) + +diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h +index bd9473b..c7f542c 100644 +--- a/include/configs/am335x_evm.h ++++ b/include/configs/am335x_evm.h +@@ -55,6 +55,10 @@ + "mmcdev=0\0" \ + "mmc_root=/dev/mmcblk0p2 ro\0" \ + "mmc_root_fs_type=ext3 rootwait\0" \ ++ "nand_root=ubi0:rootfs rw ubi.mtd=7,2048\0" \ ++ "nand_root_fs_type=ubifs rootwait=1\0" \ ++ "nand_src_addr=0x280000\0" \ ++ "nand_img_siz=0x500000\0" \ + "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \ + "ramrootfstype=ext2\0" \ + "ip_method=none\0" \ +@@ -65,6 +69,10 @@ + "setenv bootargs ${bootargs} " \ + "root=${mmc_root} " \ + "rootfstype=${mmc_root_fs_type} ip=${ip_method}\0" \ ++ "nand_args=run bootargs_defaults;" \ ++ "setenv bootargs ${bootargs} " \ ++ "root=${nand_root} noinitrd " \ ++ "rootfstype=${nand_root_fs_type} ip=${ip_method}\0" \ + "bootenv=uEnv.txt\0" \ + "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ + "importbootenv=echo Importing environment from mmc ...; " \ +@@ -79,6 +87,11 @@ + "mmcboot=echo Booting from mmc ...; " \ + "run mmc_args; " \ + "bootm ${kloadaddr}\0" \ ++ "nand_boot=echo Booting from nand ...; " \ ++ "run nand_args; " \ ++ "nandecc hw 2; " \ ++ "nand read.i ${kloadaddr} ${nand_src_addr} ${nand_img_siz}; " \ ++ "bootm ${kloadaddr}\0" \ + "ramboot=echo Booting from ramdisk ...; " \ + "run ramargs; " \ + "bootm ${loadaddr}\0" \ +-- +1.7.0.4 +
meta-arago-distro/recipes-bsp/u-boot/u-boot_2012.10-psp05.06.00.00.bb +2 -1
@@ -23,10 +23,11 @@ DEFAULT_PREFERENCE = "-1" PACKAGE_ARCH = "${MACHINE_ARCH}" -PR = "r2+gitr${SRCPV}" +PR = "r3+gitr${SRCPV}" SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH} \ file://0001-am335x_evm-fix-mmc-boot-environment-settings.patch \ + file://0002-am335x_evm-Add-NAND-environment-variables.patch \ " BRANCH = "amsdk-05.06.00.00"
Signature · 1 line
1.7.0.4
PATCH 3/5 u-boot_2012.10-psp05.06.00.00: Add SPI environment variables
In reply to Franklin S. Cooper Jr* Add variables to support SPI booting
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- ...-am335x_evm-Add-SPI-environment-variables.patch | 54 ++++++++++++++++++++ .../u-boot/u-boot_2012.10-psp05.06.00.00.bb | 3 +- 2 files changed, 56 insertions(+), 1 deletions(-) create mode 100644 meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0003-am335x_evm-Add-SPI-environment-variables.patch
meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0003-am335x_evm-Add-SPI-environment-variables.patch new file +54 -0
@@ -0,0 +1,54 @@ +From c2f5b8e4caf33ccd62ba9b245a28d56e3d814471 Mon Sep 17 00:00:00 2001 +From: Chase Maupin <[email protected]> +Date: Mon, 5 Nov 2012 15:26:51 -0600 +Subject: [PATCH 3/4] am335x_evm: Add SPI environment variables + +* Added variables to support SPI booting + +Signed-off-by: Chase Maupin <[email protected]> +--- + include/configs/am335x_evm.h | 14 ++++++++++++++ + 1 files changed, 14 insertions(+), 0 deletions(-) + +diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h +index c7f542c..95e9914 100644 +--- a/include/configs/am335x_evm.h ++++ b/include/configs/am335x_evm.h +@@ -59,6 +59,11 @@ + "nand_root_fs_type=ubifs rootwait=1\0" \ + "nand_src_addr=0x280000\0" \ + "nand_img_siz=0x500000\0" \ ++ "spi_root=/dev/mtdblock4 rw\0" \ ++ "spi_root_fs_type=jffs2\0" \ ++ "spi_src_addr=0x62000\0" \ ++ "spi_img_siz=0x380000\0" \ ++ "spi_bus_no=0\0" \ + "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \ + "ramrootfstype=ext2\0" \ + "ip_method=none\0" \ +@@ -73,6 +78,10 @@ + "setenv bootargs ${bootargs} " \ + "root=${nand_root} noinitrd " \ + "rootfstype=${nand_root_fs_type} ip=${ip_method}\0" \ ++ "spi_args=run bootargs_defaults;" \ ++ "setenv bootargs ${bootargs} " \ ++ "root=${spi_root} " \ ++ "rootfstype=${spi_root_fs_type} ip=${ip_method}\0" \ + "bootenv=uEnv.txt\0" \ + "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ + "importbootenv=echo Importing environment from mmc ...; " \ +@@ -92,6 +101,11 @@ + "nandecc hw 2; " \ + "nand read.i ${kloadaddr} ${nand_src_addr} ${nand_img_siz}; " \ + "bootm ${kloadaddr}\0" \ ++ "spi_boot=echo Booting from spi ...; " \ ++ "run spi_args; " \ ++ "sf probe ${spi_bus_no}:0; " \ ++ "sf read ${kloadaddr} ${spi_src_addr} ${spi_img_siz}; " \ ++ "bootm ${kloadaddr}\0" \ + "ramboot=echo Booting from ramdisk ...; " \ + "run ramargs; " \ + "bootm ${loadaddr}\0" \ +-- +1.7.0.4 +
meta-arago-distro/recipes-bsp/u-boot/u-boot_2012.10-psp05.06.00.00.bb +2 -1
@@ -23,11 +23,12 @@ DEFAULT_PREFERENCE = "-1" PACKAGE_ARCH = "${MACHINE_ARCH}" -PR = "r3+gitr${SRCPV}" +PR = "r4+gitr${SRCPV}" SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH} \ file://0001-am335x_evm-fix-mmc-boot-environment-settings.patch \ file://0002-am335x_evm-Add-NAND-environment-variables.patch \ + file://0003-am335x_evm-Add-SPI-environment-variables.patch \ " BRANCH = "amsdk-05.06.00.00"
Signature · 1 line
1.7.0.4
PATCH 4/5 u-boot_2012.10-psp05.06.00.00: Add NET environment variables
In reply to Franklin S. Cooper Jr* Add environment variables to support network booting
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- ...-am335x_evm-Add-NET-environment-variables.patch | 57 ++++++++++++++++++++ .../u-boot/u-boot_2012.10-psp05.06.00.00.bb | 3 +- 2 files changed, 59 insertions(+), 1 deletions(-) create mode 100644 meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0004-am335x_evm-Add-NET-environment-variables.patch
meta-arago-distro/recipes-bsp/u-boot/u-boot-2012.10-psp05.06.00.00/0004-am335x_evm-Add-NET-environment-variables.patch new file +57 -0
@@ -0,0 +1,57 @@ +From 1bd4ad389742f470124226c7d9c6ffcb0a004a61 Mon Sep 17 00:00:00 2001 +From: Chase Maupin <[email protected]> +Date: Mon, 5 Nov 2012 15:32:53 -0600 +Subject: [PATCH 4/4] am335x_evm: Add NET environment variables + +* Add environment variables to support network booting + +Signed-off-by: Chase Maupin <[email protected]> +--- + include/configs/am335x_evm.h | 15 +++++++++++++++ + 1 files changed, 15 insertions(+), 0 deletions(-) + +diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h +index 95e9914..954fae1 100644 +--- a/include/configs/am335x_evm.h ++++ b/include/configs/am335x_evm.h +@@ -64,8 +64,12 @@ + "spi_src_addr=0x62000\0" \ + "spi_img_siz=0x380000\0" \ + "spi_bus_no=0\0" \ ++ "rootpath=/export/rootfs\0" \ ++ "nfsopts=nolock\0" \ + "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \ + "ramrootfstype=ext2\0" \ ++ "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \ ++ "::off\0" \ + "ip_method=none\0" \ + "bootargs_defaults=setenv bootargs " \ + "console=${console} " \ +@@ -82,6 +86,11 @@ + "setenv bootargs ${bootargs} " \ + "root=${spi_root} " \ + "rootfstype=${spi_root_fs_type} ip=${ip_method}\0" \ ++ "net_args=run bootargs_defaults;" \ ++ "setenv bootargs ${bootargs} " \ ++ "root=/dev/nfs " \ ++ "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \ ++ "ip=dhcp\0" \ + "bootenv=uEnv.txt\0" \ + "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ + "importbootenv=echo Importing environment from mmc ...; " \ +@@ -106,6 +115,12 @@ + "sf probe ${spi_bus_no}:0; " \ + "sf read ${kloadaddr} ${spi_src_addr} ${spi_img_siz}; " \ + "bootm ${kloadaddr}\0" \ ++ "net_boot=echo Booting from network ...; " \ ++ "setenv autoload no; " \ ++ "dhcp; " \ ++ "tftp ${kloadaddr} ${bootfile}; " \ ++ "run net_args; " \ ++ "bootm ${kloadaddr}\0" \ + "ramboot=echo Booting from ramdisk ...; " \ + "run ramargs; " \ + "bootm ${loadaddr}\0" \ +-- +1.7.0.4 +
meta-arago-distro/recipes-bsp/u-boot/u-boot_2012.10-psp05.06.00.00.bb +2 -1
@@ -23,12 +23,13 @@ DEFAULT_PREFERENCE = "-1" PACKAGE_ARCH = "${MACHINE_ARCH}" -PR = "r4+gitr${SRCPV}" +PR = "r5+gitr${SRCPV}" SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;branch=${BRANCH} \ file://0001-am335x_evm-fix-mmc-boot-environment-settings.patch \ file://0002-am335x_evm-Add-NAND-environment-variables.patch \ file://0003-am335x_evm-Add-SPI-environment-variables.patch \ + file://0004-am335x_evm-Add-NET-environment-variables.patch \ " BRANCH = "amsdk-05.06.00.00"
Signature · 1 line
1.7.0.4
PATCH 5/5 arago.conf: Switch to latest PSP u-boot release
In reply to Franklin S. Cooper Jr* Switch to the latest PSP u-boot release being developed for the 2012 fourth quarter Sitara SDK.
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- meta-arago-distro/conf/distro/arago.conf | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta-arago-distro/conf/distro/arago.conf +1 -1
@@ -56,7 +56,7 @@ PREFERRED_PROVIDER_virtual/kernel_am335x-evm = "linux-am335x" PREFERRED_VERSION_virtual/kernel_am335x-evm = "3.2.0-psp05.06.00.00" # Use the SDK supported u-boot version -PREFERRED_VERSION_u-boot_am335x-evm = "2011.09-psp04.06.00.08" +PREFERRED_VERSION_u-boot_am335x-evm = "2012.10-psp05.06.00.00" # Pin down udev version from oe-core, as meta-oe pulls in newer systemd-enhanced version PREFERRED_VERSION_udev = "164"
Signature · 1 line
1.7.0.4