All of lore.kernel.org
 help / color / mirror / Atom feed
* imx6q: Startup script output not shown on serial console
@ 2015-06-08  8:57 Prasant J
  2015-06-08 12:10 ` Daiane Angolini
  0 siblings, 1 reply; 9+ messages in thread
From: Prasant J @ 2015-06-08  8:57 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

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?

Any inputs will be of help.


Regards, Pj


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  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
  0 siblings, 1 reply; 9+ messages in thread
From: Daiane Angolini @ 2015-06-08 12:10 UTC (permalink / raw)
  To: Prasant J; +Cc: meta-freescale@yoctoproject.org

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

Daiane
>
> Any inputs will be of help.
>
>
> Regards, Pj
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  2015-06-08 12:10 ` Daiane Angolini
@ 2015-06-08 14:14   ` Prasant J
  2015-07-09 10:37     ` Prasant J
  0 siblings, 1 reply; 9+ messages in thread
From: Prasant J @ 2015-06-08 14:14 UTC (permalink / raw)
  To: Daiane Angolini; +Cc: meta-freescale@yoctoproject.org

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.


Any idea what am I missing?


Regards, Pj


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  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
  0 siblings, 2 replies; 9+ messages in thread
From: Prasant J @ 2015-07-09 10:37 UTC (permalink / raw)
  To: Daiane Angolini; +Cc: meta-freescale@yoctoproject.org

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  2015-07-09 10:37     ` Prasant J
@ 2015-07-09 11:21       ` Prasant J
  2015-07-09 11:22       ` Gary Thomas
  1 sibling, 0 replies; 9+ messages in thread
From: Prasant J @ 2015-07-09 11:21 UTC (permalink / raw)
  To: Daiane Angolini; +Cc: meta-freescale@yoctoproject.org

On Thu, Jul 9, 2015 at 4:07 PM, Prasant J <pj0585@gmail.com> 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


I forgot to add one important point: I'm still using old linux kernel 3.0.35+.
But I'm hoping that should not create this problem.


Regards, Pj


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  2015-07-09 10:37     ` Prasant J
  2015-07-09 11:21       ` Prasant J
@ 2015-07-09 11:22       ` Gary Thomas
  2015-07-09 12:51         ` Prasant J
  1 sibling, 1 reply; 9+ messages in thread
From: Gary Thomas @ 2015-07-09 11:22 UTC (permalink / raw)
  To: meta-freescale

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
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  2015-07-09 11:22       ` Gary Thomas
@ 2015-07-09 12:51         ` Prasant J
  2015-07-09 13:07           ` Gary Thomas
  0 siblings, 1 reply; 9+ messages in thread
From: Prasant J @ 2015-07-09 12:51 UTC (permalink / raw)
  To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org

On Thu, Jul 9, 2015 at 4:52 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> 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, console is set to "ttymxc0,57600' . I can see in the cat /proc/cmdline.

Regards, Pj


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  2015-07-09 12:51         ` Prasant J
@ 2015-07-09 13:07           ` Gary Thomas
  2015-07-09 13:54             ` Prasant J
  0 siblings, 1 reply; 9+ messages in thread
From: Gary Thomas @ 2015-07-09 13:07 UTC (permalink / raw)
  To: Prasant J; +Cc: meta-freescale@yoctoproject.org

On 2015-07-09 06:51, Prasant J wrote:
> On Thu, Jul 9, 2015 at 4:52 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> 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, console is set to "ttymxc0,57600' . I can see in the cat /proc/cmdline.

Are you really running the console at 57600 baud?  The default
is normally 115200.  What's in your /etc/inittab?  e.g. send
the output from this command:

   # grep mxc0 /etc/inittab
    mxc0:12345:respawn:/sbin/getty -L 115200 ttymxc0


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imx6q: Startup script output not shown on serial console
  2015-07-09 13:07           ` Gary Thomas
@ 2015-07-09 13:54             ` Prasant J
  0 siblings, 0 replies; 9+ messages in thread
From: Prasant J @ 2015-07-09 13:54 UTC (permalink / raw)
  To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org

On Thu, Jul 9, 2015 at 6:37 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2015-07-09 06:51, Prasant J wrote:
>>
>> On Thu, Jul 9, 2015 at 4:52 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>
>>> 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, console is set to "ttymxc0,57600' . I can see in the cat
>> /proc/cmdline.
>
>
> Are you really running the console at 57600 baud?  The default
> is normally 115200.  What's in your /etc/inittab?  e.g. send
> the output from this command:
>
>   # grep mxc0 /etc/inittab
>    mxc0:12345:respawn:/sbin/getty -L 115200 ttymxc0
>

Yes, I'm using baud rate of 57600.
/etc/inittab is also updated.

I think I may have found the problem. I'm not sure though.

udev is not creating /dev/stdout & /dev/stderr links.
It creates /dev/stdin link file.

I don't know how to fix this. I manually created the links but it does
not solve the problem.

Any ideas?

regards, Pj


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-09 13:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-07-09 12:51         ` Prasant J
2015-07-09 13:07           ` Gary Thomas
2015-07-09 13:54             ` Prasant J

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.