Question about vm memory initialization

Adam Lackorzynski adam at os.inf.tu-dresden.de
Thu Jan 11 00:01:27 CET 2018


Hi,

On Wed Jan 10, 2018 at 21:33:51 +0800, nico wrote:
> Yes,  your understanding is correct.  I want  u-boot to load ramdisk to RAM,
> not linux
> kernel.  And vm linux will use that ramdisk, can this be achieved?

Loading a ramdisk alongside of the Linux kernel is a standard feature of
uvmm. For that, add the ramdisk to your entry in the modules.list file.
With that it will be included in your image that is being built.
Then, in your uvmm.ned config file (if you're using that), add/change
the 'rd' entry to rd="rom/yourfile" where "yourfile" is the file you
added in your modules.list entry.

Does this help?
Adam

> On 1/10/2018 16:40ï¼ Matthias Lange<matthias.lange at kernkonzept.com> wroteï¼ 
> 
>     Hi Nico,
> 
>     On 2018-0110 at 09:11:09 +0800, nico.hacker wrote:
>     > <p>Yes, that's it. Do you have any good suggestions?</p><p><br /></p>
>     <span labeltype="reply">äº   2018-01-10 06:36:25,Adam Lackorzynski<adam os=
>     "" inf="" tu-dresden="" de="">å  é  :</adam></span><blockquote style=
>     "padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
>     <pre>Hi nico,
>     > 
>     > On Tue Jan 09, 2018 at 19:18:20 +0800, nico wrote:
>     > >
>      I started uvmm and found that all ram space allocated to vm are cleared.
>     > 
>     > Yes, sure. We do not want to see any other data in there, possibly
>     > coming from another domain and leaking some information.
>     > 
>     > >
>      But I do not need to do that, because uboot has loaded image file to ram, and vm linux would use that image file. Could you tell me where the uvmm did the cleanup?
>      Regards, Nico
> 
>     I am not sure if I have understood your use-case correctly but the steps you
> 
>     are performing are like this?
> 
>     1. Power up your board
>     2. u-boot loads a Linux kernel (and possibly ramdisk and device tree)
>      into RAM
>     3. u-boot loads your L4Re image
>     4. L4Re is started with uvmm
> 
>     Is my understanding correct?
> 
>     Regards,
>     Matthias.
> 
>     > 
>     > Describing this in my own words, you want to load a file via u-boot and
>     > use that in your VM?
>     > 
>     > Adam




More information about the l4-hackers mailing list