summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-08 00:40:07 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-08 00:40:07 +0000
commitb686d0b3b4db8d5f795a5ed479ca6da008e7cc9b (patch)
tree53fb07e9c745dc92344da4b09b02ef771e836dc0 /packages
parent193576667aa2a73adc519a888215a2909a65c89f (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/08 01:24:30+01:00 hrw.one.pl!hrw collie changes to openzaurus 2.6: - allow to configure memory/ramdisk split on collie - fixed ramdisk offset BKrev: 41df2be79n7Wh5KzcO9ajSuGPe3wrg
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/openzaurus_2.6.10.bb12
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/linux/openzaurus_2.6.10.bb b/packages/linux/openzaurus_2.6.10.bb
index 9c0dc74ae2..683798bf48 100644
--- a/packages/linux/openzaurus_2.6.10.bb
+++ b/packages/linux/openzaurus_2.6.10.bb
@@ -75,12 +75,16 @@ COMPATIBLE_HOST = "arm.*-linux"
#CMDLINE_MTDPARTS_husky = "mtdparts=sharpsl-nand:7168k@0k(smf),54272k@7168k(root),-(home)"
#CMDLINE_MTDPARTS_tosa = "mtdparts=sharpsl-nand:7168k@0k(smf),28672k@7168k(root),-(home) EQUIPMENT=2"
-CMDLINE_MEM_collie = "mem=32M"
#CMDLINE_MEM_husky = "mem=64M"
CMDLINE_CON = "console=ttyS0,115200n8 console=tty0 noinitrd"
CMDLINE_ROOT = "root=/dev/mtdblock2 rootfstype=jffs2 "
+# configure memory/ramdisk split on collie
+export mem = ${@bb.data.getVar("COLLIE_MEMORY_SIZE",d,1) or "32"}
+export rd = ${@bb.data.getVar("COLLIE_RAMDISK_SIZE",d,1) or "32"}
+
+CMDLINE_MEM_collie = "mem=${mem}M"
CMDLINE = "${CMDLINE_CON} ${CMDLINE_ROOT} ${CMDLINE_MTDPARTS} ${CMDLINE_MEM}"
do_configure() {
@@ -89,16 +93,16 @@ do_configure() {
if [ "${MACHINE}" == "collie" ]
then
- mem="32"
- rd="32"
mempos=`echo "obase=16; $mem * 1024 * 1024" | bc`
rdsize=`echo "$rd * 1024" | bc`
total=`expr $mem + $rd`
- addr=`echo "obase=16; ibase=16; C000000 + $mempos" | bc`
+ addr=`echo "obase=16; ibase=16; C0000000 + $mempos" | bc`
if [ "$rd" == "0" ]
then
+ echo "No RAMDISK"
echo "# CONFIG_MTD_MTDRAM_SA1100 is not set" >> ${S}/.config
else
+ echo "RAMDIR = $rdsize on $addr"
echo "CONFIG_MTD_MTDRAM_SA1100=y" >> ${S}/.config
echo "CONFIG_MTDRAM_TOTAL_SIZE=$rdsize" >> ${S}/.config
echo "CONFIG_MTDRAM_ERASE_SIZE=1" >> ${S}/.config