Recompile a kernel including a firmware

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












How can i recompile the kernel? I' m trying this guide https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel.



I' m using lubuntu 18.04 on a tablet, i want a custom kernel to enable the touchcreen.



Folowing this section took from https://github.com/onitake/gsl-firmware#silead_tsi made a custom silead_dmi.c (that is located in drivers/platform/x86/silead_dmi.c) and that refers to the silead_ts.fw firmware that i found here https://github.com/onitake/gsl-firmware/tree/master/firmware/trekstor/surftab7new (FYI Mediacom W700 is equivalent at SurfTab wintron 7.0 ST70416-6).



I used apt-get source linux-headers-$(uname -r) and got the linux-4.15 folder of 800 MB. That has the path drivers/platform/x86/silead_dmi.c in which i made the drivers/platform/x86/silead_dmi.c file.



Following the guide i used apt-get source linux-image-$(uname -r) and got the linux-signed-4.15.0 folder of 118 kB.

Now using fakeroot debian/rules editconfigs i get an error:



dh editconfigs
dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:35: recipe for target 'editconfigs' failed
make: *** [editconfigs] Error 2


How can i fix this error and recompile the kernel?

And the folder obtained from apt-get source linux-headers-$(uname -r) which has the path drivers/platform/x86/silead_dmi.c?

And the firmware?



https://askubuntu.com/questions/1067640/enable-the-touchscreen-of-a-mediacom-winpad-w700

If someone want more info can check there.










share|improve this question























  • Fill a bugreport, or use the more conventional make menuconfig and make deb-pkg.
    – Ipor Sircer
    Sep 3 at 12:56







  • 1




    Of you are modifying sources, you are on your own, please do not fill frivolous bug reports
    – Rui F Ribeiro
    Sep 4 at 5:45










  • @RuiFRibeiro if i fill a request for a new software? Include tablet touchscrenn support. So the developers can do it. Using make deb-pkg i can transform the firmware into a installable package?
    – Scorpion
    Sep 4 at 7:40










  • @IporSircer how can i use make menuconfig and make deb-pkg?
    – Scorpion
    Sep 4 at 10:38














up vote
-1
down vote

favorite












How can i recompile the kernel? I' m trying this guide https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel.



I' m using lubuntu 18.04 on a tablet, i want a custom kernel to enable the touchcreen.



Folowing this section took from https://github.com/onitake/gsl-firmware#silead_tsi made a custom silead_dmi.c (that is located in drivers/platform/x86/silead_dmi.c) and that refers to the silead_ts.fw firmware that i found here https://github.com/onitake/gsl-firmware/tree/master/firmware/trekstor/surftab7new (FYI Mediacom W700 is equivalent at SurfTab wintron 7.0 ST70416-6).



I used apt-get source linux-headers-$(uname -r) and got the linux-4.15 folder of 800 MB. That has the path drivers/platform/x86/silead_dmi.c in which i made the drivers/platform/x86/silead_dmi.c file.



Following the guide i used apt-get source linux-image-$(uname -r) and got the linux-signed-4.15.0 folder of 118 kB.

Now using fakeroot debian/rules editconfigs i get an error:



dh editconfigs
dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:35: recipe for target 'editconfigs' failed
make: *** [editconfigs] Error 2


How can i fix this error and recompile the kernel?

And the folder obtained from apt-get source linux-headers-$(uname -r) which has the path drivers/platform/x86/silead_dmi.c?

And the firmware?



https://askubuntu.com/questions/1067640/enable-the-touchscreen-of-a-mediacom-winpad-w700

If someone want more info can check there.










share|improve this question























  • Fill a bugreport, or use the more conventional make menuconfig and make deb-pkg.
    – Ipor Sircer
    Sep 3 at 12:56







  • 1




    Of you are modifying sources, you are on your own, please do not fill frivolous bug reports
    – Rui F Ribeiro
    Sep 4 at 5:45










  • @RuiFRibeiro if i fill a request for a new software? Include tablet touchscrenn support. So the developers can do it. Using make deb-pkg i can transform the firmware into a installable package?
    – Scorpion
    Sep 4 at 7:40










  • @IporSircer how can i use make menuconfig and make deb-pkg?
    – Scorpion
    Sep 4 at 10:38












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











