From: Gary Thomas <gary@mlbassoc.com>
To: meta-freescale@yoctoproject.org
Subject: Re: imx6q: Startup script output not shown on serial console
Date: Thu, 09 Jul 2015 05:22:02 -0600 [thread overview]
Message-ID: <559E595A.7080902@mlbassoc.com> (raw)
In-Reply-To: <CAA2DH4vTuDXaZhdUCcNkU4PF=okqapMntSHgUZ=WBHei2wFg3g@mail.gmail.com>
On 2015-07-09 04:37, Prasant J wrote:
> On Mon, Jun 8, 2015 at 7:44 PM, Prasant J <pj0585@gmail.com> wrote:
>> On Mon, Jun 8, 2015 at 5:40 PM, Daiane Angolini <daiane.list@gmail.com> wrote:
>>> On Mon, Jun 8, 2015 at 5:57 AM, Prasant J <pj0585@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
------------------------------------------------------------
next prev parent reply other threads:[~2015-07-09 11:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 8:57 imx6q: Startup script output not shown on serial console Prasant J
2015-06-08 12:10 ` Daiane Angolini
2015-06-08 14:14 ` Prasant J
2015-07-09 10:37 ` Prasant J
2015-07-09 11:21 ` Prasant J
2015-07-09 11:22 ` Gary Thomas [this message]
2015-07-09 12:51 ` Prasant J
2015-07-09 13:07 ` Gary Thomas
2015-07-09 13:54 ` Prasant J
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=559E595A.7080902@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.