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.

Init Scripts issue on SDK 03.00.00.04

Other Parts Discussed in Thread: TMDSEVM572X, AM3352, TPS65910

Hi TI team,
I referred to the following link and ran it on TMDSEVM572X with SDK 03.00.00.04.
but, it didn't work.

I think that the SDK is using "systemd".
I need to add some applications before login.
Please give some suggestions or guides.

  • Sitara Linux Training: Init Scripts

From Will Hsu.

  • I will forward this to the software team.
  • Hi,
    In order to start a service with systemd, you need to do the following:
    Suppose you have a myinitscript.sh script in your /etc/init.d/. You need to navigate to /lib/systemd/system/ and create a myinit.service file, which contains:
    [Unit]
    Description=Myinit scripts

    [Service]
    ExecStart=/etc/init.d/myinitscript.sh

    [Install]
    WantedBy=multi-user.target

    Then upon rebooting your board systemctl will enable your service. You can verify that by checking your log, you'll have the following systemd message:
    "[ OK ] Started Myinit scripts."

    Best Regards,
    Yordan
  • Hi,

    Just an addition, if you wish to see the prints on your console, you should add:
    StandardOutput=journal+console

    in the [Service] part

    Best Regards,
    Yordan
  • Hi Yordan,
    Thanks a lot.
  • Hi ,

    we followed same steps creating service script but we are  not getting the print logs while booting before login.can you please explain briefly .

    my script kept in /etc/init.d/helloworld.sh

    vi /etc/init.d/helloworld.sh

    #!/bin/sh

    echo "hello  world \n"

    chmod +x /etc/init.d/helloworld.sh

    we created my script systemd serice file in /lib/systemd/system/myinit.service

    same thing we followed above service file created steps.Is there any mistakes i have done .please guide me.

    Thanks veera

  • Have you used:
    [Service]
    ExecStart=/etc/init.d/myinitscript.sh
    StandardOutput=journal+consol

    Best Regards,
    Yordan
  • Hi ,

    Did the steps what you have mentioned and got the prints now.

    It would be great if you would suggest similarly how to disable the login prompt while booting up the board. And also to remove the aargo emblem. I dont find any method disabling root login using systemd.

    Thanks veera
  • U-Boot SPL 2016.05 (Oct 04 2016 - 15:33:41)
    MMC1
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2016.05 (Oct 04 2016 - 15:33:41 +0530)
    
           Watchdog enabled
    I2C:   ready
    DRAM:  256 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    2210088 bytes read in 147 ms (14.3 MiB/s)
    40041 bytes read in 16 ms (2.4 MiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x21b928 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ef3b000, end 8ef47c68 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.12-g3639bea54a (veera@FSETBLR1LX046) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #14 PREEMPT Tue O6
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: TI AM335x EVM-SK
    [    0.000000] cma: Reserved 24 MiB at 0x8d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 lpj=3977216 root=PARTUUID=0008156d-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 228468K/262144K available (4291K kernel code, 151K rwdata, 1420K rodata, 216K init, 218K bss, 9100K reserved, 24576K cm)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc059be34   (5712 kB)
    [    0.000000]       .init : 0xc059c000 - 0xc05d2000   ( 216 kB)
    [    0.000000]       .data : 0xc05d2000 - 0xc05f7f18   ( 152 kB)
    [    0.000000]        .bss : 0xc05f9000 - 0xc062fb60   ( 219 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000037] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000048] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000515] clocksource_probe: no matching clocksources found
    [    0.000557] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000565] This ensures that you still see kernel messages. Please
    [    0.000571] update your kernel commandline.
    [    0.000591] Calibrating delay loop (skipped) preset value.. 795.44 BogoMIPS (lpj=3977216)
    [    0.000608] pid_max: default: 32768 minimum: 301
    [    0.000750] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000763] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.001502] Initializing cgroup subsys io
    [    0.001533] Initializing cgroup subsys memory
    [    0.001571] Initializing cgroup subsys devices
    [    0.001588] Initializing cgroup subsys freezer
    [    0.001603] Initializing cgroup subsys pids
    [    0.001632] CPU: Testing write buffer coherency: ok
    [    0.002049] Setting up static identity map for 0x80008200 - 0x80008258
    [    0.004308] devtmpfs: initialized
    [    0.016706] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.031428] omap_hwmod: debugss: _wait_target_disable failed
    [    0.087241] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.089525] pinctrl core: initialized pinctrl subsystem
    [    0.090733] NET: Registered protocol family 16
    [    0.093079] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.119000] cpuidle: using governor ladder
    [    0.148989] cpuidle: using governor menu
    [    0.153758] OMAP GPIO hardware version 0.1
    [    0.206970] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.209436] usbcore: registered new interface driver usbfs
    [    0.209526] usbcore: registered new interface driver hub
    [    0.209631] usbcore: registered new device driver usb
    [    0.210238] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring e
    [    0.210422] pps_core: LinuxPPS API ver. 1 registered
    [    0.210431] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.210466] PTP clock support registered
    [    0.212080] clocksource: Switched to clocksource timer1
    [    0.214304] NET: Registered protocol family 2
    [    0.215165] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.215203] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.215232] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.215327] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.215347] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.215511] NET: Registered protocol family 1
    [    0.218009] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.226311] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.231801] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    [    0.231831] io scheduler noop registered
    [    0.231845] io scheduler deadline registered
    [    0.232001] io scheduler cfq registered (default)
    [    0.233282] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.234165] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    [    0.236260] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [    0.759858] console [ttyS0] enabled
    [    0.764332] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 159, base_baud = 3000000) is a 8250
    [    0.774374] libphy: Fixed MDIO Bus: probed
    [    0.842112] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    0.848252] davinci_mdio 4a101000.mdio: detected phy mask ffffffbe
    [    0.855966] libphy: 4a101000.mdio: probed
    [    0.860014] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8740
    [    0.868586] davinci_mdio 4a101000.mdio: phy[6]: device 4a101000.mdio:06, driver SMSC LAN8740
    [    0.877717] cpsw 4a100000.ethernet: Detected MACID = 68:9e:19:84:3d:f7
    [    0.885404] cpsw 4a100000.ethernet: cpsw: Detected MACID = 68:9e:19:84:3d:f9
    [    0.893360] PPP generic driver version 2.4.2
    [    0.898071] usbcore: registered new interface driver cdc_ether
    [    0.904086] usbcore: registered new interface driver cdc_subset
    [    0.910155] usbcore: registered new interface driver cdc_ncm
    [    0.915926] usbcore: registered new interface driver qmi_wwan
    [    0.922287] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    0.928854] ehci-platform: EHCI generic platform driver
    [    0.934336] ehci-omap: OMAP-EHCI Host Controller driver
    [    0.939703] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    0.945944] ohci-platform: OHCI generic platform driver
    [    0.951665] usbcore: registered new interface driver cdc_acm
    [    0.957378] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    0.965497] usbcore: registered new interface driver cdc_wdm
    [    0.971307] usbcore: registered new interface driver usbserial
    [    0.977246] usbcore: registered new interface driver option
    [    0.982906] usbserial: USB Serial support registered for GSM modem (1-port)
    [    0.991714] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [    1.024197] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
    [    1.030096] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
    [    1.044809] i2c /dev entries driver
    [    1.049157] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.056183] sdhci: Secure Digital Host Controller Interface driver
    [    1.062417] sdhci: Copyright(c) Pierre Ossman
    [    1.067261] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.071991] omap_hsmmc 48060000.mmc: Got WP GPIO
    [    1.222445] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.231955] usbcore: registered new interface driver usbhid
    [    1.237663] usbhid: USB HID core driver
    [    1.241539] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [    1.249995] nf_conntrack version 0.5.0 (3953 buckets, 15812 max)
    [    1.257372] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.262935] arp_tables: (C) 2002 David S. Miller
    [    1.267737] NET: Registered protocol family 17
    [    1.272352] Key type dns_resolver registered
    [    1.276801] omap_voltage_late_init: Voltage driver support not added
    [    1.284337] ThumbEE CPU extension supported.
    [    1.288687] Registering SWP/SWPB emulation handler
    [    1.300540] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.306861] mmc0: new high speed SDIO card at address 0001
    [    1.312548] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.342236] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.354686] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    1.360491] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    1.369478] hub 1-0:1.0: USB hub found
    [    1.373384] hub 1-0:1.0: 1 port detected
    [    1.402670] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.407413] omap_hsmmc 48060000.mmc: Got WP GPIO
    [    1.412755] mmc_card_regulator: supplied by vbat
    [    1.452643] vdd_mpu: supplied by vbat
    [    1.457436] lis3_reg: disabling
    [    1.523234] Waiting for root device PARTUUID=0008156d-02...
    [    1.654171] mmc1: new high speed SDHC card at address aaaa
    [    1.660408] mmcblk0: mmc1:aaaa SU04G 3.69 GiB 
    [    1.666572]  mmcblk0: p1 p2
    [    1.772139] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.785596] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.793874] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.801086] devtmpfs: mounted
    [    1.804485] Freeing unused kernel memory: 216K (c059c000 - c05d2000)
    [    1.810866] This architecture does not have kernel memory protection.
    [    1.917031] option 1-1:1.0: GSM modem (1-port) converter detected
    [    1.924675] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
    [    1.933073] option 1-1:1.1: GSM modem (1-port) converter detected
    [    1.939819] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
    [    1.948278] option 1-1:1.2: GSM modem (1-port) converter detected
    [    1.955994] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
    [    1.964445] option 1-1:1.3: GSM modem (1-port) converter detected
    [    1.971189] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
    [    1.979778] option 1-1:1.4: GSM modem (1-port) converter detected
    [    1.987440] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
    [    1.996835] qmi_wwan 1-1:1.5: cdc-wdm0: USB WDM device
    [    2.002932] qmi_wwan 1-1:1.5 wwan0: register 'qmi_wwan' at usb-musb-hdrc.0.auto-1, WWAN/QMI device, 0e:e7:83:41:c4:33
    [    2.117629] systemd[1]: System time before build time, advancing clock.
    [    2.165192] random: systemd urandom read with 19 bits of entropy available
    [    2.188066] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCR)
    [    2.207102] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2016.07!
    
    [    2.233595] systemd[1]: Set hostname to <am335x-evm>.
    [    2.757260] systemd[1]: Created slice System Slice.
    [  OK  ] Created slice System Slice.
    [    2.783996] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    2.818921] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    2.842953] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    2.881609] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    2.915101] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    2.956440] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    2.997084] systemd[1]: Starting udev Coldplug all Devices...
             Starting udev Coldplug all Devices...
    [    3.042630] systemd[1]: Starting udev Kernel Device Manager...
             Starting udev Kernel Device Manager...
    [    3.114753] systemd[1]: Started Load Kernel Modules.
    [  OK  ] Started Load Kernel Modules.
    [    3.267940] systemd[1]: Started udev Kernel Device Manager.
    [  OK  ] Started udev Kernel Device Manager.
    [    3.770455] cfg80211: World regulatory domain updated:
    [    3.802543] cfg80211:  DFS Master region: unset
    [    3.806945] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [    3.842308] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    3.850376] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    3.882247] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [    3.890316] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [    3.942255] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [    3.951805] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [    4.002219] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [    4.010287] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [    4.451493] systemd[1]: Started udev Coldplug all Devices.
    [  OK  ] Started udev Coldplug all Devices.
    [    4.529811] systemd[1]: Found device /dev/ttyS0.
    [  OK  ] Found device /dev/ttyS0.
    [    4.628999] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.726332] systemd[1]: Reached target Sockets.
    [  OK  ] Reached target Sockets.
    [    4.777740] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    5.900711] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [    6.365053] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    [    6.419567] wlcore: loaded
    [  OK  ] Reached target System Initialization.
             Starting Network Service...
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started veera application modules.
    [  OK  ] Started Network Service.
    [  OK  ] Reached target Network.
    [    7.182455] wlcore: PHY firmware version: Rev 8.2.0.0.237
    [    7.285064] wlcore: firmware booted (Rev 8.9.0.0.70)
    [    7.305602] net eth1: initializing cpsw version 1.12 (0)
    [    7.310969] net eth0: initialized cpsw ale version 1.4
    [    7.322948] net eth1: phy found : id is : 0x7c111
    [    7.338796] net eth0: initializing cpsw version 1.12 (0)
    [    7.358502] net eth0: phy found : id is : 0x7c111
    [    7.863905] wlcore: down
    [    7.885233] random: nonblocking pool is initialized
    [    8.872454] wlcore: down
    
    am335x-evm login: root (automatic login)
    
    root@am335x-evm:~# 
    CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7 | VT102 | Offline | ttyUSB0                                                                
    
    
    Hi ,

    we removed unwanted systemd services.But still we are not reaching our target(means boot optimization time 5 secs).Logs with grab serial and minicom logs attached please find attached text files .

    give me idea .

    Thanks

    veera

  • Hi Yordan Kovachev,

    I am using ti-processor-sdk-linux-am437x-evm-03.01.00.06 for my AM437x board.

    I want my own Qt App can be ran as early as possible after the kernel init process.

    And here I have serveral questions:

    1. How to run my own Qt App as early as possible? I think I must write an service which can start/stop my App, but I have no idea how to write this service.

    I have tried the way you provided above, but my Qt APP was excuted very late, I want my app can be excuted as early as possible.

    Also my Qt app need to support keyboard and touchscreen. How should I write a such service?

    2. By default(PSDK3.01), there are too many services will be loaded when system boot up. And I want to disable most of them(don't run when system boot), How should I do?

    Thank you very much!!!

  • Hi 

    You can change priority flags After=,Before= in your custom service .

    like example

    After=systemd-modules-load.service ===> like you can check .

    Thanks 

    veera

  • Hi veera anjaneyulu,
    Thanks for your kindly advice.
    I have checked this method, but it always can't work, seems there were dependency issues.
    My requirement is the Qt APP(support keyboard and touchscreen) can be executed ASAP after the init process.
    So the env of the Qt APP must be ready before I run it.
    I need to find such a place where the env is ready and meanwhile as early as possible.
    Could you please to tell me how should I do?
    Thank you very much!

    My service is as follow:
    [Unit]
    Description=my app
    Before=systemd-udevd.service --> I need find such a place where the env is ready and meanwhile as early as possible.
    [Service]
    ExecStart=/etc/init.d/my.sh
    StandardOutput=journal+console
    [Install]
    WantedBy=sysinit.target
  • hi veera,
    I followed same steps with ti-process-sdk-linux-am335x-evm-03.00.00.04 sdk, but I am not get psplash screen.
    please suggest other steps.

    thank you
  • Hi Yordan,

      How can I enable default ti plash screen, which will comes with progress bar. in SDK 03.00.00.04

    thank you.

  • Hi Khageswarrao,

    You written your own custom systemd service right.

    After that you can run below commands

    .1. systemctl start/enable/unmask  <your service > ===> then reboot target board .

    Then check first manually by running above commands with your service .Wheather its working or not.

    Thanks

    veera

  • Hi veera,

     thank you very much for your quick response.

     what you are said, that is exactly correct.  i run below commands in /lib/systemd/system path

    #systemctl unmask psplash.service

    #systemctl enable psplash.service

    #systemctl start psplash.service

    #reboot

    now it is working but i want to start the psplash.service at kernel booting time(in ti-sdk-am335x-evm-08.00.00.00 SDK, ti image comes with progress bar at os booting time), but it is starting after some time  of the kernel loading, i am using below script to start the psplash service

    #vi psplash.service

    [Unit]
    Description=Myinit scripts

    [Service]
    ExecStart=/etc/init.d/psplash.sh &
    before=systemd-vconsole-setup.service #initrd-switch-root.service

    [Install]
    WantedBy=multi-user.target

    please suggest me the farther steps

    thank you.

  • Hi khageswarrao,

    In your service need to add some more flags in unit section after description step .
    Need to add After/Before
    [Unit]
    Description=Myinit scripts
    After=
    Before=systemd-vconsole-setup.service #initrd-switch-root.service
    =================> you want to load where? Before modules-load.service or when? )
    =====> You want load Before systemd-vconsole-setup.service ?


    [Service]
    ExecStart=/etc/init.d/psplash.sh &
    before=systemd-vconsole-setup.service #initrd-switch-root.service

    [Install]
    WantedBy=multi-user.target

    can you send me your boot logs . And explain me which stage you want load.

    Thanks
    veera

  • this is my boot log, after kernel starting print i want to start my psplash service. Thank you.

    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env

    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in SROM is de:ad:be:ef:00:01
    Address in environment is d4:94:a1:86:56:20
    , eth1: usb_ether
    Press SPACE to abort autoboot in 2 seconds
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    3664216 bytes read in 284 ms (12.3 MiB/s)
    40435 bytes read in 48 ms (822.3 KiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x37e958 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8ef1d000, end 8ef29df2 ... OK

    Starting kernel ... ////////HERE i want to start my psplash.service///////////////////////////
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.12-g3639bea54a (gtbldadm@ubuntu-16) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 PREEMPT Fri Jul6
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine model: TI AM335x EVM-SK
    [ 0.000000] cma: Reserved 24 MiB at 0x8d000000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES1.0 (sgx neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=00063061-02 rw rootfstype=ext4 rootwait
    [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Memory: 224296K/262144K available (7095K kernel code, 292K rwdata, 2520K rodata, 292K init, 263K bss, 13272K reserved, 24576K c)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc096c034 (9617 kB)
    [ 0.000000] .init : 0xc096d000 - 0xc09b6000 ( 292 kB)
    [ 0.000000] .data : 0xc09b6000 - 0xc09ff248 ( 293 kB)
    [ 0.000000] .bss : 0xc0a01000 - 0xc0a42ed8 ( 264 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000041] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000052] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000523] clocksource_probe: no matching clocksources found
    [ 0.000722] Console: colour dummy device 80x30
    [ 0.000751] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.000759] This ensures that you still see kernel messages. Please
    [ 0.000765] update your kernel commandline.
    [ 0.000783] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [ 0.118989] pid_max: default: 32768 minimum: 301
    [ 0.119130] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.119144] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.119908] Initializing cgroup subsys io
    [ 0.119945] Initializing cgroup subsys memory
    [ 0.119983] Initializing cgroup subsys devices
    [ 0.120000] Initializing cgroup subsys freezer
    [ 0.120017] Initializing cgroup subsys perf_event
    [ 0.120031] Initializing cgroup subsys pids
    [ 0.120062] CPU: Testing write buffer coherency: ok
    [ 0.120499] Setting up static identity map for 0x80008200 - 0x80008258
    [ 0.122843] devtmpfs: initialized
    [ 0.135657] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.151719] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.207733] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.210245] pinctrl core: initialized pinctrl subsystem
    [ 0.211732] NET: Registered protocol family 16
    [ 0.214125] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.238991] cpuidle: using governor ladder
    [ 0.268976] cpuidle: using governor menu
    [ 0.274188] OMAP GPIO hardware version 0.1
    [ 0.286327] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.328631] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.329829] reg-fixed-voltage fixedregulator@2: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wl12xx_ge
    [ 0.333118] vgaarb: loaded
    [ 0.333752] SCSI subsystem initialized
    [ 0.334122] usbcore: registered new interface driver usbfs
    [ 0.334209] usbcore: registered new interface driver hub
    [ 0.334326] usbcore: registered new device driver usb
    [ 0.334969] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring e
    [ 0.335143] media: Linux media interface: v0.10
    [ 0.335217] Linux video capture interface: v2.00
    [ 0.335274] pps_core: LinuxPPS API ver. 1 registered
    [ 0.335283] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.335318] PTP clock support registered
    [ 0.335568] EDAC MC: Ver: 3.0.0
    [ 0.336878] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.337272] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.338631] clocksource: Switched to clocksource timer1
    [ 0.351032] NET: Registered protocol family 2
    [ 0.351903] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.351944] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.351975] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.352061] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.352083] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.352247] NET: Registered protocol family 1
    [ 0.352678] RPC: Registered named UNIX socket transport module.
    [ 0.352693] RPC: Registered udp transport module.
    [ 0.352700] RPC: Registered tcp transport module.
    [ 0.352707] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.353820] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.356057] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.365172] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.366111] NFS: Registering the id_resolver key type
    [ 0.366192] Key type id_resolver registered
    [ 0.366201] Key type id_legacy registered
    [ 0.366288] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.368509] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [ 0.368542] io scheduler noop registered
    [ 0.368557] io scheduler deadline registered
    [ 0.368859] io scheduler cfq registered (default)
    [ 0.370685] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.374192] backlight supply power not found, using dummy regulator
    [ 0.443151] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.447738] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [ 1.084422] console [ttyS0] enabled
    [ 1.089226] [drm] Initialized drm 1.1.0 20060810
    [ 1.095391] of_graph_get_next_endpoint(): no port node found in /ocp/lcdc@4830e000
    [ 1.103830] of_graph_get_next_endpoint(): no port node found in /ocp/lcdc@4830e000
    [ 1.112036] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 1.118771] [drm] No driver support for vblank timestamp query.
    [ 1.135532] Console: switching to colour frame buffer device 60x34
    [ 1.144224] tilcdc 4830e000.lcdc: fb0: frame buffer device
    [ 1.178655] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [ 1.193250] loop: module loaded
    [ 1.199369] libphy: Fixed MDIO Bus: probed
    [ 1.268670] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 1.274844] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
    [ 1.282572] libphy: 4a101000.mdio: probed
    [ 1.286620] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
    [ 1.296021] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Atheros 8031 ethernet
    [ 1.306204] cpsw 4a100000.ethernet: Detected MACID = d4:94:a1:86:56:1f
    [ 1.314027] cpsw 4a100000.ethernet: cpsw: Detected MACID = d4:94:a1:86:56:20
    [ 1.322100] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [ 1.329794] usbcore: registered new interface driver pegasus
    [ 1.335574] usbcore: registered new interface driver asix
    [ 1.341097] usbcore: registered new interface driver ax88179_178a
    [ 1.347317] usbcore: registered new interface driver cdc_ether
    [ 1.353291] usbcore: registered new interface driver smsc75xx
    [ 1.359168] usbcore: registered new interface driver smsc95xx
    [ 1.365030] usbcore: registered new interface driver net1080
    [ 1.370808] usbcore: registered new interface driver cdc_subset
    [ 1.376815] usbcore: registered new interface driver zaurus
    [ 1.382588] usbcore: registered new interface driver cdc_ncm
    [ 1.389227] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.395801] ehci-pci: EHCI PCI platform driver
    [ 1.400440] ehci-platform: EHCI generic platform driver
    [ 1.405926] ehci-omap: OMAP-EHCI Host Controller driver
    [ 1.411359] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 1.417649] ohci-pci: OHCI PCI platform driver
    [ 1.422232] ohci-platform: OHCI generic platform driver
    [ 1.428070] usbcore: registered new interface driver usb-storage
    [ 1.434725] mousedev: PS/2 mouse device common for all mice
    [ 1.441440] i2c /dev entries driver
    [ 1.446799] cpuidle: enable-method property 'ti,am3352' found operations
    [ 1.453950] sdhci: Secure Digital Host Controller Interface driver
    [ 1.460223] sdhci: Copyright(c) Pierre Ossman
    [ 1.465248] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.528999] Synopsys Designware Multimedia Card Interface Driver
    [ 1.535593] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 1.543044] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.549515] usbcore: registered new interface driver usbhid
    [ 1.555118] usbhid: USB HID core driver
    [ 1.562663] NET: Registered protocol family 10
    [ 1.568874] sit: IPv6 over IPv4 tunneling driver
    [ 1.574387] NET: Registered protocol family 17
    [ 1.579395] Key type dns_resolver registered
    [ 1.583927] omap_voltage_late_init: Voltage driver support not added
    [ 1.591593] ThumbEE CPU extension supported.
    [ 1.595994] Registering SWP/SWPB emulation handler
    [ 1.618911] tps65910 0-002d: No interrupt support, no core IRQ
    [ 1.648752] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.655217] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.660364] vmmc: supplied by vbat
    [ 1.779127] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 1.792461] mmc0: new high speed SDHC card at address aaaa
    [ 1.799007] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    [ 1.807115] mmcblk0: p1 p2
    [ 1.819147] vdd_mpu: supplied by vbat
    [ 1.825431] input: gpio_buttons@0 as /devices/platform/gpio_buttons@0/input/input0
    [ 1.833859] hctosys: unable to open rtc device (rtc0)
    [ 1.846404] lis3_reg: disabling
    [ 1.850153] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
    [ 1.858396] ALSA device list:
    [ 1.861477] No soundcards found.
    [ 1.876596] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 1.884470] mmc1: new SDIO card at address 0001
    [ 1.889609] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 1.899468] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [ 1.908830] devtmpfs: mounted
    [ 1.912309] Freeing unused kernel memory: 292K (c096d000 - c09b6000)
    [ 1.919012] This architecture does not have kernel memory protection.
    [ 2.246723] systemd[1]: System time before build time, advancing clock.
    [ 2.320060] random: systemd urandom read with 22 bits of entropy available
    [ 2.352726] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCR)
    [ 2.372124] systemd[1]: Detected architecture arm.

    Welcome to Arago 2016.05!

    [ 2.400843] systemd[1]: Set hostname to <am335x-evm>.
    [ 2.555442] systemd-sysv-generator[63]: Configuration file /lib/systemd/system/psplash.service is marked executable. Please remove executab.
    [ 2.572581] systemd-sysv-generator[63]: Configuration file /lib/systemd/system/psplash.service is marked world-writable. Please remove worl.
    [ 2.954535] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
    [ 3.109732] systemd[1]: Configuration file /lib/systemd/system/psplash.service is marked executable. Please remove executable permission bi.
    [ 3.124602] systemd[1]: Configuration file /lib/systemd/system/psplash.service is marked world-writable. Please remove world writability pe.
    [ 3.140477] systemd[1]: [/lib/systemd/system/psplash.service:16] Unknown lvalue 'before' in section 'Service'
    [ 3.339968] systemd[1]: sysinit.target: Found ordering cycle on sysinit.target/start
    [ 3.347820] systemd[1]: sysinit.target: Found dependency on alignment.service/start
    [ 3.355740] systemd[1]: sysinit.target: Found dependency on basic.target/start
    [ 3.363120] systemd[1]: sysinit.target: Found dependency on sysinit.target/start
    [ 3.370642] systemd[1]: sysinit.target: Breaking ordering cycle by deleting job alignment.service/start
    [ 3.380128] systemd[1]: alignment.service: Job alignment.service/start deleted to break ordering cycle starting with sysinit.target/start
    [ SKIP ] Ordering cycle found, skipping alignment.service
    [ 3.426656] systemd[1]: Reached target Swap.
    [ OK ] Reached target Swap.
    [ 3.449712] systemd[1]: Listening on Journal Socket.
    [ OK ] Listening on Journal Socket.
    [ 3.479957] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ OK ] Started Forward Password Requests to Wall Directory Watch.
    [ 3.509442] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ 3.539075] systemd[1]: Reached target Remote File Systems.
    [ OK ] Reached target Remote File Systems.
    [ 3.572161] systemd[1]: Created slice System Slice.
    [ OK ] Created slice System Slice.
    [ 3.613549] systemd[1]: Mounting Temporary Directory...
    Mounting Temporary Directory...
    [ 3.677574] systemd[1]: Starting Remount Root and Kernel File Systems...
    Starting Remount Root and Kernel File Systems...
    [ 3.744795] systemd[1]: Mounting POSIX Message Queue File System...
    [ 3.790553] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    Mounting POSIX Message Queue File System...
    [ 3.846079] systemd[1]: Starting Setup Virtual Console...
    Starting Setup Virtual Console...
    [ 3.886057] systemd[1]: Mounting Debug File System...
    Mounting Debug File System...
    [ 3.965086] systemd[1]: Listening on Network Service Netlink Socket.
    [ OK ] Listening on Network Service Netlink Socket.
    [ 4.001081] systemd[1]: Created slice User and Session Slice.
    [ OK ] Created slice User and Session Slice.
    [ 4.029186] systemd[1]: Reached target Slices.
    [ OK ] Reached target Slices.
    [ 4.049538] systemd[1]: Listening on Journal Socket (/dev/log).
    [ OK ] Listening on Journal Socket (/dev/log).
    [ 4.079811] systemd[1]: Listening on Syslog Socket.
    [ OK ] Listening on Syslog Socket.
    [ 4.111007] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [ OK ] Created slice system-serial\x2dgetty.slice.
    [ 4.144617] systemd[1]: Starting Journal Service...
    Starting Journal Service...
    [ 4.163273] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [ OK ] Started Dispatch Password Requests to Console Directory Watch.
    [ 4.209945] systemd[1]: Listening on udev Kernel Socket.
    [ OK ] Listening on udev Kernel Socket.
    [ 4.245356] systemd[1]: Starting Create list of required static device nodes for the current kernel...
    Starting Create list of required st... nodes for the current kernel...
    [ 4.319689] systemd[1]: Listening on udev Control Socket.
    [ OK ] Listening on udev Control Socket.
    [ 4.339478] systemd[1]: Reached target Paths.
    [ OK ] Reached target Paths.
    [ 4.371345] systemd[1]: Created slice system-getty.slice.
    [ OK ] Created slice system-getty.slice.
    [ 4.408926] systemd[1]: Starting Load Kernel Modules...
    Starting Load Kernel Modules...
    [ 4.479364] cryptodev: driver 1.8 loaded.
    [ 4.505520] systemd[1]: Mounted Debug File System.
    [ OK ] Mounted Debug File System.
    [ 4.520265] systemd[1]: Mounted POSIX Message Queue File System.
    [ OK ] Mounted POSIX Message Queue File System.
    [ 4.549291] systemd[1]: Mounted Temporary Directory.
    [ OK ] Mounted Temporary Directory.
    [ 4.580055] systemd[1]: Started Journal Service.
    [ OK ] Started Journal Service.
    [ 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.
    [ OK ] Started Load Kernel Modules.
    Starting Apply Kernel Variables...
    Starting Create Static Device Nodes in /dev...
    Starting udev Coldplug all Devices...
    Starting Flush Journal to Persistent Storage...
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Started Create Static Device Nodes in /dev.
    [ 6.385621] systemd-journald[93]: Received request to flush runtime journal from PID 1
    [ OK ] Started Flush Journal to Persistent Storage.
    Starting udev Kernel Device Manager...
    [ OK ] Reached target Local File Systems (Pre).
    Mounting /media/ram...
    Mounting /var/volatile...
    [ OK ] Mounted /var/volatile.
    [ OK ] Mounted /media/ram.
    [ OK ] Started udev Kernel Device Manager.
    [ OK ] Started udev Coldplug all Devices.
    [ OK ] Reached target Local File Systems.
    Starting Create Volatile Files and Directories...
    Starting Load/Save Random Seed...
    [ OK ] Started Load/Save Random Seed.
    [ OK ] Started Create Volatile Files and Directories.
    [ 8.704160] vaux2: supplied by vbat
    [ 8.750393] omap_rtc 44e3e000.rtc: already running
    [ 8.779809] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
    [ 8.842746] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 8.873905] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input1
    [ 8.888205] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 8.935778] 47401300.usb-phy supply vcc not found, using dummy regulator
    [ OK ] Found device /dev/ttyS0.
    [ 9.111422] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 9.389335] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 9.930677] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 10.086044] remoteproc0: wkup_m3 is available
    [ 10.098189] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 10.132996] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 10.170626] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [ 10.258836] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 10.297196] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
    [ 10.320277] remoteproc1: 4a334000.pru0 is available
    [ 10.325295] remoteproc1: Note: remoteproc is still under development and considered experimental.
    [ 10.530144] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 10.600523] remoteproc0: powering up wkup_m3
    [ 10.606225] remoteproc0: Booting fw image am335x-pm-firmware.elf, size 216252
    [ 10.651046] PM: bootloader does not support rtc-only!
    [ 10.727977] remoteproc1: registered virtio0 (type 7)
    [ 10.781799] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss@4a300000/pru0@4a334000 probed successfully
    [ 10.806127] remoteproc0: remote processor wkup_m3 is now up
    [ 10.806153] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    [ 10.823907] asoc-simple-card sound: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
    [ 10.879614] remoteproc2: 4a338000.pru1 is available
    [ 10.884637] remoteproc2: Note: remoteproc is still under development and considered experimental.
    [ OK ] Found device /dev/ttyS3.
    [ 11.119006] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 11.239443] remoteproc2: registered virtio1 (type 7)
    [ 11.244632] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss@4a300000/pru1@4a338000 probed successfully
    [ OK ] Created slice system-systemd\x2dbacklight.slice.
    Starting Load/Save Screen Backlight...htness of backlight:backlight...
    Starting Network Time Synchronization...
    Starting Update UTMP about System Boot/Shutdown...
    [ OK ] Started Load/Save Screen Backlight Brightness of backlight:backlight.
    [ OK ] Started Network Time Synchronization.
    [ 12.706172] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ OK ] Found device /dev/mmcblk0p1.
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    [ 15.178476] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [ 15.221574] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [ 15.294203] hub 1-0:1.0: USB hub found
    [ 15.324491] hub 1-0:1.0: 1 port detected
    [ 15.437067] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [ 15.529831] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [ 15.591533] remoteproc1: powering up 4a334000.pru0
    [ 15.597140] remoteproc1: Booting fw image am335x-pru0-fw, size 80252
    [ 15.607632] hub 2-0:1.0: USB hub found
    [ 15.638973] hub 2-0:1.0: 1 port detected
    [ 15.677393] ti-pruss 4a300000.pruss: configured system_events = 0x1000000000000000 intr_channels = 0x00000001 host_intr = 0x00000001
    [ 15.769075] remoteproc1: remote processor 4a334000.pru0 is now up
    [ 15.794229] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1e
    [ 15.801353] virtio_rpmsg_bus virtio0: rpmsg host is online
    [ 15.852340] remoteproc2: powering up 4a338000.pru1
    [ 15.872775] remoteproc2: Booting fw image am335x-pru1-fw, size 80252
    [ 15.908743] ti-pruss 4a300000.pruss: configured system_events = 0x0800000000000000 intr_channels = 0x00000002 host_intr = 0x00000002
    [ 15.988908] remoteproc2: remote processor 4a338000.pru1 is now up
    [ 15.996310] virtio_rpmsg_bus virtio1: creating channel rpmsg-pru addr 0x1f
    [ 16.008878] virtio_rpmsg_bus virtio1: rpmsg host is online
    [ 16.120306] rpmsg_pru rpmsg0: new rpmsg_pru device: /dev/rpmsg_pru30
    [ 16.150030] rpmsg_pru rpmsg1: new rpmsg_pru device: /dev/rpmsg_pru31
    [ OK ] Reached target Sound Card.
    [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    Starting Synchronize System and HW clocks...
    [ OK ] Reached target System Time Synchronized.
    [ OK ] Started Synchronize System and HW clocks.
    [ OK ] Reached target System Initialization.
    [ OK ] Listening on D-Bus System Message Bus Socket.
    [ OK ] Started Daily Cleanup of Temporary Directories.
    [ OK ] Reached target Timers.
    [ OK ] Listening on dropbear.socket.
    [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [ OK ] Listening on RPCbind Server Activation Socket.
    [ OK ] Reached target Sockets.
    [ OK ] Reached target Basic System.
    Starting Avahi mDNS/DNS-SD Stack...
    [ OK ] Started D-Bus System Message Bus.
    [ OK ] Started Avahi mDNS/DNS-SD Stack.
    Starting Network Service...
    Starting Start USB gadget...
    [ 17.528804] random: nonblocking pool is initialized
    Starting Permit User Sessions...
    Starting Telephony service...
    Starting Login Service...
    [ OK ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
    [ 17.880932] net eth1: initializing cpsw version 1.12 (0)
    [ 17.886333] net eth0: initialized cpsw ale version 1.4
    [ OK ] Started System Logging Service.
    [ OK ] Started Myinit scripts.
    [ 18.039590] net eth1: phy found : id is : 0x4dd074
    Starting uim-sysfs.service...
    [ 18.129198] using random self ethernet address
    [ 18.133699] using random host ethernet address
    [ 18.138171] using host ethernet address: D4:94:A1:86:56:20
    [ 18.166470] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [ OK ] Started Kernel Logging Service.
    [ 18.288911] using random self ethernet address
    [ 18.293420] using random host ethernet address
    [ 18.297896] using host ethernet address: D4:94:A1:86:56:20
    [ 18.304440] net eth0: initializing cpsw version 1.12 (0)
    [ 18.310668] Bluetooth: Core ver 2.21
    Starting Save/Restore Sound Card State...
    [ 18.378448] NET: Registered protocol family 31
    [ 18.443756] Bluetooth: HCI device and connection manager initialized
    [ 18.489588] net eth0: phy found : id is : 0x4dd074
    [ 18.523432] Bluetooth: HCI socket layer initialized
    [ 18.558197] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 18.566071] Bluetooth: L2CAP socket layer initialized
    [ 18.618149] Bluetooth: SCO socket layer initialized
    [ 18.627837] usb0: HOST MAC d4:94:a1:86:56:20
    [ 18.651485] usb0: MAC c2:bc:1f:a1:c9:8e
    [ OK ] Started Network Service.
    [ 18.789745] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
    [ OK ] Started Permit User Sessions.
    [ 18.806886] Mass Storage Function, version: 2009/09/11
    [ 18.868820] LUN: removable file: (no medium)
    [ 18.873527] LUN: removable read only file: /dev/mmcblk0p1
    [ 18.958892] Number of LUNs=1
    [ 18.981031] g_multi gadget: Multifunction Composite Gadget
    [ 18.986581] g_multi gadget: g_multi ready
    [ 19.049103] NET: Registered protocol family 15
    [ OK ] Started Save/Restore Sound Card State.
    [ OK ] Found device /dev/ttyGS0.
    [ 19.524235] g_multi gadget: high-speed config #2: Multifunction with CDC ECM
    [ 19.532442] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
    [ 19.818058] Initializing XFRM netlink socket
    [ OK ] Started Start USB gadget.
    [ OK ] Started Telephony service.
    [ OK ] Started Login Service.
    [ OK ] Started Getty on tty2.
    Mounting Configuration File System...
    [ OK ] Started Getty on tty1.
    [ OK ] Started Serial Getty on ttyGS0.
    [ OK ] Started Serial Getty on ttyS0.
    [ OK ] Started Serial Getty on ttyS3.
    [ OK ] Reached target Network.
    Starting Lightning Fast Webserver With Light System Requirements...
    Starting Network Name Resolution...
    [ OK ] Mounted Configuration File System.
    [ OK ] Started Lightning Fast Webserver With Light System Requirements.
    [ OK ] Started Network Name Resolution.
    [ OK ] Started uim-sysfs.service.
    Starting rc.pvr.service...
    [ 25.611609] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    [ OK ] Started rc.pvr.service.
    Starting weston.service...
    [ OK ] Started weston.service.
    Starting telnetd.service...
    [ OK ] Started telnetd.service.
    Starting thttpd.service...
    Starting busybox-udhcpd.service...
    [ OK ] Started thttpd.service.
    [ OK ] Started busybox-udhcpd.service.
    Starting rng-tools.service...
    [ OK ] Started rng-tools.service.
    Starting parse-ip.service...
    Starting thermal-zone-init.service...
    [ OK ] Started thermal-zone-init.service.
    [ OK ] Started parse-ip.service.
    Starting gplv3-notice.service...

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

    Arago Project http://arago-project.org am335x-evm ttyS0

    Arago 2016.05 am335x-evm ttyS0

    am335x-evm login: root
    root@am335x-evm:~#
  • Hi,
    systemD is the first process that runs from userspace. So any service started by systemD will be later after the kernel boots up and after kernel log comes.
  • Hi khageswar,

    Check with systemd-analyze plot > neame.svg ===> It will show when systemd services start.
    systemd service loaded after kernel image right?
    I'm not sure before kernel systemd service not possible to enable.Systemd services after kernel booting only  first mounted ext4(filesystem) partiitons and run systemd services.Systemd services running from filesystem right?

    Thanks
    veera

  • Hi Kageswarrao,
    if you want before kernel .you can enable the plash screen support enable in uboot and try.
    I think splash screen will come under grub right? means ie uboot stage.so u can enable the splash screen support in uboot and try.

    Thanks
    veera