Correct location of initramfs.cpio file when compiling kernel

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











up vote
1
down vote

favorite












I am following this article and generated an initramfs.cpio file.



Now the tutorial mentions that I have to put this file in build directory:



Finally, you have to rebuild the kernel again:

# 0. Copy the CPIO archive to your kernel build directory:
cp initramfs.cpio .


But I dont see any build directory:



[root@xilinx linux-xlnx]# ls 
arch CREDITS drivers include Kbuild lib mm README scripts System.map virt
block crypto firmware init Kconfig MAINTAINERS Module.symvers REPORTING-BUGS security tools vmlinux
COPYING Documentation fs ipc kernel Makefile net samples sound usr vmlinux.o


What is the correct place then?



my board is xilinx Zynq based on ARM










share|improve this question



























    up vote
    1
    down vote

    favorite












    I am following this article and generated an initramfs.cpio file.



    Now the tutorial mentions that I have to put this file in build directory:



    Finally, you have to rebuild the kernel again:

    # 0. Copy the CPIO archive to your kernel build directory:
    cp initramfs.cpio .


    But I dont see any build directory:



    [root@xilinx linux-xlnx]# ls 
    arch CREDITS drivers include Kbuild lib mm README scripts System.map virt
    block crypto firmware init Kconfig MAINTAINERS Module.symvers REPORTING-BUGS security tools vmlinux
    COPYING Documentation fs ipc kernel Makefile net samples sound usr vmlinux.o


    What is the correct place then?



    my board is xilinx Zynq based on ARM










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am following this article and generated an initramfs.cpio file.



      Now the tutorial mentions that I have to put this file in build directory:



      Finally, you have to rebuild the kernel again:

      # 0. Copy the CPIO archive to your kernel build directory:
      cp initramfs.cpio .


      But I dont see any build directory:



      [root@xilinx linux-xlnx]# ls 
      arch CREDITS drivers include Kbuild lib mm README scripts System.map virt
      block crypto firmware init Kconfig MAINTAINERS Module.symvers REPORTING-BUGS security tools vmlinux
      COPYING Documentation fs ipc kernel Makefile net samples sound usr vmlinux.o


      What is the correct place then?



      my board is xilinx Zynq based on ARM










      share|improve this question















      I am following this article and generated an initramfs.cpio file.



      Now the tutorial mentions that I have to put this file in build directory:



      Finally, you have to rebuild the kernel again:

      # 0. Copy the CPIO archive to your kernel build directory:
      cp initramfs.cpio .


      But I dont see any build directory:



      [root@xilinx linux-xlnx]# ls 
      arch CREDITS drivers include Kbuild lib mm README scripts System.map virt
      block crypto firmware init Kconfig MAINTAINERS Module.symvers REPORTING-BUGS security tools vmlinux
      COPYING Documentation fs ipc kernel Makefile net samples sound usr vmlinux.o


      What is the correct place then?



      my board is xilinx Zynq based on ARM







      kernel initramfs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 3 at 7:40









      Mojtaba Ahmadi

      12110




      12110










      asked Apr 12 '14 at 12:45









      user2799508

      60261736




      60261736




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          In the context, kernel build directory doesn't mean the directory named build in kernel source tree, but rather the directory which holds the sources and where the build is happening. So you want to copy your initramfs to your linux-xlnx directory.






          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%2f124394%2fcorrect-location-of-initramfs-cpio-file-when-compiling-kernel%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













            In the context, kernel build directory doesn't mean the directory named build in kernel source tree, but rather the directory which holds the sources and where the build is happening. So you want to copy your initramfs to your linux-xlnx directory.






            share|improve this answer
























              up vote
              0
              down vote













              In the context, kernel build directory doesn't mean the directory named build in kernel source tree, but rather the directory which holds the sources and where the build is happening. So you want to copy your initramfs to your linux-xlnx directory.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                In the context, kernel build directory doesn't mean the directory named build in kernel source tree, but rather the directory which holds the sources and where the build is happening. So you want to copy your initramfs to your linux-xlnx directory.






                share|improve this answer












                In the context, kernel build directory doesn't mean the directory named build in kernel source tree, but rather the directory which holds the sources and where the build is happening. So you want to copy your initramfs to your linux-xlnx directory.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 12 '14 at 18:18









                dnt

                1314




                1314



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f124394%2fcorrect-location-of-initramfs-cpio-file-when-compiling-kernel%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?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay