[Cialug] udev help

Chris Freeman cwfreeman at gmail.com
Tue Dec 28 15:04:13 CST 2010


Thanks, Dave.

I mostly got the USB connection working. (See
http://thinkoftheepsilons.blogspot.com/2010/12/toy-robots-and-linux.html for
very limited details.)

I'm looking at NXC, though I'd love to use something else eventually. Most
other embedded languages require reflashing the brick, which I'm not ready
to do yet.

Chris

On Mon, Dec 27, 2010 at 5:27 PM, David Champion <dchamp1337 at gmail.com>wrote:

> I'm not much help on NXT... I have an original Mindstorm kit that uses the
> serial / IR tower to communicate with it.
>
> What are you planning to use with it? I had messed around with NQC (Not
> Quite C) and it worked fairly well, but it's been a few years since I've
> used it. Looks like there's a version that will work with the NXT called
> NXC.
>
> http://bricxcc.sourceforge.net/nbc/
>
> -dc
>
> On Sun, Dec 26, 2010 at 10:56 AM, Chris Freeman <cwfreeman at gmail.com>wrote:
>
>> I'm trying to write a udev rule to hook up my Christmas present to my
>> computer.
>>
>> The /dev/legonxt symlink (see rule) is never created, and the
>> /tmp/legonxt.called file (see script) is never created.
>>
>> Any ideas?
>>
>> ----- details ------
>>
>> udevadm info tells me this:
>> $ udevadm info -a -p /sys/devices/LNXSYSTM\:00/
>> <cut some plain text...>
>>
>>   looking at device '/devices/LNXSYSTM:00':
>>     KERNEL=="LNXSYSTM:00"
>>     SUBSYSTEM=="acpi"
>>     DRIVER==""
>>     ATTR{path}=="\"
>>     ATTR{hid}=="LNXSYSTM"
>>     ATTR{modalias}=="acpi:LNXSYSTM:"
>>
>>
>> I've got this in /etc/udev/rules.d/90-legonxt.rules:
>> SUBSYSTEM=="acpi", ATTR{hid}=="LNXSYSTM", SYMLINK+=”legonxt”,
>> ACTION=="add", RUN+=”/etc/udev/legonxt.sh”
>>
>> The shell file:
>>
>> $ ls -l /etc/udev/legonxt.sh
>> -rwxr-xr-x 1 root root 327 2010-12-26 10:35 /etc/udev/legonxt.sh
>>
>> $ cat /etc/udev/legonxt.sh
>> #!/bin/bash
>>
>> echo "Called legonxt.sh ..." >> /tmp/legonxt.called
>> echo "  ACTION=[${ACTION}]" >> /tmp/legonxt.called
>> echo "  DEVICE=[${DEVICE}]" >> /tmp/legonxt.called
>>
>> GROUP=plugdev
>> if [ "${ACTION}" = "add" ] &amp;&amp; [ -f "${DEVICE}" ]
>> then
>>  chmod o-rwx "${DEVICE}"
>>  chgrp "${GROUP}" "${DEVICE}"
>>  chmod g+rw "${DEVICE}"
>> fi
>>
>>
>>
>> Thanks,
>>
>> Chris
>>
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
>>
>>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20101228/a88795fd/attachment.htm 


More information about the Cialug mailing list