Flashing only the Kernel Image on BBB

HI
I am following Robert Nelson’s page - >
I have changed the kernel and I have built only kernel now using the rebuild.sh script and want to flash it on the BBB.Do I need to copy only the image or do I have to copy the device tree along with modules?

Basically these steps below ONLY?

Copy Kernel Image

Kernel Image:

~/

?



sudo cp -v ./bb-kernel/deploy/${kernel_version}.zImage /media/rootfs/boot/vmlinuz-${kernel_version}

|

  • |

Copy Kernel Device Tree Binaries

~/

?



sudo mkdir -p /media/rootfs/boot/dtbs/${kernel_version}/
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-dtbs.tar.gz -C /media/rootfs/boot/dtbs/${kernel_version}/

|

  • |

Copy Kernel Modules

~/

?



sudo tar xfv ./bb-kernel/deploy/${kernel_version}-modules.tar.gz -C /media/rootfs/





|

  • |

Any quick script for this?Can they be flashed over the USB instead of taking out the SD card and then copying into it Just like in Android we can use fastboot to flashonly the new kernel image (boot.img)

Thanks in advance !

Rp

Missed the link to the Page in previous post → https://eewiki.net/display/linuxonarm/BeagleBone+Black

This depends...

if you updating the kernel on a os running off a "microSD" then yes..

If your trying to update the kernel on the eMMC, then no..

As for the eMMC:

./tools/rebuild_deb.sh

cp linux-image*.deb to eMMC, then running:

sudo dpkg -i linux-image*.deb ; sudo reboot

is easier..

Regards,