How to flash krenel only

Hello all.

After 2 days of spinning in circles, I am yet to successfully update the kernel only on BBB. This is what I want to do:

  1. Be able to load the kernel only into sd card that already has a working file system.
  2. Be able to load the same kernel into BBB internal flash that also has a filesystem already set up.

I’m using ubuntu saucy 13.10. I’ve followed

http://elinux.org/BeagleBoardUbuntu#Install_Latest_Kernel_Image

and compiled the kernel that’s used in that distribution, but the load kernel script fails with “not enough space” message. The page also doesn’t say how to replace the existing kernel.

Also, in general, how do I go from the default kernel image (zImage) to something that can be used in tftp boot and card/internal boot?

Thanks,

Miro

"not enough space"... Care to expand that message by at-least stating
where you downloaded the image you are currently using..

Regards,

Hello Robert.

I ‘got ubuntu-saucy-13.10-armhf-3.8.13-bone30.img.xz’ and used Win32DiskImager to write the image to the sd card. Once written, I plugged it into the linux mint machine. and 2 partitions got mounted on sdb1 and sdb2. Edited system.sh to have MMC=/dev/sdb
Ran ./tools/install_kernel.sh
I get this:

I see…
fdisk -l:
Disk /dev/sda: 211.1 GB, 211093946368 bytes
Disk /dev/sdb: 16.0 GB, 16012804096 bytes

lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 196.6G 0 disk
├─sda1 8:1 0 191.5G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 5.1G 0 part [SWAP]
sdb 8:16 1 14.9G 0 disk
├─sdb1 8:17 1 1M 0 part /home/miro/linux-dev/deploy/disk
└─sdb2 8:18 1 1.8G 0 part /media/miro/rootfs_armhf.com

That's not my image, so what's the problem? "armhf.com" decided to
format his image a specific way. Different then the way I've been
supporting beagleboard.org based boards with images for over the last
5 years..

So, patches welcome...

"my" build script supports:
http://elinux.org/BeagleBoardUbuntu#Demo_Image
http://elinux.org/BeagleBoardDebian#Demo_Image

Regards,

Ah, that makes sense. If I use one of the images suggested above, how do I remove extra services from starting up? I’d like this to be as barebones as possible, yet so I can still use eclipse to remotely deploy the user app. Also, once I have the sd card with the working image, how do I transfer that to the internal flash?

Thanks and BR

Miro

Ah, that makes sense. If I use one of the images suggested above, how do I
remove extra services from starting up?

"sudo apt-get remove xyz"

I'd like this to be as barebones as
possible, yet so I can still use eclipse to remotely deploy the user app.
Also, once I have the sd card with the working image, how do I transfer that
to the internal flash?

"barebones as possible"... how about a debian wheezy based install in
less then 64Mb (not including kernel/modules)???

http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Debian7(smallflash)

If you follow the directions exactly on that wiki, you can then use
the scripts listed here, to transfer the microSD image to the eMMC..
http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-eMMC

Regards,