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

    datrh · GitHub

    my github :

    LE9-Kodi18.6 => this is the one to use

    Edited once, last by datrh ().

  • 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

  • What exactly are you trying to add/change in initramfs? Seems removing both packages does rebuild initramfs.cpio.

    Gone...

  • 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
    1. ./scripts/clean busybox
    2. ./scripts/clean linux
    3. ./scripts/clean initramfs

    Gone...

  • 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?