How to switch between installed kernel and developed kernel

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Mar 23 04:53:06 EDT 2021


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 my installed kernel and to switch between
> the two in order to test my changes. I am not sure that my tutorial
> explains how to do that. If you have a link that proposes a workflow for
> this request (or if my tutorial does explain this workflow and I'm missing
> the exact paragraph that does that) please let me know.

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

Don't forget to backup of course. Maybe you could even read-only mount
the rootfs for added safety.

Good luck,
Ahmad

> 
> Thanks,
> Gidi
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the Kernelnewbies mailing list