From: handika H. <ha...@ho...> - 2005-04-02 22:59:23
|
Hi Florian, Btw, which one did you use to remove the login prompt? Is it this one: commenting this line --> ::respawn:/sbin/getty -L ttyS0 115200 vt100 If it is then when I tried this, I ended up having a frozen "Starting Rendezvous" The other one that Craig suggested work: ::respawn:/bin/sh However, the moment I put the gumstix to silent, it froze again. I then tried his new suggestion which is this: /dev/ttyS0::respawn:/bin/sh This method did not provide much help. How will the AVR uses the ttyS0 though? Can the gumstix still send stuff to the AVR? And can the AVR send stuff over to the gumstix? Handika >From: Florian Loitsch <gu...@fl...> >Reply-To: gum...@li... >To: gum...@li... >Subject: Re: [Gumstix-users] Problem with Gumstix and AVR >Date: Sun, 3 Apr 2005 00:45:26 +0200 > >On Sunday 03 April 2005 00:30, handika Handoko wrote: > > Froze as in when I type anything on the keyboard, it doesn't respond to > > anything. The boot finished and after the boot, I don't get any shell, >just > > a blinking cursor and I can't run anything. >that's what it is supposed to do. This way your program can use ttyS0. >Don't know why Craig's suggestion didn't work (to give you directly a >shell). >If I have the time tomorrow... > > > How did you actually remove your login and made it execute a program? >Can > > you give the details in this mailing list? >For now I just logged in using bluetooth or usb. Once my program is ready >I'll >use the run-levels (etc/init.d and all this stuff) to automatically start >the >main-program. >a quick google came up with the following site: >http://www.networkclue.com/os/Linux/run-levels.php >(I haven't verified if Gumstix uses the same layout, but it should be >close.) >// florian > > > > Handika > > > > >From: Florian Loitsch <gu...@fl...> > > >Reply-To: gum...@li... > > >To: gum...@li... > > >Subject: Re: [Gumstix-users] Problem with Gumstix and AVR > > >Date: Sun, 3 Apr 2005 00:25:39 +0200 > > > > > >On Sunday 03 April 2005 00:07, handika Handoko wrote: > > > > Hi Florian, > > > > > > > > I have changed the baud rate of both the AVR and Gumstix to 38400 >which > > > > > >is > > > > > > > the maximum that the AVR can handle. I have tried to remove the >login > > > > prompt and made the bootup silent but it always ended up in a >failure. > > > > > >My > > > > > > > first attempt ended up in a frozen "Starting Rendezvous" screen >while > > > > my second attempt by incorporating Craig's suggestion succeded. > > > > However, > > > > > >when > > > > > > > I tried to combine both the silencing feature and the login removal > > > > feature, the gumstix froze again. > > > > > >what do you mean with "froze"? you can't connect with bluetooth? or >usb? > > >Normally the boot should finish, but the ttyS0 should stay silent (ie >no > > >characters at all. especially no shell). I've removed the login several > > >times, and never had any problems. > > > > > > > I sent an email to this mailing list and > > > > Craig sent another suggestion. I tried that and the gumstix still >froze > > > > with the combination of the silencing feature and the login removal > > > > feature. > > > > > >I've read that (didn't link the mails until now). If I have the time, >I'll > > >try > > >his suggestion, and see what goes wrong. > > > > > >To answer you question: if both are at 38400 you should definitely have >a > > >look > > >at the "PXA serial" and see if any of your sent characters are received >by > > >the gumstix. If you don't have bluetooth or usb, this would need some > > >trickery though... > > > > > >Do you know, if your gumstix receives "login:" or "password:"? (maybe >turn > > >on > > >an IO of the AVR). > > >// florian > > > > > > > Handika > > > > > > > > >From: Florian Loitsch <gu...@fl...> > > > > >Reply-To: gum...@li... > > > > >To: gum...@li... > > > > >Subject: Re: [Gumstix-users] Problem with Gumstix and AVR > > > > >Date: Sat, 2 Apr 2005 23:50:21 +0200 > > > > > > > > > >be sure to set the correct speed too. by default ttyS0 is at > > > > > 115200bps. I don't remember, if the AVRs can handle this speed, >and > > > > > if not, I > > > > > >would > > > > > > > >suggest opening the serial port from within a program you start at > > > > > boot (this > > > > >has several other advantages too: no need for username/password; >the > > > > >gumstix > > > > >triggers the connection, and you don't need to go over the shell -> > > > > > you can send control-characters more easily). In the latter case >you > > > > > would need to remove the login-prompt though as the login-prompt > > > > > would > > > > > >capture > > > > > > > > ttyS0. (see > > > > >Tips & Tricks of the Wiki). > > > > >Finally: the TroubleShooting page > > > > > >(http://www.gumstix.org/tikiwiki/tiki-index.php?page=TroubleShooting) > > > > > >has > > > > > > > > a section on Serial-ports too (in particulary the "PXA serial" >could > > > > > >be > > > > > > > > useful > > > > >here). > > > > >// florian loitsch > > > > > > > > > >On Saturday 02 April 2005 21:47, David I S Mandala wrote: > > > > > > Are you watching for the prompts to change? You should wait for >the > > > > > > login prompt, send the user name, then wait for the password >prompt > > > > > >and > > > > > > > > > then send the password name. > > > > > > > > > > > > On Sat, 2005-04-02 at 10:12 -0800, handika Handoko wrote: > > > > > > > Hi all, > > > > > > > > > > > > > > I made a simple program for my AVR microcontroller to >interface > > > > > >with > > > > > > > >the > > > > > > > > > > > > Gumstix via ttyS0 so that all the Gumstix has to do is output > > > > > > > > > >characters > > > > > > > > > > > > into a LCD screen that I have already connected to the AVR > > > > > > > microcontroller. > > > > > > > > > > > > > > The problem is I can't seem to send anything from my AVR to >the > > > > > > > > > >Gumstix. > > > > > > > > > > > > Like when you first boot-up Gumstix, you would need to insert > > > > > > > your > > > > > > > > > >login > > > > > > > > > > > > id and your password, I believe my code is correct and I have > > > > > >tested > > > > > > > >it > > > > > > > > > > > > using hyperterm, i.e., the AVR spits out the login id and the > > > > > > > password > > > > > > > > > >to > > > > > > > > > > > > my hyperterm. I am using the 'puts' function to send the >string > > > > > > > to the Gumstix. Any clue on what went wrong? > > > > > > > > > > > > > > Handika > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > SF email is sponsored by - The IT Product Guide > > > > > > > Read honest & candid reviews on hundreds of IT Products from >real > > > > > > > > > >users. > > > > > > > > > > > > Discover which products truly live up to the hype. Start >reading > > > > > >now. > > > > > > > > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > > > > > _______________________________________________ > > > > > > > gumstix-users mailing list > > > > > > > gum...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > > > >-- > > > > >This function will terminate, if run infinitely. > > > > > void f() { while (random() != 0); } > > > > > > > > > > > > > > >------------------------------------------------------- > > > > >SF email is sponsored by - The IT Product Guide > > > > >Read honest & candid reviews on hundreds of IT Products from real > > > > > >users. > > > > > > > >Discover which products truly live up to the hype. Start reading >now. > > > > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > > >_______________________________________________ > > > > >gumstix-users mailing list > > > > >gum...@li... > > > > >https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > > ------------------------------------------------------- > > > > SF email is sponsored by - The IT Product Guide > > > > Read honest & candid reviews on hundreds of IT Products from real > > > > users. Discover which products truly live up to the hype. Start >reading > > > > now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > > _______________________________________________ > > > > gumstix-users mailing list > > > > gum...@li... > > > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > >-- > > >This function will terminate, if run infinitely. > > > void f() { while (random() != 0); } > > > > > > > > >------------------------------------------------------- > > >SF email is sponsored by - The IT Product Guide > > >Read honest & candid reviews on hundreds of IT Products from real >users. > > >Discover which products truly live up to the hype. Start reading now. > > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > >_______________________________________________ > > >gumstix-users mailing list > > >gum...@li... > > >https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > >-- >This function will terminate, if run infinitely. > void f() { while (random() != 0); } > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >gumstix-users mailing list >gum...@li... >https://lists.sourceforge.net/lists/listinfo/gumstix-users |