[uCsimm] Rebooting from a NFS kernel image on uCsimm

From: Antonio BORNEO (antonio.borneo@st.com)
Date: Wed Oct 17 2001 - 10:11:11 EDT


Hi all,
we have just implemented a dirty trick in the uClinux kernel in order
to provide the capability to load in RAM a new kernel image from NFS,
and then rebooting it.

Probably this is not the best way to do that, but it works, and solves the
problem.

The attached file contains a kernel patch and a user program.

The patch modifies the reboot system-call allowing a user program
running a piece of itself in super-user mode.
This is required since iopl() is currently not implemented.

The user program loads the new image from a disk, kills all the other
processes and, through reboot(), it runs one procedure in super-user mode.
This procedure stops the running kernel, puts the new one in the right RAM
addresses, and jumps to it.

We have tested it only on uCsimm.

Ciao
Saverio, Antonio


This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:44 EST