How do I compile kernel patch ?

  • There is no very easy way - what you can try to do is:

    • read compile [LibreELEC]
    • download source from the branch you want (e.g. git clone https://github.com/LibreELEC/LibreELEC.tv -b libreelec-8.2
    • download patch to projects/Odroid_C2/patches/linux
    • build kernel ARCH=aarch64 PROJECT=Odroid_C2 ./scripts/build linux

    Keep in mind that this involves building whole toolchain which takes time when you build for the first time.

  • Thanks for your help.

    The build is in progress.

    Note for others, to download patch from github, check the exemple (you need to add manualy '.patch' in the github url):

    Code
    curl -L https://github.com/hardkernel/linux/commit/5b39258a76be9cd385ea7b45a8a21e08992eb6e5.patch >  projects/Odroid_C2/patches/linux/linux-009-usb-allow-some-timings-to-be-tweak-from-cmdline.patch
  • Oups! How to bind the building on the correct kernel ?

    Code
    APPLY PATCH (project)   projects/Odroid_C2/patches/linux/linux-009-usb-allow-some-timings-to-be-tweak-from-cmdline.patch
    patching file drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_queue.c
    Hunk #2 FAILED at 378.
    1 out of 2 hunks FAILED -- saving rejects to file drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_queue.c.rej


    drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_queue.c.rej

  • kszaq please, isn't this patch already in some of yours newer releases (Index of /s905/8.2) ?

    There is no very easy way - what you can try to do is:

    • read compile [LibreELEC]
    • download source from the branch you want (e.g. git clone https://github.com/LibreELEC/LibreELEC.tv -b libreelec-8.2
    • download patch to projects/Odroid_C2/patches/linux
    • build kernel ARCH=aarch64 PROJECT=Odroid_C2 ./scripts/build linux

    Keep in mind that this involves building whole toolchain which takes time when you build for the first time.

  • Hi,

    I don't understand, I'm running "LibreELEC (official): 8.2.1 (Odroid_C2.aarch64)"

    I want to update the system with kszaq's builds but it's not working.

    Libreelec told me, the architecture is not compatible.

    What can I do ?

  • Current C2 releases are aarch64, future C2 releases and kszaq current release are 'arm' so the update process aborts. Instructions on how to override that are shown on-screen under the error/abort message.

  • Ah ok ;)

    So, I have runned the upgrade with the information below and the result was my C2 became "unbootable" (I have on the screen the Libreelec loading image and nothing happen)... :(

    Code
    touch /storage/.update/.nocompat
    cd .update
    wget https://kszaq.libreelec.tv/s905/8.2/8.2.2.3/LibreELEC-S905.arm-8.2-8.2.2.3-C2.tar

    I need to reinstall all my configuration setup :(

    I hope it's will be more easier to switch between customs rom and officials. cause I don't want to reinstall all time.

    Is it possible to upgrade from 8.2.2.3 to 8.3 for exemple?

    thx

  • fdef After upgrading to my build you should have a new file called boot.ini.update. Remove boot.ini and rename boot.ini.update to boot.ini. This will make your system bootable again.

  • fdef After upgrading to my build you should have a new file called boot.ini.update. Remove boot.ini and rename boot.ini.update to boot.ini. This will make your system bootable again.

    Thx for this notification. I'll remember it !

    Do you have any documentation of this information ? Maybe you could provide a README file in your root repository, it will be useful for the other users.

  • @all,

    I confirm the patch embedded in the kszaq custom build works !

    I listen again little clicks but it appear only when I navigate the kodi information/menu while the video is running.