New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

compiling a new kernel

Got problems with your B2 or B3? Share and get helped!
kurt2000
Posts: 40
Joined: 16 Sep 2010, 14:15

compiling a new kernel

Post by kurt2000 »

Hi

I downloadet the kernel source from http://download.excito.net/kernel/Excit ... to.tar.bz2

i took the config from the running kernel, made a make menuconfig, make and make zImage.

i found a kernel in /boot/uImage, is that the kernel i have to overwrite ?

Its been a long time since ive compiled a kernel, i remember something about the kernel being placed in arch/*/boot, but will make install be enough ?

Wkr.
Svend
kurt2000
Posts: 40
Joined: 16 Sep 2010, 14:15

Re: compiling a new kernel

Post by kurt2000 »

I gues i was wrong :-)

b3 bricked and located 25 km's away.

So any chance on looking at my feature request ?

Wkr.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: compiling a new kernel

Post by Ubi »

never ever overwrite kernels
kurt2000
Posts: 40
Joined: 16 Sep 2010, 14:15

Re: compiling a new kernel

Post by kurt2000 »

So, how would you upgrade the kernel?
Wkr
loki_val
Posts: 5
Joined: 01 Dec 2010, 14:09

Re: compiling a new kernel

Post by loki_val »

You need to make a uimage, as far as I can tell, not a zimage. To do that you need mkimage from u-boot in your path, then:

Code: Select all

make
make uImage
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: compiling a new kernel

Post by Ubi »

you create the new kernel next to the original, and tell the bootloader to pick the new one. If stuff fails, just edit the bootloader.
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: compiling a new kernel

Post by ryz »

So where can you find the boot loader on the Bubba 2? I do not think they use any ordinary boot loader as lilo or grub. If you can not make the boot loader automatically boot the old kernel if the new ones fails you could as well just take a backup of the original kernel since you need to boot Bubba in rescue mode anyway.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: compiling a new kernel

Post by Ubi »

yeah ok, but I'd say changing a line in a config file is easier than restoring an entire kernel with modules. But even if there's no bootloader, I guess making a copy of the old kernel is manageable?
et05hk6
Posts: 11
Joined: 09 Nov 2010, 15:18

Re: compiling a new kernel

Post by et05hk6 »

The boot-loader of the bubba is, as far as I can see, das U-boot (please correct me if im wrong).
The project is found at http://sourceforge.net/projects/u-boot/ and a nice little guide can be found here: http://www.linuxfordevices.com/c/a/Linu ... ootloader/

If I were you I would remove the old hdd and put in another disk for hacking, to be shure the old os is secured, but maby Im just paranoid :roll:
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: compiling a new kernel

Post by Ubi »

so.. can it do multiple kernels?
et05hk6
Posts: 11
Joined: 09 Nov 2010, 15:18

Re: compiling a new kernel

Post by et05hk6 »

Havn't tried it, but I think so. Check out http://book.opensourceproject.org.cn/em ... ect-5.html, it will give you a kick start.
Good luck and repport the results here :D
kurt2000
Posts: 40
Joined: 16 Sep 2010, 14:15

Re: compiling a new kernel

Post by kurt2000 »

Well, i made the wrong image offcourse.

From my experience you can configure uboot to try different sources when locating a kernel.

e.g. first try sata, the usb, tftp etc.

But that would require a serial console.

Wkr.
kurt2000
Posts: 40
Joined: 16 Sep 2010, 14:15

Re: compiling a new kernel

Post by kurt2000 »

Ubi wrote:never ever overwrite kernels
Well i did, and now i have ipsec running on the baby. And btw. it's the only option you have if excito won't deliver a decent kernel.

Wkr.
kjellberg
Posts: 38
Joined: 03 Dec 2010, 07:18

Re: compiling a new kernel

Post by kjellberg »

wiki? :wink:
kurt2000
Posts: 40
Joined: 16 Sep 2010, 14:15

Re: compiling a new kernel

Post by kurt2000 »

kjellberg wrote:wiki? :wink:
Yeah, i will look at it.
Wkr.
Post Reply