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.

Understanding of init scripts in argo base rootfs in to sdk8

Am trying to remove the unwanted scripts in argo base rootfs, could any please provide some explanation if each script present in the /etc/init.d/

Kindly do the needful as early as possible

Many thanks in advance

  • Hi,
    Most of the scripts won't run from /etc/init.d/, it depends which run level you are using.
    If you are using run level 5 then, scripts would run from the directory.
    /etc/rc5.d/
    If you don't want to run scripts then modify from "S" to "K" in the start of script name.
    Ex:
    S21-modules.sh to K21-modules.sh

    S -> Start (Run)
    K -> Kill (Not to run)
  • Hi Srini,

    In addition. 


    Those are the init scripts that are executed during board boot up.
    They are responsible for starting different daemons & processes in your system, such as: matrix gui, touch screen calibration, dbus, dropbear, lighttpd, splash screen, busybox, alsa, etc..

    Usually each script has a short description at the beginning.

    Best Regards,
    Yordan

  • Dear Yordan /Titus

    Thanks a lot for your quick inputs

    processors.wiki.ti.com/.../Sitara_Linux_Training:_Boot_Time_Reduction

    1. W.r.t the file systems optimization the above link says that udev can be replaced with mdev, Could you please let me know how this can be done in arago-base-tisdk-image-am335x-evm in ti sdk 8 (I googled a few but it was bits & pieces) with detailed steps & please let me know is there any harm in using mdev (as in my product, I would be using USB as one of the hot pluggable devices) because  I see udev in ti sdk 8 argo-base rootfs, it is taking 10 sec,




    2. As am newbie to rootfs I need some brief explanation w.r.t the below scripts, once if I get better understanding, I can try to remove which ever the below is not required in the /etc/init.d/

    alignment.sh
    banner.sh
    bootmisc.sh
    checkroot.sh
    modutils.sh
    mountall.sh
    populate-volatile.sh
    psplash.sh
    read-only-rootfs-hook.sh
    urandom
    modutils.sh


    3. And how to disable the login ie., preventing it to enter the password

    4. To reduce the time creation of shell

    5. How to build uncompressed kernel Image & load it from EMMC


    Kindly do the needful as early as possible

    Many Thanks in advance

  • Hi,
    In my opinion, use udev but run it in background mode (use &).
    Whatever script or services taking much time and affecting booting time, try to run those in background mode.
    Edit the scripts and use & while running.
  • Thanks a lot for your quick responses


    Could you please provide some example ie., incase of udev, which script can i edit & how to run in the background


    Kindly do the needful as early as possible

    Many Thanks in advance
  • Dear Titus,


    Please provide me the steps (, incase of udev, which script can i edit & how to run in the background) as early as possible in arago-base rootfs in ti sdk 8

    sorry to push you hard

    Awaiting for your replies,
    Many Thanks in advance
  • Hi Srini,
    What are all the files you have in "/etc/rc5.d" folder and list those files ?
    Attach the "udev" related file from "/etc/rc5.d" folder ?.
  • Dear Titus,

    I didn't find anything to udev in rc5.d but I found in rcS.d, I have hereby attached the files in folders of rc5.d & rcS.d

    Kindly do the needful as early as possible

    4478.rcS&rc5.zip

  • Dear Titus

    Could you please steps w.r.t the udev running in background & let me know how that needs to removed from the init

    Kindly do the needful as early as possible

    Many Thanks in advance
  • Dear Titus,



    Am awaiting for you replies, for time being, as you suggested am planning to run only udev in background
    Could you please provide me the detailed steps, and commands, so that I can run in background

    Once again sorry to push you hard as am having release tomorrow

    Kindly do the needful as early as possible

    Many Thanks in advance once again