Date: Sat, 11 Apr 2009 13:57:50 +0200 From: Gary Jennejohn <gary.jennejohn@freenet.de> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: freebsd-emulation@freebsd.org Subject: Re: linuxnero does not see SATA recorder Message-ID: <20090411135750.20dae41f@ernst.jennejohn.org> In-Reply-To: <20090402133744.154225269mqp56zo@webmail.leidinger.net> References: <ee705d4a0903251736h742091abyb754cbd86a3fe08f@mail.gmail.com> <20090326080314.10727gsz1jw5szs4@webmail.leidinger.net> <ee705d4a0903260653tb42342cm4452151aa964aee2@mail.gmail.com> <20090402133744.154225269mqp56zo@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 02 Apr 2009 13:37:44 +0200 Alexander Leidinger <Alexander@Leidinger.net> wrote: > Quoting Rusu Silviu <bsdgroup.md@gmail.com> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090411135750.20dae41f>