I have moved out the mdev.conf file as you mentioned.
On Fri, Nov 13, 2009 at 1:12 AM, Vladimir Dronnikov <[email protected]> wrote:
>> mount -t tmpfs mdev /dev
>> mkdir /dev/pts
>> mount /dev/pts
>> mount /sys
>> mount /proc
>> ndev -sc
>>
>
> At this point point you should have /dev filled with device nodes,
> which are made _without_ respecting mdev.conf. Test it.
>
This i happening correctly and blazingly fast. The /dev folder is
populated with a bunch of device nodes.
And no node for the cold plugged device (as we would expect)
>> after logging in im running (for testing)
>> # ndev -S
>
> After this /dev is refilled with device nodes, which are made _with_
> respect to mdev.conf -- so any scripts that you have in mdev.conf
> should be applied. Test it.
>
>>
>> at this point there is no clod plugging taking place
>
> How do you know? Coldplugged usb device is not appearing in /dev?
# ndev -S
At this point, there is still no node for the cold plugged device (usbstick).
>
>> after that if i run
>> #ndev
>> and connect a usbstorage device, im getting some expr syntax error.
>>
>> __LOG_START_
>> # ndev -S
>> # ndev
>> usb 1-1.1: new high speed USB device using musb_hdrc and address 3
>> usb 1-1.1: configuration #1 chosen from 1 choice
>> scsi0 : SCSI emulation for USB Mass Storage devices
>> scsi 0:0:0:0: Direct-Access USB 2.0 5.00 PQ: 0 ANSI: 2
>> sd 0:0:0:0: [sda] 505344 512-byte hardware sectors (259 MB)
>> sd 0:0:0:0: [sda] Write Protect is off
>> sd 0:0:0:0: [sda] Assuming drive cache: write through
>> sd 0:0:0:0: [sda] 505344 512-byte hardware sectors (259 MB)
>> sd 0:0:0:0: [sda] Write Protect is off
>> sd 0:0:0:0: [sda] Assuming drive cache: write through
>> sda: sda1
>> sd 0:0:0:0: [sda] Attached SCSI removable disk
>> expr: syntax error
>> expr: syntax error
>> expr: syntax error
>> expr: syntax error
>> __LOG_END_
>>
>
> ndev doesn't use "expr". May be you custom scripts which are in
> mdev.conf do? If so, correct them.
>
# ndev &
At this point, if i disconnected and connect the device again. There
is still no device node created for the usbstick.
and yes, in the usbdrive hotplugging script i am doing
MDEV_HEAD=`expr substr ${MDEV} 1 3`
which means that the hotplug script was being called earlier, but the
${MDEV} variable was empty, hence the expr syntax error.
>> from what im doing hot plugging as well is not working
>>
>> P.S. I am not doing any mdev related stuff, only the mdev.conf and the
>> hotplug scripts
>> are there.
>>
>
> The right way is to get rid of mdev.conf at first. ndev (and mdev)
> works fine without it. Rename or move it out /etc.
> Does it help?
>
>> Regards
>> ~Sameer
>>
>> On Fri, Nov 13, 2009 at 12:41 AM, Sameer Naik
>> <[email protected]> wrote:
>>> do i need to do mdev related stuff, particularly
>>> echo "/sbin/mdev" > /proc/sys/kernel/hotplug
>>>
>>> ndev will pick on the mdev hotplug scripts right.
>>>
>>>
>>> On Fri, Nov 13, 2009 at 12:11 AM, Vladimir Dronnikov
>>> <[email protected]> wrote:
>>>>>
>>>>> I have patched busybox and enabled ndev and mdev in the busybox
>>>>> configuration.
>>>>> Please instruct me on how i should setup ndev so that hot plugging and
>>>>> cold plugging
>>>>> can work. I am trying out stuff here, but no success yet.
>>>>>
>>>>
>>>> Use it as follows:
>>>> * "ndev -sc" to fast create block device nodes
>>>> * "ndev -S" to replay all missed hotplug events -- you case, afaics
>>>> * "ndev &" during runtime to process ordinary hotplug events
>>>>
>>>> Try "ndev -S"
>>>>
>>>> --
>>>> Vladimir
>>>>
>>>>> Regards
>>>>> ~Sameer
>>>>>
>>>>> On Thu, Nov 12, 2009 at 12:54 AM, Vladimir Dronnikov
>>>>> <[email protected]> wrote:
>>>>>>> :)
>>>>>>> vanilla i get.
>>>>>>> you are refering to "vanilla busybox" right, but what patches? where
>>>>>>> can i find them
>>>>>>>
>>>>>>
>>>>>> You can try http://www.mail-archive.com/[email protected]/msg09832.html
>>>>>>
>>>>>> --
>>>>>> Vladimir
>>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> ---------
>>> I got google wave invites... lemme know if you want one.
>>>
>>
>>
>>
>> --
>> ---------
>> I got google wave invites... lemme know if you want one.
>>
>
--
---------
I got google wave invites... lemme know if you want one.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox