Re: How to switch between installed kernel and developed kernel

2021-03-25 Thread jim . cromie
> > > > I've found running a kernel under qemu with my normal rootfs to be quite > useful to quickly try out things. See the qemu-test script in the RAUC > project > for an example: https://github.com/rauc/rauc/blob/master/qemu-test > > I would agree. I find "virtme" tool to be super simple and

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Aruna Hewapathirane
On Tue, Mar 23, 2021 at 10:37 AM Gidi Gal wrote: > Thanks Aruna and Valdis for your replies. > > Use : linux-check-removal >> > > I tried to use it on my kernel. It did not seem to work - I still see the > files in /boot. I assume it is because my kernel is not signed properly. > When I launch

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Aruna Hewapathirane
On Tue, Mar 23, 2021 at 11:06 AM Valdis Klētnieks wrote: > On Tue, 23 Mar 2021 00:29:10 -0400, Aruna Hewapathirane said: > > > Use : linux-check-removal > > That's a debian-specific thing... > Yep and he is running Ubuntu which is a derivative of Debian ? His .config just told me this :-) But

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Gidi Gal
Thanks Aruna and Valdis for your replies. Use : linux-check-removal > I tried to use it on my kernel. It did not seem to work - I still see the files in /boot. I assume it is because my kernel is not signed properly. When I launch "dpkg --list | grep linux-image" I don't see my kernel in the

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Valdis Klētnieks
On Tue, 23 Mar 2021 00:29:10 -0400, Aruna Hewapathirane said: > Use : linux-check-removal That's a debian-specific thing... > > Seriously - if you're not comfortable with that level of sysadmin > > procedures, > > maybe you shouldn't be a kernel hacker... > > > Do not listen to Valdis in this

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Valdis Klētnieks
On Tue, 23 Mar 2021 16:37:13 +0200, you said: > I gave up for now and prepared bash script for removing the files, based on > the information in > https://www.cyberciti.biz/faq/debian-redhat-linux-delete-kernel-command/ > (see "A note about custom compiled Linux kernel" section). In my opinion, >

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Ahmad Fatoum
Hello Gidi, On 22.03.21 13:11, Gidi Gal wrote: > Hello, > > I am new to kernel development, currently working on > https://kernelnewbies.org/FirstKernelPatch. I reached the step "Install > your changes" in "Modifying a driver on native Linux". I would like to > separate my developed kernel and

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Aruna Hewapathirane
On Mon, Mar 22, 2021 at 9:17 PM Valdis Klētnieks wrote: > On Tue, 23 Mar 2021 00:01:22 +0200, Gidi Gal said: > > > Many thanks for your reply, Aruna. Is there a way to remove the installed > > '5.12.0-rc3-GIDI_DEV+' kernel ? Yes there are 'many' ways to remove a kernel :-) A reverse command

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Valdis Klētnieks
On Tue, 23 Mar 2021 00:01:22 +0200, Gidi Gal said: > Many thanks for your reply, Aruna. Is there a way to remove the installed > '5.12.0-rc3-GIDI_DEV+' kernel ? A reverse command for the 'sudo make > modules_install install' command ? I found this link which explains how to > do it manually ( >

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Gidi Gal
Many thanks for your reply, Aruna. Is there a way to remove the installed '5.12.0-rc3-GIDI_DEV+' kernel ? A reverse command for the 'sudo make modules_install install' command ? I found this link which explains how to do it manually (

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Aruna Hewapathirane
On Mon, Mar 22, 2021 at 5:18 PM Aruna Hewapathirane < aruna.hewapathir...@gmail.com> wrote: > > >> update-initramfs: Generating /boot/initrd.img-5.12.0-rc3-GIDI_DEV+ >> dpkg: warning: version '5.12.0-rc3-GIDI_DEV+' has bad syntax: invalid >> character in revision number >> dpkg: warning: version

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Aruna Hewapathirane
> update-initramfs: Generating /boot/initrd.img-5.12.0-rc3-GIDI_DEV+ > dpkg: warning: version '5.12.0-rc3-GIDI_DEV+' has bad syntax: invalid > character in revision number > dpkg: warning: version '5.12.0-rc3-GIDI_DEV+' has bad syntax: invalid > character in revision number > This is a

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Bernd Petrovitsch
Hi, On 22/03/2021 13:11, Gidi Gal wrote: [...] > . I reached the step > "Install your changes" in "Modifying a driver on native Linux". I would > like to separate my developed kernel and my installed kernel and to > switch between the two in order to

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Gidi Gal
I am grateful for your replies, Brend, Valdis and Bjørn. I did some backups, decided for now to try and run my kernel on my native Linux, until I prepare a VM for testing. I tried to install my kernel. The output showed some errors (I copied the install log at the bottom of this email). I think

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Bjørn Mork
Gidi Gal writes: > I am new to kernel development, currently working on > https://kernelnewbies.org/FirstKernelPatch. I reached the step "Install > your changes" in "Modifying a driver on native Linux". I would like to > separate my developed kernel and my installed kernel and to switch between

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Valdis Klētnieks
On Mon, 22 Mar 2021 14:11:58 +0200, Gidi Gal said: > I am new to kernel development, currently working on > https://kernelnewbies.org/FirstKernelPatch. I reached the step "Install > your changes" in "Modifying a driver on native Linux". I would like to > separate my developed kernel and my

How to switch between installed kernel and developed kernel

2021-03-22 Thread Gidi Gal
Hello, I am new to kernel development, currently working on https://kernelnewbies.org/FirstKernelPatch. I reached the step "Install your changes" in "Modifying a driver on native Linux". I would like to separate my developed kernel and my installed kernel and to switch between the two in order to