How can i recompile the kernel? I' m trying this guide https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel.



I' m using lubuntu 18.04 on a tablet, i want a custom kernel to enable the touchcreen.



Folowing this section took from https://github.com/onitake/gsl-firmware#silead_tsi made a custom silead_dmi.c (that is located in drivers/platform/x86/silead_dmi.c) and that refers to the silead_ts.fw firmware that i found here https://github.com/onitake/gsl-firmware/tree/master/firmware/trekstor/surftab7new (FYI Mediacom W700 is equivalent at SurfTab wintron 7.0 ST70416-6).



I used apt-get source linux-headers-$(uname -r) and got the linux-4.15 folder of 800 MB. That has the path drivers/platform/x86/silead_dmi.c in which i made the drivers/platform/x86/silead_dmi.c file.



Following the guide i used apt-get source linux-image-$(uname -r) and got the linux-signed-4.15.0 folder of 118 kB.

Now using fakeroot debian/rules editconfigs i get an error:



dh editconfigs
dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:35: recipe for target 'editconfigs' failed
make: *** [editconfigs] Error 2


How can i fix this error and recompile the kernel?

And the folder obtained from apt-get source linux-headers-$(uname -r) which has the path drivers/platform/x86/silead_dmi.c?

And the firmware?



https://askubuntu.com/questions/1067640/enable-the-touchscreen-of-a-mediacom-winpad-w700

If someone want more info can check there.










share|improve this question















How can i recompile the kernel? I' m trying this guide https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel.



I' m using lubuntu 18.04 on a tablet, i want a custom kernel to enable the touchcreen.



Folowing this section took from https://github.com/onitake/gsl-firmware#silead_tsi made a custom silead_dmi.c (that is located in drivers/platform/x86/silead_dmi.c) and that refers to the silead_ts.fw firmware that i found here https://github.com/onitake/gsl-firmware/tree/master/firmware/trekstor/surftab7new (FYI Mediacom W700 is equivalent at SurfTab wintron 7.0 ST70416-6).



I used apt-get source linux-headers-$(uname -r) and got the linux-4.15 folder of 800 MB. That has the path drivers/platform/x86/silead_dmi.c in which i made the drivers/platform/x86/silead_dmi.c file.



Following the guide i used apt-get source linux-image-$(uname -r) and got the linux-signed-4.15.0 folder of 118 kB.

Now using fakeroot debian/rules editconfigs i get an error:



dh editconfigs
dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:35: recipe for target 'editconfigs' failed
make: *** [editconfigs] Error 2


How can i fix this error and recompile the kernel?

And the folder obtained from apt-get source linux-headers-$(uname -r) which has the path drivers/platform/x86/silead_dmi.c?

And the firmware?



https://askubuntu.com/questions/1067640/enable-the-touchscreen-of-a-mediacom-winpad-w700

If someone want more info can check there.







linux-kernel compiling firmware touch-screen tablet






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 6 at 9:39

























asked Sep 3 at 12:44









Scorpion

543




543











  • Fill a bugreport, or use the more conventional make menuconfig and make deb-pkg.
    – Ipor Sircer
    Sep 3 at 12:56







  • 1




    Of you are modifying sources, you are on your own, please do not fill frivolous bug reports
    – Rui F Ribeiro
    Sep 4 at 5:45










  • @RuiFRibeiro if i fill a request for a new software? Include tablet touchscrenn support. So the developers can do it. Using make deb-pkg i can transform the firmware into a installable package?
    – Scorpion
    Sep 4 at 7:40










  • @IporSircer how can i use make menuconfig and make deb-pkg?
    – Scorpion
    Sep 4 at 10:38
















  • Fill a bugreport, or use the more conventional make menuconfig and make deb-pkg.
    – Ipor Sircer
    Sep 3 at 12:56







  • 1




    Of you are modifying sources, you are on your own, please do not fill frivolous bug reports
    – Rui F Ribeiro
    Sep 4 at 5:45










  • @RuiFRibeiro if i fill a request for a new software? Include tablet touchscrenn support. So the developers can do it. Using make deb-pkg i can transform the firmware into a installable package?
    – Scorpion
    Sep 4 at 7:40










  • @IporSircer how can i use make menuconfig and make deb-pkg?
    – Scorpion
    Sep 4 at 10:38















