|
From: Ralph <ra...@de...> - 2004-09-17 17:30:14
|
Am Freitag 17 September 2004 18:58 schrieb Lei Yang: > Dear fellows, > > I am new to kernel modules and am trying to get a module work right now. I > need some tools to debug. In order not to risk the host machine, I am > thinking of using UML. I downloaded the kernel RPM > > ------user_mode_linux-2.4.19.5um-0.i386.rpm > > and root filesystem > > ------Debian-3.0r0.ext2.bz2 > > and got Debian boot sucessfully. However, I still have several questions: > > 1. The kernel version does not match filesystem: > (none):/lib/modules# ls > 2.4.18-37um > (none):/lib/modules# uname -r > 2.4.19-5um You have to copy /usr/lib/uml/modules/... (from the host) to /lib/modules (on the guest) to have the correct modules for the installed uml kernel. > 2. How do I get my own module compiled into the kernel and debug with it? apt-get install kernel-source-2.4.19 apt-get source user-mode-linux cd user-mode-linux debian/rules unpack debian/rules patch debian/rules configure cd kernel-source-2.4.19 make menuconfig <edit the config> cp .config ../config cd.. dpkg-buildpackage -b this will built your own user-mode-linux debian package with the config of your choice. I hope the commands are 100% correct, but I am not sure, because I never used the quite old woody version myself. > I've been reading the UML homepage > http://user-mode-linux.sourceforge.net/index.html > > but have not really found tips helpful to me. Could anyone give me any hint > how to do this, or where to look at? > > TIA! > > Lei --Ralph > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |