All pastes #1173610 Raw Edit

ant

public text v1 · immutable
#1173610 ·published 2008-08-15 23:48 UTC
rendered paste body
#
# old_revision [95770bf2dbbfdfc2877a9de6f9b4a50b875c6be2]
#
# patch "classes/kernel.bbclass"
#  from [772e3ddb49b5122286d15dfc10a357056263d0e7]
#    to [80b16e09a4ef2752ce3455dbddc6d417b5617e67]
# 
# patch "conf/distro/include/angstrom-2008-preferred-versions.inc"
#  from [a88b28843d763c56d5d21f55bb7da235f6f094d1]
#    to [658e8304df1871e5742556f16805b698ff9bb9a4]
# 
# patch "conf/machine/akita.conf"
#  from [9b0f2249c3421c2371583ca663039e640ed69a34]
#    to [4b50383db52f4dfc6bbf8b95c745f79b812f8d71]
# 
# patch "conf/machine/c7x0.conf"
#  from [6005085b97146720e5fa0cdc84c0a795df419453]
#    to [e027713e3ca6e8f8361a0b0f59b32ad0dbb70136]
# 
# patch "conf/machine/include/zaurus-2.6.inc"
#  from [d5af9251eed68a286197deb3a5761113b02bbd2f]
#    to [10c8eba0fdf36a3a8791707734609a79ce19bde5]
# 
# patch "packages/kexecboot/initramfs-kexecboot_1.0.bb"
#  from [d3cfea5e56d92934495f6342d176e974b5c9baf3]
#    to [9486dc6c83a983ca3fff064dd1241739a88aaab5]
# 
# patch "packages/kexecboot/linux-kexecboot-2.6.26/defconfig-akita"
#  from [064c36530b213dae882be1b6bb2cbab8615906f8]
#    to [00830ed0414849cf715b07e153eb67fac87aef14]
# 
# patch "packages/kexecboot/linux-kexecboot-2.6.26/defconfig-c7x0"
#  from [9840eec605b360f4cdcf976973331ce274a89b6f]
#    to [d15a5f05587c98203f9ee732dd0be56761cf05ee]
# 
# patch "packages/linux/linux-rp-2.6.26/defconfig-c7x0"
#  from [5c533bfba4b4fbfde44ddf442337a158ecc8a5fe]
#    to [00ce560d2d1af19657ac843431bb8430a30d4c4b]
# 
# patch "packages/linux/linux-rp.inc"
#  from [d5e693d8ce0306dd5f561a01017f7f042f4cf537]
#    to [a41b60c5697452af23fb4a7fc29bccca6665fbb0]
# 
# patch "packages/linux/linux-rp_2.6.24.bb"
#  from [8e37ea5330cc69fda41a71482d14ad5f29a375a9]
#    to [ea9a2459d19a259975b8c022cd5645d90d1e3278]
# 
# patch "packages/linux/linux-rp_2.6.26.bb"
#  from [3fe7077dd4707984593d30eb66cafde62b2120f6]
#    to [e84e896484e1f15f06156074a803f64728f09f81]
#
============================================================
--- classes/kernel.bbclass	772e3ddb49b5122286d15dfc10a357056263d0e7
+++ classes/kernel.bbclass	80b16e09a4ef2752ce3455dbddc6d417b5617e67
@@ -462,7 +462,7 @@ do_sizecheck() {
     	fi
 }
 
-addtask sizecheck before do_install after do_compile
+##addtask sizecheck before do_install after do_compile
 
 KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}"
 KERNEL_IMAGE_SYMLINK_NAME ?= "${KERNEL_IMAGETYPE}-${MACHINE}"
