From 13d394bc55d9a28c4edca60c83cf77d62f7332ba Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 8 Jan 2008 15:39:36 +0000 Subject: linux-rp.inc: Add bootkern task for experimentation purposes only git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3427 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/linux/linux-rp.inc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'meta') diff --git a/meta/packages/linux/linux-rp.inc b/meta/packages/linux/linux-rp.inc index 610ccefa9..0a46cd695 100644 --- a/meta/packages/linux/linux-rp.inc +++ b/meta/packages/linux/linux-rp.inc @@ -143,11 +143,24 @@ do_deploy() { ln -sf ${KERNEL_DEPLOY_NAME} ${KERNEL_SYMLINK_NAME} tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${MACHINE}.tgz -C ${D} lib } - do_deploy[dirs] = "${S}" - addtask deploy before do_package after do_install +do_bootkern() { + echo "Copying Kernel" + scp ${DEPLOY_DIR_IMAGE}/${KERNEL_SYMLINK_NAME} root@${TARGET_DEVICE_IP}:/zImage-bootkern + echo "Copying Modules" + scp ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_VERSION}-${MACHINE}.tgz root@${TARGET_DEVICE_IP}:/ + echo "Unpacking Modules" + ssh root@${TARGET_DEVICE_IP} "cd /; tar -xvzf modules-${KERNEL_VERSION}-${MACHINE}.tgz; rm modules-${KERNEL_VERSION}-${MACHINE}.tgz" + echo "Loading Kernel into kexec" + ssh root@${TARGET_DEVICE_IP} "/usr/sbin/kexec -l /zImage-bootkern" + echo "Launching kernel" + ssh root@${TARGET_DEVICE_IP} "/usr/sbin/kexec -f -e" +} +addtask bootkern after do_deploy +do_bootkern[nostamp] = "1" + # wlan-ng stuff need compiled kernel sources do_rm_work() { } -- cgit v1.2.3