From owner-freebsd-emulation Sun Aug 8 17:44:25 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from mail1.giga.net.tw (mail1.giga.net.tw [203.133.1.10]) by hub.freebsd.org (Postfix) with ESMTP id 77FE514BFC for ; Sun, 8 Aug 1999 17:44:16 -0700 (PDT) (envelope-from randy@giga.net.tw) Received: from randy ([203.133.18.68]) by mail1.giga.net.tw with Microsoft SMTPSVC(5.5.1877.117.11); Mon, 9 Aug 1999 08:41:25 +0800 Message-ID: <000701bee201$2f0a4740$acc0fea9@randy> From: "randy" To: Subject: Date: Mon, 9 Aug 1999 08:50:31 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01BEE244.3C6D4480" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0004_01BEE244.3C6D4480 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable ------=_NextPart_000_0004_01BEE244.3C6D4480 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
 
------=_NextPart_000_0004_01BEE244.3C6D4480-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Aug 12 9:32:41 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id D2DC915805 for ; Thu, 12 Aug 1999 09:32:27 -0700 (PDT) (envelope-from freebsd-emulation@scc.nl) Received: from mail.scc.nl (i406.ztm.euronet.nl [194.134.67.127]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id SAA21602 from for ; Thu, 12 Aug 1999 18:32:35 +0200 (MET DST) Received: (from daemon@localhost) by mail.scc.nl (8.9.3/8.9.3) id SAA12902 for emulation@FreeBSD.ORG; Thu, 12 Aug 1999 18:31:57 +0200 (CEST) (envelope-from freebsd-emulation@scc.nl) Received: from GATEWAY by scones.sup.scc.nl with netnews for emulation@FreeBSD.ORG (emulation@FreeBSD.ORG) To: emulation@FreeBSD.ORG Date: Thu, 12 Aug 1999 18:31:56 +0200 From: Marcel Moolenaar Message-ID: <37B2F6FC.D8287D62@scc.nl> Organization: SCC vof Content-Type: multipart/mixed; Subject: REVIEW: Linuxulator: CDROMSUBCHNL ioctl Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------7309109606E3DF9E4CD742B6 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, The following implementation of the CDROMSUBCHNL ioctl is about to be committed. Please review the attached patch. -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ Amsterdam, The Netherlands tel: +31 20 4200655 --------------7309109606E3DF9E4CD742B6 Content-Type: text/plain; charset=us-ascii; name=".cdrom.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=".cdrom.diff" Index: linux.h =================================================================== RCS file: /home/ncvs/src/sys/i386/linux/linux.h,v retrieving revision 1.31 diff -u -r1.31 linux.h --- linux.h 1999/08/11 13:34:29 1.31 +++ linux.h 1999/08/12 13:29:14 @@ -706,4 +706,7 @@ #define LINUX_CDROMCLOSETRAY 0x5319 #define LINUX_CDROMLOADFROMSLOT 0x531a +#define LINUX_CDROM_LBA 0x01 +#define LINUX_CDROM_MSF 0x02 + #endif /* !_I386_LINUX_LINUX_H_ */ Index: linux_ioctl.c =================================================================== RCS file: /home/ncvs/src/sys/i386/linux/linux_ioctl.c,v retrieving revision 1.36 diff -u -r1.36 linux_ioctl.c --- linux_ioctl.c 1999/07/17 08:24:57 1.36 +++ linux_ioctl.c 1999/08/12 15:27:54 @@ -484,6 +484,18 @@ u_char cdte_datamode; }; +struct linux_cdrom_subchnl +{ + u_char cdsc_format; + u_char cdsc_audiostatus; + u_char cdsc_adr:4; + u_char cdsc_ctrl:4; + u_char cdsc_trk; + u_char cdsc_ind; + union linux_cdrom_addr cdsc_absaddr; + union linux_cdrom_addr cdsc_reladdr; +}; + #if 0 static void linux_to_bsd_msf_lba(u_char address_format, @@ -512,6 +524,20 @@ } } +static void +set_linux_cdrom_addr(union linux_cdrom_addr *addr, int format, int lba) +{ + if (format == LINUX_CDROM_MSF) { + addr->msf.frame = lba % 75; + lba /= 75; + lba += 2; + addr->msf.second = lba % 60; + addr->msf.minute = lba / 60; + } + else + addr->lba = lba; +} + static unsigned dirbits[4] = { IOC_VOID, IOC_OUT, IOC_IN, IOC_INOUT }; #define SETDIR(c) (((c) & ~IOC_DIRMASK) | dirbits[args->cmd >> 30]) @@ -1182,6 +1208,40 @@ copyout((caddr_t)<e, (caddr_t)args->arg, sizeof(lte)); } return error; + } + + case LINUX_CDROMSUBCHNL: { + struct linux_cdrom_subchnl sc; + struct ioc_read_subchannel bsdsc; + struct cd_sub_channel_info bsdinfo; + + bsdsc.address_format = CD_LBA_FORMAT; + bsdsc.data_format = CD_CURRENT_POSITION; + bsdsc.data_len = sizeof(bsdinfo); + bsdsc.data = &bsdinfo; + error = (*func)(fp, CDIOCREADSUBCHANNEL, (caddr_t)&bsdsc, p); + /* + * Ignore error because the ll-driver uses a copyout to + * pass the data to the user. In this case that fails + */ + + error = copyin((caddr_t)args->arg, (caddr_t)&sc, + sizeof(struct linux_cdrom_subchnl)); + if (error) + return error; + + sc.cdsc_audiostatus = bsdinfo.header.audio_status; + sc.cdsc_adr = bsdinfo.what.position.addr_type; + sc.cdsc_ctrl = bsdinfo.what.position.control; + sc.cdsc_trk = bsdinfo.what.position.track_number; + sc.cdsc_ind = bsdinfo.what.position.index_number; + set_linux_cdrom_addr(&sc.cdsc_absaddr, sc.cdsc_format, + bsdinfo.what.position.absaddr.lba); + set_linux_cdrom_addr(&sc.cdsc_reladdr, sc.cdsc_format, + bsdinfo.what.position.reladdr.lba); + error = copyout((caddr_t)&sc, (caddr_t)args->arg, + sizeof(struct linux_cdrom_subchnl)); + return error; } } --------------7309109606E3DF9E4CD742B6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Aug 12 16:24:23 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id B8B43155D5 for ; Thu, 12 Aug 1999 16:24:15 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id TAA15886 for ; Thu, 12 Aug 1999 19:29:41 -0400 (EDT) Date: Thu, 12 Aug 1999 19:29:40 -0400 (EDT) From: Alfred Perlstein To: emulation@freebsd.org Subject: Any Lotus Notes success stories? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org IBM recently released Lotus Notes for Linux (really redhat 6.0 + glibc6) I don't have a lot of time to hack it into working, I thought that upgrading my /usr/compat directory with newer RPMs might solve missing shared lib problems, but all I wound up doing was eventually causing a bus error. linux_ktrace won't compile with redhat-6 rpms installed. truss reports: ... syscall mprotect(0x280d4000,0xc52000,0x5) returns 0 (0x0) syscall munmap(0x28eca000,0x130f) returns 0 (0x0) syscall linux_personality(0x0) returns 0 (0x0) syscall getpid() returns 19679 (0x4cdf) SIGNAL 10 SIGNAL 10 Process stopped because of: 16 process exit, rval = 10 Are there any plans to upgrade to a newer version? or perhaps have a redhat6_base port so people can debug what's going on here? Anyone figure out how to get this running under emulation? thank you, -Alfred Perlstein - [bright@rush.net|bright@wintelcom.net] systems administrator and programmer Wintelcom - http://www.wintelcom.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Aug 12 17:56:22 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from pluto.ipass.net (pluto.ipass.net [198.79.53.5]) by hub.freebsd.org (Postfix) with ESMTP id 1EE8A14BFD for ; Thu, 12 Aug 1999 17:56:06 -0700 (PDT) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-1-223.dialup.rdu.ipass.net [209.170.132.223]) by pluto.ipass.net (8.9.3/8.9.3) with ESMTP id UAA02629 for ; Thu, 12 Aug 1999 20:54:18 -0400 (EDT) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id UAA07745 for emulation@freebsd.org; Thu, 12 Aug 1999 20:55:35 -0400 (EDT) (envelope-from rhh) Date: Thu, 12 Aug 1999 20:55:35 -0400 From: Randall Hopper To: emulation@freebsd.org Subject: Myth2 - Any success? Message-ID: <19990812205535.B7374@ipass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Subject says it all. If so, I'll bite the download bullet. Thanks, Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Aug 13 1:32:33 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id 0891314D29 for ; Fri, 13 Aug 1999 01:32:29 -0700 (PDT) (envelope-from freebsd-emulation@scc.nl) Received: from mail.scc.nl (i117.ztm.euronet.nl [194.134.112.78]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id KAA09930 from for ; Fri, 13 Aug 1999 10:32:38 +0200 (MET DST) Received: (from daemon@localhost) by mail.scc.nl (8.9.3/8.9.3) id KAA41824 for emulation@FreeBSD.ORG; Fri, 13 Aug 1999 10:06:14 +0200 (CEST) (envelope-from freebsd-emulation@scc.nl) Received: from GATEWAY by scones.sup.scc.nl with netnews for emulation@FreeBSD.ORG (emulation@FreeBSD.ORG) To: emulation@FreeBSD.ORG Date: Fri, 13 Aug 1999 10:06:10 +0200 From: Marcel Moolenaar Message-ID: <37B3D1F2.4FC0DCA5@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: Subject: Re: Any Lotus Notes success stories? Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alfred Perlstein wrote: > Are there any plans to upgrade to a newer version? or perhaps > have a redhat6_base port so people can debug what's going on > here? > > Anyone figure out how to get this running under emulation? Yes. The emulator needs at least 3 syscalls implemented for RH 6.0 libraries. I'm testing the implementation right now. A RH 6.0 linux_base is ready and tested. It's just a matter of time. > linux_ktrace won't compile with redhat-6 rpms installed. You probably mean linux_kdump? -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ Amsterdam, The Netherlands tel: +31 20 4200655 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message