Page 1 of 2
compiling a new kernel
Posted: 01 Dec 2010, 02:57
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
Re: compiling a new kernel
Posted: 01 Dec 2010, 07:31
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.
Re: compiling a new kernel
Posted: 01 Dec 2010, 07:56
by Ubi
never ever overwrite kernels
Re: compiling a new kernel
Posted: 01 Dec 2010, 15:31
by kurt2000
So, how would you upgrade the kernel?
Wkr
Re: compiling a new kernel
Posted: 01 Dec 2010, 15:45
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:
Re: compiling a new kernel
Posted: 01 Dec 2010, 16:21
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.
Re: compiling a new kernel
Posted: 02 Dec 2010, 02:44
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.
Re: compiling a new kernel
Posted: 02 Dec 2010, 02:58
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?
Re: compiling a new kernel
Posted: 02 Dec 2010, 03:03
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

Re: compiling a new kernel
Posted: 02 Dec 2010, 03:26
by Ubi
so.. can it do multiple kernels?
Re: compiling a new kernel
Posted: 02 Dec 2010, 04:02
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

Re: compiling a new kernel
Posted: 02 Dec 2010, 14:08
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.
Re: compiling a new kernel
Posted: 08 Dec 2010, 14:24
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.
Re: compiling a new kernel
Posted: 09 Dec 2010, 01:37
by kjellberg
wiki?

Re: compiling a new kernel
Posted: 09 Dec 2010, 05:25
by kurt2000
kjellberg wrote:wiki?

Yeah, i will look at it.
Wkr.