Re: [SSI-devel] OpenSSI kernel on SuSE and FC2 - latest status
Brought to you by:
brucewalker,
rogertsang
From: Roopa P. <pra...@in...> - 2005-01-11 12:03:29
|
Hello Brian, I was able to boot (reached a point where it executed the linuxrc) a system using 2.6 kernel and initrd created by the changes that i made to mkinitrd for SuSE 9.2 (with a few changes of course). I tried to mount sysfs and use udev in the linuxrc to mount root. But that does not seem to work, cause I dont think sysfs is getting mounted properly, and hence udevstart fails. I got past that by getting the root dev name from kernel cmdline and using /proc/sys/real-root-dev. Other problems are, 'ipcalc' is not available with the SuSE 9.2 distribution. It is available from another source but that is again a perl script. I was just trying to look at the code to see if we can just add some logic in linuxrc to calculate the broadcast address. I think its much easier to code it in 'c' or perl. Do you think we can pick up ipcalc 'c' code and add it to our initrd. Or is there any chance we can add the broadcast address to 'boottab' ? Thanks, Roopa On Tue, 2005-01-11 at 13:43, Bharata B Rao wrote: > Here's my observation on booting 2.6.8.1 kernel on SuSE and FC2. > > SuSE 9.2 (1 CPU) > ================ > - sync commands commented out from boot scripts. > - system always boots to init 3, but login is successful only very > rarely. > - Failure cases looks like this: > > Welcome to SuSE Linux 9.2 (i586) - Kernel 2.6.8.1-expt (ttyS0). > > kritika2 login: > Entering kdb (current=0xd9e4c760, pid 69275) on processor 0 due to > Keyboard Entry > [0]kdb> bt > > Stack traceback for pid 69275 > 0xd9e4c760 69275 66190 1 0 R 0xd9e4c9f0 *udev > EBP EIP Function (args) > 0xd9f23db0 0xc0180f40 posix_locks_deadlock+0x40 (0xdefb0180, 0xc161360c, > 0x246, 0xc02) > 0xd9f23e24 0xc018165b __posix_lock_file+0x4fb (0xda4229a0, 0xdefb0180) > 0xd9f23e34 0xc018169e posix_lock_file+0x1e (0xdab90b80, 0xdefb0180, > 0xdfe6a880, 0xc16) > 0xd9f23e50 0xc026b12d cfsd_proc_setlock_0+0xad (0xd9f23eac, 0xd9f23e88, > 0x0, 0x7c5, 0) > 0xd9f23ef8 0xc0261da2 cfs_lock+0x322 (0xda935080, 0x7, 0xc161396c, > 0xc016a4c1, 0xda93) > 0xd9f23f74 0xc018271c fcntl_setlk+0x26c (0xda935080, 0x7, 0xbfffef88, > 0x400, 0xda9350) > 0xd9f23f98 0xc017d584 do_fcntl+0x144 (0x4, 0x7, 0xbfffef88, 0xda935080, > 0x4) > 0xd9f23fbc 0xc017d792 sys_fcntl64+0x82 > 0xc0109819 sysenter_past_esp+0x52 > [0]kdb> > > FC2 (2 CPUs) > ============ > - system always boots to init 3, and login succeeds most of the time and > fails only occasionally. > - Failure case looks like this: > > [0]kdb> bt > Stack traceback for pid 67179 > 0xd57541b0 67179 1 1 0 R 0xd5754440 *mingetty > EBP EIP Function (args) > 0xd5757d74 0xc012545d __wake_up+0x3d (0x0, 0xd5690f78, 0xd5690f6c, > 0xd5690f70, 0xdfd6) > 0xd5757d90 0xc0180ac9 locks_wake_up_blocks+0x89 (0xd5690f6c, 0xdfed8680, > 0x0, 0xd5690) > 0xd5757db0 0xc0180b85 locks_delete_lock+0x65 (0xdcb604c0, 0x0, > 0xc17b8600, 0x2, 0x0) > 0xd5757e24 0xc018132f __posix_lock_file+0x1cf (0xdcb60420, 0xdfd62680) > 0xd5757e34 0xc018169e posix_lock_file+0x1e (0xdfed8680, 0xdfd62680, > 0xdfb8d180, 0xc17) > 0xd5757e50 0xc026b12d cfsd_proc_setlock_0+0xad (0xd5757eac, 0xd5757e88, > 0x7fffffff, 0) > 0xd5757ef8 0xc0261da2 cfs_lock+0x322 (0xdd83c180, 0x7, 0xc173054c, > 0xd5756000, 0xc171) > 0xd5757f74 0xc018271c fcntl_setlk+0x26c (0xdd83c180, 0x7, 0xbfffe630, > 0xfffffff7, 0xd) > 0xd5757f98 0xc017d584 do_fcntl+0x144 (0x3, 0x7, 0xbfffe630, 0xdd83c180, > 0x3) > 0xd5757fbc 0xc017d792 sys_fcntl64+0x82 > 0xc0109819 sysenter_past_esp+0x52 > > > Both SuSE and FC2 are running the same kernel with the following > workarounds: > > --- openssi/kernel/ipc/shm.c 2004-11-18 11:20:32.000000000 +0530 > +++ linux-2.6.8.1/ipc/shm.c 2005-01-07 16:03:32.000000000 +0530 > @@ -373,7 +373,7 @@ > asmlinkage long sys_shmget (key_t key, size_t size, int shmflg) > { > #ifdef CONFIG_SSI > - return ssi_shmget(key, size, shmflg); > +// return ssi_shmget(key, size, shmflg); > #else > struct shmid_kernel *shp; > int err, id = 0; > > --- linux-2.6.8.1/drivers/char/tty_io.c > --- openssi/kernel/drivers/char/tty_io.c 2004-12-21 > 10:32:41.000000000 +0530 > +++ linux-2.6.8.1/drivers/char/tty_io.c 2005-01-04 18:49:55.000000000 > +0530 > @@ -1509,7 +1509,7 @@ > #ifdef CONFIG_UNIX98_PTYS > if (device == MKDEV(TTYAUX_MAJOR,2)) { > #ifdef CONFIG_SSI > - retval = ssipty_get_pty(&index, pty_limit); > + //retval = ssipty_get_pty(&index, pty_limit); > if (retval < 0) > return retval; > driver = ptm_driver; > @@ -1518,7 +1518,7 @@ > printk(KERN_WARNING > "%s:init_dev %d failed)\n", > __FUNCTION__, index); > - (void)ssipty_put_pty(index); > + // (void)ssipty_put_pty(index); > return retval; > } > #else > > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > ssic-linux-devel mailing list > ssi...@li... > https://lists.sourceforge.net/lists/listinfo/ssic-linux-devel > |