From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 11 11:57:53 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 745BF10656D1 for ; Sat, 11 Apr 2009 11:57:53 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) by mx1.freebsd.org (Postfix) with ESMTP id 0CDF28FC17 for ; Sat, 11 Apr 2009 11:57:53 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from [195.4.92.17] (helo=7.mx.freenet.de) by mout0.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #88) id 1LsbqJ-0008Hg-LQ; Sat, 11 Apr 2009 13:57:51 +0200 Received: from tbd17.t.pppool.de ([89.55.189.23]:44680 helo=ernst.jennejohn.org) by 7.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #79) id 1LsbqJ-0002OX-BV; Sat, 11 Apr 2009 13:57:51 +0200 Date: Sat, 11 Apr 2009 13:57:50 +0200 From: Gary Jennejohn To: Alexander Leidinger Message-ID: <20090411135750.20dae41f@ernst.jennejohn.org> In-Reply-To: <20090402133744.154225269mqp56zo@webmail.leidinger.net> References: <20090326080314.10727gsz1jw5szs4@webmail.leidinger.net> <20090402133744.154225269mqp56zo@webmail.leidinger.net> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.14.7; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: linuxnero does not see SATA recorder X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 11:57:53 -0000 On Thu, 02 Apr 2009 13:37:44 +0200 Alexander Leidinger wrote: > Quoting Rusu Silviu (from Thu, 26 Mar 2009 > 15:53:32 +0200): > Here's the list of stuff nero (and/or some libs) tries to open in /dev > /proc and /sys: > ---snip--- > /compat/linux/dev/scd0 > /compat/linux/dev/scd1 > /compat/linux/dev/scd2 > /compat/linux/dev/scd3 > /compat/linux/dev/sg0 > /compat/linux/dev/sg1 > [... upto sg9 ...] > /compat/linux/dev/sr0 > /compat/linux/dev/sr1 > /compat/linux/dev/sr2 > /compat/linux/dev/sr3 > /compat/linux/dev/urandom > /compat/linux/proc/66876/stat > /compat/linux/proc/ide/ide0 > /compat/linux/proc/ide/ide1 > [... upto ide31 ...] > /compat/linux/proc/meminfo > /compat/linux/proc/scsi/scsi > /compat/linux/sys/block > /compat/linux/sys/devices > ---snip--- > > Now we need to investigate what linux is having at those places and > what is needed to emulate it (only text output, or ioctls, ...). > Anyone with a linux system and appropriate hardware out there who is > able to post examples? > I have an Ubuntu system running. It has ls -l /dev/sr0 lrwxrwxrwx 1 root root 4 2009-04-11 12:40 /dev/sr0 -> scd0 ll -R /proc/scsi/ /proc/scsi/: total 0 -r--r--r-- 1 root root 0 2009-04-11 12:50 device_info -r--r--r-- 1 root root 0 2009-04-11 12:50 scsi dr-xr-xr-x 2 root root 0 2009-04-11 12:50 sg /proc/scsi/sg: total 0 -rw-r--r-- 1 root root 0 2009-04-11 12:50 allow_dio -r--r--r-- 1 root root 0 2009-04-11 12:50 debug -rw-r--r-- 1 root root 0 2009-04-11 12:50 def_reserved_size -r--r--r-- 1 root root 0 2009-04-11 12:50 device_hdr -r--r--r-- 1 root root 0 2009-04-11 12:50 devices -r--r--r-- 1 root root 0 2009-04-11 12:50 device_strs -r--r--r-- 1 root root 0 2009-04-11 12:50 version cat /proc/scsi/sg/device_strs ATA SAMSUNG SV2042H PK10 ATA SAMSUNG SP0842N BH90 HL-DT-ST DVD-ROM GDR8164B 0A09 ll -R /sys/block/sr0/ /sys/block/sr0/: total 0 -r--r--r-- 1 root root 4096 2009-04-11 12:40 capability -r--r--r-- 1 root root 4096 2009-04-11 14:40 dev lrwxrwxrwx 1 root root 0 2009-04-11 14:40 device -> ../../devices/pci0000:00/0000:00:02.5/host1/target1:0:0/1:0:0:0 drwxr-xr-x 2 root root 0 2009-04-11 14:40 holders drwxr-xr-x 3 root root 0 2009-04-11 14:40 queue -r--r--r-- 1 root root 4096 2009-04-11 14:40 range -r--r--r-- 1 root root 4096 2009-04-11 12:40 removable -r--r--r-- 1 root root 4096 2009-04-11 12:40 size drwxr-xr-x 2 root root 0 2009-04-11 14:40 slaves -r--r--r-- 1 root root 4096 2009-04-11 12:40 stat lrwxrwxrwx 1 root root 0 2009-04-11 14:40 subsystem -> ../../block --w------- 1 root root 4096 2009-04-11 12:40 uevent /sys/block/sr0/holders: total 0 /sys/block/sr0/queue: total 0 drwxr-xr-x 2 root root 0 2009-04-11 14:40 iosched -r--r--r-- 1 root root 4096 2009-04-11 12:51 max_hw_sectors_kb -rw-r--r-- 1 root root 4096 2009-04-11 12:51 max_sectors_kb -rw-r--r-- 1 root root 4096 2009-04-11 12:51 nr_requests -rw-r--r-- 1 root root 4096 2009-04-11 12:51 read_ahead_kb -rw-r--r-- 1 root root 4096 2009-04-11 12:51 scheduler /sys/block/sr0/queue/iosched: total 0 -rw-r--r-- 1 root root 4096 2009-04-11 12:51 back_seek_max -rw-r--r-- 1 root root 4096 2009-04-11 12:51 back_seek_penalty -rw-r--r-- 1 root root 4096 2009-04-11 12:51 fifo_expire_async -rw-r--r-- 1 root root 4096 2009-04-11 12:51 fifo_expire_sync -rw-r--r-- 1 root root 4096 2009-04-11 12:51 quantum -rw-r--r-- 1 root root 4096 2009-04-11 12:51 slice_async -rw-r--r-- 1 root root 4096 2009-04-11 12:51 slice_async_rq -rw-r--r-- 1 root root 4096 2009-04-11 12:51 slice_idle -rw-r--r-- 1 root root 4096 2009-04-11 12:51 slice_sync /sys/block/sr0/slaves: total 0 There's no /proc/ide/ because it considers all drives to be SCSI devices. --- Gary Jennejohn