diff options
author | Richard Purdie <richard@openedhand.com> | 2008-01-08 15:39:36 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-01-08 15:39:36 +0000 |
commit | 13d394bc55d9a28c4edca60c83cf77d62f7332ba (patch) | |
tree | d99bfb256502c35c54bdc1df071d0e986b35dfc8 /meta/packages/linux | |
parent | d83e06766e3f224c3d271df1bcce2295a33ecc85 (diff) | |
download | openembedded-core-13d394bc55d9a28c4edca60c83cf77d62f7332ba.tar.gz openembedded-core-13d394bc55d9a28c4edca60c83cf77d62f7332ba.tar.bz2 openembedded-core-13d394bc55d9a28c4edca60c83cf77d62f7332ba.zip |
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
Diffstat (limited to 'meta/packages/linux')
-rw-r--r-- | meta/packages/linux/linux-rp.inc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/meta/packages/linux/linux-rp.inc b/meta/packages/linux/linux-rp.inc index 610ccefa94..0a46cd695d 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() { } |