On Sun, Jul 06, 2003 at 06:44:06PM +0300, Yedidyah Bar-David wrote: > On Sun, Jul 06, 2003 at 04:51:45PM +0200, Erez Doron wrote: > [snip] > > > > I know how to write a kernel driver that accesses physical mem, but > > until i run 'lspci' i d not know what memory address was given to my card. > > also, if i use a driver, i need to find the sources for the specific > > kernel i have on cd, make a driver and use a floppy (as i d not have a > > hard drive). > > Why not? It's quite easy to boot knoppix with a custom kernel. This is > the recommended (by us) way to debug kernel code for OS course students. > The only thing you need except vanilla linux kernel sources is the cloop > driver (for their compressed loop).
Careful here! The cloop module may be problematic. Consider the following bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165203 A number of attempts to use to extract files from a knoppix CD have resulted in some hung (D) processes. It gave me an opportunity to find out a bit about force-umounting (There is a switch that is intended for NFS, and doesn't work cleanly for other FSs) :-( > You can put on the hard disk lilo > with several kernels and initrd images (one of them can be the original > knoppix one) Also note that the debian initrds are cramfs and the default knoppix kernel has cramfs as a module. Thus if you need an initrd to boot it (e.g: have reiserfs for root filesystem) you'll have to create an initrd in a different way. > , you'll need to put in the initrd a cloop compiled against > your kernel, and mostly it works. what do you mean by "mostly"? What happens when it doesn't? > I even wrote some scripts for them > (which I am not proud of enough to publish but don't mind emailing) to > do that automatically. > Then, if your driver is ok and you can access the disk, you can recompile > the kernel when you need and add it to lilo, and if not, you simply boot > with an older one (or with knoppix's). -- Tzafrir Cohen +---------------------------+ http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend| mailto:[EMAIL PROTECTED] +---------------------------+ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]