Hello danny, UML is well adapted for this usage if your modules do not involve hardware. For module compilation, I would advise to do it directly into the target UML, for this you need a file-system equiped with the minimum developpement tools, and the linux running your UML must also be in sources form in the filesystem.
All this can be obtained at http://clownix.net Then I have included in the joined tar a char driver that connects 2 machines through char drivers, it is a very instructive module, it uses kernel udp sockets to carry data from one driver char of one machine to the char driver of the second machine. To try it, run the cloonix_net "double" demo, then upload the chardev in both with scp, then open low.h file of the ONE, comment the INADDR_SEND ... 0x7f000001, uncomment the INADDR_SEND 0x02020202, then open the low.h file of the TWO, comment INADDR_SEND ... 0x7f000001, uncomment INADDR_SEND 0x02020201. Then run ./cmd on both, it should compile your module and create your /dev/chardev node and insert the module. Then on machine TWO, do "cat /dev/chardev" and on machine ONE do "echo tutu > /dev/chardev". This should help you for your first char driver on UML. Regards Vincent Perrier Le mardi 16 décembre 2008 à 20:56 +0100, danny van elsen a écrit : > hello all, > > I expeimented with UMl some time ago, a year or so, but found it rather > unclear how to load and debug my own kernel modules. > > Has documentation or experience on this topic evolved since then, > perhaps? > > I would like to be able to develop my own kernel modules, load them in > an UML session, and then look at how they behave without endangering my > entire system :-) > > many greetings, danny. > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > User-mode-linux-user mailing list > User-mode-linux-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > � >
chardev.tar.gz
Description: application/compressed-tar
------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user