diff options
Diffstat (limited to 'meta/packages')
-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() { } |