============================================================
--- conf/distro/include/angstrom-2008-preferred-versions.inc	a88b28843d763c56d5d21f55bb7da235f6f094d1
+++ conf/distro/include/angstrom-2008-preferred-versions.inc	658e8304df1871e5742556f16805b698ff9bb9a4
@@ -18,5 +18,5 @@ PREFERRED_VERSION_tiff 		= "3.8.2+4.0.0b
 PREFERRED_VERSION_pkgconfig-native = "0.23"
 PREFERRED_VERSION_pulseaudio 	= "0.9.10"
 PREFERRED_VERSION_tiff 		= "3.8.2+4.0.0beta2"
-PREFERRED_VERSION_udev 		= "118"
+PREFERRED_VERSION_udev 		= "124"
 PREFERRED_VERSION_xserver-kdrive = "1.4.0.90"
============================================================
--- conf/machine/akita.conf	9b0f2249c3421c2371583ca663039e640ed69a34
+++ conf/machine/akita.conf	4b50383db52f4dfc6bbf8b95c745f79b812f8d71
@@ -11,3 +11,15 @@ ROOT_FLASH_SIZE = "58"
 IMAGE_FSTYPES ?= "jffs2"
 
 ROOT_FLASH_SIZE = "58"
+
+# we store kernel images in rootfs and only a minimal initramfs kernel in mtd1 for booting other kernels
+DONT_CHECK_KERNELSIZE ?= "1"
+
+IMAGE_DEVICE_TABLES ?= "files/device_table-minimal.txt \
+                       files/device_table-collie.txt"
+
+KERNEL_IMAGETYPE = "uImage"
+#KERNEL_IMAGETYPE = "zImage"
+UBOOT_MACHINE="akita_config"		       
+UBOOT_ENTRYPOINT="0xa0008000"
+UBOOT_LOADADDRESS="0xa0008000"
============================================================
--- conf/machine/c7x0.conf	6005085b97146720e5fa0cdc84c0a795df419453
+++ conf/machine/c7x0.conf	e027713e3ca6e8f8361a0b0f59b32ad0dbb70136
@@ -8,7 +8,19 @@ ROOT_FLASH_SIZE = "25"
 IMAGE_FSTYPES ?= "jffs2"
 
 ROOT_FLASH_SIZE = "25"
-# yes, we are aware that the husky (c760,c860) has 54MB rootfs, but we don't make a special image for it.
+# yes, we are aware that the husky (c760,c860) has 53MB rootfs, but we don't make a special image for it.
 
 XSERVER = "xserver-kdrive-imageon"
 
