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.

TDA2PXEVM: early boot ,but it stop somewhere

Part Number: TDA2PXEVM

Hello,

I'm terence who is now building early boot with vision SDK 03 05 in TDA2PXEVM board.When I patched the directory of "linux-kernel-addon/ earlyboot-kernel-patches/* " for  omap, just refer to VisionSDK_Linux_UserGuide.pdf, system is booting but stop in "Started D-Bus System Message Bus." every time. Could you help me have a look.The following is the boot log.

Thank you very much

Terence Xia from China

=============================================================================

mount: unknown filesystem type 'dev'

Welcome to Arago 2016.12!

[ SKIP ] Ordering cycle found, skipping alignment.service
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on Journal Socket.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Created slice User and Session Slice.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Reached target Swap.
[ OK ] Listening on udev Control Socket.
[ OK ] Listening on Syslog Socket.
[ OK ] Created slice System Slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
Mounting Temporary Directory...
Starting Setup Virtual Console...
Mounting Debug File System...
Starting Create list of required st... nodes for the current kernel...
[ OK ] Reached target Slices.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
Mounting POSIX Message Queue File System...
Starting Load Kernel Modules...
Starting Remount Root and Kernel File Systems...
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
Starting Journal Service...
[ OK ] Reached target Remote File Systems.
[ OK ] Created slice system-getty.slice.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Debug File System.
[ OK ] Mounted Temporary Directory.
[ OK ] Started Journal Service.
[ OK ] Started Setup Virtual Console.
[ OK ] Started Create list of required sta...ce nodes for the current kernel.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started Remount Root and Kernel File Systems.
Starting Load/Save Random Seed...
Starting udev Coldplug all Devices...
Starting Apply Kernel Variables...
Starting Create Static Device Nodes in /dev...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Started Flush Journal to Persistent Storage.
Starting udev Kernel Device Manager...
[ OK ] Reached target Local File Systems (Pre).
Mounting /media/ram...
[ OK ] Mounted /media/ram.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ OK ] Found device /dev/ttyS0.
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Found device /dev/ttyS9.
[ OK ] Started Network Time Synchronization.
Starting Synchronize System and HW clocks...
[ OK ] Reached target System Time Synchronized.
[FAILED] Failed to start Synchronize System and HW clocks.
See 'systemctl status sync-clocks.service' for details.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting rc.pvr.service...
[ OK ] Started Kernel Logging Service.
Starting Permit User Sessions...
Starting Login Service...
[ OK ] Started D-Bus System Message Bus.

  • Hi Terence,

    From your logs, I notice that all kernel modules are failing to load. This is because the kernel image (uImage) and modules are miss-matched.
    Please follow all instructions in section 3.4 of the Linux-User-guide . This includes rebuild of Linux and running early-boot-update.sh scripts.

    Regards
    Shravan
  • Hi Shravan,
    I had rebuilt with following section 3.4 of the Linux-User-guide, but the issue still remains. After rebuilt, system continued to run , stopped at "[ **] (2 of 3) A start job is running for dev-ttyO0.device (41s / 1min 30s)". If I turn off the power ,and then turn up it to reset system of the TDA2PXEVM board , boot log is the same as before,it will stop at "Started D-Bus System Message Bus". The following is boot log. Could you help to have a look?

    Thank you very much
    Terence Xia from China
    ===================================boot log =========================================
    ÿ¸mount: mount point /sys does not exist
    mount: mount point /dev does not exist
    mount: mount point /proc does not exist
    mount: mount point /var/volatile does not exist
    mkdir: can't create directory '/var/volatile/tmp': No such file or directory
    System time before build time, advancing clock.

    Welcome to Arago 2016.12!

    [ SKIP ] Ordering cycle found, skipping D-Bus System Message Bus Socket
    [ SKIP ] Ordering cycle found, skipping alignment.service
    [ OK ] Listening on Syslog Socket.
    [ OK ] Created slice User and Session Slice.
    [ OK ] Reached target Swap.
    [ OK ] Listening on udev Control Socket.
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ OK ] Listening on Network Service Netlink Socket.
    [ OK ] Listening on udev Kernel Socket.
    [ OK ] Listening on Journal Socket (/dev/log).
    [ OK ] Started Forward Password Requests to Wall Directory Watch.
    [ OK ] Created slice System Slice.
    [ OK ] Created slice system-serial\x2dgetty.slice.
    [ OK ] Reached target Slices.
    [ OK ] Created slice system-getty.slice.
    [ OK ] Started Dispatch Password Requests to Console Directory Watch.
    [ OK ] Reached target Paths.
    [ OK ] Reached target Remote File Systems.
    [ OK ] Listening on Journal Socket.
    Mounting Debug File System...
    Starting Setup Virtual Console...
    Mounting POSIX Message Queue File System...
    Starting Load Kernel Modules...
    Starting Remount Root and Kernel File Systems...
    Starting Journal Service...
    Mounting Temporary Directory...
    Starting Create list of required st... nodes for the current kernel...
    [ OK ] Reached target Sockets.
    [ OK ] Mounted POSIX Message Queue File System.
    [ OK ] Mounted Debug File System.
    [ OK ] Started Setup Virtual Console.
    [ OK ] Mounted Temporary Directory.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [ OK ] Started Create list of required sta...ce nodes for the current kernel.
    [ OK ] Started Remount Root and Kernel File Systems.
    [ OK ] Started Journal Service.
    Starting Rebuild Hardware Database...
    Starting Flush Journal to Persistent Storage...
    Starting Rebuild Dynamic Linker Cache...
    Starting Create Static Device Nodes in /dev...
    Starting Apply Kernel Variables...
    [ OK ] Started Flush Journal to Persistent Storage.
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Started Create Static Device Nodes in /dev.
    [ OK ] Reached target Local File Systems (Pre).
    Mounting /media/ram...
    Mounting /var/volatile...
    Starting udev Kernel Device Manager...
    [ OK ] Mounted /var/volatile.
    [ OK ] Mounted /media/ram.
    Starting Load/Save Random Seed...
    [ OK ] Reached target Local File Systems.
    Starting Rebuild Journal Catalog...
    Starting Create Volatile Files and Directories...
    [ OK ] Started Load/Save Random Seed.
    [ OK ] Started Create Volatile Files and Directories.
    Starting Opkg first boot configure...
    Starting Network Time Synchronization...
    Starting Update UTMP about System Boot/Shutdown...
    [ OK ] Started Rebuild Journal Catalog.
    [ OK ] Started Network Time Synchronization.
    Starting Synchronize System and HW clocks...
    [ OK ] Reached target System Time Synchronized.
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [ OK ] Started udev Kernel Device Manager.
    [ OK ] Started Rebuild Hardware Database.
    Starting udev Coldplug all Devices...
    [ OK ] Started udev Coldplug all Devices.
    [ OK ] Started Opkg first boot configure.
    [ OK ] Started Rebuild Dynamic Linker Cache.
    Starting Update is Completed...
    [ OK ] Started Update is Completed.
    [ OK ] Reached target System Initialization.
    Starting Network Service...
    [ OK ] Started Daily Cleanup of Temporary Directories.
    [ OK ] Reached target Timers.
    [ OK ] Reached target Basic System.
    [ OK ] Started Kernel Logging Service.
    Starting rc.pvr.service...
    [ OK ] Started System Logging Service.
    Starting Permit User Sessions...
    [ OK ] Started Permit User Sessions.
    [ OK ] Started Getty on tty1.
    [ OK ] Started Network Service.
    [ OK ] Reached target Network.
    Starting Network Name Resolution...
    [ OK ] Started Network Name Resolution.
    [ OK ] Started rc.pvr.service.
    Starting weston.service...
    [ OK ] Started weston.service.
    Starting tiipclad-daemon.service...
    Starting telnetd.service...
    [ OK ] Started telnetd.service.
    [ OK ] Started tiipclad-daemon.service.
    Starting ecarxinit.service...
    [ OK ] Started ecarxinit.service.
    [ **] (2 of 3) A start job is running for dev-ttyO0.device (41s / 1min 30s) @
    煀DA 悀
    V ÿmount: unknown filesystem type 'dev'

    Welcome to Arago 2016.12!

    [ SKIP ] Ordering cycle found, skipping alignment.service
    [ OK ] Reached target Remote File Systems.
    [ OK ] Listening on Journal Socket (/dev/log).
    [ OK ] Listening on udev Control Socket.
    [ OK ] Started Forward Password Requests to Wall Directory Watch.
    [ OK ] Created slice System Slice.
    [ OK ] Created slice system-getty.slice.
    [ OK ] Listening on Network Service Netlink Socket.
    [ OK ] Created slice system-serial\x2dgetty.slice.
    [ OK ] Listening on Journal Socket.
    Mounting POSIX Message Queue File System...
    Mounting Temporary Directory...
    Starting Create list of required st... nodes for the current kernel...
    Mounting Debug File System...
    [ OK ] Reached target Swap.
    Starting Load Kernel Modules...
    Starting Setup Virtual Console...
    [ OK ] Listening on Syslog Socket.
    Starting Journal Service...
    [ OK ] Listening on udev Kernel Socket.
    Starting Remount Root and Kernel File Systems...
    [ OK ] Started Dispatch Password Requests to Console Directory Watch.
    [ OK ] Reached target Paths.
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ OK ] Created slice User and Session Slice.
    [ OK ] Reached target Slices.
    [ OK ] Mounted POSIX Message Queue File System.
    [ OK ] Mounted Debug File System.
    [ OK ] Mounted Temporary Directory.
    [ OK ] Started Journal Service.
    [ OK ] Started Create list of required sta...ce nodes for the current kernel.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [ OK ] Started Setup Virtual Console.
    [ OK ] Started Remount Root and Kernel File Systems.
    Starting Load/Save Random Seed...
    Starting udev Coldplug all Devices...
    Starting Apply Kernel Variables...
    Starting Create Static Device Nodes in /dev...
    Starting Flush Journal to Persistent Storage...
    [ OK ] Started Load/Save Random Seed.
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Started Create Static Device Nodes in /dev.
    [ OK ] Started Flush Journal to Persistent Storage.
    [ OK ] Reached target Local File Systems (Pre).
    Mounting /media/ram...
    Starting udev Kernel Device Manager...
    [ OK ] Mounted /media/ram.
    [ OK ] Reached target Local File Systems.
    Starting Create Volatile Files and Directories...
    [ OK ] Started udev Kernel Device Manager.
    [ OK ] Started Create Volatile Files and Directories.
    Starting Network Time Synchronization...
    Starting Update UTMP about System Boot/Shutdown...
    [ OK ] Started udev Coldplug all Devices.
    [ OK ] Started Network Time Synchronization.
    [ OK ] Found device /dev/ttyS0.
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    [ OK ] Reached target System Time Synchronized.
    Starting Synchronize System and HW clocks...
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [ OK ] Found device /dev/ttyS9.
    [ OK ] Reached target System Initialization.
    [ OK ] Started Daily Cleanup of Temporary Directories.
    [ OK ] Reached target Timers.
    [ OK ] Listening on D-Bus System Message Bus Socket.
    [ OK ] Reached target Sockets.
    [ OK ] Reached target Basic System.
    Starting Permit User Sessions...
    [ OK ] Started Kernel Logging Service.
    [ OK ] Started D-Bus System Message Bus.
  • Hi Terence,

    The error is because the kernel isn't able to load the kernel modules. The below line from your logs indicates this.

    [FAILED] Failed to start Load Kernel Modules.

    See 'systemctl status systemd-modules-load.service' for details.

    This is because the contents of the /lib/modules aren't updated. I would recommend re-flashing the file-system and running the steps. 

    1. Apply the early-boot kernel patches

    2. In vision-SDK run the below commands:

       a) make clean

       b) make dep

       c) make linux

       d) make linux_install

       e) make vision_sdk

    3. After this you can will find the updated file-system in binaries/apps/tda2px_evm_linux_all/hlos/ (tar.gz file) folder. Untar this to get the file-system

    4. Now run the early-boot scripts passing as arguments the media containing the file-system.

    Regards

    Shravan

  • Hi Shravan,
    Thank you ,I will try to do your suggestion today. But I have a question that If we do not enable this function of early boot,it still have this log. That is to say, normal boot is still have below line in my log. Even if there is have the log, system works normal.
    =======================log===============================
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    ========================================================

    My rebuilt steps in below,
    1.Checkout vision SDK code
    2.Apply the early-boot kernel patches
    3.Refer the VisionSDK_Linux_UserGuide.pdf to build
    3.1 make linux
    3.2 make linux_install
    3.3. make -s -j depend
    3.4 make -s -j
    4.Preparing SD card & Boot
    5.Run the early-boot scripts

    Thank you very much
    Terence Xia
  • Hi Terence,

    Can you try to reflash your file-system or try this on a new SD card. This looks like a file-system corruption.

    Regards
    Shravan
  • Hi Shravan,
    We try it on a new SD card. The system stopped at "[ **] (1 of 3) A start job is running for dev-ttyO0.device (23s / 1min 30s)   [ TIME ] Timed out waiting for device dev-ttyS0.device. ", and then turned off/on power to reset , the system run and stopped at "[ OK ] Started D-Bus System Message Bus", just like before. The following is the log.

    Thank you very much
    Terence Xia
    ===========================boot log====================================
    mount: mount point /sys does not exist
    mount: mount point /dev does not exist
    mount: mount point /proc does not exist
    mount: mount point /var/volatile does not exist
    mkdir: can't create directory '/var/volatile/tmp': No such file or directory
    System time before build time, advancing clock.

    Welcome to Arago 2016.12!

    [ SKIP ] Ordering cycle found, skipping alignment.service
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ OK ] Listening on Syslog Socket.
    [ OK ] Reached target Swap.
    [ OK ] Started Dispatch Password Requests to Console Directory Watch.
    [ OK ] Listening on Journal Socket.
    [ OK ] Listening on Journal Socket (/dev/log).
    [ OK ] Started Forward Password Requests to Wall Directory Watch.
    [ OK ] Reached target Paths.
    [ OK ] Listening on udev Control Socket.
    [ OK ] Created slice System Slice.
    Starting Setup Virtual Console...
    [ OK ] Created slice system-getty.slice.
    Starting Remount Root and Kernel File Systems...
    Mounting Debug File System...
    [ OK ] Listening on udev Kernel Socket.
    [ OK ] Created slice system-serial\x2dgetty.slice.
    [ OK ] Reached target Remote File Systems.
    [ OK ] Listening on Network Service Netlink Socket.
    Mounting POSIX Message Queue File System...
    Starting Journal Service...
    Starting Create list of required st... nodes for the current kernel...
    Starting Load Kernel Modules...
    [ OK ] Created slice User and Session Slice.
    [ OK ] Reached target Slices.
    Mounting Temporary Directory...
    [ OK ] Mounted Debug File System.
    [ OK ] Mounted POSIX Message Queue File System.
    [ OK ] Mounted Temporary Directory.
    [ OK ] Started Setup Virtual Console.
    [ OK ] Started Create list of required sta...ce nodes for the current kernel.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [ OK ] Started Remount Root and Kernel File Systems.
    [ OK ] Started Journal Service.
    Starting Flush Journal to Persistent Storage...
    Starting Rebuild Hardware Database...
    Starting Rebuild Dynamic Linker Cache...
    Starting Apply Kernel Variables...
    Starting Create Static Device Nodes in /dev...
    [ OK ] Started Flush Journal to Persistent Storage.
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Started Create Static Device Nodes in /dev.
    [ OK ] Reached target Local File Systems (Pre).
    Mounting /media/ram...
    Mounting /var/volatile...
    Starting udev Kernel Device Manager...
    [ OK ] Mounted /var/volatile.
    [ OK ] Mounted /media/ram.
    Starting Load/Save Random Seed...
    [ OK ] Reached target Local File Systems.
    Starting Create Volatile Files and Directories...
    Starting Rebuild Journal Catalog...
    [ OK ] Started Load/Save Random Seed.
    [ OK ] Started Create Volatile Files and Directories.
    Starting Network Time Synchronization...
    Starting Opkg first boot configure...
    Starting Update UTMP about System Boot/Shutdown...
    [ OK ] Started Network Time Synchronization.
    [ OK ] Started Rebuild Journal Catalog.
    Starting Synchronize System and HW clocks...
    [ OK ] Reached target System Time Synchronized.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    [ OK ] Started udev Kernel Device Manager.
    [ OK ] Started Rebuild Hardware Database.
    Starting udev Coldplug all Devices...
    [ OK ] Started udev Coldplug all Devices.
    [ OK ] Started Opkg first boot configure.
    [ OK ] Started Rebuild Dynamic Linker Cache.
    Starting Update is Completed...
    [ OK ] Started Update is Completed.
    [ OK ] Reached target System Initialization.
    [ OK ] Started Daily Cleanup of Temporary Directories.
    [ OK ] Reached target Timers.
    [ OK ] Listening on D-Bus System Message Bus Socket.
    [ OK ] Reached target Sockets.
    [ OK ] Reached target Basic System.
    [ OK ] Started System Logging Service.
    [ OK ] Started D-Bus System Message Bus.
    Starting Login Service...
    [ OK ] Started Kernel Logging Service.
    Starting rc.pvr.service...
    Starting Network Service...
    Starting Permit User Sessions...
    [ OK ] Started Permit User Sessions.
    [ OK ] Started Getty on tty1.
    [ OK ] Started Login Service.
    [ OK ] Started Network Service.
    [ OK ] Reached target Network.
    Starting Network Name Resolution...
    [ OK ] Started Network Name Resolution.
    [ OK ] Started rc.pvr.service.
    Starting weston.service...
    [ OK ] Started weston.service.
    Starting telnetd.service...
    Starting tiipclad-daemon.service...
    [ OK ] Started telnetd.service.
    [ OK ] Started tiipclad-daemon.service.
    Starting ecarxinit.service...
    [ OK ] Started ecarxinit.service.
    [ **] (1 of 3) A start job is running for dev-ttyO0.device (23s / 1min 30s)

    [ TIME ] Timed out waiting for device dev-ttyS0.device.
    [DEPEND] Dependency failed for Serial Getty on ttyS0.
    [ TIME ] Timed out waiting for device dev-ttyO0.device.
    [DEPEND] Dependency failed for Serial Getty on ttyO0.
    [ TIME ] Timed out waiting for device dev-ttyS9.device.
    [DEPEND] Dependency failed for Serial Getty on ttyS9.
    [ OK ] Reached target Login Prompts.
    [ OK ] Reached target Multi-User System.
    Starting Update UTMP about System Runlevel Changes...
    [ OK ] Started Update UTMP about System Runlevel Changes.



    Welcome to Arago 2016.12!

    [ SKIP ] Ordering cycle found, skipping alignment.service
    [ OK ] Listening on Syslog Socket.
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ OK ] Started Forward Password Requests to Wall Directory Watch.
    [ OK ] Reached target Swap.
    [ OK ] Created slice User and Session Slice.
    [ OK ] Listening on udev Kernel Socket.
    [ OK ] Listening on Journal Socket.
    [ OK ] Reached target Remote File Systems.
    [ OK ] Listening on Journal Socket (/dev/log).
    [ OK ] Listening on Network Service Netlink Socket.
    [ OK ] Started Dispatch Password Requests to Console Directory Watch.
    [ OK ] Reached target Paths.
    [ OK ] Listening on udev Control Socket.
    [ OK ] Created slice System Slice.
    [ OK ] Created slice system-serial\x2dgetty.slice.
    Mounting Temporary Directory...
    [ OK ] Reached target Slices.
    Starting Remount Root and Kernel File Systems...
    Mounting Debug File System...
    Starting Load Kernel Modules...
    Starting Setup Virtual Console...
    Starting Create list of required st... nodes for the current kernel...
    Mounting POSIX Message Queue File System...
    [ OK ] Created slice system-getty.slice.
    Starting Journal Service...
    [ OK ] Mounted Debug File System.
    [ OK ] Mounted POSIX Message Queue File System.
    [ OK ] Mounted Temporary Directory.
    [ OK ] Started Remount Root and Kernel File Systems.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [ OK ] Started Setup Virtual Console.
    [ OK ] Started Create list of required sta...ce nodes for the current kernel.
    [ OK ] Started Journal Service.
    Starting Create Static Device Nodes in /dev...
    Starting Apply Kernel Variables...
    Starting udev Coldplug all Devices...
    Starting Flush Journal to Persistent Storage...
    Starting Load/Save Random Seed...
    [ OK ] Started Create Static Device Nodes in /dev.
    [ OK ] Started Load/Save Random Seed.
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Started Flush Journal to Persistent Storage.
    Starting udev Kernel Device Manager...
    [ OK ] Reached target Local File Systems (Pre).
    Mounting /media/ram...
    [ OK ] Mounted /media/ram.
    [ OK ] Started udev Kernel Device Manager.
    [ OK ] Reached target Local File Systems.
    Starting Create Volatile Files and Directories...
    [ OK ] Started Create Volatile Files and Directories.
    Starting Network Time Synchronization...
    Starting Update UTMP about System Boot/Shutdown...
    [ OK ] Started udev Coldplug all Devices.
    [ OK ] Started Network Time Synchronization.
    [ OK ] Found device /dev/ttyS0.
    Starting Synchronize System and HW clocks...
    [ OK ] Reached target System Time Synchronized.
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [ OK ] Reached target System Initialization.
    [ OK ] Started Daily Cleanup of Temporary Directories.
    [ OK ] Reached target Timers.
    [ OK ] Listening on D-Bus System Message Bus Socket.
    [ OK ] Reached target Sockets.
    [ OK ] Reached target Basic System.
    [ OK ] Started Kernel Logging Service.
    Starting rc.pvr.service...
    Starting Permit User Sessions...
    Starting Login Service...
    [ OK ] Started D-Bus System Message Bus.

  • Hi Shravan,
    It may be a difference in memory allocation that causes the issue, but I’m not sure. So, could you help me have a look? The below line is file of dra76-evm-infoadas.h

    Thanks
    Terence Xia
    =================================dra76-evm-infoadas.h==================================
    #include "dra76-evm.dts"

    #define DISABLE_PRCM(label) &label { ti,no-idle; ti,no-reset-on-init; }
    #define DISABLE_COMPLETE(label) &label { status = "disabled"; ti,no-idle; ti,no-reset-on-init; }
    #define LATE_ATTACH(label) &label { ti,late-attach; ti,no-idle; ti,no-reset-on-init; }

    / {
    chosen {
    bootargs = "console=ttyO9,115200n8 elevator=noop root=/dev/mmcblk0p2 rw rootwait earlyprintk=ttyO9,115200n8 fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=16M rootfstype=ext4 snd.slots_reserved=1,1 loglevel=0 clk_ignore_unused init=/home/root/init-demo.sh";

    };
    };

    /* modules used by BIOS, disable from Linux */
    DISABLE_COMPLETE(vip1);
    DISABLE_COMPLETE(vip2);
    DISABLE_COMPLETE(cal);
    DISABLE_COMPLETE(i2c5);
    DISABLE_COMPLETE(wdt2);
    DISABLE_COMPLETE(vpe);
    DISABLE_COMPLETE(ocmcram1);
    DISABLE_COMPLETE(hdmi);
    DISABLE_COMPLETE(hdmi0);
    DISABLE_COMPLETE(dss);
    DISABLE_COMPLETE(dispc);
    DISABLE_COMPLETE(m_can0);
    DISABLE_COMPLETE(uart5);
    /* modules shared between BIOS and Linux, Do not reset or cutoff clks */
    DISABLE_PRCM(gpio1);
    DISABLE_PRCM(gpio2);
    DISABLE_PRCM(gpio3);
    DISABLE_PRCM(gpio4);
    DISABLE_PRCM(gpio5);
    DISABLE_PRCM(gpio6);

    /* Remote cores loaded by bootloader */
    LATE_ATTACH(ipu1);
    LATE_ATTACH(mmu_ipu1);
    LATE_ATTACH(ipu2);
    LATE_ATTACH(mmu_ipu2);
    LATE_ATTACH(dsp1);
    LATE_ATTACH(mmu0_dsp1);
    LATE_ATTACH(mmu1_dsp1);
    LATE_ATTACH(dsp2);
    LATE_ATTACH(mmu0_dsp2);
    LATE_ATTACH(mmu1_dsp2);

    /* timers used by the remote cores */
    LATE_ATTACH(timer3);
    LATE_ATTACH(timer4);
    LATE_ATTACH(timer5);
    LATE_ATTACH(timer6);
    LATE_ATTACH(timer7);
    LATE_ATTACH(timer9);
    LATE_ATTACH(timer11);
    LATE_ATTACH(timer13);
    LATE_ATTACH(timer14);
    LATE_ATTACH(mailbox5);
    LATE_ATTACH(mailbox6);
    LATE_ATTACH(mailbox7);

    /* Linux uses first 32 channels, BIOS uses last 32 */
    &edma {
    dma-requests = <32>;
    };

    /* Update the CMA regions for Vision SDK binaries */
    &ipu2_cma_pool {
    reg = <0x0 0x96000000 0x0 0x2000000>;
    };

    &dsp1_cma_pool {
    reg = <0x0 0x98000000 0x0 0x1000000>;
    };

    &ipu1_cma_pool {
    reg = <0x0 0x9a000000 0x0 0x1000000>;
    };

    &dsp2_cma_pool {
    reg = <0x0 0x99000000 0x0 0x1000000>;
    };

    /* Additional memory regions required for Vision SDK
    * Keep this in sync with VSDK apps/build/tda2px/mem_segment_definition_linux.xs
    */
    &reserved_mem {
    cmem_ocmc: cmem@40300000 {
    compatible = "shared-dma-pool";
    reg = <0x0 0x40300000 0x0 0x300000>;
    sram = <&ocmcram1>;
    no-map;
    status = "okay";
    };

    cmem_pool: cmem@9e000000 {
    compatible = "shared-dma-pool";
    reg = <0x0 0x9e000000 0x0 0x1000000>;
    no-map;
    status = "okay";
    };

    vsdk_sr1_mem: vsdk_sr1_mem@86000000 {
    compatible = "shared-dma-pool";
    reg = <0x0 0x86000000 0x0 0x9E00000>;
    status = "okay";
    };

    vsdk_sr0_mem: vsdk_sr0_mem@9fb00000 {
    compatible = "shared-dma-pool";
    reg = <0x0 0x9fb00000 0x0 0x500000>;
    status = "okay";
    };

    vsdk_eve_mem: vsdk_eve_mem@84000000 {
    compatible = "shared-dma-pool";
    reg = <0x0 0x84000000 0x0 0x1000000>;
    status = "okay";
    };

    /* Memory reserved for IOMMU table carveout in u-boot */
    latea_pagetbl: late_pgtbl@bfc00000 {
    reg = <0x0 0xbfc00000 0x0 0x100000>;
    no-map;
    status = "okay";
    };
    };

    &ipu2 {
    /delete-property/ watchdog-timers;
    timers= <&timer9>;
    };

    &ipu1 {
    /delete-property/ watchdog-timers;
    };

    &dsp1 {
    /delete-property/ watchdog-timers;
    };

    &dsp2 {
    /delete-property/ watchdog-timers;
    };
  • Hi Terence,

    You're DTB file looks fine. Are you sure you're pointing to the correct FS? The argument ' root=/dev/mmcblk0p2' in the chosen node in the DT refers to EMMC. Are you using the EMMC for boot? If you're using SD you may want to change this to 'root=/dev/mmcblk1p2'.

    Regards
    Shravan
  • Hi Shravan,
    1. For early boot,if we changed the argument ' root=/dev/mmcblk0p2' to 'root=/dev/mmcblk1p2', there is no log from console. About this, I do not understand that we preparing SD card & Boot refer to VisionSDK_Linux_UserGuide.pdf, it belongs to boot from SD card mode. For normal boot,there is a uenv.txt which indicate the boot mode we used.
    =================================uenv.txt==================================================
    fdtfile=dra76-evm-infoadas.dtb
    args_mmc=part uuid mmc 0:2 uuid; setenv bootargs "console=ttyS9,115200n8 vram=16M root=PARTUUID=${uuid} rw rootwait ip=none mem=512M"
    ============================================================================================

    2.For early boot,we had succeed once time, but after turn off /on to reset , there had occurred the above issues what communicated with you.This is a strange question.Looking forward to your help. The following is log of early boot successfully.

    Thanks
    Terence Xia from China
    =================================successed early boot log======================================
    mount: unknown filesystem type 'dev'

    Welcome to Arago 2016.12!
    [ SKIP ] Ordering cycle found, skipping alignment.service
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ OK ] Reached target Swap.
    [ OK ] Listening on udev Kernel Socket.
    [ OK ] Created slice System Slice.
    [ OK ] Created slice system-serial\x2dgetty.slice.
    [ OK ] Reached target Remote File Systems.
    [ OK ] Listening on Journal Socket.
    Mounting POSIX Message Queue File System...
    Mounting Debug File System...
    Mounting Temporary Directory...
    [ OK ] Listening on Journal Socket (/dev/log).
    Starting Load Kernel Modules...
    [ OK ] Created slice User and Session Slice.
    [ OK ] Reached target Slices.
    Starting Remount Root and Kernel File Systems...
    [ OK ] Started Dispatch Password Requests to Console Directory Watch.
    [ OK ] Listening on udev Control Socket.
    [ OK ] Listening on Network Service Netlink Socket.
    Starting Setup Virtual Console...
    [ OK ] Created slice system-getty.slice.
    [ OK ] Listening on Syslog Socket.
    Starting Journal Service...
    Starting Create list of required st... nodes for the current kernel...
    [ OK ] Started Forward Password Requests to Wall Directory Watch.
    [ OK ] Reached target Paths.
    [ OK ] Mounted POSIX Message Queue File System.
    [ OK ] Mounted Debug File System.
    [ OK ] Mounted Temporary Directory.
    [ OK ] Started Journal Service.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [ OK ] Started Remount Root and Kernel File Systems.
    [ OK ] Started Setup Virtual Console.
    [ OK ] Started Create list of required sta...ce nodes for the current kernel.
    Starting Create Static Device Nodes in /dev...
    Starting Rebuild Dynamic Linker Cache...
    Starting Rebuild Hardware Database...
    Starting Load/Save Random Seed...
    Starting Apply Kernel Variables...
    Starting Flush Journal to Persistent Storage...
    [ OK ] Started Load/Save Random Seed.
    [ OK ] Started Flush Journal to Persistent Storage.
    [ OK ] Started Create Static Device Nodes in /dev.
    [ OK ] Reached target Local File Systems (Pre).
    Mounting /media/ram...
    Starting udev Kernel Device Manager...
    [ OK ] Mounted /media/ram.
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Reached target Local File Systems.
    Starting Create Volatile Files and Directories...
    Starting Rebuild Journal Catalog...
    [ OK ] Started Create Volatile Files and Directories.
    Starting Update UTMP about System Boot/Shutdown...
    Starting Network Time Synchronization...
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    [ OK ] Started Network Time Synchronization.
    [ OK ] Reached target System Time Synchronized.
    Starting Synchronize System and HW clocks...
    [ OK ] Started Rebuild Journal Catalog.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [ OK ] Started udev Kernel Device Manager.
    [ OK ] Started Rebuild Hardware Database.
    Starting udev Coldplug all Devices...
    [ OK ] Started udev Coldplug all Devices.
    [ OK ] Found device /dev/ttyS0.
    [ OK ] Found device /dev/ttyS9.
    [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [FAILED] Failed to start Rebuild Dynamic Linker Cache.
    See 'systemctl status ldconfig.service' for details.
    Starting Update is Completed...
    [ OK ] Started Update is Completed.
    [ OK ] Reached target System Initialization.
    [ OK ] Started Daily Cleanup of Temporary Directories.
    [ OK ] Reached target Timers.
    [ OK ] Listening on D-Bus System Message Bus Socket.
    [ OK ] Reached target Sockets.
    [ OK ] Reached target Basic System.
    [ OK ] Started System Logging Service.
    [ OK ] Started Kernel Logging Service.
    Starting Login Service...
    [ OK ] Started D-Bus System Message Bus.
    Starting Network Service...
    Starting Permit User Sessions...
    Starting rc.pvr.service...
    [ OK ] Started Permit User Sessions.
    [ OK ] Started Network Service.
    [ OK ] Started rc.pvr.service.
    Starting weston.service...
    [ OK ] Reached target Network.
    Starting Network Name Resolution...
    [ OK ] Started Serial Getty on ttyS0.
    [ OK ] Started Getty on tty1.
    [ OK ] Started Serial Getty on ttyS9.
    [ OK ] Started weston.service.
    [ OK ] Started Login Service.
    [ OK ] Started Network Name Resolution.
    Starting telnetd.service...
    Starting tiipclad-daemon.service...
    [ OK ] Started telnetd.service.
    [ OK ] Started tiipclad-daemon.service.
    Starting ecarxinit.service...
    [ OK ] Started ecarxinit.service.

    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org dra7xx-evm ttyS9

    Arago 2016.12 dra7xx-evm ttyS9

    dra7xx-evm login:
  • Hi Shravan,
    For early boot,we tried nine times, and boot normal twice,and it must to reflash SD card again, every time. No matter boot normal or fail, we just turn off /on power to reset,it alway stop at "Started D-Bus System Message Bus".

    Thanks
    Terence Xia
  • Hi Shravan,
    The problem had been resolved.The reason is that the default address of latea_pagetbl from the TI's patch is out of our memory.
    ================================================================
    /* Memory reserved for IOMMU table carveout in u-boot */
    latea_pagetbl: late_pgtbl@bfc00000 {
    reg = <0x0 0xbfc00000 0x0 0x100000>;
    no-map;
    status = "okay";
    };
    =================================================================