How to use memmap with U-Boot?

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











up vote
1
down vote

favorite












I'll like to reserved the first 2 GB to the RAM because my hardware write in this position to the memory RAM and I need to the kernel don't touch this part to the memory.



I read to use this option need launch the order memmap in the bootloader and the bootloader to I use is U-Boot because I'm dessing to Driver-Kernel in Yocto OS.



I read this to example to use the memmap:



memmap=nn[KMG]$ss[KMG]
[KNL,ACPI] Mark specific memory as reserved.
Region of memory to be reserved is from ss to ss+nn.
Example: Exclude memory from 0x18690000-0x1869ffff
memmap=64K$0x18690000
or
memmap=0x10000$0x18690000
Some bootloaders may need an escape character before '$',
like Grub2, otherwise '$' and the following number
will be eaten.


And I don't know to use in this case, thankyou



EDIT: New question



I write this option in the U-Boot, using memmap=2G$0x00000000 and memmap=7fffffff$0x00000000, don't return exception,
I guess I write this correctly but in cat / proc / iomem I do not see anything that tells me this memory is reserved for memory.



Would you need to modify .dtb?










share|improve this question



























    up vote
    1
    down vote

    favorite












    I'll like to reserved the first 2 GB to the RAM because my hardware write in this position to the memory RAM and I need to the kernel don't touch this part to the memory.



    I read to use this option need launch the order memmap in the bootloader and the bootloader to I use is U-Boot because I'm dessing to Driver-Kernel in Yocto OS.



    I read this to example to use the memmap:



    memmap=nn[KMG]$ss[KMG]
    [KNL,ACPI] Mark specific memory as reserved.
    Region of memory to be reserved is from ss to ss+nn.
    Example: Exclude memory from 0x18690000-0x1869ffff
    memmap=64K$0x18690000
    or
    memmap=0x10000$0x18690000
    Some bootloaders may need an escape character before '$',
    like Grub2, otherwise '$' and the following number
    will be eaten.


    And I don't know to use in this case, thankyou



    EDIT: New question



    I write this option in the U-Boot, using memmap=2G$0x00000000 and memmap=7fffffff$0x00000000, don't return exception,
    I guess I write this correctly but in cat / proc / iomem I do not see anything that tells me this memory is reserved for memory.



    Would you need to modify .dtb?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'll like to reserved the first 2 GB to the RAM because my hardware write in this position to the memory RAM and I need to the kernel don't touch this part to the memory.



      I read to use this option need launch the order memmap in the bootloader and the bootloader to I use is U-Boot because I'm dessing to Driver-Kernel in Yocto OS.



      I read this to example to use the memmap:



      memmap=nn[KMG]$ss[KMG]
      [KNL,ACPI] Mark specific memory as reserved.
      Region of memory to be reserved is from ss to ss+nn.
      Example: Exclude memory from 0x18690000-0x1869ffff
      memmap=64K$0x18690000
      or
      memmap=0x10000$0x18690000
      Some bootloaders may need an escape character before '$',
      like Grub2, otherwise '$' and the following number
      will be eaten.


      And I don't know to use in this case, thankyou



      EDIT: New question



      I write this option in the U-Boot, using memmap=2G$0x00000000 and memmap=7fffffff$0x00000000, don't return exception,
      I guess I write this correctly but in cat / proc / iomem I do not see anything that tells me this memory is reserved for memory.



      Would you need to modify .dtb?










      share|improve this question















      I'll like to reserved the first 2 GB to the RAM because my hardware write in this position to the memory RAM and I need to the kernel don't touch this part to the memory.



      I read to use this option need launch the order memmap in the bootloader and the bootloader to I use is U-Boot because I'm dessing to Driver-Kernel in Yocto OS.



      I read this to example to use the memmap:



      memmap=nn[KMG]$ss[KMG]
      [KNL,ACPI] Mark specific memory as reserved.
      Region of memory to be reserved is from ss to ss+nn.
      Example: Exclude memory from 0x18690000-0x1869ffff
      memmap=64K$0x18690000
      or
      memmap=0x10000$0x18690000
      Some bootloaders may need an escape character before '$',
      like Grub2, otherwise '$' and the following number
      will be eaten.


      And I don't know to use in this case, thankyou



      EDIT: New question



      I write this option in the U-Boot, using memmap=2G$0x00000000 and memmap=7fffffff$0x00000000, don't return exception,
      I guess I write this correctly but in cat / proc / iomem I do not see anything that tells me this memory is reserved for memory.



      Would you need to modify .dtb?







      linux-kernel drivers ram






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 28 at 10:19

























      asked Sep 25 at 9:40









      Daniel

      113




      113

























          active

          oldest

          votes











          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%2f471275%2fhow-to-use-memmap-with-u-boot%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471275%2fhow-to-use-memmap-with-u-boot%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