Fill a bugreport, or use the more conventional make menuconfig and make deb-pkg.
– Ipor Sircer
Sep 3 at 12:56





Fill a bugreport, or use the more conventional make menuconfig and make deb-pkg.
– Ipor Sircer
Sep 3 at 12:56





1




1




Of you are modifying sources, you are on your own, please do not fill frivolous bug reports
– Rui F Ribeiro
Sep 4 at 5:45




Of you are modifying sources, you are on your own, please do not fill frivolous bug reports
– Rui F Ribeiro
Sep 4 at 5:45












@RuiFRibeiro if i fill a request for a new software? Include tablet touchscrenn support. So the developers can do it. Using make deb-pkg i can transform the firmware into a installable package?
– Scorpion
Sep 4 at 7:40




@RuiFRibeiro if i fill a request for a new software? Include tablet touchscrenn support. So the developers can do it. Using make deb-pkg i can transform the firmware into a installable package?
– Scorpion
Sep 4 at 7:40












@IporSircer how can i use make menuconfig and make deb-pkg?
– Scorpion
Sep 4 at 10:38




@IporSircer how can i use make menuconfig and make deb-pkg?
– Scorpion
Sep 4 at 10:38










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










The silead_ts.fw is for this deprecated project https://github.com/onitake/gslx680-acpi.

You should use at least the https://github.com/onitake/gsl-firmware/blob/master/firmware/trekstor/surftab7new/firmware.fw, fimrware only extracted and not modified for the old project.



But you must use this https://github.com/onitake/gsl-firmware/blob/master/firmware/linux/silead/gsl1686-surftab-wintron70-st70416-6.fw ,put the file in /lib/firmware/silead(create the folder silead). Also made a copy with the name mssl1680.fw (backup firmware).



Now follow this guide for recompile the kernel https://debian-handbook.info/browse/squeeze/sect.kernel-compilation.html.

Use apt-cache search ^linux-source to find the source for the kernel (as the guide explains).



In the silead_dmi.c file add:



static const struct property_entry mediacom_w700_props = 
PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
PROPERTY_ENTRY_STRING("firmware-name",
"gsl1686-surftab-wintron70-st70416-6.fw"),
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
PROPERTY_ENTRY_BOOL("silead,home-button"),

;


And most important in the DMI_MATCH add:



 
/* Mediacom WinPad 7.0 W700 */
.driver_data = (void *)&surftab_wintron70_st70416_6_data,
.matches =
DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
,
,





share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f466571%2frecompile-a-kernel-including-a-firmware%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    The silead_ts.fw is for this deprecated project https://github.com/onitake/gslx680-acpi.

    You should use at least the https://github.com/onitake/gsl-firmware/blob/master/firmware/trekstor/surftab7new/firmware.fw, fimrware only extracted and not modified for the old project.



    But you must use this https://github.com/onitake/gsl-firmware/blob/master/firmware/linux/silead/gsl1686-surftab-wintron70-st70416-6.fw ,put the file in /lib/firmware/silead(create the folder silead). Also made a copy with the name mssl1680.fw (backup firmware).



    Now follow this guide for recompile the kernel https://debian-handbook.info/browse/squeeze/sect.kernel-compilation.html.

    Use apt-cache search ^linux-source to find the source for the kernel (as the guide explains).



    In the silead_dmi.c file add:



    static const struct property_entry mediacom_w700_props = 
    PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
    PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
    PROPERTY_ENTRY_STRING("firmware-name",
    "gsl1686-surftab-wintron70-st70416-6.fw"),
    PROPERTY_ENTRY_U32("silead,max-fingers", 10),
    PROPERTY_ENTRY_BOOL("silead,home-button"),

    ;


    And most important in the DMI_MATCH add:



     
    /* Mediacom WinPad 7.0 W700 */
    .driver_data = (void *)&surftab_wintron70_st70416_6_data,
    .matches =
    DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
    DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
    ,
    ,





    share|improve this answer


























      up vote
      0
      down vote



      accepted










      The silead_ts.fw is for this deprecated project https://github.com/onitake/gslx680-acpi.

      You should use at least the https://github.com/onitake/gsl-firmware/blob/master/firmware/trekstor/surftab7new/firmware.fw, fimrware only extracted and not modified for the old project.



      But you must use this https://github.com/onitake/gsl-firmware/blob/master/firmware/linux/silead/gsl1686-surftab-wintron70-st70416-6.fw ,put the file in /lib/firmware/silead(create the folder silead). Also made a copy with the name mssl1680.fw (backup firmware).



      Now follow this guide for recompile the kernel https://debian-handbook.info/browse/squeeze/sect.kernel-compilation.html.

      Use apt-cache search ^linux-source to find the source for the kernel (as the guide explains).



      In the silead_dmi.c file add:



      static const struct property_entry mediacom_w700_props = 
      PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
      PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
      PROPERTY_ENTRY_STRING("firmware-name",
      "gsl1686-surftab-wintron70-st70416-6.fw"),
      PROPERTY_ENTRY_U32("silead,max-fingers", 10),
      PROPERTY_ENTRY_BOOL("silead,home-button"),

      ;


      And most important in the DMI_MATCH add:



       
      /* Mediacom WinPad 7.0 W700 */
      .driver_data = (void *)&surftab_wintron70_st70416_6_data,
      .matches =
      DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
      DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
      ,
      ,





      share|improve this answer
























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        The silead_ts.fw is for this deprecated project https://github.com/onitake/gslx680-acpi.

        You should use at least the https://github.com/onitake/gsl-firmware/blob/master/firmware/trekstor/surftab7new/firmware.fw, fimrware only extracted and not modified for the old project.



        But you must use this https://github.com/onitake/gsl-firmware/blob/master/firmware/linux/silead/gsl1686-surftab-wintron70-st70416-6.fw ,put the file in /lib/firmware/silead(create the folder silead). Also made a copy with the name mssl1680.fw (backup firmware).



        Now follow this guide for recompile the kernel https://debian-handbook.info/browse/squeeze/sect.kernel-compilation.html.

        Use apt-cache search ^linux-source to find the source for the kernel (as the guide explains).



        In the silead_dmi.c file add:



        static const struct property_entry mediacom_w700_props = 
        PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
        PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
        PROPERTY_ENTRY_STRING("firmware-name",
        "gsl1686-surftab-wintron70-st70416-6.fw"),
        PROPERTY_ENTRY_U32("silead,max-fingers", 10),
        PROPERTY_ENTRY_BOOL("silead,home-button"),

        ;


        And most important in the DMI_MATCH add:



         
        /* Mediacom WinPad 7.0 W700 */
        .driver_data = (void *)&surftab_wintron70_st70416_6_data,
        .matches =
        DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
        DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
        ,
        ,





        share|improve this answer














        The silead_ts.fw is for this deprecated project https://github.com/onitake/gslx680-acpi.

        You should use at least the https://github.com/onitake/gsl-firmware/blob/master/firmware/trekstor/surftab7new/firmware.fw, fimrware only extracted and not modified for the old project.



        But you must use this https://github.com/onitake/gsl-firmware/blob/master/firmware/linux/silead/gsl1686-surftab-wintron70-st70416-6.fw ,put the file in /lib/firmware/silead(create the folder silead). Also made a copy with the name mssl1680.fw (backup firmware).



        Now follow this guide for recompile the kernel https://debian-handbook.info/browse/squeeze/sect.kernel-compilation.html.

        Use apt-cache search ^linux-source to find the source for the kernel (as the guide explains).



        In the silead_dmi.c file add:



        static const struct property_entry mediacom_w700_props = 
        PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
        PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
        PROPERTY_ENTRY_STRING("firmware-name",
        "gsl1686-surftab-wintron70-st70416-6.fw"),
        PROPERTY_ENTRY_U32("silead,max-fingers", 10),
        PROPERTY_ENTRY_BOOL("silead,home-button"),

        ;


        And most important in the DMI_MATCH add:



         
        /* Mediacom WinPad 7.0 W700 */
        .driver_data = (void *)&surftab_wintron70_st70416_6_data,
        .matches =
        DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
        DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
        ,
        ,






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 12 at 7:17

























        answered Sep 6 at 9:43









        Scorpion

        543




        543



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f466571%2frecompile-a-kernel-including-a-firmware%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?