• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1] 2
Author Topic: Getting serial console working  (Read 33482 times)
Rabeeh Khoury
Administrator
Full Member
*****

Karma: 5
Posts: 218


View Profile
« on: March 16, 2009, 07:39:27 AM »

For Linux -
http://www.openplug.org/plugwiki/index.php/Setting_up_Serial_Console_Under_Linux

For Windows -

http://www.openplug.org/plugwiki/index.php/Configure_u-Boot_on_the_Plug_Computer

Combined wiki page -

http://www.openplug.org/plugwiki/index.php/Serial_terminal_program
« Last Edit: May 21, 2009, 07:16:58 AM by Rabeeh Khoury » Logged

moshiach
Guest
« Reply #1 on: April 02, 2009, 10:03:24 PM »

Any ideas what kernel options/extra programs might be needed to get linux to actually create those ttyUSB endpoints?  I've rebuilt my kernel a couple of times today with leds from various websites about using usbserial as a module but have been unable so far to get it to create ttyusb0 ttyusb1.  I hate having to turn on my work laptop just to read the console.
Logged

Rabeeh Khoury
Administrator
Full Member
*****

Karma: 5
Posts: 218


View Profile
« Reply #2 on: April 06, 2009, 06:37:16 AM »

I just use standard kernel with any standard distro.
It should have the ftdi chip drivers.
Logged

cslee
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #3 on: April 06, 2009, 11:51:57 AM »

I've connected to the plug via hyperterm. It's asking me for user name and password. What would that be?
Logged

cslee
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #4 on: April 06, 2009, 01:38:44 PM »

ignore my post. I found the answer on another forum
Logged

moshiach
Guest
« Reply #5 on: April 06, 2009, 07:54:16 PM »

I'm still having difficulty getting the console to work in linux.  I jsut booted into a Ubuntu enviroment (someone on IRC mentioned that "it just works" in ubuntu) and was still unable to get TTYUSB0 in my dev.

A couple of things I've tried:
1) rebuilt my kernel with usbserial as a module
2) setup ftdi_sio as a module
3)  Loaded both modules
4) Plugged in the unit and reset it with the handy dandy reset pin pusher.

I've even tried making my own ttyUSB0 node with mknod /dev/ttyUSB0 c 188 0.

No joy.  I can see thorugh DMESG and /var/log/messages that the unit is seen (although not recognized i.e no name) by usb.  It puts a /dev/usb device name file, but no tty.   I can of course see it perfectly in windows, but I do all my developement on the linux box and switching over to windows to see the console is getting annoying.


Anyone have any ideas how to get linux to see the unit so minicom can read it?
Logged

moshiach
Guest
« Reply #6 on: April 07, 2009, 01:08:16 AM »

Finally!  I forget what led me to this document but it was the final piece I needed to get my kernel to recognize the serial usb console for the plug in Linux.

1)  Make sure your kernel has usbserial (I compiled it as a module rather than built-in since I don't need it cluttering up my memory when it's not needed)  Device Drivers->USB->USB Serial Converter
2)  In the same section, compile USB FTDI Single Port Serial Driver as a module  Device Drivers->USB->USB Serial Converter->USB FTDI Single Port Serial Driver (experimental)

Reboot to the new kernel.  Plug in your sheeva and modprobe ftdi_sio product=0x9e8f vendor=0x9e88   And there you have it.  A working ttyUSB1 that you can access with a terminal program.  It's the product and vendor id's that ftdi_sio needs to match the device to the tty.

Strangely enough my udev rule doesn't match it, but I'm sure I can figure that part out as well.
Logged

moshiach
Guest
« Reply #7 on: April 07, 2009, 02:07:51 AM »

Ok!  One problem down, 2 left.

The following udev rules will automatically detect and load the modules for sheevaplug, and as an added bonus will remove those modules when it's disconnected.

