Replace kernel

Asked by helander

I would like to create a Live CD (or preferably USB stick) that would be based on Hardy (or Feisty if it does not work with Hardy?). The key issue for me is that I need to use a real-time kernel in order to get the most out of the jack based applications. Is it possible to use uck to replace the "generic" kernel with the corresponding "rt" (real-time) kernel? If so, what are the necessary steps?

Kind Regards

/Lars

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Customization Kit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) said :
#1

Yes, you should be able to replace kernel just like it happens if you upgrade kernel. Just install new kernel (using Adept/Synaptic or console) and remove old kernel. UCK should automatically pick up latest vmlinuz and initrd.

Revision history for this message
Dawid Piotrowski (crazyelk-o2) said :
#2

I'm trying to do the same thing. After running uck, in chroot evrinoment I was downloaded 2.3.23 kernel from kernel.org, after that I patched it with RTAI patch and squashfs patch, compile and install (https://www.rtai.org/RTAILAB/RTAI-UbuntuGutsy-Matlab.txt). Unfortunetly it doesn't work, Live! CD is hanging up and throwing me into very poor ash shell. When I made the same steps in normal installed system all was O.K.

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) said :
#3

Please attach exact messages with errors.

Have you generated initramfs using mkinitramfs? Does this kernel work in installed system?

Revision history for this message
Dawid Piotrowski (crazyelk-o2) said :
#4

My customized Live! CD hangs up right hiere:

[code]

[ 46.802823] Uniform CD-ROM driver Revision: 3.20
[ 46.860451] sr 1:0:0:0: Attached scsi generic sg0 type 5
[ 48.019932] loop: module loaded

BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) uname -r
2.6.23-rtai36-core2 //# it seems to be OK

(initramfs) return
cp: unable to open '/root/var/log/' : No such file or directory
Done.
Begin: Running /scripts/init-bottom ...
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
Done.
mount: Mounting /sys on /root/sys failed: No such file or directory
mount: Mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init

BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

[/code]

Yes, this kernel works fine in installed system.
I'm not sure if I have generated initramfs using mkinitramfs, my build.log is missing :/
I will try to do it again in next week.

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) said :
#5

Please make sure that you have regenerated initramfs and try again.

Revision history for this message
michele (michele-plantamura) said :
#6

Hi there! I also have the same problem: I uninstalled the kernel, then with dpkg -i I installed ider and image. What do I still need to do after? Could you kindly list all the following steps...thanks so much!

Can you help with this problem?

Provide an answer of your own, or ask helander for more information if necessary.

To post a message you must log in.