Linux ioctl not implemented error
I get " LINUX: 'ioctl' fd=0, typ=0x53(S), num=0x13 not implemented " when attempting to configure a IDE cdrom under VMware (really coold BTW!! thanks for the port development). Somebody close to a Linux box have an idea what this ioctl is supposed to do? Wilko -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Wait... vmware for linux works under FreeBSD now??? or it just runs freebsd??? = | Kenneth Culver | FreeBSD: The best OS around.| | Unix Systems Administrator | ICQ #: 24767726 | | and student at The | AIM: AgRSkaterq | | The University of Maryland, | Website: (Under Construction) | | College Park. | http://www.wam.umd.edu/~culverk/| = On Tue, 30 Nov 1999, Wilko Bulte wrote: > I get " LINUX: 'ioctl' fd=0, typ=0x53(S), num=0x13 not implemented " > when attempting to configure a IDE cdrom under VMware (really coold BTW!! > thanks for the port development). > > Somebody close to a Linux box have an idea what this ioctl is supposed > to do? > > Wilko > -- > | / o / / _Arnhem, The Netherlands - Powered by FreeBSD - > |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
On Tue, Nov 30, 1999, Kenneth Wayne Culver wrote: > Wait... vmware for linux works under FreeBSD now??? or it just runs > freebsd??? It runs on FreeBSD. -- |Chris Costello <[EMAIL PROTECTED]> |What do computer engineers use for birth control? Their personalities. `--- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Any wierd things I should do to get it running? = | Kenneth Culver | FreeBSD: The best OS around.| | Unix Systems Administrator | ICQ #: 24767726 | | and student at The | AIM: AgRSkaterq | | The University of Maryland, | Website: (Under Construction) | | College Park. | http://www.wam.umd.edu/~culverk/| = On Tue, 30 Nov 1999, Chris Costello wrote: > On Tue, Nov 30, 1999, Kenneth Wayne Culver wrote: > > Wait... vmware for linux works under FreeBSD now??? or it just runs > > freebsd??? > >It runs on FreeBSD. > > -- > |Chris Costello <[EMAIL PROTECTED]> > |What do computer engineers use for birth control? Their personalities. > `--- > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
On Tue, 30 Nov 1999, Wilko Bulte wrote: > I get " LINUX: 'ioctl' fd=0, typ=0x53(S), num=0x13 not implemented " > when attempting to configure a IDE cdrom under VMware (really coold BTW!! > thanks for the port development). > > Somebody close to a Linux box have an idea what this ioctl is supposed > to do? CDROMVOLREAD that you want to map to CDIOGETVOL. IMO, you should download a recent Linux stable tree (2.2.13 should fit) which is a single gzipped tar file. Then you will be able to quickly add emulation of all missing IOCTL as needed (you also may have to look into the Linux code). GĂ©rard. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
> Wait... vmware for linux works under FreeBSD now??? or it just runs > freebsd??? You really need to go search the mailing list archives for the discussion which has just occurred on this topic. Everything from what it does to how to grab the port and apply the appropriate patches to your kernel have been discussed in the freebsd-emulation mailing list and it would be kind of silly to reprise the whole thing all over again in -hackers. - Jordan To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
As Kenneth Wayne Culver wrote ... > Wait... vmware for linux works under FreeBSD now??? or it just runs > freebsd??? Vladimir has created a port of the Linux version that, although highly experimental, works with -current as the host operating system. > On Tue, 30 Nov 1999, Wilko Bulte wrote: > > > I get " LINUX: 'ioctl' fd=0, typ=0x53(S), num=0x13 not implemented " > > when attempting to configure a IDE cdrom under VMware (really coold BTW!! > > thanks for the port development). > > > > Somebody close to a Linux box have an idea what this ioctl is supposed > > to do? -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Well, I personally was gonna try to get my already installed windows working... :-) = | Kenneth Culver | FreeBSD: The best OS around.| | Unix Systems Administrator | ICQ #: 24767726 | | and student at The | AIM: AgRSkaterq | | The University of Maryland, | Website: (Under Construction) | | College Park. | http://www.wam.umd.edu/~culverk/| = On Wed, 1 Dec 1999, Wilko Bulte wrote: > As Chris Costello wrote ... > > On Tue, Nov 30, 1999, Kenneth Wayne Culver wrote: > > > Wait... vmware for linux works under FreeBSD now??? or it just runs > > > freebsd??? > > > >It runs on FreeBSD. > > More precisely: on -current. > > In the meantime I also gave it a shot on my dual-P100 SMP box. > > This gave me a "VMWare internal monitor error, NullGate on IRQ. gate=0x52" > Along with a suggestion to report a bug to the VMware development team ;-) > > For obvious reasons I'll refrain from the latter > > Question: how do you people get a guest O/S installed without a CD > drive working? > > Wilko > -- > | / o / / _Arnhem, The Netherlands - Powered by FreeBSD - > |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Oops... not a member of that one... I'll go look then... :-) sorry to have cross posted... = | Kenneth Culver | FreeBSD: The best OS around.| | Unix Systems Administrator | ICQ #: 24767726 | | and student at The | AIM: AgRSkaterq | | The University of Maryland, | Website: (Under Construction) | | College Park. | http://www.wam.umd.edu/~culverk/| = On Tue, 30 Nov 1999, Jordan K. Hubbard wrote: > > Wait... vmware for linux works under FreeBSD now??? or it just runs > > freebsd??? > > You really need to go search the mailing list archives for the > discussion which has just occurred on this topic. Everything from > what it does to how to grab the port and apply the appropriate patches > to your kernel have been discussed in the freebsd-emulation mailing > list and it would be kind of silly to reprise the whole thing all over > again in -hackers. > > - Jordan > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
As Chris Costello wrote ... > On Tue, Nov 30, 1999, Kenneth Wayne Culver wrote: > > Wait... vmware for linux works under FreeBSD now??? or it just runs > > freebsd??? > >It runs on FreeBSD. More precisely: on -current. In the meantime I also gave it a shot on my dual-P100 SMP box. This gave me a "VMWare internal monitor error, NullGate on IRQ. gate=0x52" Along with a suggestion to report a bug to the VMware development team ;-) For obvious reasons I'll refrain from the latter Question: how do you people get a guest O/S installed without a CD drive working? Wilko -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
> Well, I personally was gonna try to get my already installed windows > working... :-) That's a really bad idea; the moment you run Windows under VMware it will try to reconfigure itself for the new "hardware", and you'll screw your old configuration. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED] \\ and he'll hate you for a lifetime. \\ [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Kenneth Wayne Culver wrote: > > Any wierd things I should do to get it running? > > > On Tue, Nov 30, 1999, Kenneth Wayne Culver wrote: > > > Wait... vmware for linux works under FreeBSD now??? or it just runs > > > freebsd??? > > > >It runs on FreeBSD. Here's pointer to the announcement on -hackers and to the web page for the port on Daily Damon News : http://daily.daemonnews.org/view_story.php3?story_id=270 -- Joseph Scott [EMAIL PROTECTED] Office Of Water Programs - CSU Sacramento To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
As Gerard Roudier wrote ... > > > On Tue, 30 Nov 1999, Wilko Bulte wrote: > > > I get " LINUX: 'ioctl' fd=0, typ=0x53(S), num=0x13 not implemented " > > when attempting to configure a IDE cdrom under VMware (really coold BTW!! > > thanks for the port development). > > > > Somebody close to a Linux box have an idea what this ioctl is supposed > > to do? > > CDROMVOLREAD that you want to map to CDIOGETVOL. > > IMO, you should download a recent Linux stable tree (2.2.13 should fit) Sounds like fair idea. > which is a single gzipped tar file. Then you will be able to quickly add Do you have a pointer to such a tgz at hand maybe? TNX, Wilko -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
On Wed, 1 Dec 1999, Wilko Bulte wrote: > As Gerard Roudier wrote ... > > > > > > On Tue, 30 Nov 1999, Wilko Bulte wrote: > > > > > I get " LINUX: 'ioctl' fd=0, typ=0x53(S), num=0x13 not implemented " > > > when attempting to configure a IDE cdrom under VMware (really coold BTW!! > > > thanks for the port development). > > > > > > Somebody close to a Linux box have an idea what this ioctl is supposed > > > to do? > > > > CDROMVOLREAD that you want to map to CDIOGETVOL. > > > > IMO, you should download a recent Linux stable tree (2.2.13 should fit) > > Sounds like fair idea. > > > which is a single gzipped tar file. Then you will be able to quickly add > > Do you have a pointer to such a tgz at hand maybe? try this: Index: linux_ioctl.c === RCS file: /home/ncvs/src/sys/i386/linux/linux_ioctl.c,v retrieving revision 1.47 diff -u -u -r1.47 linux_ioctl.c --- linux_ioctl.c 1999/11/29 23:03:34 1.47 +++ linux_ioctl.c 1999/12/01 23:46:22 @@ -1273,6 +1273,11 @@ return error; } +case LINUX_CDROMVOLREAD: { + args->arg = CDIOGETVOL; + return (ioctl(p, (struct ioctl_args *)args)); +} + case LINUX_OSS_GETVERSION: { int version; -Alfred To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
As Alfred Perlstein wrote ... > On Wed, 1 Dec 1999, Wilko Bulte wrote: > > > CDROMVOLREAD that you want to map to CDIOGETVOL. > > > > > > IMO, you should download a recent Linux stable tree (2.2.13 should fit) > > > > Sounds like fair idea. > > > > > which is a single gzipped tar file. Then you will be able to quickly add > > > > Do you have a pointer to such a tgz at hand maybe? Never mind, I got one in the meantime. > try this: > > Index: linux_ioctl.c > === > RCS file: /home/ncvs/src/sys/i386/linux/linux_ioctl.c,v > retrieving revision 1.47 > diff -u -u -r1.47 linux_ioctl.c > --- linux_ioctl.c 1999/11/29 23:03:34 1.47 > +++ linux_ioctl.c 1999/12/01 23:46:22 > @@ -1273,6 +1273,11 @@ > return error; > } > > +case LINUX_CDROMVOLREAD: { > + args->arg = CDIOGETVOL; CDIOCGETVOL I think as CDIOGETVOL does not exist. The console complaints about the ioctl are gone now. Unfortunately VMware still complains. I'll try to findout why. -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
>The console complaints about the ioctl are gone now. Unfortunately VMware >still complains. I'll try to findout why. Try to load new vmware port from: http://www.mindspring.com/~vsilyaev/vmware/files/vmware.tar.gz And reinstall it. I think this may fix the problem. -- Vladimir Silyaev To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
> >The console complaints about the ioctl are gone now. Unfortunately VMware > >still complains. I'll try to findout why. > > Try to load new vmware port from: > http://www.mindspring.com/~vsilyaev/vmware/files/vmware.tar.gz > > And reinstall it. I think this may fix the problem. > I'm trying the new port now. I seem to have a problem with the vmware emulator program dying due to some panic caused by an uncaught signal whenever I try to save a configuration. Right now, I opted to not save the configuration, and have proceeded on to booting a FreeBSD-3.3 release CDROM, and installing it in a VMware virtual machine. This is great. I dunno if it's just me, but this seems to provoke manical laughter from time to time. Next up: how long to do a 'make world' of the 3.3 system inside the emulator. So, is there a working network interface for the virtual machine? That would be very nifty, indeed. louie To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Hi ... > > > > to do? > > > > > > CDROMVOLREAD that you want to map to CDIOGETVOL. That should read CDIOCGETVOL :) > try this: > > Index: linux_ioctl.c > === > RCS file: /home/ncvs/src/sys/i386/linux/linux_ioctl.c,v > retrieving revision 1.47 > diff -u -u -r1.47 linux_ioctl.c > --- linux_ioctl.c 1999/11/29 23:03:34 1.47 > +++ linux_ioctl.c 1999/12/01 23:46:22 > @@ -1273,6 +1273,11 @@ > return error; > } > > +case LINUX_CDROMVOLREAD: { > + args->arg = CDIOGETVOL; > + return (ioctl(p, (struct ioctl_args *)args)); > +} > + > case LINUX_OSS_GETVERSION: { > int version; > > I've made a change that removed the complaint from vmware before Vladimar fixed it in the kernel module. It is the implementation of LINUX_CDROMVOLREAD to fit in with CDIOCGETVOL which has two different structures. Marcel please review this :) Index: linux_ioctl.c === RCS file: /home/freebsd-cvs/src/sys/i386/linux/linux_ioctl.c,v retrieving revision 1.47 diff -c -r1.47 linux_ioctl.c *** linux_ioctl.c 1999/11/29 23:03:34 1.47 --- linux_ioctl.c 1999/12/02 07:15:29 *** *** 473,478 --- 473,486 u_charcdte_datamode; }; + struct linux_cdrom_volctrl + { + u_char channel0; + u_char channel1; + u_char channel2; + u_char channel3; + }; + struct linux_cdrom_subchnl { u_char cdsc_format; *** *** 1232,1237 --- 1240,1261 bsd_to_linux_msf_lba(irtse.address_format, &irtse.entry.addr,arg, sizeof(lte)); + } + return error; + } + + case LINUX_CDROMVOLREAD: { + struct linux_cdrom_volctrl lvol, *lvolp = + (struct linux_cdrom_volctrl *)args->arg; + struct ioc_vol bsd_vol; + error = fo_ioctl(fp, CDIOCGETVOL, (caddr_t)&bsd_vol, p); + if (!error) { + lvol = *lvolp; + lvol.channel0 = bsd_vol.vol[0]; + lvol.channel1 = bsd_vol.vol[1]; + lvol.channel2 = bsd_vol.vol[2]; + lvol.channel3 = bsd_vol.vol[3]; + copyout((caddr_t)&lvol, (caddr_t)args->arg, sizeof(lvol)); } return error; } To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
On Thu, 2 Dec 1999, Reinier Bezuidenhout wrote: > > @@ -1273,6 +1273,11 @@ > > return error; > > } > > > > +case LINUX_CDROMVOLREAD: { > > + args->arg = CDIOGETVOL; > > + return (ioctl(p, (struct ioctl_args *)args)); > > +} > > + > > case LINUX_OSS_GETVERSION: { > > int version; > > > > > > I've made a change that removed the complaint from vmware before Vladimar > fixed it in the kernel module. It is the implementation of LINUX_CDROMVOLREAD > to fit in with CDIOCGETVOL which has two different structures. > > Marcel please review this :) > > > Index: linux_ioctl.c > === > RCS file: /home/freebsd-cvs/src/sys/i386/linux/linux_ioctl.c,v > retrieving revision 1.47 > diff -c -r1.47 linux_ioctl.c > *** linux_ioctl.c 1999/11/29 23:03:34 1.47 > --- linux_ioctl.c 1999/12/02 07:15:29 > *** > *** 473,478 > --- 473,486 > u_char cdte_datamode; > }; > > + struct linux_cdrom_volctrl > + { > + u_char channel0; > + u_char channel1; > + u_char channel2; > + u_char channel3; > + }; > + > struct linux_cdrom_subchnl > { > u_char cdsc_format; > *** > *** 1232,1237 > --- 1240,1261 > bsd_to_linux_msf_lba(irtse.address_format, > &irtse.entry.addr,copyout((caddr_t) arg, sizeof(lte)); > + } > + return error; > + } > + > + case LINUX_CDROMVOLREAD: { > + struct linux_cdrom_volctrl lvol, *lvolp = > + (struct linux_cdrom_volctrl *)args->arg; > + struct ioc_vol bsd_vol; > + error = fo_ioctl(fp, CDIOCGETVOL, (caddr_t)&bsd_vol, p); > + if (!error) { > + lvol = *lvolp; > + lvol.channel0 = bsd_vol.vol[0]; > + lvol.channel1 = bsd_vol.vol[1]; > + lvol.channel2 = bsd_vol.vol[2]; > + lvol.channel3 = bsd_vol.vol[3]; > + copyout((caddr_t)&lvol, (caddr_t)args->arg, sizeof(lvol)); > } > return error; > } > FYI the kernel structures are completely identical, you don't really gain anything by doing this convertion. Should this be put in for clarity? I'm not sure. Marcel? -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]] Wintelcom systems administrator and programmer - http://www.wintelcom.net/ [[EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Reinier Bezuidenhout wrote: > I've made a change that removed the complaint from vmware before Vladimar > fixed it in the kernel module. It is the implementation of LINUX_CDROMVOLREAD > to fit in with CDIOCGETVOL which has two different structures. > > Marcel please review this :) Please hold your horses. I have a completely rewritten linux_ioctl.c waiting to be committed. I'm already working on the ioctl stuff with Vladimir as to synchronize the change. As soon as Vladimir has updated his port to use the new interface everything is committed and announced. >From that moment on I'll happily accept any patches and diffs! Please, send patches that specificly apply to the VMware port to Vladimir and any patches that apply to the Linuxulator to me. That way we have this port up and running in notime. I unfortunately don't have time to read the mailinglists very closely, so I may have missed a couple of patches already... Thanks, -- Marcel Moolenaarmailto:[EMAIL PROTECTED] SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD projectmailto:[EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Alfred Perlstein wrote: > > > + if (!error) { > > + lvol = *lvolp; > > + lvol.channel0 = bsd_vol.vol[0]; > > + lvol.channel1 = bsd_vol.vol[1]; > > + lvol.channel2 = bsd_vol.vol[2]; > > + lvol.channel3 = bsd_vol.vol[3]; > > FYI the kernel structures are completely identical, you don't really > gain anything by doing this convertion. Should this be put in for > clarity? I'm not sure. No. When it's there, you automaticly assume it's there for a reason. Since the structures are identical, there's no reason for the code to be there. Very confusing :-) -- Marcel Moolenaarmailto:[EMAIL PROTECTED] SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD projectmailto:[EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
> > + { > > + u_char channel0; > > + u_char channel1; > > + u_char channel2; > > + u_char channel3; > > + }; > > + > > struct linux_cdrom_subchnl > > { > > u_char cdsc_format; > > *** > > *** 1232,1237 > > --- 1240,1261 > > FYI the kernel structures are completely identical, you don't really > gain anything by doing this convertion. Should this be put in for > clarity? I'm not sure. > Ok ... I guess it should not be a problem the FreeBSD structure is struct ioc_vol { u_char vol[4]; /* one for each channel */ }; which I guess should look the same in memory than the linux one ... The confersion is then not necessary ... ?? Reinier To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
Hi ... > > to fit in with CDIOCGETVOL which has two different structures. > > > > Marcel please review this :) > > Please hold your horses. I have a completely rewritten linux_ioctl.c > waiting to be committed. I'm already working on the ioctl stuff with > Vladimir as to synchronize the change. As soon as Vladimir has updated > his port to use the new interface everything is committed and announced. > From that moment on I'll happily accept any patches and diffs! > > Please, send patches that specificly apply to the VMware port to > Vladimir and any patches that apply to the Linuxulator to me. That way > we have this port up and running in notime. I unfortunately don't have > time to read the mailinglists very closely, so I may have missed a > couple of patches already... > Ok ... I'm holding my horses ... my previous e-mail was just before I received this one ... please ignore it then ... Reinier To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
> Alfred Perlstein wrote: > > > > > + if (!error) { > > > + lvol = *lvolp; > > > + lvol.channel0 = bsd_vol.vol[0]; > > > + lvol.channel1 = bsd_vol.vol[1]; > > > + lvol.channel2 = bsd_vol.vol[2]; > > > + lvol.channel3 = bsd_vol.vol[3]; > > > > FYI the kernel structures are completely identical, you don't really > > gain anything by doing this convertion. Should this be put in for > > clarity? I'm not sure. > > No. When it's there, you automaticly assume it's there for a reason. > Since the structures are identical, there's no reason for the code to be > there. Very confusing :-) I stand corrected then :) thanx Reinier To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
The structures are identical because they are what the SCSI spec specifies that's what they look like.. On Thu, 2 Dec 1999, Alfred Perlstein wrote: > On Thu, 2 Dec 1999, Reinier Bezuidenhout wrote: > > > > @@ -1273,6 +1273,11 @@ > > > return error; > > > } > > > > > > +case LINUX_CDROMVOLREAD: { > > > + args->arg = CDIOGETVOL; > > > + return (ioctl(p, (struct ioctl_args *)args)); > > > +} > > > + > > > case LINUX_OSS_GETVERSION: { > > > int version; > > > > > > > > > > I've made a change that removed the complaint from vmware before Vladimar > > fixed it in the kernel module. It is the implementation of LINUX_CDROMVOLREAD > > to fit in with CDIOCGETVOL which has two different structures. > > > > Marcel please review this :) > > > > > > Index: linux_ioctl.c > > === > > RCS file: /home/freebsd-cvs/src/sys/i386/linux/linux_ioctl.c,v > > retrieving revision 1.47 > > diff -c -r1.47 linux_ioctl.c > > *** linux_ioctl.c 1999/11/29 23:03:34 1.47 > > --- linux_ioctl.c 1999/12/02 07:15:29 > > *** > > *** 473,478 > > --- 473,486 > > u_charcdte_datamode; > > }; > > > > + struct linux_cdrom_volctrl > > + { > > + u_char channel0; > > + u_char channel1; > > + u_char channel2; > > + u_char channel3; > > + }; > > + > > struct linux_cdrom_subchnl > > { > > u_char cdsc_format; > > *** > > *** 1232,1237 > > --- 1240,1261 > > bsd_to_linux_msf_lba(irtse.address_format, > > &irtse.entry.addr,> copyout((caddr_t) arg, sizeof(lte)); > > + } > > + return error; > > + } > > + > > + case LINUX_CDROMVOLREAD: { > > + struct linux_cdrom_volctrl lvol, *lvolp = > > + (struct linux_cdrom_volctrl *)args->arg; > > + struct ioc_vol bsd_vol; > > + error = fo_ioctl(fp, CDIOCGETVOL, (caddr_t)&bsd_vol, p); > > + if (!error) { > > + lvol = *lvolp; > > + lvol.channel0 = bsd_vol.vol[0]; > > + lvol.channel1 = bsd_vol.vol[1]; > > + lvol.channel2 = bsd_vol.vol[2]; > > + lvol.channel3 = bsd_vol.vol[3]; > > + copyout((caddr_t)&lvol, (caddr_t)args->arg, sizeof(lvol)); > > } > > return error; > > } > > > > FYI the kernel structures are completely identical, you don't really > gain anything by doing this convertion. Should this be put in for > clarity? I'm not sure. > > Marcel? > > -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]] > Wintelcom systems administrator and programmer >- http://www.wintelcom.net/ [[EMAIL PROTECTED]] > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
As Louis A. Mamakos wrote ... > > >The console complaints about the ioctl are gone now. Unfortunately VMware > > >still complains. I'll try to findout why. > > > > Try to load new vmware port from: > > http://www.mindspring.com/~vsilyaev/vmware/files/vmware.tar.gz > > > > And reinstall it. I think this may fix the problem. > > > > I'm trying the new port now. I seem to have a problem with the > vmware emulator program dying due to some panic caused by an > uncaught signal whenever I try to save a configuration. Same here. But that also happened with the pre-Dec 1, 1999 version. Does not happen always, sometimes it works. I have not yet found a pattern. > Right now, I opted to not save the configuration, and have proceeded > on to booting a FreeBSD-3.3 release CDROM, and installing it in a > VMware virtual machine. This is great. I dunno if it's just me, > but this seems to provoke manical laughter from time to time. Well, no manical laughter here yet. I still get "does not appear to be a cdrom device". Looks like I have some kind of config mistake here. What do people use for the /dev entry? /dev/wcd0a ? > Next up: how long to do a 'make world' of the 3.3 system inside the > emulator. Blurk.. ;-) > So, is there a working network interface for the virtual machine? That > would be very nifty, indeed. Vladimir's web page they don't work: " - All networking This require FreeBSD version of vmnet driver " Wilko -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
On Thu, Dec 02, 1999 at 08:34:04PM +0100, Wilko Bulte wrote: > > > > I'm trying the new port now. I seem to have a problem with the > > vmware emulator program dying due to some panic caused by an > > uncaught signal whenever I try to save a configuration. > > Same here. But that also happened with the pre-Dec 1, 1999 version. > Does not happen always, sometimes it works. I have not yet found > a pattern. Every time, when you save new configuration, VMware complained about unexpected signal (before that it save first line from configuration file). But if you load configuration and change it, or save it with same or another name, all be working well. > > > Right now, I opted to not save the configuration, and have proceeded > > on to booting a FreeBSD-3.3 release CDROM, and installing it in a > > VMware virtual machine. This is great. I dunno if it's just me, > > but this seems to provoke manical laughter from time to time. > > Well, no manical laughter here yet. I still get "does not > appear to be a cdrom device". Looks like I have some kind of config > mistake here. What do people use for the /dev entry? /dev/wcd0a ? Lines from my configuration file: ide0:1.present = TRUE ide0:1.deviceType = "atapi-cdrom" ide0:1.fileName = "/dev/rwcd0c" > > So, is there a working network interface for the virtual machine? That > > would be very nifty, indeed. > > Vladimir's web page they don't work: > > " >- All networking > This require FreeBSD version of vmnet driver > " Exactly, and vmware distribution have the sources of this driver. But this module consisted from one source file, in this file implemented three devices, and one file node in the linux procfs. Of course this file _very_ linux specific. -- Vladimir Silyaev. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
+[ Vladimir N. Silyaev ]- | | > Vladimir's web page they don't work: | > | > " | >- All networking | > This require FreeBSD version of vmnet driver | > " | | Exactly, and vmware distribution have the sources of this driver. | But this module consisted from one source file, in this file | implemented three devices, and one file node in the linux procfs. | Of course this file _very_ linux specific. The bochs port implements a pseudo-ne2000 using BPF under FreeBSD, is this approach a possibility? The freebsd ether stuff from bochs has Peter Grehan ([EMAIL PROTECTED]) on the copyright so he'd be the one to contact about the availability of (parts of) his code to use in a port I suppose. It does have some limitations (can't send packets to the host/os) but I don't know how complete the code is either. Kevin Lawton (the bochs author) is working on his own vmware type system as well, they're still in an experimental mode though. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
As Vladimir N. Silyaev wrote ... Hello Vladimir, > On Thu, Dec 02, 1999 at 08:34:04PM +0100, Wilko Bulte wrote: > > Same here. But that also happened with the pre-Dec 1, 1999 version. > > Does not happen always, sometimes it works. I have not yet found > > a pattern. > Every time, when you save new configuration, VMware complained about > unexpected signal (before that it save first line from configuration > file). But if you load configuration and change it, or save it with Right, you get a file with only: #!/usr/local/lib/vmware/bin/vmware in it. > same or another name, all be working well. Hm, I think I also saw it fallover when I did this (sometimes, not always). Anyway, I'm more concerned with the CDrom drive right now. > > Well, no manical laughter here yet. I still get "does not > > appear to be a cdrom device". Looks like I have some kind of config > > mistake here. What do people use for the /dev entry? /dev/wcd0a ? > Lines from my configuration file: > > ide0:1.present = TRUE > ide0:1.deviceType = "atapi-cdrom" > ide0:1.fileName = "/dev/rwcd0c" > Tried that. No luck :-( See also seperate posting. -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
On Fri, Dec 03, 1999 at 09:37:03PM +0100, Wilko Bulte wrote: > Hm, I think I also saw it fallover when I did this (sometimes, not always). I really don't have suggestion, what vmware doing, when it save configuration file. > Anyway, I'm more concerned with the CDrom drive right now. > [skipped] > Tried that. No luck :-( Try to run vmware from xterm, did you see messages about 'ioctl xxx not implemented' ? And dumb question, what version of port are you used, say something like ID from Makefile, or the value of VMMON_FREEBSD_VERSION, from the same Makefile. -- Vladimir Silyaev To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Linux ioctl not implemented error
As Vladimir N. Silyaev wrote ... > On Fri, Dec 03, 1999 at 09:37:03PM +0100, Wilko Bulte wrote: > > Anyway, I'm more concerned with the CDrom drive right now. > > > [skipped] > > Tried that. No luck :-( > Try to run vmware from xterm, did you see messages about > 'ioctl xxx not implemented' ? No, what I get is: FreeBSD 4.0-CURRENT (P100) #3: Fri Dec 3 23:14:46 CET 1999 You have new mail. bash-2.03# vmware Dec 4 11:35:13 p100 /kernel: deb: /dev/vmmon: Module vmmon: registered with major=10 minor=165 tag=$Name: build-364 $ Dec 4 11:35:13 p100 /kernel: deb: /dev/vmmon: Module vmmon: registered with major=10 minor=165 tag=$Name: build-364 $ Dec 4 11:35:13 p100 /kernel: deb: /dev/vmmon: Module vmmon: initialized Dec 4 11:35:13 p100 /kernel: deb: /dev/vmmon: Module vmmon: initialized Warning: Name: scale Class: XmScale The specified scale value is greater than the maximum scale value. > And dumb question, what version of port are you used, say something > like ID from Makefile, or the value of VMMON_FREEBSD_VERSION, from > the same Makefile. # $vmFreeBSD: vmware/vmmon-only/freebsd/port/Makefile,v 1.5 1999/12/01 06:51:50 vsilyaev Exp $ # VERSION=1.1.2 BUILD= 364 VMMON_FREEBSD_VERSION = 0.92 I hope this is the latest one (?). Thanks for all your help, Wilko -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
vmnet (was: Linux ioctl not implemented error)
On Fri, Dec 03, 1999 at 12:16:00PM +1000, Andrew Kenneth Milton wrote: > The bochs port implements a pseudo-ne2000 using BPF under FreeBSD, is > this approach a possibility? The freebsd ether stuff from bochs has > Peter Grehan ([EMAIL PROTECTED]) on the copyright so he'd be the > one to contact about the availability of (parts of) his code to use in > a port I suppose. I don't know. At any case we are need provide the same API as linux vmnet provide, so we are need to implement it in the kernel module. But bochs use user level implementation. > It does have some limitations (can't send packets to the host/os) but > I don't know how complete the code is either. At this time I found the next message (it was posted more than 3 years ago at the freebsd-hackers mailing list): http://www.freebsd.org/cgi/getmsg.cgi?fetch=661424+0+/usr/local/www/db/text/1996/freebsd-hackers/19961020.freebsd-hackers It's a very long URL but I hope that it's possible to retrieve it. At least you can search via its subject: Networking in PCEMU (1/2) I don't study this code, but it looking not so bad. > > Kevin Lawton (the bochs author) is working on his own vmware type system > as well, they're still in an experimental mode though. Yes. I looking to this project, named as freemware. Their URL: http://www.freemware.org/ But this code very experimental. And to develop such kind of software are need to have steal nerves. I fill that, at the time when I was porting vmware. I have too much hours of very interested work - load driver, launch vmware and then looking into the DDB double fault screen. Reload box, and then again. -- Vladimir Silyaev To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: vmnet (was: Linux ioctl not implemented error)
On Thu, 2 Dec 1999, Vladimir N. Silyaev wrote: > On Fri, Dec 03, 1999 at 12:16:00PM +1000, Andrew Kenneth Milton wrote: > > The bochs port implements a pseudo-ne2000 using BPF under FreeBSD, is > > this approach a possibility? The freebsd ether stuff from bochs has > > Peter Grehan ([EMAIL PROTECTED]) on the copyright so he'd be the > > one to contact about the availability of (parts of) his code to use in > > a port I suppose. > I don't know. At any case we are need provide the same API as linux > vmnet provide, so we are need to implement it in the kernel module. > But bochs use user level implementation. > > > It does have some limitations (can't send packets to the host/os) but > > I don't know how complete the code is either. > At this time I found the next message (it was posted more than 3 years > ago at the freebsd-hackers mailing list): > >http://www.freebsd.org/cgi/getmsg.cgi?fetch=661424+0+/usr/local/www/db/text/1996/freebsd-hackers/19961020.freebsd-hackers > > It's a very long URL but I hope that it's possible to retrieve it. At least > you can search via its subject: Networking in PCEMU (1/2) > > I don't study this code, but it looking not so bad. check if you might not be able to use a netgraph module for this. julian To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: vmnet (was: Linux ioctl not implemented error)
On Thu, Dec 02, 1999 at 08:02:37PM -0800, Julian Elischer wrote: > > I don't know. At any case we are need provide the same API as linux > > vmnet provide, so we are need to implement it in the kernel module. > > But bochs use user level implementation. > > > > > It does have some limitations (can't send packets to the host/os) but > > > I don't know how complete the code is either. > > At this time I found the next message (it was posted more than 3 years > > ago at the freebsd-hackers mailing list): > > >http://www.freebsd.org/cgi/getmsg.cgi?fetch=661424+0+/usr/local/www/db/text/1996/freebsd-hackers/19961020.freebsd-hackers > > > > It's a very long URL but I hope that it's possible to retrieve it. At least > > you can search via its subject: Networking in PCEMU (1/2) > > > > I don't study this code, but it looking not so bad. > > check if you might not be able to use a netgraph module for this. My first think was about netgraph, but loopback ethernet driver, much closer to current linux vmnet implementation. I wrote to Serge Babkin (author of original posting), and he pointed to more fresh version of the driver: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/6668 -- Vladimir Silyaev. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: vmnet (was: Linux ioctl not implemented error)
[EMAIL PROTECTED] (Vladimir N. Silyaev) writes: > are need to have steal nerves. I fill that, at the time when I was porting > vmware. I have too much hours of very interested work - load driver, launch > vmware and then looking into the DDB double fault screen. Reload box, > and then again. I suppose that the incomplete virtualization of the x86 prevents you from running vmware on FreeBSD on vmware on Linux for debugging? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: vmnet (was: Linux ioctl not implemented error)
On Tue, Dec 07, 1999 at 05:06:41PM +0200, Ville-Pertti Keinonen wrote: > > are need to have steal nerves. I fill that, at the time when I was porting > > vmware. I have too much hours of very interested work - load driver, launch > > vmware and then looking into the DDB double fault screen. Reload box, > > and then again. > > I suppose that the incomplete virtualization of the x86 prevents you > from running vmware on FreeBSD on vmware on Linux for debugging? Yes, exactly. The VMware web site have a warning like this 'even don't try to run VMware on VMware guest, this don't work, and may be lock our computer'. But the vmware vmmon driver have some footprint of code, to support such thing in the special VMware version. But at any case, in the last night I have a success with FreeBSD version of the vmnet driver, see announce in emulation. -- Vladimir Silyaev To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message