Hi Guillermo,

On Monday 05 May 2014 14:43:01 Guillermo Rodriguez Garcia wrote:
> Thank you for your answer.

You are welcome.

> 2014-05-05 10:01 GMT+02:00 Juergen Borleis <[email protected]>:
> > On Friday 02 May 2014 09:52:14 Guillermo Rodriguez wrote:
> > > I need to use serial port 0 for my application and thus I wanted to
> > > avoid the kernel from using ttySAC0 as a console.
> > >
> > > In barebox I edited /env/config and replaced console=ttySAC0,115200
> > > with console=null in bootargs.
> > >
> > > The system starts to boot OK but at some point it seems to stop. I try
> > > to connect via telnet but it seems that telnetd was never started.
> > >
> > > If I set console=ttySAC1 or console=ttySAC2 instead all works fine. But
> > > somehow it doesn't like console=null
> > >
> > > Any hints on what may be happening? Is there something in the boot/init
> > > process that expects a non-null console setting?
> >
> > Did you try with "console=" instead as well?
>
> Yes, I had tried both console=null and console= and got the same results.

Okay.

> > And did you also disable the login?
>
> I just found out that the problem is fixed by modifying the standard
> /etc/inittab file in ${PTXDIST}/projectroot. I just removed the "console"
>
> id from the sysinit and respawn lines and left the id field empty:
> ::sysinit:/etc/init.d/rcS
> ::respawn:/sbin/getty -L 115200 ttySAC0 vt100
>
> (of course this still starts a shell on ttySAC0 but that's expected)

But you should not modify the inittab file from the PTXdist installation. Copy 
the (changed) file you want to use to your local BSP directory 
to "projectroot/etc/inittab". PTXdist will prefer this local file instead of 
the global one.

> Not sure why this makes a difference (according to the comments in the
> example inittab file from Busybox [1] I would interpret that leaving it
> empty would be equivalent to specifying "console"), but now it works both
> with the default bootargs (console=ttySAC0,115200) and with console=null
> (or just "console=").

Strange.

> Since the standard inittab example from Busybox also leaves the id field
> empty for the sysinit line and for the login shell on the default console,
> you may want to do the same in ptxdist.

Needs some more tests and code review to change it in PTXdist. But we should 
keep it in mind. Thanks for this information.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

Reply via email to