On Thu, 20 May 2004 21:49:32 +0200 Dukhat wrote: | Hi! | | I was asked to post this here: | Is the byte order in /proc/bus/usb/BBB/DDD platform dependant? I.e. is | there a bug in usbutils or in usbfs?
Bug in usbutils (lsusb). At least 2 patches have been posted here for it. It needs to get merged.... | Reason for asking is that usbutils gives different results on PC and PPC | platforms. | | I've tried usbutils-0.9-7 that comes with YDL 3.0 and I've tried | usbutils-0.11-1 built from a redhat src. Both seem to display the device | and product IDs backward on PowerPC: | idVendor 0x0204 | idProduct 0x2156 | | On PC hardware, lsusb displays them in the correct order and also | identifies the device (this found on google): | idVendor 0x0402 ALi Corp. | idProduct 0x5621 | | Interesting enough, using the -t option, lsusb on ppc displays: | `-Dev# 1 Vendor 0x0000 Product 0x0000 | `-Dev# 2 Vendor 0x0402 Product 0x5621 | | As far as I can tell, the lsusb -v takes its info directly from | /proc/bus/usb/NNN/NNN: | vid = buf[8] | (buf[9] << 8); | pid = buf[10] | (buf[11] << 8); | whereas lsusb -t takes it from /proc/bus/usb/devices. | | I'm using kernel 2.4.26 from kernels.org on a Mac with YDL 3.0.1. -- ~Randy ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
