[meta-freescale] imx6q: Startup script output not shown on serial console

Gary Thomas gary at mlbassoc.com
Thu Jul 9 04:22:02 PDT 2015


On 2015-07-09 04:37, Prasant J wrote:
> On Mon, Jun 8, 2015 at 7:44 PM, Prasant J <pj0585 at gmail.com> wrote:
>> On Mon, Jun 8, 2015 at 5:40 PM, Daiane Angolini <daiane.list at gmail.com> wrote:
>>> On Mon, Jun 8, 2015 at 5:57 AM, Prasant J <pj0585 at gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I have built the freescale linux image (for my custom board using
>>>> iMX6Q) fsl_L.3.14.28-1.0.0_ga. While building I added few more
>>>> packages like rpm, opkg, e2fsprogs, etc.
>>>>
>>>> The startup scripts do not show std output on the serial console
>>>> (ttymxc0). The output is likely redirected to /dev/null. They only sow
>>>> errors. Which setting (file) has to be modified to get the output on
>>>> the serial console?
>>>
>>> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm/tree/conf/machine/include/imx6sabresd-common.inc#n6
>>>
>>> Take a look in the difference between file imx6sabresd-common.inc and
>>> imx6sabreauto-common.inc
>>>
>>> Maybe it can help you
>>>
>>
>> Thanks Daiane for your inputs!
>>
>> The link you pasted indicates that correct serial port must be specified.
>>
>> I have ensured that correct serial port is set (/etc/inittab) . I can
>> see the errors but I cannot see the stdout.
>> I think there is a setting for verbosity, which is set to quiet. I'm
>> not sure though.
>>
>> FYI: I also have installed procps package.
>>
>> I modified the file /etc/init.d/bootmisc.sh:
>> original line:  eval /sbin/sysctl -p "${SYSCTL_CONF}" $VERBOSE_REDIR
>> edited line:    eval /sbin/sysctl -p "${SYSCTL_CONF}"
>> (VERBOSE_REDIR is set to "1>/dev/null")
>>
>> After the above modification, I can see script stdout while system
>> reboot or shutdown, but I cannot see the same during system startup.
>>
>>
>
> I have built the yocto image again (fsl_L.3.14.28-1.0.0_ga) (framebuffer)
>
>
> I verified the file:
> fsl-L3.14.28-1.0.0_ga/fsl-release-bsp/sources/meta-fsl-arm/conf/machine/include/imx6sabresd-common.inc
> correct console device and baud rate is selected (ttymxc0).
>
>
> I have installed extra packages by adding the following line to conf/local.conf:
> CORE_IMAGE_EXTRA_INSTALL += " rpm opkg freetype createrepo
> libsocketcan ntp parted cairo curl python-pycurl expat harfbuzz htop
> pixman tslib e2fsprogs fontconfig pango glib-2.0 opkg-utils sqlite3
> python-pysqlite libcurl bzip2 dropbear python-smartpm tzdata
> python-debugger python-difflib python-sqlite3 connman connman-client
> e2fsprogs-tune2fs lsof msmtp iptables "
>
>
> I do not see the init scripts log on the serial console (during
> startup). There is no issue with console configuration as the init
> scripts show log during shutdown/reboot.
>
>
>
> If I run "ps eax", I see the following (partial output shown here):
>
>   1424 ?        Ss     0:00 /lib/udev/udevd -d CONSOLE=/dev/null
> display_lvds0= display_lvds1= SHELL=/bin/sh TERM=linux prevlevel=N
> INIT_VERSION=sysvinit-2.88 PATH=/sbin:/bin:/usr/sbin:/usr/bin
> ACTION=add runlevel=S RUNLEVEL=S PWD=/ VERBOSE=very TZ=/etc/localtime
> PREVLEVEL=N previous=N SHLVL=2 HOME=/ _=/lib/udev/udevd
>   1509 ?        S      0:00 /lib/udev/udevd -d CONSOLE=/dev/null
> display_lvds0= display_lvds1= SHELL=/bin/sh TERM=linux prevlevel=N
> INIT_VERSION=sysvinit-2.88 PATH=/sbin:/bin:/usr/sbin:/usr/bin
> ACTION=add runlevel=S RUNLEVEL=S PWD=/ VERBOSE=very TZ=/etc/localtime
> PREVLEVEL=N previous=N SHLVL=2 HOME=/ _=/lib/udev/udevd
>   1510 ?        S      0:00 /lib/udev/udevd -d CONSOLE=/dev/null
> display_lvds0= display_lvds1= SHELL=/bin/sh TERM=linux prevlevel=N
> INIT_VERSION=sysvinit-2.88 PATH=/sbin:/bin:/usr/sbin:/usr/bin
> ACTION=add runlevel=S RUNLEVEL=S PWD=/ VERBOSE=very TZ=/etc/localtime
> PREVLEVEL=N previous=N SHLVL=2 HOME=/ _=/lib/udev/udevd
>   1973 ?        Ss     0:00 /usr/bin/eGTouchD CONSOLE=/dev/null
> display_lvds0= display_lvds1= TERM=linux SHELL=/bin/sh
> INIT_VERSION=sysvinit-2.88
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> RUNLEVEL=5 runlevel=5 PWD=/ VERBOSE=very PREVLEVEL=N previous=N HOME=/
> SHLVL=2 _=/usr/bin/eGTouchD
>   1983 ?        Ss     0:00 /usr/bin/dbus-daemon --system
> CONSOLE=/dev/null display_lvds0= display_lvds1= TERM=linux
> SHELL=/bin/sh INIT_VERSION=sysvinit-2.88
> PATH=/sbin:/usr/sbin:/bin:/usr/bin RUNLEVEL=5 runlevel=5 PWD=/
> VERBOSE=very PREVLEVEL=N previous=N HOME=/ SHLVL=2
> _=/sbin/start-stop-daemon
>   1989 ?        Ss     0:00 /usr/sbin/connmand CONSOLE=/dev/null
> display_lvds0= display_lvds1= TERM=linux SHELL=/bin/sh
> INIT_VERSION=sysvinit-2.88 PATH=/sbin:/usr/sbin:/bin:/usr/bin
> RUNLEVEL=5 runlevel=5 PWD=/ VERBOSE=very PREVLEVEL=N previous=N HOME=/
> SHLVL=2 _=/usr/sbin/connmand
>
>
>
> I edit the file: /etc/init.d/rc and exported CONSOLE=/dev/ttymxc0.
> When I reboot the system and re-run "ps eax" I can see the CONSOLE env
> getting correctly updated. But still no output on the serial log.
>
>
> Any inputs what may be going wrong?
>
> I'm kind of stuck here. Any information might be of help to me.
>
>
> Regards, Pj
>

What is your boot command line?
   # cat /proc/cmdline

It should be something that contains 'console=ttymxc0'

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


More information about the meta-freescale mailing list