u-boot: beagleboard: improve env var setting
PATCH 1/1 u-boot: beagleboard: improve env var setting
I was running out of room for all the arguments. This should help.
Conflicts:
recipes/u-boot/u-boot_git.bb
Signed-off-by Jason Kridner <[email protected]>
--- ...beagleboard-improved-boot-env-var-setting.patch | 63 ++++++++++++++++++++ recipes/u-boot/u-boot_git.bb | 3 +- 2 files changed, 65 insertions(+), 1 deletions(-) create mode 100644 recipes/u-boot/u-boot-git/beagleboard/0001-beagleboard-improved-boot-env-var-setting.patch
recipes/u-boot/u-boot-git/beagleboard/0001-beagleboard-improved-boot-env-var-setting.patch new file +63 -0
@@ -0,0 +1,63 @@ +From 4d44d40658a2f0a499aa2d90e58167838efccfa4 Mon Sep 17 00:00:00 2001 +From: Jason Kridner <[email protected]> +Date: Wed, 18 Aug 2010 16:38:24 -0500 +Subject: [PATCH] beagleboard: improved boot env var setting + +* Enabled evaluation of expressions with 'setexpr' +* Made room for a 64MB ramdisk by moving from 0x81600000 to 0x81000000 +* Removed expression from 'ramroot' that wouldn't be evaluated +* Doubled console I/O buffer size from 256 to 512 +* Doubled maximum command arguments size from 16 to 32 + +Signed-off-by: Jason Kridner <[email protected]> +--- + include/configs/omap3_beagle.h | 9 +++++---- + 1 files changed, 5 insertions(+), 4 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 4f5c1d4..6bc992c 100644 +--- a/include/configs/omap3_beagle.h ++++ b/include/configs/omap3_beagle.h +@@ -152,6 +152,7 @@ + #define CONFIG_CMD_NAND /* NAND support */ + #define CONFIG_CMD_LED /* LED support */ + #define CONFIG_VIDEO_OMAP3 /* DSS Support */ ++#define CONFIG_CMD_SETEXPR /* Evaluate expressions */ + + #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */ + #undef CONFIG_CMD_FPGA /* FPGA configuration Support */ +@@ -201,7 +202,7 @@ + + #define CONFIG_EXTRA_ENV_SETTINGS \ + "loadaddr=0x80200000\0" \ +- "rdaddr=0x81600000\0" \ ++ "rdaddr=0x81000000\0" \ + "usbtty=cdc_acm\0" \ + "console=ttyS2,115200n8\0" \ + "optargs=\0" \ +@@ -217,7 +218,7 @@ + "mmcrootfstype=ext3 rootwait\0" \ + "nandroot=/dev/mtdblock4 rw\0" \ + "nandrootfstype=jffs2\0" \ +- "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \ ++ "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,64M\0" \ + "ramrootfstype=ext2\0" \ + "mmcargs=setenv bootargs console=${console} " \ + "${optargs} " \ +@@ -301,11 +302,11 @@ + #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ + #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " + #define CONFIG_SYS_PROMPT "OMAP3 beagleboard.org # " +-#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ ++#define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ + /* Print Buffer Size */ + #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ + sizeof(CONFIG_SYS_PROMPT) + 16) +-#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ ++#define CONFIG_SYS_MAXARGS 32 /* max number of command args */ + /* Boot Argument Buffer Size */ + #define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE) + +-- +1.5.6.4 +
recipes/u-boot/u-boot_git.bb +2 -1
@@ -1,5 +1,5 @@ require u-boot.inc -PR ="r64" +PR ="r67" FILESPATHPKG =. "u-boot-git:"
@@ -72,6 +72,7 @@ SRC_URI_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \ file://0045-BeagleBoard-Enable-pullups-on-i2c2.patch \ file://0046-BeagleBoard-Add-camera-to-default-bootargs.patch \ file://0001-BeagleBoard-move-ramdisk-parameters.patch \ + file://0001-beagleboard-improved-boot-env-var-setting.patch \ file://fw_env.config \ " SRCREV_beagleboard = "ca6e1c136ddb720c3bb2cc043b99f7f06bc46c55"
Signature · 1 line
1.5.6.4
PATCH 1/1 u-boot: beagleboard: use user.scr when no boot.scr
Even if the USER button isn't pressed. Still don't default to ramdisk unless the USER button is pressed.
Signed-off-by Jason Kridner <[email protected]>
--- ...rd-try-user.scr-even-if-USER-isn-t-presse.patch | 63 ++++++++++++++++++++ recipes/u-boot/u-boot_git.bb | 3 +- 2 files changed, 65 insertions(+), 1 deletions(-) create mode 100644 recipes/u-boot/u-boot-git/beagleboard/0001-beagleboard-try-user.scr-even-if-USER-isn-t-presse.patch
recipes/u-boot/u-boot-git/beagleboard/0001-beagleboard-try-user.scr-even-if-USER-isn-t-presse.patch new file +63 -0
@@ -0,0 +1,63 @@ +From dcbcbcded81e92a30081663371e2bd458ecccaba Mon Sep 17 00:00:00 2001 +From: Jason Kridner <[email protected]> +Date: Fri, 20 Aug 2010 15:40:33 -0500 +Subject: [PATCH] beagleboard: try user.scr, even if USER isn't pressed + +But only do so after looking for boot.scr. + +Signed-off-by: Jason Kridner <[email protected]> +--- + include/configs/omap3_beagle.h | 33 ++++++++++++++++----------------- + 1 files changed, 16 insertions(+), 17 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index 6bc992c..978b41a 100644 +--- a/include/configs/omap3_beagle.h ++++ b/include/configs/omap3_beagle.h +@@ -272,27 +272,26 @@ + "setenv bootscr user.scr;" \ + "if run loadbootscript; then " \ + "run bootscript; " \ +- "else " \ +- "if run loaduimage; then " \ +- "if run loadramdisk; then " \ +- "run ramboot; " \ +- "else " \ +- "run mmcboot; " \ +- "fi; " \ +- "fi; " \ + "fi; " \ +- "else " \ +- "setenv bootscr boot.scr; " \ +- "if run loadbootscript; then " \ +- "run bootscript; " \ +- "else " \ +- "if run loaduimage; then " \ +- "run mmcboot; " \ +- "else run nandboot; " \ ++ "if run loaduimage; then " \ ++ "if run loadramdisk; then " \ ++ "run ramboot; " \ + "fi; " \ ++ "run mmcboot; " \ + "fi; " \ + "fi; " \ +- "else run nandboot; fi" ++ "if run loadbootscript; then " \ ++ "run bootscript; " \ ++ "fi; " \ ++ "setenv bootscr user.scr;" \ ++ "if run loadbootscript; then " \ ++ "run bootscript; " \ ++ "fi; " \ ++ "if run loaduimage; then " \ ++ "run mmcboot; " \ ++ "fi; " \ ++ "fi; " \ ++ "run nandboot;" + + #define CONFIG_AUTO_COMPLETE 1 + /* +-- +1.5.6.4 +
recipes/u-boot/u-boot_git.bb +2 -1
@@ -1,5 +1,5 @@ require u-boot.inc -PR ="r67" +PR ="r68" FILESPATHPKG =. "u-boot-git:"
@@ -73,6 +73,7 @@ SRC_URI_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \ file://0046-BeagleBoard-Add-camera-to-default-bootargs.patch \ file://0001-BeagleBoard-move-ramdisk-parameters.patch \ file://0001-beagleboard-improved-boot-env-var-setting.patch \ + file://0001-beagleboard-try-user.scr-even-if-USER-isn-t-presse.patch \ file://fw_env.config \ " SRCREV_beagleboard = "ca6e1c136ddb720c3bb2cc043b99f7f06bc46c55"
Signature · 1 line
1.5.6.4
PATCH 1/1 angstrom-uboot-scripts: beagleboard: use XGA and toggle LEDs
* set dvimode to 1024x768
* add tty0 to console=
* toggle LEDs
** led 0 and 1 are on by default in u-boot
** turn led 1 off at start
** turn led 0 off at end of ramdisk load
** turn led 1 on again just before boot
Signed-off-by Jason Kridner <[email protected]>
--- recipes/angstrom/angstrom-uboot-scripts.bb | 2 +- .../beagleboard-validation-user.cmd | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-)
recipes/angstrom/angstrom-uboot-scripts.bb +1 -1
@@ -1,6 +1,6 @@ DESCRIPTION = "Various uboot scripts" -PR = "r10" +PR = "r11" DEPENDS = "u-boot-mkimage-native"
recipes/angstrom/angstrom-uboot-scripts/beagleboard-validation-user.cmd +6 -0
@@ -1,4 +1,8 @@ +led 1 off mmc init +setenv dvimode 1024x768MR-16@60 +setenv vram 16M omapfb.vram=0:8M,1:4M,2:4M +setenv console tty0 console=ttyS2,115200n8 if test "${beaglerev}" = "AxBx"; then setenv rdaddr 0x81000000 setenv optargs mem=80M@0x80000000 musb_hdrc.fifomode=5
@@ -12,6 +16,8 @@ setenv ramroot /dev/ram0 rw ramdisk_size=131072 initrd=${rdaddr},128M setenv optargs mem=80M@0x80000000 mem=384M@0x88000000 fi run loadramdisk +led 0 off run loaduimage +led 1 on run ramboot
Signature · 1 line
1.5.6.4