SYSFS{idProduct}=="9e8f",SYSFS{idVendor}=="9e88",ACTION=="add",RUN+="/sbin/modprobe -q ftdi-sio product=0x9e8f vendor=0x9e88"
ENV{PRODUCT}=="9e88/9e8f/500",ACTION=="remove",RUN+="/sbin/rmmod ftdi_sio usbserial"

Progress is being made!  Now I jsut need to solve the mysterious mtdparts kernel command not working and then maybe I can finally flash the provided kernel and rootfs.  After that it's just a matter of fixing my kernel compilation issue and I'm finally in business.
Logged

ben
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #8 on: April 08, 2009, 04:19:19 PM »

Thanks for the tip on modprobe ftdi_sio product=0x9e8f vendor=0x9e88.  I now have ttyUSB0 and ttyUSB1!   Grin

This should be added to the wiki.  Maybe I will get some time after a while and add it.

Thanks,
Ben
Logged

jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
*****

Karma: 2
Posts: 87

Principal Software Engineer -- Oracle Corporation


View Profile
« Reply #9 on: May 14, 2009, 07:09:53 AM »

For the record, I had intermittent problems when I connected to my SheevaPlug from my Dell 620 using the serial port (hardwired).  The symptoms where the SheevaPlug completely resetting occasionally, like once every hour or two.  I mistakenly thought the resets were arising from a USB hub and posted to this forum, but later concluded that the resets occurred only if I remained connected using the serial port. 

I avoid using the serial port, or if I use it I keep my connection time to a short duration, and simply log in using PuTTY through an ssh connection -- the reset problems disappeared and the SheevaPlug has been completely stable.
Logged

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

badcam
Jr. Member
**

Karma: 1
Posts: 78


View Profile
« Reply #10 on: August 27, 2009, 02:02:00 PM »

This thread has helped me a lot. I've managed to get puTTy working on Puppy Linux and talking nicely with the Sheevaplug, either as SSH or via the mini USB uboot function. Sweet.

The crux was the modprobe ftdi_sio product=0x9e8f vendor=0x9e88

Thanks very much.
Logged

badcam
Jr. Member
**

Karma: 1
Posts: 78


View Profile
« Reply #11 on: August 28, 2009, 02:31:40 PM »

I note that whenever I restart I have to use the "modprobe ftdi_sio product=0x9e8f vendor=0x9e88" command each time.

In which file do I save this so that it's remembered upon reboot? Thanks.
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 443


View Profile WWW
« Reply #12 on: September 22, 2009, 03:39:38 PM »

In which file do I save this so that it's remembered upon reboot? Thanks.
Try:
 /etc/udev/rules.d/10-My-PlugConsole.rules
Logged

pallinger
Newbie
*

Karma: 1
Posts: 7


View Profile
« Reply #13 on: December 15, 2009, 06:33:06 AM »

My problem was that although /dev/ttyUSB0 appears, /dev/ttyUSB1 does not appear, and I can't connect to /dev/ttyUSB0 with any terminal program.
It does not matter if I let udev do the module loading or I load ftdi_sio manually.

Finally!  I forget what led me to this document but it was the final piece I needed to get my kernel to recognize the serial usb console for the plug in Linux.

I've read the above document, and it gave a tip about removing the brltty package, which I did.
After that, there was still no /dev/ttyUSB1, but I could connect to /dev/ttyUSB0 with gtkterm. Hoorray!

Someone should put this info into the wiki, as it is really useful for ubuntu users...






Logged

plugcrazy
Jr. Member
**

Karma: 1
Posts: 64


View Profile
« Reply #14 on: December 23, 2009, 04:47:23 PM »

unable to get to the serial port from my windows xp laptop. trying to set the port settings does not seem to be working. Tried to assign different com ports to the USB serial port in the Device Manager config. Both Teraterm and Putty are not responding!

And to top it all I screwed up on the root password!!! :-((((((((((((

HELP!
Logged

Pages: [1] 2
Print
Jump to: