[meta-freescale] [RFT][PATCH 0/3] Vybrid Tower support - kernel issue

Andy Voltz andy.voltz at timesys.com
Thu Jun 13 08:25:59 PDT 2013


This series adds a new machine twr-vf65gs10 based on Timesys github kernel &
u-boot for vybrid.

I believe this would be ready to merge except for this kernel bug:

Basically, when the kernel runs init, the console locks up and the target
stops responding shortly thereafter. I believe I have narrowed this issue
to the serial device driver:
drivers/tty/serial/mvf.c

This issue does not occur with busybox init, but always with sysvinit. If you
include an ssh server on the target, and omit the console argument from the 
command line, the system keeps running / behaving normally.

If you override init to use the shell, that also works. 

It seems that removing these lines in sysvinit allow the console & target to
keep working:

sysvinit/src/init.c:
@@ -2574,10 +2574,10 @@
        int fd;
 
        /* Close whatever files are open, and reset the console. */
-       close(0);
-       close(1);
-       close(2);
        console_stty();
        setsid();
</snip>

Also, if I stub out the shutdown function in mvf.c, and setup a static
variable to ensure that startup is only run once then the system will not hang;
the console is still lost, but I can ssh into it.

That's pretty much what I know at this point.

Thanks for any comments, testing, or suggestions on this.




More information about the meta-freescale mailing list