Results 1 to 8 of 8

Thread: Found the answer to my usplash problem Kev...How do I impliment???

  1. #1
    Maximum Bitrate locs4dayz's Avatar
    Join Date
    Sep 2009
    Location
    Philadelphia, PA
    Posts
    507

    Exclamation Found the answer to my usplash problem Kev...How do I impliment???

    I believe this is the solution, but am not 100% certain how to make it happen, so I need your help...

    http://ubuntuforums.org/archive/index.php/t-76309.html

    Problem is I can't open usplash_write to do the edit. Is there an editable usplash_write somewhere else I don't know about???
    Linux(Learning the curve...Like when driving!!!)
    Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html

  2. #2
    Newbie
    Join Date
    Sep 2009
    Posts
    12
    I am not familiar with usplash but the reason why you can't edit is probably because it is a binary. The solution that you posted doesn't require you to edit usplash_write at all, but wants you to edit /usr/share/initramfs-tools/init if you go with the first method.

  3. #3
    Maximum Bitrate locs4dayz's Avatar
    Join Date
    Sep 2009
    Location
    Philadelphia, PA
    Posts
    507
    Quote Originally Posted by n2o_2k View Post
    I am not familiar with usplash but the reason why you can't edit is probably because it is a binary. The solution that you posted doesn't require you to edit usplash_write at all, but wants you to edit /usr/share/initramfs-tools/init if you go with the first method.
    That is what I thought...Problem is the line that I am supposed to look for and edit as shown is not present. Do I insert it? If so...where???


    #!/bin/sh

    echo "Loading, please wait..."

    [ -d /dev ] || mkdir -m 0755 /dev
    [ -d /root ] || mkdir -m 0700 /root
    [ -d /sys ] || mkdir /sys
    [ -d /proc ] || mkdir /proc
    [ -d /tmp ] || mkdir /tmp
    mkdir -p /var/lock
    mount -t sysfs -o nodev,noexec,nosuid none /sys
    mount -t proc -o nodev,noexec,nosuid none /proc

    # Note that this only becomes /dev on the real filesystem if udev's scripts
    # are used; which they will be, but it's worth pointing out
    mount -t tmpfs -o mode=0755 udev /dev
    [ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
    [ -e /dev/null ] || mknod /dev/null c 1 3
    > /dev/.initramfs-tools
    mkdir /dev/.initramfs

    # Export the dpkg architecture
    export DPKG_ARCH=
    . /conf/arch.conf

    # Set modprobe env
    export MODPROBE_OPTIONS="-qb"

    # Export relevant variables
    export ROOT=
    export ROOTDELAY=
    export ROOTFLAGS=
    export ROOTFSTYPE=
    export break=
    export init=/sbin/init
    export quiet=n
    export readonly=y
    export rootmnt=/root
    export debug=
    export panic=
    export blacklist=
    export resume_offset=

    # Bring in the main config
    . /conf/initramfs.conf
    for conf in conf/conf.d/*; do
    [ -f ${conf} ] && . ${conf}
    done
    . /scripts/functions

    # Parse command line options
    for x in $(cat /proc/cmdline); do
    case $x in
    init=*)
    init=${x#init=}
    ;;
    root=*)
    ROOT=${x#root=}
    case $ROOT in
    LABEL=*)
    ROOT="${ROOT#LABEL=}"

    # support / in LABEL= paths (escape to \x2f)
    case "${ROOT}" in
    *[/]*)
    if [ -x "$(command -v sed)" ]; then
    ROOT="$(echo ${ROOT} | sed 's,/,\\x2f,g')"
    else
    if [ "${ROOT}" != "${ROOT#/}" ]; then
    ROOT="\x2f${ROOT#/}"
    fi
    if [ "${ROOT}" != "${ROOT%/}" ]; then
    ROOT="${ROOT%/}\x2f"
    fi
    IFS='/'
    newroot=
    for s in $ROOT; do
    if [ -z "${newroot}" ]; then
    newroot="${s}"
    else
    newroot="${newroot}\\x2f${s}"
    fi
    done
    unset IFS
    ROOT="${newroot}"
    fi
    esac
    ROOT="/dev/disk/by-label/${ROOT}"
    ;;
    UUID=*)
    ROOT="/dev/disk/by-uuid/${ROOT#UUID=}"
    ;;
    /dev/nfs)
    [ -z "${BOOT}" ] && BOOT=nfs
    ;;
    esac
    ;;
    rootflags=*)
    ROOTFLAGS="-o ${x#rootflags=}"
    ;;
    rootfstype=*)
    ROOTFSTYPE="${x#rootfstype=}"
    ;;
    rootdelay=*)
    ROOTDELAY="${x#rootdelay=}"
    case ${ROOTDELAY} in
    *[![:digit:].]*)
    ROOTDELAY=
    ;;
    esac
    ;;
    resumedelay=*)
    RESUMEDELAY="${x#resumedelay=}"
    ;;
    loop=*)
    LOOP="${x#loop=}"
    ;;
    loopflags=*)
    LOOPFLAGS="-o ${x#loopflags=}"
    ;;
    loopfstype=*)
    LOOPFSTYPE="${x#loopfstype=}"
    ;;
    cryptopts=*)
    cryptopts="${x#cryptopts=}"
    ;;
    nfsroot=*)
    NFSROOT="${x#nfsroot=}"
    ;;
    netboot=*)
    NETBOOT="${x#netboot=}"
    ;;
    ip=*)
    IPOPTS="${x#ip=}"
    ;;
    boot=*)
    BOOT=${x#boot=}
    ;;
    resume=*)
    RESUME="${x#resume=}"
    ;;
    resume_offset=*)
    resume_offset="${x#resume_offset=}"
    ;;
    noresume)
    noresume=y
    ;;
    panic=*)
    panic="${x#panic=}"
    case ${panic} in
    *[![:digit:].]*)
    panic=
    ;;
    esac
    ;;
    quiet)
    quiet=y
    ;;
    ro)
    readonly=y
    ;;
    rw)
    readonly=n
    ;;
    debug)
    debug=y
    quiet=n
    exec >/dev/.initramfs/initramfs.debug 2>&1
    set -x
    ;;
    debug=*)
    debug=y
    quiet=n
    set -x
    ;;
    break=*)
    break=${x#break=}
    ;;
    break)
    break=premount
    ;;
    blacklist=*)
    blacklist=${x#blacklist=}
    ;;
    esac
    done

    if [ -z "${noresume}" ]; then
    export resume=${RESUME}
    else
    export noresume
    fi

    depmod -a
    maybe_break top

    # export BOOT variable value for compcache,
    # so we know if we run from casper
    export BOOT

    # Don't do log messages here to avoid confusing usplash
    run_scripts /scripts/init-top

    maybe_break modules
    log_begin_msg "Loading essential drivers..."
    load_modules
    log_end_msg

    maybe_break premount
    [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-premount"
    run_scripts /scripts/init-premount
    [ "$quiet" != "y" ] && log_end_msg

    maybe_break mount
    log_begin_msg "Mounting root file system..."
    . /scripts/${BOOT}
    parse_numeric ${ROOT}
    mountroot
    log_end_msg

    maybe_break bottom
    [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-bottom"
    run_scripts /scripts/init-bottom
    [ "$quiet" != "y" ] && log_end_msg

    # Move virtual filesystems over to the real filesystem
    mount -n -o move /sys ${rootmnt}/sys
    mount -n -o move /proc ${rootmnt}/proc

    # Check init bootarg
    if [ -n "${init}" ] && [ ! -x "${rootmnt}${init}" ]; then
    echo "Target filesystem doesn't have ${init}."
    init=
    fi

    # Search for valid init
    if [ -z "${init}" ] ; then
    for init in /sbin/init /etc/init /bin/init /bin/sh; do
    if [ ! -x "${rootmnt}${init}" ]; then
    continue
    fi
    break
    done
    fi

    # No init on rootmount
    if [ ! -x "${rootmnt}${init}" ]; then
    panic "No init found. Try passing init= bootarg."
    fi

    # Confuses /etc/init.d/rc
    if [ -n ${debug} ]; then
    unset debug
    fi

    # Chain to real filesystem
    maybe_break init
    exec run-init ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console 2>&1
    panic "Could not execute run-init."


    Do I edit like this...


    #!/bin/sh

    echo "Loading, please wait..."

    [ -d /dev ] || mkdir -m 0755 /dev
    [ -d /root ] || mkdir -m 0700 /root
    [ -d /sys ] || mkdir /sys
    [ -d /proc ] || mkdir /proc
    [ -d /tmp ] || mkdir /tmp
    mkdir -p /var/lock
    mount -t sysfs -o nodev,noexec,nosuid none /sys
    mount -t proc -o nodev,noexec,nosuid none /proc

    # Note that this only becomes /dev on the real filesystem if udev's scripts
    # are used; which they will be, but it's worth pointing out
    mount -t tmpfs -o mode=0755 udev /dev
    [ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
    [ -e /dev/null ] || mknod /dev/null c 1 3
    > /dev/.initramfs-tools
    mkdir /dev/.initramfs

    # Export the dpkg architecture
    export DPKG_ARCH=
    . /conf/arch.conf

    # Set modprobe env
    export MODPROBE_OPTIONS="-qb"

    # Export relevant variables
    export ROOT=
    export ROOTDELAY=
    export ROOTFLAGS=
    export ROOTFSTYPE=
    export break=
    export init=/sbin/init
    export quiet=n
    export readonly=y
    export rootmnt=/root
    export debug=
    export panic=
    export blacklist=
    export resume_offset=

    # Bring in the main config
    . /conf/initramfs.conf
    for conf in conf/conf.d/*; do
    [ -f ${conf} ] && . ${conf}
    done
    . /scripts/functions

    # Parse command line options
    for x in $(cat /proc/cmdline); do
    case $x in
    init=*)
    init=${x#init=}
    ;;
    root=*)
    ROOT=${x#root=}
    case $ROOT in
    LABEL=*)
    ROOT="${ROOT#LABEL=}"

    # support / in LABEL= paths (escape to \x2f)
    case "${ROOT}" in
    *[/]*)
    if [ -x "$(command -v sed)" ]; then
    ROOT="$(echo ${ROOT} | sed 's,/,\\x2f,g')"
    else
    if [ "${ROOT}" != "${ROOT#/}" ]; then
    ROOT="\x2f${ROOT#/}"
    fi
    if [ "${ROOT}" != "${ROOT%/}" ]; then
    ROOT="${ROOT%/}\x2f"
    fi
    IFS='/'
    newroot=
    for s in $ROOT; do
    if [ -z "${newroot}" ]; then
    newroot="${s}"
    else
    newroot="${newroot}\\x2f${s}"
    fi
    done
    unset IFS
    ROOT="${newroot}"
    fi
    esac
    ROOT="/dev/disk/by-label/${ROOT}"
    ;;
    UUID=*)
    ROOT="/dev/disk/by-uuid/${ROOT#UUID=}"
    ;;
    /dev/nfs)
    [ -z "${BOOT}" ] && BOOT=nfs
    ;;
    esac
    ;;
    rootflags=*)
    ROOTFLAGS="-o ${x#rootflags=}"
    ;;
    rootfstype=*)
    ROOTFSTYPE="${x#rootfstype=}"
    ;;
    rootdelay=*)
    ROOTDELAY="${x#rootdelay=}"
    case ${ROOTDELAY} in
    *[![:digit:].]*)
    ROOTDELAY=
    ;;
    esac
    ;;
    resumedelay=*)
    RESUMEDELAY="${x#resumedelay=}"
    ;;
    loop=*)
    LOOP="${x#loop=}"
    ;;
    loopflags=*)
    LOOPFLAGS="-o ${x#loopflags=}"
    ;;
    loopfstype=*)
    LOOPFSTYPE="${x#loopfstype=}"
    ;;
    cryptopts=*)
    cryptopts="${x#cryptopts=}"
    ;;
    nfsroot=*)
    NFSROOT="${x#nfsroot=}"
    ;;
    netboot=*)
    NETBOOT="${x#netboot=}"
    ;;
    ip=*)
    IPOPTS="${x#ip=}"
    ;;
    boot=*)
    BOOT=${x#boot=}
    ;;
    resume=*)
    RESUME="${x#resume=}"
    ;;
    resume_offset=*)
    resume_offset="${x#resume_offset=}"
    ;;
    noresume)
    noresume=y
    ;;
    panic=*)
    panic="${x#panic=}"
    case ${panic} in
    *[![:digit:].]*)
    panic=
    ;;
    esac
    ;;
    quiet)
    quiet=y
    ;;
    ro)
    readonly=y
    ;;
    rw)
    readonly=n
    ;;
    debug)
    debug=y
    quiet=n
    exec >/dev/.initramfs/initramfs.debug 2>&1
    set -x
    ;;
    debug=*)
    debug=y
    quiet=n
    set -x
    ;;
    break=*)
    break=${x#break=}
    ;;
    break)
    break=premount
    ;;
    blacklist=*)
    blacklist=${x#blacklist=}
    ;;
    esac
    done

    if [ -z "${noresume}" ]; then
    export resume=${RESUME}
    else
    export noresume
    fi

    depmod -a
    maybe_break top

    # export BOOT variable value for compcache,
    # so we know if we run from casper
    export BOOT

    # Don't do log messages here to avoid confusing usplash
    run_scripts /scripts/init-top

    maybe_break modules
    log_begin_msg "Loading essential drivers..."
    load_modules
    log_end_msg

    maybe_break premount
    [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-premount"
    run_scripts /scripts/init-premount
    [ "$quiet" != "y" ] && log_end_msg

    maybe_break mount
    log_begin_msg "Mounting root file system..."
    . /scripts/${BOOT}
    /sbin/usplash_write "TIMEOUT 120"
    parse_numeric ${ROOT}
    mountroot
    log_end_msg

    maybe_break bottom
    [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-bottom"
    run_scripts /scripts/init-bottom
    [ "$quiet" != "y" ] && log_end_msg

    # Move virtual filesystems over to the real filesystem
    mount -n -o move /sys ${rootmnt}/sys
    mount -n -o move /proc ${rootmnt}/proc

    # Check init bootarg
    if [ -n "${init}" ] && [ ! -x "${rootmnt}${init}" ]; then
    echo "Target filesystem doesn't have ${init}."
    init=
    fi

    # Search for valid init
    if [ -z "${init}" ] ; then
    for init in /sbin/init /etc/init /bin/init /bin/sh; do
    if [ ! -x "${rootmnt}${init}" ]; then
    continue
    fi
    break
    done
    fi

    # No init on rootmount
    if [ ! -x "${rootmnt}${init}" ]; then
    panic "No init found. Try passing init= bootarg."
    fi

    # Confuses /etc/init.d/rc
    if [ -n ${debug} ]; then
    unset debug
    fi

    # Chain to real filesystem
    maybe_break init
    exec run-init ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console 2>&1
    panic "Could not execute run-init."
    Linux(Learning the curve...Like when driving!!!)
    Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html

  4. #4
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    the post is really dated, probably 2-3 years old so it may not apply to the current system.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  5. #5
    Maximum Bitrate locs4dayz's Avatar
    Join Date
    Sep 2009
    Location
    Philadelphia, PA
    Posts
    507
    Quote Originally Posted by kev000 View Post
    the post is really dated, probably 2-3 years old so it may not apply to the current system.
    Ok...Take a look at how I did the edit. Do you think it will prevent my system from booting? If not I will try it and see if it works!...


    maybe_break mount
    log_begin_msg "Mounting root file system..."
    . /scripts/${BOOT}
    /sbin/usplash_write "TIMEOUT 120"
    parse_numeric ${ROOT}
    mountroot
    log_end_msg
    Linux(Learning the curve...Like when driving!!!)
    Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html

  6. #6
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    looks okay to me.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  7. #7
    Maximum Bitrate locs4dayz's Avatar
    Join Date
    Sep 2009
    Location
    Philadelphia, PA
    Posts
    507
    Quote Originally Posted by kev000 View Post
    looks okay to me.

    Tried it...no change. Remembered that I installed my system using the Ext4 file system, so I've decided that I'm going to try to configure xsplash instead. If i get it working I'm uninstalling usplash. Got it to install successfully!
    Linux(Learning the curve...Like when driving!!!)
    Worklog!!!http://www.mp3car.com/vbulletin/fabr...l-worklog.html

  8. #8
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote Originally Posted by locs4dayz View Post
    Tried it...no change. Remembered that I installed my system using the Ext4 file system, so I've decided that I'm going to try to configure xsplash instead. If i get it working I'm uninstalling usplash. Got it to install successfully!
    xsplash? Did you upgrade to karmic? I didn't think jaunty had xsplash...
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

Similar Threads

  1. Headunit (Linux/Windows CarPC frontend) + initial screenshots
    By NoPistonPC in forum Other Cool Front Ends
    Replies: 321
    Last Post: 08-24-2007, 02:57 PM
  2. GPS not found problem
    By ThEScReW in forum GPS
    Replies: 5
    Last Post: 12-20-2004, 05:39 PM
  3. Found the answer 2.5 or 3.5 ide drives to usb adaptor
    By SAScooby in forum General Hardware Discussion
    Replies: 2
    Last Post: 11-24-2004, 01:31 AM
  4. Noise problem -- finally found the source!
    By sq_geek in forum General Hardware Discussion
    Replies: 7
    Last Post: 11-14-2004, 11:49 PM
  5. Found and fixed another Lilliput problem...
    By Altimat in forum LCD/Display
    Replies: 1
    Last Post: 01-01-2004, 09:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •