From: Bianca P. <bkp...@gm...> - 2011-08-30 15:51:39
|
I'm attempting to communicate with a piece of hardware via the ttyS0 serial port - using the Tobi Board 9/10 pins. I'm attempting to interface with the hardware as a simple serial port connection. So far I've had no luck being able read across this connection. Right now I'm keeping the software portion very simple just to see if I can get something working it's simply using the termios api to open the connection set the attributes and attempting to read from it. Are there additional things that need to be done to enable this port? Am I missing something in the hardware portion that's required for this to function properly. Driver? Any information is appreciated? |
From: dtran11 <dt...@gm...> - 2011-08-30 16:01:21
|
What kernel version are you using. From 2.6.36 or 2.6.37 and onwards ttyS* changed to ttyO* Bianca Prince wrote: > > I'm attempting to communicate with a piece of hardware via the ttyS0 > serial > port - using the Tobi Board 9/10 pins. I'm attempting to interface with > the > hardware as a simple serial port connection. So far I've had no luck > being > able read across this connection. > > Right now I'm keeping the software portion very simple just to see if I > can > get something working it's simply using the termios api to open the > connection set the attributes and attempting to read from it. > > Are there additional things that need to be done to enable this port? Am > I > missing something in the hardware portion that's required for this to > function properly. Driver? > > Any information is appreciated? > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://old.nabble.com/Using-Additional-Serial-Ports---i.e.-ttyS0-or-ttyS1-tp32365546p32365579.html Sent from the Gumstix mailing list archive at Nabble.com. |
From: AKS <aun...@gm...> - 2011-08-30 16:02:32
|
I think it is ttyO1 and no longer ttyS1 for omap kernels above 2.6.38 (I am not sure this whether 2.6.35 or 38!) On 8/31/11, Bianca Prince <bkp...@gm...> wrote: > I'm attempting to communicate with a piece of hardware via the ttyS0 serial > port - using the Tobi Board 9/10 pins. I'm attempting to interface with the > hardware as a simple serial port connection. So far I've had no luck being > able read across this connection. > > Right now I'm keeping the software portion very simple just to see if I can > get something working it's simply using the termios api to open the > connection set the attributes and attempting to read from it. > > Are there additional things that need to be done to enable this port? Am I > missing something in the hardware portion that's required for this to > function properly. Driver? > > Any information is appreciated? > |
From: Akram H. <ak...@aq...> - 2011-08-31 07:06:46
|
Howdy Bianca, 1) Is your pin muxing set up properly? 2) Are you using an appropriate level shifter for your pins? You can enable the right muxing properly very simply by using devmem2 – I can’t think of the addresses to set up off hand, but the TRM is invaluable in this regard. Re level shifter: if you’re just playing around, sparkfun make one that will give you TTL levels for relatively cheap. Cheers Akram *From:* Bianca Prince [mailto:bkp...@gm...] *Sent:* Wednesday, 31 August 2011 1:52 AM *To:* gum...@li... *Subject:* [Gumstix-users] Using Additional Serial Ports - i.e. ttyS0 or ttyS1 I'm attempting to communicate with a piece of hardware via the ttyS0 serial port - using the Tobi Board 9/10 pins. I'm attempting to interface with the hardware as a simple serial port connection. So far I've had no luck being able read across this connection. Right now I'm keeping the software portion very simple just to see if I can get something working it's simply using the termios api to open the connection set the attributes and attempting to read from it. Are there additional things that need to be done to enable this port? Am I missing something in the hardware portion that's required for this to function properly. Driver? Any information is appreciated? |
From: Steve S. <sa...@gm...> - 2011-08-31 18:04:01
|
On Tue, Aug 30, 2011 at 8:51 AM, Bianca Prince <bkp...@gm...> wrote: > I'm attempting to communicate with a piece of hardware via the ttyS0 serial > port - using the Tobi Board 9/10 pins. I'm attempting to interface with the > hardware as a simple serial port connection. So far I've had no luck being > able read across this connection. > > Right now I'm keeping the software portion very simple just to see if I can > get something working it's simply using the termios api to open the > connection set the attributes and attempting to read from it. > > Are there additional things that need to be done to enable this port? Am I > missing something in the hardware portion that's required for this to > function properly. Driver? > > Any information is appreciated? Take a look at this example of using one of the serial ports to talk to a 7 segment display: http://www.sakoman.com/OMAP/how-to-add-a-serial-7-segment-display-to-overo.html It is output only, but will give you a general overview of how to approach this. Steve |
From: bkpdeveloper <bkp...@gm...> - 2011-09-08 19:01:33
|
Thanks Steve for the link. Software wise my code is almost identical to what you have going on. (I'm reading instead of writing). I want to verify that out of the box those additional serial ports are enabled. Could I possibly missing something there? If the answer is yes, I'll probably need to take a closer look at the hardware sending the data. Thanks for any info. On Wed, Aug 31, 2011 at 2:03 PM, Steve Sakoman <sa...@gm...> wrote: > On Tue, Aug 30, 2011 at 8:51 AM, Bianca Prince <bkp...@gm...> > wrote: > > I'm attempting to communicate with a piece of hardware via the ttyS0 > serial > > port - using the Tobi Board 9/10 pins. I'm attempting to interface with > the > > hardware as a simple serial port connection. So far I've had no luck > being > > able read across this connection. > > > > Right now I'm keeping the software portion very simple just to see if I > can > > get something working it's simply using the termios api to open the > > connection set the attributes and attempting to read from it. > > > > Are there additional things that need to be done to enable this port? Am > I > > missing something in the hardware portion that's required for this to > > function properly. Driver? > > > > Any information is appreciated? > > Take a look at this example of using one of the serial ports to talk > to a 7 segment display: > > > http://www.sakoman.com/OMAP/how-to-add-a-serial-7-segment-display-to-overo.html > > It is output only, but will give you a general overview of how to approach > this. > > Steve > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Steve S. <sa...@gm...> - 2011-09-08 19:47:37
|
On Thu, Sep 8, 2011 at 12:01 PM, bkpdeveloper <bkp...@gm...> wrote: > Thanks Steve for the link. > > Software wise my code is almost identical to what you have going on. (I'm > reading instead of writing). > > I want to verify that out of the box those additional serial ports are > enabled. Could I possibly missing something there? If the answer is yes, > I'll probably need to take a closer look at the hardware sending the data. Well, I can only speak with certainty for the software images on my site. In those all 3 serial ports are enabled. Of course 2 of the 3 are already utilized (as described in my article) so the first serial port is really the only option. I'm pretty sure that upstream u-boot and linux also enable all 3 ports, so it is pretty likely that you should look at your hardware first! Are you sure you haven't swapped TX and RX connections? I'd guess that 99% of serial issues are due to reversed connections :-) I'd also check your level conversion to make sure voltage levels are correct too. Steve > Thanks for any info. > > On Wed, Aug 31, 2011 at 2:03 PM, Steve Sakoman <sa...@gm...> wrote: >> >> On Tue, Aug 30, 2011 at 8:51 AM, Bianca Prince <bkp...@gm...> >> wrote: >> > I'm attempting to communicate with a piece of hardware via the ttyS0 >> > serial >> > port - using the Tobi Board 9/10 pins. I'm attempting to interface with >> > the >> > hardware as a simple serial port connection. So far I've had no luck >> > being >> > able read across this connection. >> > >> > Right now I'm keeping the software portion very simple just to see if I >> > can >> > get something working it's simply using the termios api to open the >> > connection set the attributes and attempting to read from it. >> > >> > Are there additional things that need to be done to enable this port? >> > Am I >> > missing something in the hardware portion that's required for this to >> > function properly. Driver? >> > >> > Any information is appreciated? >> >> Take a look at this example of using one of the serial ports to talk >> to a 7 segment display: >> >> >> http://www.sakoman.com/OMAP/how-to-add-a-serial-7-segment-display-to-overo.html >> >> It is output only, but will give you a general overview of how to approach >> this. >> >> Steve >> >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> gumstix-users mailing list >> gum...@li... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > |
From: Philip B. <ph...@ba...> - 2011-09-08 19:59:16
|
On 09/08/2011 03:47 PM, Steve Sakoman wrote: > On Thu, Sep 8, 2011 at 12:01 PM, bkpdeveloper<bkp...@gm...> wrote: >> Thanks Steve for the link. >> >> Software wise my code is almost identical to what you have going on. (I'm >> reading instead of writing). >> >> I want to verify that out of the box those additional serial ports are >> enabled. Could I possibly missing something there? If the answer is yes, >> I'll probably need to take a closer look at the hardware sending the data. I think you need to use ttyOX and not ttySX to access the ports coming from the Overo. Philip > > Well, I can only speak with certainty for the software images on my > site. In those all 3 serial ports are enabled. Of course 2 of the 3 > are already utilized (as described in my article) so the first serial > port is really the only option. > > I'm pretty sure that upstream u-boot and linux also enable all 3 > ports, so it is pretty likely that you should look at your hardware > first! Are you sure you haven't swapped TX and RX connections? I'd > guess that 99% of serial issues are due to reversed connections :-) > I'd also check your level conversion to make sure voltage levels are > correct too. > > Steve > >> Thanks for any info. >> >> On Wed, Aug 31, 2011 at 2:03 PM, Steve Sakoman<sa...@gm...> wrote: >>> >>> On Tue, Aug 30, 2011 at 8:51 AM, Bianca Prince<bkp...@gm...> >>> wrote: >>>> I'm attempting to communicate with a piece of hardware via the ttyS0 >>>> serial >>>> port - using the Tobi Board 9/10 pins. I'm attempting to interface with >>>> the >>>> hardware as a simple serial port connection. So far I've had no luck >>>> being >>>> able read across this connection. >>>> >>>> Right now I'm keeping the software portion very simple just to see if I >>>> can >>>> get something working it's simply using the termios api to open the >>>> connection set the attributes and attempting to read from it. >>>> >>>> Are there additional things that need to be done to enable this port? >>>> Am I >>>> missing something in the hardware portion that's required for this to >>>> function properly. Driver? >>>> >>>> Any information is appreciated? >>> >>> Take a look at this example of using one of the serial ports to talk >>> to a 7 segment display: >>> >>> >>> http://www.sakoman.com/OMAP/how-to-add-a-serial-7-segment-display-to-overo.html >>> >>> It is output only, but will give you a general overview of how to approach >>> this. >>> >>> Steve >>> >>> >>> ------------------------------------------------------------------------------ >>> Special Offer -- Download ArcSight Logger for FREE! >>> Finally, a world-class log management solution at an even better >>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >>> download Logger. Secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsisghtdev2dev >>> _______________________________________________ >>> gumstix-users mailing list >>> gum...@li... >>> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> >> >> ------------------------------------------------------------------------------ >> Doing More with Less: The Next Generation Virtual Desktop >> What are the key obstacles that have prevented many mid-market businesses >> from deploying virtual desktops? How do next-generation virtual desktops >> provide companies an easier-to-deploy, easier-to-manage and more affordable >> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ >> _______________________________________________ >> gumstix-users mailing list >> gum...@li... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> >> > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Steve S. <sa...@gm...> - 2011-09-08 20:04:17
|
On Thu, Sep 8, 2011 at 12:59 PM, Philip Balister <ph...@ba...> wrote: > I think you need to use ttyOX and not ttySX to access the ports coming from > the Overo. A couple of the previous responders already pointed this out, so I'm pretty sure that isn't the issue! Steve |
From: Alex G. <al...@al...> - 2011-09-09 01:24:02
|
On 9/09/2011 6:04 AM, Steve Sakoman wrote: > On Thu, Sep 8, 2011 at 12:59 PM, Philip Balister<ph...@ba...> wrote: > >> I think you need to use ttyOX and not ttySX to access the ports coming from >> the Overo. > > A couple of the previous responders already pointed this out, so I'm > pretty sure that isn't the issue! > > Steve > If you guys need some cheap , multi seven segment boards futurlec sell some (can be a bit slow shipping orders sometimes) http://futurlec.com/8x7_Segment.shtml note its a MAX7219 not a Max7221 - 3 wire (spi compatable) not full spi. Have use more than a few of their 8051 boards and stepper motor boards. Just note some of their documentation in English is a bit limited/terse, unless you know someone who can read Thai. AFAIK they resell boards from http://www.ett.co.th and http://www.inex.co.th . Alex |
From: bkpdeveloper <bkp...@gm...> - 2011-09-16 16:00:13
|
Steve just had to say thanks so much for your help. It was that the tx/rx connections were reversed. I couldn't believe it. :-) Working like a champ now. Thanks again. On Thu, Sep 8, 2011 at 3:47 PM, Steve Sakoman <sa...@gm...> wrote: > On Thu, Sep 8, 2011 at 12:01 PM, bkpdeveloper <bkp...@gm...> > wrote: > > Thanks Steve for the link. > > > > Software wise my code is almost identical to what you have going on. > (I'm > > reading instead of writing). > > > > I want to verify that out of the box those additional serial ports are > > enabled. Could I possibly missing something there? If the answer is > yes, > > I'll probably need to take a closer look at the hardware sending the > data. > > Well, I can only speak with certainty for the software images on my > site. In those all 3 serial ports are enabled. Of course 2 of the 3 > are already utilized (as described in my article) so the first serial > port is really the only option. > > I'm pretty sure that upstream u-boot and linux also enable all 3 > ports, so it is pretty likely that you should look at your hardware > first! Are you sure you haven't swapped TX and RX connections? I'd > guess that 99% of serial issues are due to reversed connections :-) > I'd also check your level conversion to make sure voltage levels are > correct too. > > Steve > > > Thanks for any info. > > > > On Wed, Aug 31, 2011 at 2:03 PM, Steve Sakoman <sa...@gm...> > wrote: > >> > >> On Tue, Aug 30, 2011 at 8:51 AM, Bianca Prince <bkp...@gm...> > >> wrote: > >> > I'm attempting to communicate with a piece of hardware via the ttyS0 > >> > serial > >> > port - using the Tobi Board 9/10 pins. I'm attempting to interface > with > >> > the > >> > hardware as a simple serial port connection. So far I've had no luck > >> > being > >> > able read across this connection. > >> > > >> > Right now I'm keeping the software portion very simple just to see if > I > >> > can > >> > get something working it's simply using the termios api to open the > >> > connection set the attributes and attempting to read from it. > >> > > >> > Are there additional things that need to be done to enable this port? > >> > Am I > >> > missing something in the hardware portion that's required for this to > >> > function properly. Driver? > >> > > >> > Any information is appreciated? > >> > >> Take a look at this example of using one of the serial ports to talk > >> to a 7 segment display: > >> > >> > >> > http://www.sakoman.com/OMAP/how-to-add-a-serial-7-segment-display-to-overo.html > >> > >> It is output only, but will give you a general overview of how to > approach > >> this. > >> > >> Steve > >> > >> > >> > ------------------------------------------------------------------------------ > >> Special Offer -- Download ArcSight Logger for FREE! > >> Finally, a world-class log management solution at an even better > >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you > >> download Logger. Secure your free ArcSight Logger TODAY! > >> http://p.sf.net/sfu/arcsisghtdev2dev > >> _______________________________________________ > >> gumstix-users mailing list > >> gum...@li... > >> https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > ------------------------------------------------------------------------------ > > Doing More with Less: The Next Generation Virtual Desktop > > What are the key obstacles that have prevented many mid-market businesses > > from deploying virtual desktops? How do next-generation virtual > desktops > > provide companies an easier-to-deploy, easier-to-manage and more > affordable > > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Steve S. <sa...@gm...> - 2011-09-16 16:33:00
|
On Fri, Sep 16, 2011 at 9:00 AM, bkpdeveloper <bkp...@gm...> wrote: > Steve just had to say thanks so much for your help. It was that the tx/rx > connections were reversed. I couldn't believe it. :-) > Working like a champ now. > Thanks again. Glad to hear it! Steve > On Thu, Sep 8, 2011 at 3:47 PM, Steve Sakoman <sa...@gm...> wrote: >> >> On Thu, Sep 8, 2011 at 12:01 PM, bkpdeveloper <bkp...@gm...> >> wrote: >> > Thanks Steve for the link. >> > >> > Software wise my code is almost identical to what you have going on. >> > (I'm >> > reading instead of writing). >> > >> > I want to verify that out of the box those additional serial ports are >> > enabled. Could I possibly missing something there? If the answer is >> > yes, >> > I'll probably need to take a closer look at the hardware sending the >> > data. >> >> Well, I can only speak with certainty for the software images on my >> site. In those all 3 serial ports are enabled. Of course 2 of the 3 >> are already utilized (as described in my article) so the first serial >> port is really the only option. >> >> I'm pretty sure that upstream u-boot and linux also enable all 3 >> ports, so it is pretty likely that you should look at your hardware >> first! Are you sure you haven't swapped TX and RX connections? I'd >> guess that 99% of serial issues are due to reversed connections :-) >> I'd also check your level conversion to make sure voltage levels are >> correct too. >> >> Steve >> >> > Thanks for any info. >> > >> > On Wed, Aug 31, 2011 at 2:03 PM, Steve Sakoman <sa...@gm...> >> > wrote: >> >> >> >> On Tue, Aug 30, 2011 at 8:51 AM, Bianca Prince <bkp...@gm...> >> >> wrote: >> >> > I'm attempting to communicate with a piece of hardware via the ttyS0 >> >> > serial >> >> > port - using the Tobi Board 9/10 pins. I'm attempting to interface >> >> > with >> >> > the >> >> > hardware as a simple serial port connection. So far I've had no luck >> >> > being >> >> > able read across this connection. >> >> > >> >> > Right now I'm keeping the software portion very simple just to see if >> >> > I >> >> > can >> >> > get something working it's simply using the termios api to open the >> >> > connection set the attributes and attempting to read from it. >> >> > >> >> > Are there additional things that need to be done to enable this port? >> >> > Am I >> >> > missing something in the hardware portion that's required for this to >> >> > function properly. Driver? >> >> > >> >> > Any information is appreciated? >> >> >> >> Take a look at this example of using one of the serial ports to talk >> >> to a 7 segment display: >> >> >> >> >> >> >> >> http://www.sakoman.com/OMAP/how-to-add-a-serial-7-segment-display-to-overo.html >> >> >> >> It is output only, but will give you a general overview of how to >> >> approach >> >> this. >> >> >> >> Steve >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Special Offer -- Download ArcSight Logger for FREE! >> >> Finally, a world-class log management solution at an even better >> >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> >> download Logger. Secure your free ArcSight Logger TODAY! >> >> http://p.sf.net/sfu/arcsisghtdev2dev >> >> _______________________________________________ >> >> gumstix-users mailing list >> >> gum...@li... >> >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Doing More with Less: The Next Generation Virtual Desktop >> > What are the key obstacles that have prevented many mid-market >> > businesses >> > from deploying virtual desktops? How do next-generation virtual >> > desktops >> > provide companies an easier-to-deploy, easier-to-manage and more >> > affordable >> > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ >> > _______________________________________________ >> > gumstix-users mailing list >> > gum...@li... >> > https://lists.sourceforge.net/lists/listinfo/gumstix-users >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Doing More with Less: The Next Generation Virtual Desktop >> What are the key obstacles that have prevented many mid-market businesses >> from deploying virtual desktops? How do next-generation virtual desktops >> provide companies an easier-to-deploy, easier-to-manage and more >> affordable >> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ >> _______________________________________________ >> gumstix-users mailing list >> gum...@li... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > |
From: Alex G. <al...@al...> - 2011-09-19 04:53:49
|
On 17/09/2011 2:32 AM, Steve Sakoman wrote: > On Fri, Sep 16, 2011 at 9:00 AM, bkpdeveloper<bkp...@gm...> wrote: >> Steve just had to say thanks so much for your help. It was that the tx/rx >> connections were reversed. I couldn't believe it. :-) >> Working like a champ now. >> Thanks again. > > Glad to hear it! is it possible to have the boot console go out on more than one serial port simultaneously ? say usbconsole and another - ttyO2 and ttyO1 Alex |
From: Dave H. <dhy...@gm...> - 2011-09-19 15:26:43
|
Hi Alex, On Sun, Sep 18, 2011 at 9:53 PM, Alex Gibson <al...@al...> wrote: > On 17/09/2011 2:32 AM, Steve Sakoman wrote: >> On Fri, Sep 16, 2011 at 9:00 AM, bkpdeveloper<bkp...@gm...> wrote: >>> Steve just had to say thanks so much for your help. It was that the tx/rx >>> connections were reversed. I couldn't believe it. :-) >>> Working like a champ now. >>> Thanks again. >> >> Glad to hear it! > > > is it possible to have the boot console go out on more than one serial > port simultaneously ? > > say usbconsole and another - ttyO2 and ttyO1 In theory, yes (I haven't actually tried this). You basically need to register a second console device. It looks like you might be able to add a second conolse= line This is the function called when you use console= http://lxr.linux.no/linux+v3.0.4/kernel/printk.c#L1059 -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com |
From: Alex G. <al...@al...> - 2011-09-20 02:45:08
|
On 20/09/2011 1:26 AM, Dave Hylands wrote: > Hi Alex, > >> >> >> is it possible to have the boot console go out on more than one serial >> port simultaneously ? >> >> say usbconsole and another - ttyO2 and ttyO1 > > In theory, yes (I haven't actually tried this). > > You basically need to register a second console device. It looks like > you might be able to add a second conolse= line > > This is the function called when you use console= > http://lxr.linux.no/linux+v3.0.4/kernel/printk.c#L1059 > Been playing with this most of the morning and no luck so far. What we wanted to do was try and have the boot console be fully available/accessible on both ttyO0 and ttyO2. For now just switching to using ttyO0. Changed uboot to console ttyO0,115200n8 It will output the linux kernel messages on ttyO0 but not the root console. Been looking through overo.c ,overo.h,board-overo.c etc and what do I need to change to move the root console (during boot and normal ops ) to ttyO0 ? (changing it just in uboot only redirects kernel messages) Thank you Alex |
From: Dave H. <dhy...@gm...> - 2011-09-20 05:23:59
|
Hi Alex, On Mon, Sep 19, 2011 at 7:44 PM, Alex Gibson <al...@al...> wrote: > On 20/09/2011 1:26 AM, Dave Hylands wrote: >> Hi Alex, >> >>> >>> >>> is it possible to have the boot console go out on more than one serial >>> port simultaneously ? >>> >>> say usbconsole and another - ttyO2 and ttyO1 >> >> In theory, yes (I haven't actually tried this). >> >> You basically need to register a second console device. It looks like >> you might be able to add a second conolse= line >> >> This is the function called when you use console= >> http://lxr.linux.no/linux+v3.0.4/kernel/printk.c#L1059 >> > > Been playing with this most of the morning and no luck so far. > > What we wanted to do was try and have the boot console be fully > available/accessible on both ttyO0 and ttyO2. > > > > For now just switching to using ttyO0. > Changed uboot to console ttyO0,115200n8 > It will output the linux kernel messages on ttyO0 but not > the root console. > > Been looking through overo.c ,overo.h,board-overo.c etc > and what do I need to change to move the root console (during boot and > normal ops ) to ttyO0 ? > (changing it just in uboot only redirects kernel messages) Yeah - the init process sends its output to its stdout, which by default is the last registered console. The login prompt occurs on the serial port inidicated in the /etc/inittab file. This may be something like this: ttyS0::askfirst:/bin/sh --login or perhaps an invocation of getty. The initab I have for my overo (quite old) has: 1:2345:respawn:/sbin/getty 38400 tty1 The 1 at the beginning needs to match the 1 in tty1. -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com |
From: Alex G. <al...@al...> - 2011-09-20 08:14:04
|
On 20/09/2011 3:23 PM, Dave Hylands wrote: > Hi Alex, > > > The login prompt occurs on the serial port inidicated in the /etc/inittab file. > > This may be something like this: > ttyS0::askfirst:/bin/sh --login > > or perhaps an invocation of getty. The initab I have for my overo > (quite old) has: > > 1:2345:respawn:/sbin/getty 38400 tty1 > > The 1 at the beginning needs to match the 1 in tty1. > Great thank you. 1:2345:respawn:/sbin/getty 115200 ttyO2 is the current default So editing the one at ~/overo/tmp/rootfs/image_name/etc/inittab will set it for that image . Great. Once I get it working I'll put it up on the wiki Thanks Alex |
From: Alex G. <al...@al...> - 2011-09-20 10:42:40
|
On 20/09/2011 6:13 PM, Alex Gibson wrote: > On 20/09/2011 3:23 PM, Dave Hylands wrote: >> Hi Alex, >> > >> >> The login prompt occurs on the serial port inidicated in the /etc/inittab file. >> >> This may be something like this: >> ttyS0::askfirst:/bin/sh --login >> >> or perhaps an invocation of getty. The initab I have for my overo >> (quite old) has: >> >> 1:2345:respawn:/sbin/getty 38400 tty1 >> >> The 1 at the beginning needs to match the 1 in tty1. >> > > Great thank you. > > 1:2345:respawn:/sbin/getty 115200 ttyO2 > is the current default > > > > So editing the one at ~/overo/tmp/rootfs/image_name/etc/inittab > will set it for that image . Great. > > Once I get it working I'll put it up on the wiki > > Thanks > I must be doing something dumb as still can't get xload or uboot to display on /dev/ttyO0 , still displaying on /dev/ttyO2 What I've done so far (on a running board) change uboot console setting to setenv console ttyO0,115200 saveenv boot modified inittab O0:2345:respawn:/sbin/getty 115200 ttyO0 |
From: Dave H. <dhy...@gm...> - 2011-09-20 15:36:14
|
Hi Alex, On Tue, Sep 20, 2011 at 3:42 AM, Alex Gibson <al...@al...> wrote: ...snip... > I must be doing something dumb as still can't get xload or uboot to > display on /dev/ttyO0 , still displaying on /dev/ttyO2 oops. OK - There are actually a bunch of different phases. /etc/inittab just covers one. Xload - not familiar with - I assume it would need to be recompiled uboot - hard coded - needs to be recompiled kernel init - outputs to all consoles registered user-mode init - stdout of init process - last console registered login - covered by /etc/inittab For uboot, I found some emails that describe what needs to be done: http://old.nabble.com/-U-Boot--Trying-to-redirect-console-in-Gumstix-Overo-td28708471.html >From taking a quick look at the xloader source code, it seems to require some similar configuration settings in order to get it to change the serial console. It seems to use a directory structure and configuration similar to uboot. It's drivers/serial.c also used CONFIG_CONS_INDEX. You'll need to double check the muxes as well (which seem to be defined in board/overo/overo.c) -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com |