* [Buildroot] mdev & usb problem
@ 2010-01-05 0:13 peter.stosz at mentat.hu
2010-01-05 8:26 ` Julien Boibessot
0 siblings, 1 reply; 10+ messages in thread
From: peter.stosz at mentat.hu @ 2010-01-05 0:13 UTC (permalink / raw)
To: buildroot
Hi!
I trying to move our embedded application to busybox/mdev.
mdev seems like to be working, connected device's device name appear in
/dev directory. (Disappear after removing the device)
But our application not working in this environment.
Works well openembedded/udev environment, ubuntu(9.10) develompent
environment, but not with buildroot/mdev.
When I test it with our very simple usb test program, nothing happen.
I try to "test" it with lsusb, nothing too.
Any idea?
Peter
initttab snip:
::sysinit:/bin/mount -t proc none /proc
::sysinit:/bin/mount -t sysfs none /sys
::sysinit:/bin/mount -t tmpfs none /tmp
::sysinit:/bin/mount -t tmpfs -o size=64k,mode=0755 none /dev
::sysinit:/bin/mkdir /dev/pts
::sysinit:/bin/mount -t devpts devpts /dev/pts
::sysinit:/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug
::sysinit:/sbin/mdev -s
/opt # cat /etc/br-version
2010.02-git-00158-g6415e3a-dirty
/opt #
/opt # usb 1-1: new full speed USB device using at91_ohci and address 5
usb 1-1: configuration #1 chosen from 1 choice
uba: uba1
usb 1-1: New USB device found, idVendor=0ea0, idProduct=6828
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Flash Disk
usb 1-1: Manufacturer: USB
usb 1-1: SerialNumber: D456953F963CC32E
/opt # lsusb { nothing :( }
/opt # lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=at91_ohci/1p, 12M
|__ Port 1: Dev 5, If 0, Class=stor., Driver=ub, 12M
/opt # ./us { nothing :( }
/opt # cat us.c
#include <stdio.h>
#include <string.h>
#include <usb.h>
int main(int argc, const char *argv[])
{
struct usb_bus *usb_bus;
struct usb_device *dev;
usb_init();
usb_find_busses();
usb_find_devices();
for (usb_bus = usb_busses; usb_bus; usb_bus = usb_bus->next) {
printf("\nDevice:\n");
for (dev = usb_bus->devices; dev; dev = dev->next) {
printf("\tLength: %d\n\tDescriptor type: %d\n\tbcdUSB:
%d\n\tDevice class: %d\n\tDevice subclass: %d\n\tDevice protocol:
%d\n\tMa....
}
}
return 0;
}
/opt #
us' output on ubuntu:
~/../dev/usb$ ./us:
Device:
Length: 18
Descriptor type: 1
bcdUSB: 512
Device class: 9
Device subclass: 0
Device protocol: 0
Max packet size: 64
ID: 1d6b:0002
bcdDevice: 518
Manufacturer: 3
Product: 2
Serial number: 1
Number of configurations: 1
Device:
Length: 18
Descriptor type: 1
bcdUSB: 272
Device class: 9
Device subclass: 0
Device protocol: 0
Max packet size: 64
ID: 1d6b:0001
bcdDevice: 518
Manufacturer: 3
Product: 2
Serial number: 1
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100105/439a0f4d/attachment-0001.htm>
^ permalink raw reply [flat|nested] 10+ messages in thread* [Buildroot] mdev & usb problem 2010-01-05 0:13 [Buildroot] mdev & usb problem peter.stosz at mentat.hu @ 2010-01-05 8:26 ` Julien Boibessot 2010-01-05 9:18 ` peter.stosz at mentat.hu 0 siblings, 1 reply; 10+ messages in thread From: Julien Boibessot @ 2010-01-05 8:26 UTC (permalink / raw) To: buildroot Hi, peter.stosz at mentat.hu a ?crit : > > When I test it with our very simple usb test program, nothing happen. > I try to "test" it with lsusb, nothing too. For lsusb: do you have "/var/lib/misc/usb.ids" or an equivalent on your system ? For your usb test program you should probably give it a try with: # strace us Regards, Julien ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 8:26 ` Julien Boibessot @ 2010-01-05 9:18 ` peter.stosz at mentat.hu 2010-01-05 12:37 ` Julien Boibessot 0 siblings, 1 reply; 10+ messages in thread From: peter.stosz at mentat.hu @ 2010-01-05 9:18 UTC (permalink / raw) To: buildroot /opt # find / -name usb.ids* /usr/share/usb.ids.gz /opt # /opt # strace ./us execve("./us", ["./us"], [/* 9 vars */]) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000 open("/lib/libusb-0.1.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libusb-0.1.so.4", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libusb-0.1.so.4", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=28260, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\354\21\0\0004\0\0\0\314"..., 4096) = 4096 mmap2(NULL, 61440, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000e000 mmap2(0x4000e000, 21548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000e000 mmap2(0x4001b000, 6668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5) = 0x4001b000 close(3) = 0 munmap(0x40006000, 4096) = 0 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=41632, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340\35\0\0004\0\0\0\10"..., 4096) = 4096 mmap2(NULL, 73728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000 mmap2(0x4001d000, 40008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4001d000 mmap2(0x4002e000, 3656, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9) = 0x4002e000 close(3) = 0 munmap(0x40006000, 4096) = 0 open("/lib/libc.so.0", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=227711, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000 read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0000{\0\0004\0\0\0\260"..., 4096) = 4096 mmap2(NULL, 278528, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4002f000 mmap2(0x4002f000, 223610, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4002f000 mmap2(0x4006d000, 4908, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x36) = 0x4006d000 mmap2(0x4006f000, 13216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4006f000 close(3) = 0 munmap(0x40006000, 4096) = 0 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=41632, ...}) = 0 close(3) = 0 open("/lib/libc.so.0", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=227711, ...}) = 0 close(3) = 0 open("/lib/libc.so.0", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=227711, ...}) = 0 close(3) = 0 stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=21168, ...}) = 0 mprotect(0x4006d000, 4096, PROT_READ) = 0 mprotect(0x4000c000, 4096, PROT_READ) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory) open("/proc/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 brk(0) = 0x11000 brk(0x12000) = 0x12000 getdents(3, /* 2 entries */, 984) = 32 getdents(3, /* 0 entries */, 984) = 0 close(3) = 0 open("", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory) exit(0) Julien Boibessot <julien.boibessot@free.fr> wrote on 2010.01.05 09:26:14: > > > > When I test it with our very simple usb test program, nothing happen. > > I try to "test" it with lsusb, nothing too. > For lsusb: do you have "/var/lib/misc/usb.ids" or an equivalent on your > system ? > For your usb test program you should probably give it a try with: > # strace us > > Regards, > Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100105/2f1e4df8/attachment.htm> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 9:18 ` peter.stosz at mentat.hu @ 2010-01-05 12:37 ` Julien Boibessot 2010-01-05 12:43 ` Michael S. Zick ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Julien Boibessot @ 2010-01-05 12:37 UTC (permalink / raw) To: buildroot peter.stosz at mentat.hu a ?crit : > /opt # find / -name usb.ids* > /usr/share/usb.ids.gz and what gives "strace lsusb" on your board ?? > /opt # > /opt # strace ./us > ...... > ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > echo ...}) = 0 > ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > echo ...}) = 0 > open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No > such file or directory) seems to be the problem (compare it with "strace us" on your PC) Do you have a directory named /dev/bus/usb/ ?? Julien ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 12:37 ` Julien Boibessot @ 2010-01-05 12:43 ` Michael S. Zick 2010-01-05 13:19 ` peter.stosz at mentat.hu 2010-01-05 20:30 ` peter.stosz at mentat.hu 2 siblings, 0 replies; 10+ messages in thread From: Michael S. Zick @ 2010-01-05 12:43 UTC (permalink / raw) To: buildroot On Tue January 5 2010, Julien Boibessot wrote: > peter.stosz at mentat.hu a ?crit : > > /opt # find / -name usb.ids* > > /usr/share/usb.ids.gz > and what gives "strace lsusb" on your board ?? > > /opt # > > /opt # strace ./us > > ...... > > ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > > echo ...}) = 0 > > ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > > echo ...}) = 0 > > open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No > > such file or directory) > seems to be the problem (compare it with "strace us" on your PC) > Do you have a directory named /dev/bus/usb/ ?? > Translation: You have to mount usbFS at /dev/bus/usb "Your PC" may be auto-mounting it, which isn't much guidance. Mike > Julien > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 12:37 ` Julien Boibessot 2010-01-05 12:43 ` Michael S. Zick @ 2010-01-05 13:19 ` peter.stosz at mentat.hu 2010-01-05 20:43 ` Julien Boibessot 2010-01-05 20:30 ` peter.stosz at mentat.hu 2 siblings, 1 reply; 10+ messages in thread From: peter.stosz at mentat.hu @ 2010-01-05 13:19 UTC (permalink / raw) To: buildroot Julien Boibessot <julien.boibessot@free.fr> wrote on 2010.01.05 13:37:04: > peter.stosz at mentat.hu a ?crit : > > /opt # find / -name usb.ids* > > /usr/share/usb.ids.gz > and what gives "strace lsusb" on your board ?? A very long list (read usb.ids.gz) > > /opt # > > /opt # strace ./us > > ...... > > ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > > echo ...}) = 0 > > ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > > echo ...}) = 0 > > open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No > > such file or directory) > seems to be the problem (compare it with "strace us" on your PC) > Do you have a directory named /dev/bus/usb/ ?? No, but found /proc/bus/usb, isn't is enought? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100105/e58cf376/attachment.htm> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 13:19 ` peter.stosz at mentat.hu @ 2010-01-05 20:43 ` Julien Boibessot 2010-01-05 22:47 ` Steve Calfee 0 siblings, 1 reply; 10+ messages in thread From: Julien Boibessot @ 2010-01-05 20:43 UTC (permalink / raw) To: buildroot peter.stosz at mentat.hu a ?crit : > > > > open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No > > > such file or directory) > > seems to be the problem (compare it with "strace us" on your PC) > > Do you have a directory named /dev/bus/usb/ ?? > No, but found /proc/bus/usb, isn't is enought? maybe not but I don't know libusb enough to give you more tips :-( Julien ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 20:43 ` Julien Boibessot @ 2010-01-05 22:47 ` Steve Calfee 2010-01-05 23:37 ` peter.stosz at mentat.hu 0 siblings, 1 reply; 10+ messages in thread From: Steve Calfee @ 2010-01-05 22:47 UTC (permalink / raw) To: buildroot --- On Tue, 1/5/10, Julien Boibessot <julien.boibessot@free.fr> wrote: > From: Julien Boibessot <julien.boibessot@free.fr> > Subject: Re: [Buildroot] mdev & usb problem > To: peter.stosz at mentat.hu > Cc: buildroot at busybox.net > Date: Tuesday, January 5, 2010, 12:43 PM > peter.stosz at mentat.hu > a ?crit : > > > > > > open("/dev/bus/usb", > O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No > > > > such file or directory) > > > seems to be the problem (compare it with "strace > us" on your PC) > > > Do you have a directory named /dev/bus/usb/ ?? > > No, but found /proc/bus/usb, isn't is enought? > maybe not but I don't know libusb enough to give you more > tips :-( > The old mount point for usbfs was /proc/bus/usb, now it is /dev/bus/usb. Same filesystem. But someone has to mount it in either place. libusb uses this filesystem, but libusb is not required for usb device access. Regards, Steve ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 22:47 ` Steve Calfee @ 2010-01-05 23:37 ` peter.stosz at mentat.hu 0 siblings, 0 replies; 10+ messages in thread From: peter.stosz at mentat.hu @ 2010-01-05 23:37 UTC (permalink / raw) To: buildroot Thanks Steve, this was the right path. > The old mount point for usbfs was /proc/bus/usb, now it is /dev/bus/ > usb. Same filesystem. But someone has to mount it in either place. > libusb uses this filesystem, but libusb is not required for usb device access. > > Regards, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100106/e7236949/attachment.htm> ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] mdev & usb problem 2010-01-05 12:37 ` Julien Boibessot 2010-01-05 12:43 ` Michael S. Zick 2010-01-05 13:19 ` peter.stosz at mentat.hu @ 2010-01-05 20:30 ` peter.stosz at mentat.hu 2 siblings, 0 replies; 10+ messages in thread From: peter.stosz at mentat.hu @ 2010-01-05 20:30 UTC (permalink / raw) To: buildroot So, I built up new system from ground. 1) git clone latest buildroot Everything default, except 2) make menuconfig arch=arm +oabi +strace +libusb +usbutils +development files in targetfs +native toolchain on targetfs 3) make linux26-menuconfig -soundcard -Kernel->CPU LED +Filesystem->Network File System->rootfs on NFS 4) make (system) 5) no udev, no mdev! PEN is working, # # mount /dev/sda1 /mnt EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended # other device recognized # umount /mnt (unplug PEN, plug new device) # usb 1-1: USB disconnect, address 4 usb 1-1: new low speed USB device using at91_ohci and address 5 usb 1-1: configuration #1 chosen from 1 choice HID device claimed by neither input, hiddev nor hidraw usb 1-1: New USB device found, idVendor=0590, idProduct=0028 usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0 usb 1-1: Product: HHX-CABLE-USB1 usb 1-1: Manufacturer: OMRON Corporation 6) compiled our app nothing changed, no any output (just like lsusb and just like previously with mdev) I don't see what's wrong. :( Peter # strace lsusb ... close(3) = 0 open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory) open("/proc/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 getdents(3, /* 2 entries */, 984) = 32 getdents(3, /* 0 entries */, 984) = 0 close(3) = 0 open("", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory) exit(1) = ? # strace lsusb -t ... open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory) open("/proc/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 getdents(3, /* 2 entries */, 984) = 32 getdents(3, /* 0 entries */, 984) = 0 close(3) = 0 open("", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory) access("/proc/bus/usb/devices", R_OK) = -1 ENOENT (No such file or directory) open("/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 getdents(3, /* 6 entries */, 3933) = 104 open("/sys/bus/usb/devices/usb1/devnum", O_RDONLY) = 4 read(4, "1\n"..., 11) = 2 close(4) = 0 open("/sys/bus/usb/devices/usb1/bDeviceClass", O_RDONLY) = 4 read(4, "09\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/usb1/maxchild", O_RDONLY) = 4 read(4, "1\n"..., 11) = 2 close(4) = 0 open("/sys/bus/usb/devices/usb1/speed", O_RDONLY) = 4 read(4, "12\n"..., 255) = 3 close(4) = 0 readlink("/sys/bus/usb/devices/usb1/../driver", "../../../bus/platform/drivers/at91_ohci"..., 4096) = 39 open("/sys/bus/usb/devices/1-0:1.0/bAlternateSetting", O_RDONLY) = 4 read(4, " 0\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-0:1.0/bInterfaceClass", O_RDONLY) = 4 read(4, "09\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-0:1.0/bInterfaceNumber", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-0:1.0/bInterfaceProtocol", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-0:1.0/bInterfaceSubClass", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-0:1.0/bNumEndpoints", O_RDONLY) = 4 read(4, "01\n"..., 11) = 3 close(4) = 0 readlink("/sys/bus/usb/devices/1-0:1.0/driver", "../../../../../bus/usb/drivers/hub"..., 4096) = 34 open("/sys/bus/usb/devices/1-1/bConfigurationValue", O_RDONLY) = 4 read(4, "1\n"..., 11) = 2 close(4) = 0 open("/sys/bus/usb/devices/1-1/bDeviceClass", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1/bDeviceProtocol", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1/bDeviceSubClass", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1/bMaxPacketSize0", O_RDONLY) = 4 read(4, "8\n"..., 11) = 2 close(4) = 0 open("/sys/bus/usb/devices/1-1/bMaxPower", O_RDONLY) = 4 read(4, "100mA\n"..., 255) = 6 close(4) = 0 open("/sys/bus/usb/devices/1-1/bNumConfigurations", O_RDONLY) = 4 read(4, "1\n"..., 11) = 2 close(4) = 0 open("/sys/bus/usb/devices/1-1/bNumInterfaces", O_RDONLY) = 4 read(4, " 1\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1/bcdDevice", O_RDONLY) = 4 read(4, "0201\n"..., 11) = 5 close(4) = 0 open("/sys/bus/usb/devices/1-1/bmAttributes", O_RDONLY) = 4 read(4, "80\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1/configuration", O_RDONLY) = 4 read(4, ""..., 11) = 0 close(4) = 0 open("/sys/bus/usb/devices/1-1/devnum", O_RDONLY) = 4 read(4, "3\n"..., 11) = 2 close(4) = 0 open("/sys/bus/usb/devices/1-1/idProduct", O_RDONLY) = 4 read(4, "0028\n"..., 11) = 5 close(4) = 0 open("/sys/bus/usb/devices/1-1/idVendor", O_RDONLY) = 4 read(4, "0590\n"..., 11) = 5 close(4) = 0 open("/sys/bus/usb/devices/1-1/maxchild", O_RDONLY) = 4 read(4, "0\n"..., 11) = 2 close(4) = 0 open("/sys/bus/usb/devices/1-1/manufacturer", O_RDONLY) = 4 read(4, "OMRON Corporation\n"..., 255) = 18 close(4) = 0 open("/sys/bus/usb/devices/1-1/product", O_RDONLY) = 4 read(4, "HHX-CABLE-USB1\n"..., 255) = 15 close(4) = 0 open("/sys/bus/usb/devices/1-1/serial", O_RDONLY) = -1 ENOENT (No such file or directory) open("/sys/bus/usb/devices/1-1/version", O_RDONLY) = 4 read(4, " 1.10\n"..., 255) = 6 close(4) = 0 open("/sys/bus/usb/devices/1-1/speed", O_RDONLY) = 4 read(4, "1.5\n"..., 255) = 4 close(4) = 0 readlink("/sys/bus/usb/devices/1-1/driver", "../../../../../bus/usb/drivers/usb"..., 4096) = 34 open("/sys/bus/usb/devices/1-1:1.0/bAlternateSetting", O_RDONLY) = 4 read(4, " 0\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1:1.0/bInterfaceClass", O_RDONLY) = 4 read(4, "03\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1:1.0/bInterfaceNumber", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1:1.0/bInterfaceProtocol", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1:1.0/bInterfaceSubClass", O_RDONLY) = 4 read(4, "00\n"..., 11) = 3 close(4) = 0 open("/sys/bus/usb/devices/1-1:1.0/bNumEndpoints", O_RDONLY) = 4 read(4, "02\n"..., 11) = 3 close(4) = 0 readlink("/sys/bus/usb/devices/1-1:1.0/driver", 0xbede89b0, 4096) = -1 ENOENT (No such file or directory) write(2, "1-1:1.0"..., 71-1:1.0) = 7 write(2, ": "..., 2: ) = 2 write(2, "No such file or directory"..., 25No such file or directory) = 25 write(2, "\n"..., 1 ) = 1 getdents(3, /* 0 entries */, 3933) = 0 close(3) = 0 write(1, "/: Bus 01.Port 1: Dev 1, Class=r"..., 121) = 121 exit(0) = ? # Julien Boibessot <julien.boibessot@free.fr> wrote on 2010.01.05 13:37:04: > > Re: [Buildroot] mdev & usb problem > > peter.stosz at mentat.hu a ?crit : > > /opt # find / -name usb.ids* > > /usr/share/usb.ids.gz > and what gives "strace lsusb" on your board ?? > > /opt # > > /opt # strace ./us > > ...... > > ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > > echo ...}) = 0 > > ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon > > echo ...}) = 0 > > open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No > > such file or directory) > seems to be the problem (compare it with "strace us" on your PC) > Do you have a directory named /dev/bus/usb/ ?? > > Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100105/2fb5479b/attachment-0001.htm> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-01-05 23:37 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-01-05 0:13 [Buildroot] mdev & usb problem peter.stosz at mentat.hu 2010-01-05 8:26 ` Julien Boibessot 2010-01-05 9:18 ` peter.stosz at mentat.hu 2010-01-05 12:37 ` Julien Boibessot 2010-01-05 12:43 ` Michael S. Zick 2010-01-05 13:19 ` peter.stosz at mentat.hu 2010-01-05 20:43 ` Julien Boibessot 2010-01-05 22:47 ` Steve Calfee 2010-01-05 23:37 ` peter.stosz at mentat.hu 2010-01-05 20:30 ` peter.stosz at mentat.hu
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.