Linux sound and SCSI

    技术2022-05-20  44

    setserial命令:

    功能说明: 设置或显示串口的相关信息。 语  法: setserial [-abgGqvVz][设备][串口参数] 补充说明: setserial可用来设置串口或显示目前的设置。 参  数:   -a   显示详细信息。   -b   显示摘要信息。   -g   显示串口的相关信息。   -G   以指令列表的格式来显示信息。   -q   执行时显示较少的信息。   -v   执行时显示较多的信息。   -V   显示版本信息。   -z   设置前,先将所有的标记归零。

     

    rcc-pok-idg-2318:/dev # setserial /dev/ttyS0 /dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4

     

    lsmod命令:

    NAME        lsmod - program to show the status of modules in the Linux Kernel SYNOPSIS        lsmod DESCRIPTION        lsmod  is  a  trivial  program which nicely formats the contents of the        /proc/modules, showing what kernel modules are currently loaded.

     

    Sndconfig 命令可以用来进行声卡配置。

     

    Linux names and files for SCSI:

     

    NAME        sginfo - access mode page information for a SCSI (or ATAPI) device SYNOPSIS        sginfo [OPTIONS] [DEVICE] [REPLACEMENT_PARAMETERS] DESCRIPTION        sginfo  is  a  port of the Linux scsiinfo program by Eric Youngdale. It        uses SCSI generic (sg) devices; however in some cases  the  high  level        device  name  (i.e. sd, sr, st, osst, or hd) can also be used. The pri-        mary role of this program is to access mode page information.  If  per-        mitted,  mode  page information can be altered. In addition information        from the INQUIRY and READ DEFECTS commands are also available.        Those interested in SCSI mode pages may find the sdparm utility  easier        use, especially for changing parameters. Also the author considers this        utility  legacy  so  the  mode  pages  are   not   being

     

    rcc-pok-idg-2318:/dev # sginfo /dev/scd0 INQUIRY response (cmd: 0x12) ---------------------------- Device Type                        5 Vendor:                    QEMU Product:                   QEMU DVD-ROM Revision level:            0.9.

    查看usb信息:

     cat /proc/bus/usb/devices

     

    lsusb命令:

     

    NAME        lsusb - list USB devices SYNOPSIS        lsusb [ options ] DESCRIPTION        lsusb  is  a  utility for displaying information about USB buses in the        system and the devices connected to them.

     

    查看usb的详细信息:

    rcc-pok-idg-2318:/proc/bus/usb # lsusb Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub rcc-pok-idg-2318:/proc/bus/usb # lsusb -vd 1d6b:0001 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Device Descriptor:   bLength                18   bDescriptorType         1   bcdUSB               1.10   bDeviceClass            9 Hub   bDeviceSubClass         0 Unused   bDeviceProtocol         0 Full speed (or root) hub   bMaxPacketSize0        64   idVendor           0x1d6b Linux Foundation   idProduct          0x0001 1.1 root hub   bcdDevice            2.06   iManufacturer           3 Linux 2.6.27.19-5-default uhci_hcd   iProduct                2 UHCI Host Controller   iSerial                 1 0000:00:01.2   bNumConfigurations      1   Configuration Descriptor:     bLength                 9     bDescriptorType         2     wTotalLength           25     bNumInterfaces          1     bConfigurationValue     1     iConfiguration          0     bmAttributes         0xe0       Self Powered       Remote Wakeup     MaxPower                0mA     Interface Descriptor:       bLength                 9       bDescriptorType         4       bInterfaceNumber        0       bAlternateSetting       0       bNumEndpoints           1       bInterfaceClass         9 Hub       bInterfaceSubClass      0 Unused       bInterfaceProtocol      0 Full speed (or root) hub       iInterface              0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x81  EP 1 IN         bmAttributes            3           Transfer Type            Interrupt           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0002  1x 2 bytes         bInterval             255 Hub Descriptor:   bLength               9   bDescriptorType      41   nNbrPorts             2   wHubCharacteristic 0x000a     No power switching (usb 1.0)     Per-port overcurrent protection   bPwrOn2PwrGood        1 * 2 milli seconds   bHubContrCurrent      0 milli Ampere   DeviceRemovable    0x00   PortPwrCtrlMask    0xff  Hub Port Status:    Port 1: 0000.0100 power    Port 2: 0000.0100 power Device Status:     0x0003   Self Powered   Remote Wakeup Enabled

     

     

     

     

     

    rcc-pok-idg-2318:~ # sg_map /dev/sg0  /dev/scd0

     

          sg_map - displays mapping between linux sg and other SCSI devices

     

     

     


    最新回复(0)