+# we store kernel images in rootfs and only a minimal initramfs kernel in mtd1 for booting other kernels
+DONT_CHECK_KERNELSIZE ?= "1"
+
+IMAGE_DEVICE_TABLES ?= "files/device_table-minimal.txt \
+                       files/device_table-collie.txt"
+
+KERNEL_IMAGETYPE = "uImage"
+#KERNEL_IMAGETYPE = "zImage"
+UBOOT_MACHINE="corgi_config"		       
+UBOOT_ENTRYPOINT="0xa0008000"
+UBOOT_LOADADDRESS="0xa0008000"
+
============================================================
--- conf/machine/include/zaurus-2.6.inc	d5af9251eed68a286197deb3a5761113b02bbd2f
+++ conf/machine/include/zaurus-2.6.inc	10c8eba0fdf36a3a8791707734609a79ce19bde5
@@ -51,13 +51,13 @@ zaurus_make_installkit () {
     rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/         
     mkdir ${IMAGE_NAME}-installkit/
 
-    # Get the latest kernel using the zImage-<machine>.bin symlink
+    # Get the latest kernel using the <kernel_imgtype>-<machine>.bin symlink 
     if [ "${MACHINE}" = "collie" ]; then
-	    [ -f "zImage-${MACHINE}-kexecboot.bin" ] && cp zImage-${MACHINE}-kexecboot.bin ${IMAGE_NAME}-installkit/zImage
+        [ -f "${KERNEL_IMAGETYPE}-${MACHINE}-kexecboot.bin" ] && cp ${KERNEL_IMAGETYPE}-${MACHINE}-kexecboot.bin ${IMAGE_NAME}-installkit/${KERNEL_IMAGETYPE} 
 	    # we need also tgz for mmc or cf cards
 	    cp ${IMAGE_NAME}.rootfs.tar.gz ${IMAGE_NAME}-installkit/hdimage1.tgz
     else
-	    cp zImage-${MACHINE}.bin ${IMAGE_NAME}-installkit/zImage
+	    cp ${KERNEL_IMAGETYPE}-${MACHINE}.bin ${IMAGE_NAME}-installkit/${KERNEL_IMAGETYPE} 
     fi
 
     if [ "${MACHINE}" = "spitz" ]; then
@@ -81,4 +81,5 @@ RDEPENDS_kernel-base_collie = "kernel-im
 RDEPENDS_kernel-base = ""
 # collie is an exception. We use mmc as root, include kernel and use another small kernel to boot it.
 RDEPENDS_kernel-base_collie = "kernel-image" 
+RDEPENDS_kernel-base_c7x0 = "kernel-image" 
 KERNEL_IMAGETYPE ?= "zImage"
============================================================
--- packages/kexecboot/initramfs-kexecboot_1.0.bb	d3cfea5e56d92934495f6342d176e974b5c9baf3
+++ packages/kexecboot/initramfs-kexecboot_1.0.bb	9486dc6c83a983ca3fff064dd1241739a88aaab5
@@ -5,12 +5,31 @@ INPUTDEV = "/dev/event0"
 FBANGLE = "270"
 INPUTDEV = "/dev/event0"
 
-
 do_compile() {
         cat > init.sh << EOF
 #!/bin/sh
 /bin/sleep 3
 /bin/mount -t proc proc /proc
+
+echo "CMDLINE=\${CMDLINE}"
+for cmd in \${CMDLINE}; do
+    echo "cmd=\${cmd}"
+    case "\${cmd}" in
+        \#*) break ;; # ignore if #
+        mtdparts=*) kinit_params="${kinit_params} \${cmd}" ;;
+	*=*) cmd="\$(replace -s= "\${cmd}" '.' '_')"
+	     cmd="\$(replace -s= "\${cmd}" '-' '_')"
+	     export "\${cmd}"
+	     ;;
+        *)   cmd="\$(replace "\${cmd}" '.' '_')"
+	     cmd="\$(replace "\${cmd}" '-' '_')"
+	     export "\${cmd}=y"
+	   ;;
+    esac
+done
+echo "new cmd=\${cmd}"
+/bin/sleep 30
+
 echo "0 4 1 7" > /proc/sys/kernel/printk
 /usr/bin/kexecboot -a ${FBANGLE} -i ${INPUTDEV}
 EOF
============================================================
--- packages/kexecboot/linux-kexecboot-2.6.26/defconfig-akita	064c36530b213dae882be1b6bb2cbab8615906f8
+++ packages/kexecboot/linux-kexecboot-2.6.26/defconfig-akita	00830ed0414849cf715b07e153eb67fac87aef14
@@ -53,7 +53,8 @@ CONFIG_SYSFS_DEPRECATED=y
 # CONFIG_FAIR_CGROUP_SCHED is not set
 CONFIG_SYSFS_DEPRECATED=y
 # CONFIG_RELAY is not set
-# CONFIG_BLK_DEV_INITRD is not set
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE="initramfs.cpio.gz"
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_SYSCTL=y
 CONFIG_EMBEDDED=y
============================================================
--- packages/kexecboot/linux-kexecboot-2.6.26/defconfig-c7x0	9840eec605b360f4cdcf976973331ce274a89b6f
+++ packages/kexecboot/linux-kexecboot-2.6.26/defconfig-c7x0	d15a5f05587c98203f9ee732dd0be56761cf05ee
@@ -53,7 +53,8 @@ CONFIG_SYSFS_DEPRECATED=y
 # CONFIG_FAIR_CGROUP_SCHED is not set
 CONFIG_SYSFS_DEPRECATED=y
 # CONFIG_RELAY is not set
