From: David Brownell <david-b@pacbell.net>
To: linux-omap-open-source@linux.omap.com
Subject: Re: Configuring UDEV rules for MMC/SD hot-plugging
Date: Wed, 15 Nov 2006 20:15:37 -0800 [thread overview]
Message-ID: <200611152015.37738.david-b@pacbell.net> (raw)
In-Reply-To: <093F85CB9FC9B6438B4D52D70E499AB90625D6E8@dlee06.ent.ti.com>
On Monday 13 November 2006 5:19 pm, Katorgi, Maher wrote:
> Hi,
>
> I am running 2.6.10 on OMAP2430. When I plug SD card I get the
> following at the Linux prompt, however the card does not automount. I
> do have The MMC hot plug scripts /etc/hotplug/mmc.agent and the system
> hot plug script /sbin/hotplug present in the file system but they do not
> get called.
>
> # mmc0: host does not support reading read-only switch. assuming
> write-enable.
> mmcblk0: mmc0:a95c SD01G 992000KiB
> mmcblk0: p1
That suggests that the hotplug scripts ARE getting called ... all they
do is ensure that the right drivers are loaded. FWIW on current systems
you can probably use the appended script instead of /sbin/hotplug, and
get better results.
> I can mount manually with no problem.
I don't think "hotplug" issues "mount" commands. But I'm fairly sure
that some folk have "udev" riles that do that; check your current PC
distros to see what they do with block devices.
- Dave
#!/bin/ash
#
# "hotplug" initializes devices ... hardware drivers get modprobed and
# create class devices. then later udev handles /dev node creation and
# invokes programs that make userspace aware of the new device node.
#
# install as /sbin/hotplug
if [ ! -d /sys ]
then
exit 1
fi
cd /sys
if [ "$ACTION" = "add" -a "$SUBSYSTEM" = "mmc" ]
then
# MMC doesn't support modalias yet, but this is
# the only choice until we have SDIO support.
MODALIAS=mmc_block
fi
if [ "$ACTION" = "add" -a -n "$MODALIAS" -a ! -L $DEVPATH/driver ]
then
# most important subsystems now have $MODALIAS support:
modprobe -q $MODALIAS
fi
if [ -n "$DEVPATH" ]
then
/sbin/udevsend $1
fi
prev parent reply other threads:[~2006-11-16 4:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 1:19 Configuring UDEV rules for MMC/SD hot-plugging Katorgi, Maher
2006-11-16 4:15 ` David Brownell [this message]
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=200611152015.37738.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-omap-open-source@linux.omap.com \
/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