This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Booting of Yocto mcsdk-03.00.04.18 image (tisdk-server-rootfs-image) fails

I am following the instructions given in http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring#Yocto to build Linux kernel, device tree, root filesystem etc. and I am using the layer configuration file mcsdk-03.00.04.18.txt.

The bitbake build completes without erros but the EVM (K2EVM-HK) does not boot up correctly. The u-boot is configured to load the files through TFTP and the rootfs is accessed via NFS. 

The kernel boot log prints out the following messages:

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.10.10 (jenkins@KuvioBuild) (gcc version 4.7.3 201
30226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC
2013.03) ) #1 SMP Wed Feb 26 09:39:31 EET 2014
[ 0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c7387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine: KeyStone2, model: Texas Instruments Keystone 2 SoC
[ 0.000000] switching to high address space at 0x800000000
[ 0.000000] cma: CMA: reserved 16 MiB at 2e800000
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical
_map
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c1469000 s12032 r8192 d12544 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag
es: 391696
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootwait=1 rootfstype
=nfs root=/dev/nfs rw nfsroot=192.168.2.50:/var/lib/jenkins/nfshost,v3,tcp,rsize
=4096,wsize=4096 ip=dhcp

... a bunch of other printouts here ...

[ 130.366422] VFS: Mounted root (nfs filesystem) on device 0:11.
[ 130.372326] Freeing unused kernel memory: 328K (c077b000 - c07cd000)
INIT: version 2.88 booting
Starting udev
Missing devtmpfs, which is required for udev to run
Halting...
INIT: Switching to runlevel: 0
INIT: SendiStopping Dropbear SSH server: no /usr/sbin/dropbear found; none kille
d
Stopping mpmsrv daemon.
Stopping softhsm daemon.
Stopping telnet daemon.
#>>>>> LCD 12
IP Address:
192.168.2.126
Stopping tiipclad daemon.
Stopping system message bus: Stopping thttpd.
NOT deconfiguring network interfaces: / is an NFS mount
Stopping Lighttpd Web Server: no /usr/sbin/lighttpd found; none killed
lighttpd.
* stopping FTP Server: vsftpd... no /usr/sbin/vsftpd found; none killed
Stopping syslog-ng:.
***************************************************************
***************************************************************
NOTICE: This file system contains the followin GPLv3 packages:
autoconf
binutils-symlinks
binutils
coreutils
cpp-symlinks
cpp
g++-symlinks
g++
gcc-symlinks
gcc
gdb
gdbserver
libgmp10
libmpfr4
m4
make

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
[ 140.504344] System halted.

Any idea what's wrong with the setup? Everything should be built according to instructions without any custom modifications. Do I need to flash the u-boot stuff which was built with mcsdk-03.00.04.18.txt?

Regards,

Marko

  • Some additional info:

    • Flashing the latest U-boot did not help (the one built with mcsdk-03.00.04.18)
    • configuration file mcsdk-03.00.04.18-config.txt has one layer whose version is not fixed but it uses whatever is on top of that repository. Not sure if this has anything to do with the issue I am seeing.
      • meta-mcsdk,git://arago-project.org/git/projects/meta-mcsdk.git,master,HEAD,layers=

    Marko

  • Hi Marko,

    1. Have you tried booting using pre-built kernel image with NFS?

    2. Please attach the complete boot log to review.

    Thanks.

  • Thanks for the reply. It seems that we had some issues with our TFTP server. There was no indication of any problems but after I booted the host machine and restarted the TFTP server the loading of tisdk image was successful.

    regards,

    Marko

  • Hi Marko,

     

                     I am also facing same issue with newly built Uimage(kernel), System is halting with message(below). If I am using prebuilt images it is booting properly. Only modification which I have done in new kernel code is just added one printf statement for debugging purpose. Can you please come back with proper solution as soon as possible.

     

    For your reference I am adding boot logs. PFA.

     

    Starting udev
    Missing devtmpfs, which is required for udev to run
    Halting...
    INIT: Sending pStopping telnet daemon.
    Stopping syslogd/klogd: no syslogd found; none killed
    Stopping thttpd.
    Deconfiguring network interfaces... ifdown: interface lo not configured
    ifdown: interface eth0 not configured
    done.
    Sending all processes the TERM signal...
    Sending all processes the KILL signal...
    Unmounting remote filesystems...
    Deactivating swap...
    Unmounting local filesystems...
    [ 11.174486] System halted.

    Thank & Regards,

    Narendra Kumar Chepuri.

     

  • Looking at the messages you are getting during boot I would guess you are missing the DEVTMPS settings from your kernel. The kernel defconfig should have something like this:

    CONFIG_DEVTMPFS=y
    CONFIG_DEVTMPFS_MOUNT=y

    After enabling the above settings you have to build the kernel and probably the related rootfs also.

    Marko

  • Hi Marko,

    Both flags which you suggested to enable are already enabled in a way you mentioned

    CONFIG_DEVTMPFS=y
    CONFIG_DEVTMPFS_MOUNT=y

     I am following one PDF for building Kernel, there they have not mentioned any thing related to building file system.

     Can you help in building a file system specific to "K2_LINUX_03.08.04_13.09_01"  which I got it from "http://arago-project.org/git/projects/?p=linux-keystone.git". I am attaching the pdf I followed for building kernel. PFA for your reference. I searched in internet for building file system related to specific kernel but I haven't got any information related to that. Any suggestions from your side will be helpful for proceeding further.

    Note:

    Building steps are there in

    "https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCMQFjAB&url=http%3A%2F%2Fwww.deyisupport.com%2Fcfs-file.ashx%2F__key%2Ftelligent-evolution-components-attachments%2F00-53-00-00-00-02-38-12%2FBuild-and-Run-U_2D00_boot-and-Linux-Kernel-on-TCI6638-EVM.pdf&ei=IKkiVL3mENOyuASzi4GoDA&usg=AFQjCNHuvbdU5M0w7JILNaJLuRu8mOxDyg&bvm=bv.76180860,d.c2E"

    Thanks & Regards,

    Narendra Kumar Chepuri.

  • Hi,

    Detailed instructions on how to build the entire embedded Linux system (including u-boot, kernel, device tree, mcsdk packages, root filesystem etc.) can be found here:

    http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring#Yocto

    I am not sure if you really have to build everything from scratch to get your changes to the image. Maybe somebody from TI could verify this. 

    Anyway, the root cause for you issue is the missing DEVTMPFS setting so for some reason it is not enabled in the kernel files which are loaded at boot. My original problem was that tftp server somehow cached the previous images and the most up-to-date files did not get loaded. After restarting tftp server my problem was solved.

    Marko

  • Hi Marko,

    Issue got resolved. Problem is there in "keystone2_defconfig". Before doing "make keystone2_defconfig" we need to enter  CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y into "keystone2_defconfig". so that it will reflect in uImage which is getting created. For more reference please visit "http://blog.siphos.be/2012/04/get-your-devtmpfs-ready/". One more thing if you are flashing new kernel no need to build file system once again.

    Thanks for your quick replies.

    Thanks & Regards,

    Narendra Kumar Chepuri.

  • Hi Rajasekaran,

    we are working on XTCIEVMK2X (Linux) for this board we got to know that 4Mb of L2 memory is the which is shared between 4 Arm cores. But we want to know how L2 is divided to program memory and Data memory or if it is not divided in this configuration how to configure L2 memory to fixed program and data memory through kernel Image of Ubuntu. For your reference I am sharing docs related to "board configuration and kernel Image".3542.Build and Run U-boot and Linux Kernel on TCI6638 EVM.pdf8726.54044-ARM-A15-in-KeyStone-II-White-Paper-original.pdf.

    Please reply as soon as possible.

    Thanks & Regards,

    Narendra Kumar