-# CONFIG_BLK_DEV_INITRD is not set
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE="initramfs.cpio.gz"
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_SYSCTL=y
 CONFIG_EMBEDDED=y
============================================================
--- packages/linux/linux-rp-2.6.26/defconfig-c7x0	5c533bfba4b4fbfde44ddf442337a158ecc8a5fe
+++ packages/linux/linux-rp-2.6.26/defconfig-c7x0	00ce560d2d1af19657ac843431bb8430a30d4c4b
@@ -53,7 +53,7 @@ CONFIG_SYSFS_DEPRECATED=y
 # CONFIG_FAIR_CGROUP_SCHED is not set
 CONFIG_SYSFS_DEPRECATED=y
 # CONFIG_RELAY is not set
-# CONFIG_BLK_DEV_INITRD is not set
+CONFIG_BLK_DEV_INITRD=y
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_SYSCTL=y
 CONFIG_EMBEDDED=y
@@ -647,7 +647,7 @@ CONFIG_BLK_DEV_LOOP=y
 # CONFIG_BLK_DEV_CRYPTOLOOP is not set
 # CONFIG_BLK_DEV_NBD is not set
 # CONFIG_BLK_DEV_UB is not set
-# CONFIG_BLK_DEV_RAM is not set
+CONFIG_BLK_DEV_RAM=y
 # CONFIG_CDROM_PKTCDVD is not set
 # CONFIG_ATA_OVER_ETH is not set
 CONFIG_MISC_DEVICES=y
============================================================
--- packages/linux/linux-rp.inc	d5e693d8ce0306dd5f561a01017f7f042f4cf537
+++ packages/linux/linux-rp.inc	a41b60c5697452af23fb4a7fc29bccca6665fbb0
@@ -23,6 +23,9 @@ CMDLINE_CON_zylonite = "console=ttyS0,38
 CMDLINE_CON_collie = "console=ttySA0,115200n8 console=tty1 noinitrd"
 CMDLINE_CON_qemuarm = "console=ttyAMA0,115200n8 console=tty1 noinitrd"
 CMDLINE_CON_zylonite = "console=ttyS0,38400"
+#
+CMDLINE_CON_c7x0 = "console=tty1 console=ttyS0,115200n8 noinitrd"
+#
 CMDLINE_ROOT ?= "root=/dev/mtdblock2 rootfstype=jffs2"
 CMDLINE_ROOT_collie = "root=/dev/mmcblk0p1 rootfstype=ext2 rootdelay=3 rw"
 CMDLINE_ROOT_spitz ?= "root=/dev/hda1 rootfstype=ext3 rootdelay=1 rw"
============================================================
--- packages/linux/linux-rp_2.6.24.bb	8e37ea5330cc69fda41a71482d14ad5f29a375a9
+++ packages/linux/linux-rp_2.6.24.bb	ea9a2459d19a259975b8c022cd5645d90d1e3278
@@ -6,6 +6,7 @@ DEFAULT_PREFERENCE_tosa = "1"
 DEFAULT_PREFERENCE_collie = "1"
 DEFAULT_PREFERENCE_qemux86 = "1"
 DEFAULT_PREFERENCE_tosa = "1"
+DEFAULT_PREFERENCE_c7x0 = "1"
 
 # Handy URLs
 # git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046
============================================================
--- packages/linux/linux-rp_2.6.26.bb	3fe7077dd4707984593d30eb66cafde62b2120f6
+++ packages/linux/linux-rp_2.6.26.bb	e84e896484e1f15f06156074a803f64728f09f81
@@ -7,6 +7,7 @@ DEFAULT_PREFERENCE_collie = "1"
 DEFAULT_PREFERENCE_qemux86 = "-1"
 DEFAULT_PREFERENCE_spitz = "1"
 DEFAULT_PREFERENCE_collie = "1"
+DEFAULT_PREFERENCE_c7x0 = "1"
 
 # Handy URLs
 # git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046