Where to find the source of the kernel package on a debian armhf BeagleBone Black build?

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











up vote
-1
down vote

favorite
1












On a BeagleBone Black the Linux release installed is a bone-debian-9.2-iot-armhf-2017-10-10-4gb.img. After booting the stock system, it is updated to the Linux 4.9.37-ti-r47 image by:



apt-get update
apt-get install linux-image-4.9.37-ti-r47
apt-get install linux-firmware-image-4.9.37-ti-r47


Everything works fine. Now I uncommented all the deb-src line in /etc/apt/sources.list file. Did a apt-get update. And followed the steps in the related SO: how to know the source repository of a package in debian, to find out where to get the source code. Unfortunately it turns up an error:



root@beaglebone:/home/debian# apt-cache showsrc linux-image-4.9.37-ti-r47
W: Unable to locate package linux-image-4.9.37-ti-r47
N: No packages found


Where to find the source package that can be used to build the binary kernel?



I did the same for the bash package. It works fine.







share|improve this question

















  • 1




    Did you just want the kernel source? github.com/beagleboard/linux/releases/tag/4.9.37-ti-r47
    – tk421
    Jun 22 at 3:03










  • @tk421 It's interesting that the source does not reside with the released binaries. I'm looking for building the exactly same linux-image-<version> package as installed to the target. If you know how to create the deb, please convert your comment and further information into an answer. That will be great. Thanks!
    – minghua
    Jun 22 at 15:48







  • 1




    I looked but no such luck.
    – tk421
    Jun 22 at 22:30










  • I figured the code might not exist as a snapshot. There is a build script which will fetch the code and patch from multiple repos. I'll post an answer if it does show functionally as good as the original.
    – minghua
    Jun 30 at 4:24














up vote
-1
down vote

favorite
1












On a BeagleBone Black the Linux release installed is a bone-debian-9.2-iot-armhf-2017-10-10-4gb.img. After booting the stock system, it is updated to the Linux 4.9.37-ti-r47 image by:



apt-get update
apt-get install linux-image-4.9.37-ti-r47
apt-get install linux-firmware-image-4.9.37-ti-r47


Everything works fine. Now I uncommented all the deb-src line in /etc/apt/sources.list file. Did a apt-get update. And followed the steps in the related SO: how to know the source repository of a package in debian, to find out where to get the source code. Unfortunately it turns up an error:



root@beaglebone:/home/debian# apt-cache showsrc linux-image-4.9.37-ti-r47
W: Unable to locate package linux-image-4.9.37-ti-r47
N: No packages found


Where to find the source package that can be used to build the binary kernel?



I did the same for the bash package. It works fine.







share|improve this question

















  • 1




    Did you just want the kernel source? github.com/beagleboard/linux/releases/tag/4.9.37-ti-r47
    – tk421
    Jun 22 at 3:03










  • @tk421 It's interesting that the source does not reside with the released binaries. I'm looking for building the exactly same linux-image-<version> package as installed to the target. If you know how to create the deb, please convert your comment and further information into an answer. That will be great. Thanks!
    – minghua
    Jun 22 at 15:48







  • 1




    I looked but no such luck.
    – tk421
    Jun 22 at 22:30










  • I figured the code might not exist as a snapshot. There is a build script which will fetch the code and patch from multiple repos. I'll post an answer if it does show functionally as good as the original.
    – minghua
    Jun 30 at 4:24












up vote
-1
down vote

favorite
1









up vote
-1
down vote

favorite
1






1





On a BeagleBone Black the Linux release installed is a bone-debian-9.2-iot-armhf-2017-10-10-4gb.img. After booting the stock system, it is updated to the Linux 4.9.37-ti-r47 image by:



apt-get update
apt-get install linux-image-4.9.37-ti-r47
apt-get install linux-firmware-image-4.9.37-ti-r47


Everything works fine. Now I uncommented all the deb-src line in /etc/apt/sources.list file. Did a apt-get update. And followed the steps in the related SO: how to know the source repository of a package in debian, to find out where to get the source code. Unfortunately it turns up an error:



root@beaglebone:/home/debian# apt-cache showsrc linux-image-4.9.37-ti-r47
W: Unable to locate package linux-image-4.9.37-ti-r47
N: No packages found


Where to find the source package that can be used to build the binary kernel?



I did the same for the bash package. It works fine.







share|improve this question













On a BeagleBone Black the Linux release installed is a bone-debian-9.2-iot-armhf-2017-10-10-4gb.img. After booting the stock system, it is updated to the Linux 4.9.37-ti-r47 image by:



apt-get update
apt-get install linux-image-4.9.37-ti-r47
apt-get install linux-firmware-image-4.9.37-ti-r47


Everything works fine. Now I uncommented all the deb-src line in /etc/apt/sources.list file. Did a apt-get update. And followed the steps in the related SO: how to know the source repository of a package in debian, to find out where to get the source code. Unfortunately it turns up an error:



root@beaglebone:/home/debian# apt-cache showsrc linux-image-4.9.37-ti-r47
W: Unable to locate package linux-image-4.9.37-ti-r47
N: No packages found


Where to find the source package that can be used to build the binary kernel?



I did the same for the bash package. It works fine.









share|improve this question












share|improve this question




share|improve this question








edited Jun 22 at 15:50
























asked Jun 22 at 1:36









minghua

1194




1194







  • 1




    Did you just want the kernel source? github.com/beagleboard/linux/releases/tag/4.9.37-ti-r47
    – tk421
    Jun 22 at 3:03










  • @tk421 It's interesting that the source does not reside with the released binaries. I'm looking for building the exactly same linux-image-<version> package as installed to the target. If you know how to create the deb, please convert your comment and further information into an answer. That will be great. Thanks!
    – minghua
    Jun 22 at 15:48







  • 1




    I looked but no such luck.
    – tk421
    Jun 22 at 22:30










  • I figured the code might not exist as a snapshot. There is a build script which will fetch the code and patch from multiple repos. I'll post an answer if it does show functionally as good as the original.
    – minghua
    Jun 30 at 4:24












  • 1




    Did you just want the kernel source? github.com/beagleboard/linux/releases/tag/4.9.37-ti-r47
    – tk421
    Jun 22 at 3:03










  • @tk421 It's interesting that the source does not reside with the released binaries. I'm looking for building the exactly same linux-image-<version> package as installed to the target. If you know how to create the deb, please convert your comment and further information into an answer. That will be great. Thanks!
    – minghua
    Jun 22 at 15:48







  • 1




    I looked but no such luck.
    – tk421
    Jun 22 at 22:30










  • I figured the code might not exist as a snapshot. There is a build script which will fetch the code and patch from multiple repos. I'll post an answer if it does show functionally as good as the original.
    – minghua
    Jun 30 at 4:24







1




1




Did you just want the kernel source? github.com/beagleboard/linux/releases/tag/4.9.37-ti-r47
– tk421
Jun 22 at 3:03




Did you just want the kernel source? github.com/beagleboard/linux/releases/tag/4.9.37-ti-r47
– tk421
Jun 22 at 3:03












@tk421 It's interesting that the source does not reside with the released binaries. I'm looking for building the exactly same linux-image-<version> package as installed to the target. If you know how to create the deb, please convert your comment and further information into an answer. That will be great. Thanks!
– minghua
Jun 22 at 15:48





@tk421 It's interesting that the source does not reside with the released binaries. I'm looking for building the exactly same linux-image-<version> package as installed to the target. If you know how to create the deb, please convert your comment and further information into an answer. That will be great. Thanks!
– minghua
Jun 22 at 15:48





1




1




I looked but no such luck.
– tk421
Jun 22 at 22:30




I looked but no such luck.
– tk421
Jun 22 at 22:30












I figured the code might not exist as a snapshot. There is a build script which will fetch the code and patch from multiple repos. I'll post an answer if it does show functionally as good as the original.
– minghua
Jun 30 at 4:24




I figured the code might not exist as a snapshot. There is a build script which will fetch the code and patch from multiple repos. I'll post an answer if it does show functionally as good as the original.
– minghua
Jun 30 at 4:24










1 Answer
1






active

oldest

votes

















up vote
1
down vote













I believe the source code does not exist in a single package/snapshot.



There is a build script from https://eewiki.net/display/linuxonarm/BeagleBone+Black . The script is pulling code in three steps:



  • It clones from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

  • Then it fetches from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

  • Finally it pulls from https://github.com/RobertCNelson/ti-linux-kernel.git and applies the patches from this repo.

When all these steps are done, the build script tags and commits the code.






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%2f451213%2fwhere-to-find-the-source-of-the-kernel-package-on-a-debian-armhf-beaglebone-blac%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
    1
    down vote













    I believe the source code does not exist in a single package/snapshot.



    There is a build script from https://eewiki.net/display/linuxonarm/BeagleBone+Black . The script is pulling code in three steps:



    • It clones from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

    • Then it fetches from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

    • Finally it pulls from https://github.com/RobertCNelson/ti-linux-kernel.git and applies the patches from this repo.

    When all these steps are done, the build script tags and commits the code.






    share|improve this answer

























      up vote
      1
      down vote













      I believe the source code does not exist in a single package/snapshot.



      There is a build script from https://eewiki.net/display/linuxonarm/BeagleBone+Black . The script is pulling code in three steps:



      • It clones from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

      • Then it fetches from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

      • Finally it pulls from https://github.com/RobertCNelson/ti-linux-kernel.git and applies the patches from this repo.

      When all these steps are done, the build script tags and commits the code.






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        I believe the source code does not exist in a single package/snapshot.



        There is a build script from https://eewiki.net/display/linuxonarm/BeagleBone+Black . The script is pulling code in three steps:



        • It clones from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

        • Then it fetches from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

        • Finally it pulls from https://github.com/RobertCNelson/ti-linux-kernel.git and applies the patches from this repo.

        When all these steps are done, the build script tags and commits the code.






        share|improve this answer













        I believe the source code does not exist in a single package/snapshot.



        There is a build script from https://eewiki.net/display/linuxonarm/BeagleBone+Black . The script is pulling code in three steps:



        • It clones from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

        • Then it fetches from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

        • Finally it pulls from https://github.com/RobertCNelson/ti-linux-kernel.git and applies the patches from this repo.

        When all these steps are done, the build script tags and commits the code.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 30 at 18:27









        minghua

        1194




        1194






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451213%2fwhere-to-find-the-source-of-the-kernel-package-on-a-debian-armhf-beaglebone-blac%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?