From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 38BD9E00A16; Thu, 9 Jul 2015 04:21:59 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.chez-thomas.org (mail.mlbassoc.com [65.100.170.105]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D44D3E00A1C for ; Thu, 9 Jul 2015 04:21:53 -0700 (PDT) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id BA332F811DB; Thu, 9 Jul 2015 05:21:50 -0600 (MDT) Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id 35339F811DA; Thu, 9 Jul 2015 05:21:50 -0600 (MDT) Message-ID: <559E595A.7080902@mlbassoc.com> Date: Thu, 09 Jul 2015 05:22:02 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: In-Reply-To: Subject: Re: imx6q: Startup script output not shown on serial console X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2015 11:21:59 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 2015-07-09 04:37, Prasant J wrote: > On Mon, Jun 8, 2015 at 7:44 PM, Prasant J wrote: >> On Mon, Jun 8, 2015 at 5:40 PM, Daiane Angolini wrote: >>> On Mon, Jun 8, 2015 at 5:57 AM, Prasant J 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 ------------------------------------------------------------