[oe-commits] Jason Kridner : u-boot/angstrom-uboot-scripts/beagleboard-test-image: increase ramdisk

git version control git at git.openembedded.org
Mon Aug 16 08:49:02 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 66848a81f76ebaf72a2083d186df8668f08a6825
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=66848a81f76ebaf72a2083d186df8668f08a6825

Author: Jason Kridner <jkridner at beagleboard.org>
Date:   Fri Aug 13 04:56:07 2010 +0000

u-boot/angstrom-uboot-scripts/beagleboard-test-image: increase ramdisk

* add initramfs image
* move to 128MB ramdisk until I can get initramfs working

Signed-off-by: Jason Kridner <jkridner at beagleboard.org>
Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 recipes/angstrom/angstrom-uboot-scripts.bb         |    2 +-
 .../beagleboard-validation-user.cmd                |    7 +++-
 recipes/images/beagleboard-test-image.bb           |    5 ++-
 .../0001-BeagleBoard-move-ramdisk-parameters.patch |   38 ++++++++++++++++++++
 recipes/u-boot/u-boot_git.bb                       |    3 +-
 5 files changed, 50 insertions(+), 5 deletions(-)

diff --git a/recipes/angstrom/angstrom-uboot-scripts.bb b/recipes/angstrom/angstrom-uboot-scripts.bb
index a478cb2..020a7af 100644
--- a/recipes/angstrom/angstrom-uboot-scripts.bb
+++ b/recipes/angstrom/angstrom-uboot-scripts.bb
@@ -1,6 +1,6 @@
 DESCRIPTION = "Various uboot scripts"
 
-PR = "r9"
+PR = "r10"
 
 DEPENDS = "u-boot-mkimage-native"
 
diff --git a/recipes/angstrom/angstrom-uboot-scripts/beagleboard-validation-user.cmd b/recipes/angstrom/angstrom-uboot-scripts/beagleboard-validation-user.cmd
index 7dbf69b..971b96e 100644
--- a/recipes/angstrom/angstrom-uboot-scripts/beagleboard-validation-user.cmd
+++ b/recipes/angstrom/angstrom-uboot-scripts/beagleboard-validation-user.cmd
@@ -1,11 +1,14 @@
 mmc init
-setenv rdaddr 0x81000000
-setenv ramroot /dev/ram0
 if test "${beaglerev}" = "AxBx"; then
+setenv rdaddr 0x81000000
 setenv optargs mem=80M at 0x80000000 musb_hdrc.fifomode=5
 elif test "${beaglerev}" = "Cx"; then
+setenv rdaddr 0x88000000
+setenv ramroot /dev/ram0 rw ramdisk_size=131072 initrd=${rdaddr},128M
 setenv optargs mem=80M at 0x80000000 mem=128M at 0x88000000 musb_hdrc.fifomode=5
 else
+setenv rdaddr 0x88000000
+setenv ramroot /dev/ram0 rw ramdisk_size=131072 initrd=${rdaddr},128M
 setenv optargs mem=80M at 0x80000000 mem=384M at 0x88000000
 fi
 run loadramdisk
diff --git a/recipes/images/beagleboard-test-image.bb b/recipes/images/beagleboard-test-image.bb
index cbbd3c2..7361017 100644
--- a/recipes/images/beagleboard-test-image.bb
+++ b/recipes/images/beagleboard-test-image.bb
@@ -28,4 +28,7 @@ IMAGE_INSTALL += " \
 export IMAGE_BASENAME = "beagleboard-test-image"
 
 EXTRA_IMAGEDEPENDS += "x-load u-boot virtual/kernel"
-IMAGE_FSTYPES += "ext2.gz"
+IMAGE_FSTYPES += "ext2.gz cpio.gz.u-boot"
+IMAGE_ROOTFS_SIZE_ext2 = "131072"
+EXTRA_IMAGECMD_ext2.gz += "-i 8192"
+
diff --git a/recipes/u-boot/u-boot-git/beagleboard/0001-BeagleBoard-move-ramdisk-parameters.patch b/recipes/u-boot/u-boot-git/beagleboard/0001-BeagleBoard-move-ramdisk-parameters.patch
new file mode 100644
index 0000000..5d6e69d
--- /dev/null
+++ b/recipes/u-boot/u-boot-git/beagleboard/0001-BeagleBoard-move-ramdisk-parameters.patch
@@ -0,0 +1,38 @@
+From c8d02f2a8500f06de39681aed60ea5c9894f8087 Mon Sep 17 00:00:00 2001
+From: Jason Kridner <jkridner at beagleboard.org>
+Date: Wed, 11 Aug 2010 14:50:38 -0500
+Subject: [PATCH] BeagleBoard: move ramdisk parameters
+
+This will make it easier to reprogram the ramdisk size.
+
+Signed-off-by: Jason Kridner <jkridner at beagleboard.org>
+---
+ include/configs/omap3_beagle.h |    5 ++---
+ 1 files changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
+index 48ad805..4f5c1d4 100644
+--- a/include/configs/omap3_beagle.h
++++ b/include/configs/omap3_beagle.h
+@@ -217,7 +217,7 @@
+ 	"mmcrootfstype=ext3 rootwait\0" \
+ 	"nandroot=/dev/mtdblock4 rw\0" \
+ 	"nandrootfstype=jffs2\0" \
+-	"ramroot=/dev/ram0 rw\0" \
++	"ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \
+ 	"ramrootfstype=ext2\0" \
+ 	"mmcargs=setenv bootargs console=${console} " \
+ 		"${optargs} " \
+@@ -248,8 +248,7 @@
+ 		"vram=${vram} " \
+ 		"omapfb.mode=dvi:${dvimode} " \
+ 		"omapdss.def_disp=${defaultdisplay} " \
+-		"root=${ramroot} rw ramdisk_size=65536 " \
+-		"initrd=${rdaddr},64M " \
++		"root=${ramroot} " \
+ 		"rootfstype=${ramrootfstype}\0" \
+ 	"loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
+ 	"bootscript=echo Running bootscript from mmc ...; " \
+-- 
+1.5.6.4
+
diff --git a/recipes/u-boot/u-boot_git.bb b/recipes/u-boot/u-boot_git.bb
index 7f26a87..19386fc 100644
--- a/recipes/u-boot/u-boot_git.bb
+++ b/recipes/u-boot/u-boot_git.bb
@@ -1,5 +1,5 @@
 require u-boot.inc
-PR ="r63"
+PR ="r64"
 
 FILESPATHPKG =. "u-boot-git:"
 
@@ -71,6 +71,7 @@ SRC_URI_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \
                        file://0044-Beagleboard-Adjust-boot.patch \
                        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://fw_env.config \
 "
 SRCREV_beagleboard = "ca6e1c136ddb720c3bb2cc043b99f7f06bc46c55"





More information about the Openembedded-commits mailing list