koen, fathi, riku,

i am having issues with auto-serial-console that was initially done by marcin.

https://git.linaro.org/gitweb?p=openembedded/meta-linaro.git;a=tree;f=meta-linaro/recipes-linaro/auto-serial-console;hb=master

the main issue is that it conflicts with BSP layer that uses
SERIAL_CONSOLE variable. It is very much expected for a BSP layer to
set SERIAL_CONSOLE variable. In which case OE will automatically start
a serial console

http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb

So when using auto-serial-console with a 'proper' BSP layer that set
SERIAL_CONSOLE(S) we end up with starting the console twice, one added
by OE, one by auto-serial-console. So far, all our OE builds are not
using a proper BSP layer, so that's why you don't see the problem, but
for our builds we use proper BSP layer...

right now, auto-serial-console does 3 things:

 1- figure out the serial console port from /proc/cmdline
 2- start a console on #1
 3- automatically login as root

I believe that we should 'do something' to split them into several
packages so that we get more granularity. At least #3 needs to be
separated out, as #3 is a 'policy'.

I would almost expect that 'being able to automatically login as root
on the console' is a feature that could (should?) be added to oe-core
somehow. What do you think koen? I looked into that, but there isn't
any obvious (and trivial) way to do that, but it's certainly doable
inside an IMAGE_FEATURE for example.

this email is just to start the discussion and get some advices, e.g.
i am not asking you to do it ;-) i can work on it, but want to make
sure i do it right, with an 'upstream' path if possible.

thx

nico

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to