From: Hedwin Koning <hedwin.koning@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] UDEV Card reader
Date: Tue, 17 Nov 2009 02:41:09 +0100 [thread overview]
Message-ID: <4B01FF35.5080902@gmail.com> (raw)
In-Reply-To: <f5ba0ddf0910221738h66f41585s5c9236b24ac59829@mail.gmail.com>
Pablo Trujillo wrote:
> Hi everyone this is my first post I don't know if is correct to ask
> this here, My natural idiom is not English so sorry for mistakes:
>
> I was working with the buildroot around one year and I'm very glad
> for all its benefits to make a real small custom system.
>
> Im trying with the udev system (no the mdev that come with busybox).
> But the thing is that i don't understand why no work with card readers
> I was searching in google and I found this:
>
> http://shallowsky.com/blog/linux/udev-cardreaders-update.html
>
> I try that but nothing happen, I don't know why.
>
> if I put the compact flash and later I insert the reader , the system
> detect the card, but if I plug first the reader and after I put the
> CF, nothing happen, I mean the plug & unplug event seem not to work.
>
> If anyone can help me
>
> by the way :X86 architecture.
>
> regards
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
>
Hi
The problem with cardreaders is is that when memory cards are inserted
after the
cardreader itself is inserted no events are sent to the kernel by the
cardreader. To
solve this you need
to run a background process that monitors insertion and removals of
memory cards. The
background process repeatingly tries to open the devices of the
cardreader. Once it does
the normal events (add, remove) are sent by the kernel which can be
handled by either
udev of mdev.
In linux HAL takes care of this. If you try it on a linux machine you
can see the background
processes using ps. Once you have the process names you can easily find
them back in the
HAL source code.
Hedwin Koning.
next prev parent reply other threads:[~2009-11-17 1:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 0:38 [Buildroot] UDEV Card reader Pablo Trujillo
2009-11-17 1:41 ` Hedwin Koning [this message]
2009-11-17 6:43 ` Pablo Trujillo
2009-11-17 7:59 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B01FF35.5080902@gmail.com \
--to=hedwin.koning@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox