Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] /dev/bus/usb on BR
@ 2010-04-26  6:41 Nataraj S Narayan
  2010-04-26  6:52 ` Ravi Kumar Kulkarni
  2010-04-26  7:02 ` Peter Korsgaard
  0 siblings, 2 replies; 8+ messages in thread
From: Nataraj S Narayan @ 2010-04-26  6:41 UTC (permalink / raw)
  To: buildroot

Hi

I am on BR git latest.

I am connecting a Upek fingerprint device to my At91sam9263ek SBC with
linux-2.6.32 and BR file system using glibc based Codesourcery
external toolchain.

Adding the device doesn't add nodes into /proc/bus/usb even though i
get the following after connecting device.

# usb 1-1: new full speed USB device using at91_ohci and address 4
usb 1-1: configuration #1 chosen from 1 choice

I use udev.

My code needs to to open the Usb port using:-

status = PTOpen ("usb, timeout=2000", &mConn);

The same code works well on qemu emulated arm-linux libc system ,where
the usb system got /dev/bus/usb with populated nodes.

What am I lacking in the file system?

Warm regards

nataraj

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] /dev/bus/usb on BR
  2010-04-26  6:41 [Buildroot] /dev/bus/usb on BR Nataraj S Narayan
@ 2010-04-26  6:52 ` Ravi Kumar Kulkarni
  2010-04-26  7:20   ` Peter Korsgaard
  2010-04-26  7:02 ` Peter Korsgaard
  1 sibling, 1 reply; 8+ messages in thread
From: Ravi Kumar Kulkarni @ 2010-04-26  6:52 UTC (permalink / raw)
  To: buildroot

On Mon, Apr 26, 2010 at 12:26 PM, Nataraj S Narayan <natarajsn@gmail.com> wrote:
> Hi
>
> I am on BR git latest.
>
> I am connecting a Upek fingerprint device to my At91sam9263ek SBC with
> linux-2.6.32 and BR file system using glibc based Codesourcery
> external toolchain.
>
> Adding the device doesn't add nodes into /proc/bus/usb even though i
> get the following after connecting device.
>
> # usb 1-1: new full speed USB device using at91_ohci and address 4
> usb 1-1: configuration #1 chosen from 1 choice
>
> I use udev.
>
> My code needs to to open the Usb port using:-
>
> status = PTOpen ("usb, timeout=2000", &mConn);
>
> The same code works well on qemu emulated arm-linux libc system ,where
> the usb system got /dev/bus/usb with populated nodes.

sometimes the buildroot doesnt create nodes in /dev/sda1 or /dev/bus/
 create manually by using mknod with device major n minor no from
Documentation/devices.txt from the  kernel source which u are running
on target.

warm regards,
Ravi Kulkarni.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] /dev/bus/usb on BR
  2010-04-26  6:41 [Buildroot] /dev/bus/usb on BR Nataraj S Narayan
  2010-04-26  6:52 ` Ravi Kumar Kulkarni
@ 2010-04-26  7:02 ` Peter Korsgaard
       [not found]   ` <x2j630286c71004260020s9acd6240u55ed0215380bc461@mail.gmail.com>
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2010-04-26  7:02 UTC (permalink / raw)
  To: buildroot

>>>>> "Nataraj" == Nataraj S Narayan <natarajsn@gmail.com> writes:

 Nataraj> Hi
 Nataraj> I am on BR git latest.

 Nataraj> I am connecting a Upek fingerprint device to my At91sam9263ek SBC with
 Nataraj> linux-2.6.32 and BR file system using glibc based Codesourcery
 Nataraj> external toolchain.

 Nataraj> Adding the device doesn't add nodes into /proc/bus/usb even though i
 Nataraj> get the following after connecting device.

Your title said /dev/bus/usb, but here you say /proc - /proc/bus/usb is
handled by usbfs, whereas /dev/bus/usb is handled by udev/mdev. Which
one do you mean?

 Nataraj> The same code works well on qemu emulated arm-linux libc
 Nataraj> system ,where the usb system got /dev/bus/usb with populated
 Nataraj> nodes.

What's the difference between that rootfs and this one? Does it work on
your AT91 if you use the qemu rootfs?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] /dev/bus/usb on BR
  2010-04-26  6:52 ` Ravi Kumar Kulkarni
@ 2010-04-26  7:20   ` Peter Korsgaard
  2010-04-26  7:24     ` Ravi Kumar Kulkarni
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2010-04-26  7:20 UTC (permalink / raw)
  To: buildroot

>>>>> "Ravi" == Ravi Kumar Kulkarni <ravilinux4u@gmail.com> writes:

Hi,

 Ravi> sometimes the buildroot doesnt create nodes in /dev/sda1 or
 Ravi> /dev/bus/ create manually by using mknod with device major n
 Ravi> minor no from Documentation/devices.txt from the kernel source
 Ravi> which u are running on target.

What do you mean? At BR compile time (static device nodes) or at runtime
using udev/mdev?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] /dev/bus/usb on BR
  2010-04-26  7:20   ` Peter Korsgaard
@ 2010-04-26  7:24     ` Ravi Kumar Kulkarni
  2010-04-26  7:26       ` Peter Korsgaard
  0 siblings, 1 reply; 8+ messages in thread
From: Ravi Kumar Kulkarni @ 2010-04-26  7:24 UTC (permalink / raw)
  To: buildroot

On Mon, Apr 26, 2010 at 1:05 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Ravi" == Ravi Kumar Kulkarni <ravilinux4u@gmail.com> writes:
>
> Hi,
>
> ?Ravi> sometimes the buildroot doesnt create nodes in /dev/sda1 or
> ?Ravi> /dev/bus/ create manually by using mknod with device major n
> ?Ravi> minor no from Documentation/devices.txt from the kernel source
> ?Ravi> which u are running on target.
>
> What do you mean? At BR compile time (static device nodes) or at runtime
> using udev/mdev?

i meant at BR compile time (static device nodes) from device table
(target/device/Atmel/root/device_table.txt).im using at91sam9261ek.
even though there is  sda1,sda2  in  device table but on  my target
/dev/dir it was not there.
warm regards,
Ravi Kulkarni.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] /dev/bus/usb on BR
       [not found]   ` <x2j630286c71004260020s9acd6240u55ed0215380bc461@mail.gmail.com>
@ 2010-04-26  7:25     ` Peter Korsgaard
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2010-04-26  7:25 UTC (permalink / raw)
  To: buildroot

>>>>> "Nataraj" == Nataraj S Narayan <natarajsn@gmail.com> writes:

Please keep mails on the buildroot list, thanks.

 Nataraj> Hi
 Nataraj> As per strace of the code, it seems first it tries to open
 Nataraj> /dev/bus/usb then checks for /proc/bus/usb.

 Nataraj> As for udev, i didn't find an option in 'make menuconfig' to enable.
 Nataraj> Hence did a "make udev" and copied the *udev* files onto target. Hope
 Nataraj> that was ok.

It's there (do "/ udev in make menuconfig to search):

    Symbol: BR2_PACKAGE_UDEV [=n]
  ? Prompt: udev
  ?   Defined at package/udev/Config.in:1
  ?   Depends on: BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  ?   Location:
  ?     -> Package Selection for the target
  ?       -> Hardware handling
  ?   Selected by: BR2_PACKAGE_HAL

Make sure you have BR2_PACKAGE_BUSYBOX_SHOW_OTHERS enabled.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] /dev/bus/usb on BR
  2010-04-26  7:24     ` Ravi Kumar Kulkarni
@ 2010-04-26  7:26       ` Peter Korsgaard
  2010-04-26  7:32         ` Ravi Kumar Kulkarni
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2010-04-26  7:26 UTC (permalink / raw)
  To: buildroot

>>>>> "Ravi" == Ravi Kumar Kulkarni <ravilinux4u@gmail.com> writes:

Hi,

 Ravi> i meant at BR compile time (static device nodes) from device
 Ravi> table (target/device/Atmel/root/device_table.txt).im using
 Ravi> at91sam9261ek.  even though there is sda1,sda2 in device table
 Ravi> but on my target /dev/dir it was not there.

And sometimes just those 2 nodes are not created but the rest is? This
is the first time I hear something like this - Could you send your
.config please, so I can try to figure out what goes wrong.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] /dev/bus/usb on BR
  2010-04-26  7:26       ` Peter Korsgaard
@ 2010-04-26  7:32         ` Ravi Kumar Kulkarni
  0 siblings, 0 replies; 8+ messages in thread
From: Ravi Kumar Kulkarni @ 2010-04-26  7:32 UTC (permalink / raw)
  To: buildroot

>
> Hi,
>
> ?Ravi> i meant at BR compile time (static device nodes) from device
> ?Ravi> table (target/device/Atmel/root/device_table.txt).im using
> ?Ravi> at91sam9261ek. ?even though there is sda1,sda2 in device table
> ?Ravi> but on my target /dev/dir it was not there.
>
> And sometimes just those 2 nodes are not created but the rest is? This
> is the first time I hear something like this - Could you send your
> .config please, so I can try to figure out what goes wrong.

yes. ok  please find attached  .config of mine and also there is a
glib error where i av mentioned in the previous mail.could u let me
know something is going wrong? thanks.
warm regards,
Ravi Kulkarni.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BR.config
Type: application/octet-stream
Size: 29447 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100426/75240cb4/attachment-0001.obj>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-26  7:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26  6:41 [Buildroot] /dev/bus/usb on BR Nataraj S Narayan
2010-04-26  6:52 ` Ravi Kumar Kulkarni
2010-04-26  7:20   ` Peter Korsgaard
2010-04-26  7:24     ` Ravi Kumar Kulkarni
2010-04-26  7:26       ` Peter Korsgaard
2010-04-26  7:32         ` Ravi Kumar Kulkarni
2010-04-26  7:02 ` Peter Korsgaard
     [not found]   ` <x2j630286c71004260020s9acd6240u55ed0215380bc461@mail.gmail.com>
2010-04-26  7:25     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox