Re: how to send the READ(10) command to usb device by assembler language?
Bai Shuwei <[email protected]> Mon, 26 Apr 2010 18:16:19 +0800
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
On 26 April 2010 17:47, Frederic Marmond <[email protected]> wrote: > Hi, > maybe you could have a look at the bios : some bios consider usb hard > drives as 'regular' ide/scsi hard drives, so they can be accessed > transparently by boot loader. So, if your bios supports it, you may > use its default hd functions. The BIOS support int 13h to access the disk, but only same as sector read/write. I want to know how to get the command to read the disk serial number. I don't whether there are some commands can be used to get the usb-disk serial number? > > Fred > > 2010/4/26 Bai Shuwei <[email protected]>: >> On 26 April 2010 10:09, Mike R. <[email protected]> wrote: >>> I'm no expert, but couldn't you read from the device usb device at /dev/bus/usb? >> The /proc/bus/usb is used by the application. But i want to get those >> information in the bootloader. >> >>> --Mike >>> >>> >>> >>> On Sun, Apr 25, 2010 at 10:28 AM, Bai Shuwei <[email protected]> wrote: >>>> Hi, All: >>>> The usb device support READ(10) command, but how i send it to usb >>>> device with assembler language? Thanks for you response! >>>> >>>> Best regards >>>> >>>> Bai Shuwei >>>> >>>> -- >>>> Love other people, as same as love yourself! >>>> Don't think all the time, do it by your hands! >>>> >>>> E-Mail: [email protected] >>>> -- >>>> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in >>>> the body of a message to [email protected] >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>>> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in >>> the body of a message to [email protected] >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >> >> >> >> -- >> Love other people, as same as love yourself! >> Don't think all the time, do it by your hands! >> >> E-Mail: [email protected] >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in >> the body of a message to [email protected] >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-assembly" in > the body of a message to [email protected] > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Love other people, as same as love yourself! Don't think all the time, do it by your hands! E-Mail: [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html