refresh "initramfs | initramfs.cpio"

  • Hi,

    is it possible to refresh "initramfs | initramfs.cpio" without rebuilding the whole project ?

    it seems that rebuilding the "linux" isn't enough.

    best regards

    Edited once, last by datrh (April 6, 2018 at 7:55 AM).

  • hi,

    it doesn't seems to be enough ( ./scripts/clean linux & ./scripts/clean initramfs ) as the "initramfs" isn't update in the "build" directory.

    Now it's not dramatic but if there's a way to bing modifications to the initramfs without rebuilding the whole stuff, i'm interested.


    regards

  • you're right.

    i haven't given enough info.

    if i mod the "platform_init" in the project directory , rebuilding the linux package and the initramfs package will not update the "platform_init" in the build directory.

    regards

  • Try removing also busybox package because I think file is copied from there.

    Code
    ./scripts/clean busybox
    ./scripts/clean linux
    ./scripts/clean initramfs
  • hi,

    in the past i made a fork of balbes 150 works, changed a few things to be able to run libreelec on minix x8-h x8-hp.

    i'm now working on a fork of "official" libreelec 9 and everything runs flawlessly except that i can't anymore boot from internal.

    it seems that this part in the initramfs isn't correctly evaluated anymore.

    ------------------------------------------------------------------------

    # Parse command line arguments

    for arg in $(cat /proc/cmdline); do

    case $arg in

    hdmitx=*)

    hdmitx="${arg#*=}"

    ;;

    hdmimode=*)

    hdmimode="${arg#*=}"

    ;;

    BOOT_IMAGE=*)

    BOOT_IMAGE="${arg#*=}"

    ;;

    boot=*)

    boot="${arg#*=}"

    ;;

    disk=*)

    disk="${arg#*=}"

    ;;

    esac

    done

    echo "$hdmimode" > /sys/class/display/mode

    # Add information where to run LibreELEC from

    if [ -z "$BOOT_IMAGE" -o -z "$boot" -o -z "$disk" ]; then

    cmdline=$(cat /proc/cmdline)

    cmdline="$cmdline BOOT_IMAGE=/dev/boot boot=/dev/system disk=/dev/data"

    echo "$cmdline" > /proc/cmdline

    fi

    ---------------------------------------------------------------------------------------------------------------------------

    anyone has the same kind of trouble?