AnsweredAssumed Answered

How to Change console serial port before making an image

Question asked by Jonas Nyberg on May 28, 2017
Latest reply on May 29, 2017 by Jonas Nyberg

Hi all,


I'm quite new to building my own linux images with Yocto and has come so far to almost boot my custom image.

I'm using the Argon i.mx6ul board which have it's serial output on Uart 3 instead of what it seems to be a default of Uart 1 when building an image from scratch.


I've tried to change the line "mxc0:12345:respawn:/sbin/getty -L 115200 ttymc0" in the "inittab" file in my build/tmp/work folder to mxc2, ttymc2 and force a rebuild, but with no success. I can see that the .sdcard file is rebuilt but when I look at the contents in the associated tar-archive I see no change. Still the default mxc0.


Can somebody help me on how to change this so that it will be included in the builds (preferable permanent change)?

I have had a look at the meta-bsp/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend file, where I see a SERIAL_CONSOLES variable etc. but can't find where it is defined and how to change it?


I've also tried to add a SERIAL_CONSOLE line with ttymc2 to my Machine file but with no success.

Are there any other conf files for the sysvinit-inittab recipe?


I'm stuck now when booting my device at some point saying applying local.conf something... and after that it says
INIT: Id "mxc0" respawning too fast: disabled for 5 minutes, in an infinite loop.

I can see all the text up to that point in the terminal after telling u-boot to boot my image.


Thanks in advance,