Flashing only the Kernel Image on BBB

36 views
Skip to first unread message

Raul Piper

unread,
May 26, 2016, 2:54:26 PM5/26/16
to BeagleBoard
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

Raul Piper

unread,
May 26, 2016, 2:59:02 PM5/26/16
to BeagleBoard
Missed the link to the Page in previous post  -> https://eewiki.net/display/linuxonarm/BeagleBone+Black

Robert Nelson

unread,
May 26, 2016, 3:01:59 PM5/26/16
to Beagle Board
On Thu, May 26, 2016 at 1:54 PM, Raul Piper <raulpb...@gmail.com> wrote:
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?

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,

--
Robert Nelson
https://rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages