2008/10/2 Deepak Shankar-TLS,Chennai. <[EMAIL PROTECTED]>

>  Hi,
>
> I've created a ramdisk for the applications that I created in the NFS
> mounts.
> As long as I have a terminal,  I can login and execute the program.
>
> However, I'm trying to start the processes automatically from something
> like a startup script.
> example: running encodedecode demo automatically as the system starts up.
>
> The problem is its working well in the NFS mounts. But does not work in the
> ramdisk.
> the cnmemory pools are not loadable at this stage.
>
> Could someone please tell me what am I missing.
>
> Please suggest on any other alternative methods to invoke scripts
> automatically before logging in.
>
> This is how the /etc/init.d/rcS appears in my rootfs - (Last 2 lines added
> by me)
>
> #############################################################################################3
> #! /bin/sh
> #
> # rcS  Call all S??* scripts in /etc/rcS.d in
> #  numerical/alphabetical order.
> #
> # Version: @(#)/etc/init.d/rcS  2.76  19-Apr-1999
> miquels_at_cistron_dot_nl <[EMAIL PROTECTED]>
> #
>
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> runlevel=S
> prevlevel=N
> umask 022
> export PATH runlevel prevlevel
>
> #
> # See if system needs to be setup. This is ONLY meant to
> # be used for the initial setup after a fresh installation!
> #
> if [ -x /sbin/unconfigured.sh ]
> then
>   /sbin/unconfigured.sh
> fi
>
> #
> # Source defaults.
> #
> . /etc/default/rcS
> export VERBOSE
>
> #
> # Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
> #
> trap ":" INT QUIT TSTP
>
> #
> # Call all parts in order.
> #
> for i in /etc/rc.d/rcS.d/S??*
> do
>  # Ignore dangling symlinks for now.
>  [ ! -f "$i" ] && continue
>
>  case "$i" in
>   *.sh)
>    # Source shell script for speed.
>    (
>     trap - INT QUIT TSTP
>     set start
>     . $i
>    )
>    ;;
>   *)
>    # No sh extension, so fork subprocess.
>    $i start
>    ;;
>  esac
> done
>
> #      Run /etc/rc.d/rc.local if it exists
> [ -x /etc/rc.d/rc.local ] && /etc/rc.d/rc.local
>
> #
> # Finish setup if needed. The comment above about
> # /sbin/unconfigured.sh applies here as well!
> #
> if [ -x /sbin/setup.sh ]
> then
>   /sbin/setup.sh
> fi
> /opt/dvsdk/dm355/loadmodules.sh
> /opt/dvsdk/dm355/encodedecode -p&
>
> #############################################################################################3
> Cheers,
> Deepak
>


Can you provide console output after kernel boot up (around ip
initialization onwards)  till login line. That will help in understanding.

This is open mailing list ... do not put following disclaimer :




> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect
> the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification,
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
>
> -----------------------------------------------------------------------------------------------------------------------
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>
>
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to