NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Arduino connect to NetBSD box woes



Hello,

That is good that people actually interested making Arduinos work on NetBSD.
After reboot on my  7.1.2 NetBSD 7.1.2 (GENERIC.201803151611Z) i386:

usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), vendor 0x1022(0x1022), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), vendor 0x1022(0x1022), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered

 cu -l dtyU0 -s 9600
cu: /dev/dtyU0: Device not configured
cu: link down


Indeed the device remains in the dev but it is not usable.

After I unplug and replug the Arduino:

Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), vendor 0x1022(0x1022), rev 1.00
 port 1 powered
port 2 addr 2: full speed, self powered, config 1, product 0x0042(0x0042), Arduino (www.arduino.cc)(0x2341), rev 0.01, serial 123456
 port 3 powered
 port 4 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), vendor 0x1022(0x1022), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered

CU and my C program can use it right away, there is no more initialization needed so I would like to automate this otherwise it will be quite annoying using this machine on the long term and physically always replug the arduino after reboot.

Also if you have experience with headless compilation of code to the Arduino on NetBSD please share: http://forum.arduino.cc/index.php?topic=25055.0 I don't want to install gui on this machine at all just to run the Arduino IDE. I see some people say that the resetting in this case might needed to be done manually which would be another show stopper.


On 2018-05-03 18:30, Cág wrote:
freebsd wrote:

So it is half solved. Now the question remains  why is /dev/dtyU0 not
created at boot time just when I replug the stick.

Hi,

I have AVR Arduino clones to have fun with, and on my desktop (8.0
though) /dev/dtyU0 is present at boot time.

--
caóc


Home | Main Index | Thread Index | Old Index