[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] Mini-OS Support for Suspend



Hi Bruno,

On 12/07/2017 01:53 AM, Bruno Alvisio wrote:
<snip>
> I also tried to compile the mini-OS from the NEC repository but I was
> not able to.
> 
> Any help/pointers to make suspend work in mini-OS or on how to build
> mini-OS from the NEC-sysml repository would be greatly appreciated.

These steps (adapted from [0]) might be of help for you to build a
mini-OS application using the NEC sysml repo [1]:

1) You would need to build the legacy toolchain [2] basically only for
newlib and lwip:

<toolchain-clone> $ MINIOS_ROOT=<path_to_minios> make all

This will generate a subdirectory called <arch>-root/<arch>-xen-elf
(e.g. x86_64-root/x86_64-xen-elf) which will contain the libraries.


2) When using sysml mini-os repo, building applications is a bit
different. The applications are maintained in a different repo [3] which
you would have to clone. You will have there 3 apps and a template. On
'noxs' branch you will also have the daytime application that's in
mini-OS upstream. If for example you're choosing the 'idle' application
you should run the following commands:

<miniapps-clone> $ cd idle
<miniapps-clone> $ make XEN_ROOT=... \
       MINIOS_ROOT=<minios-sysml-clone> \
       NEWLIB_ROOT=<toolchain-clone>/x86_64-root/x86_64-xen-elf \
       LWIP_ROOT=<toolchain-clone>/x86_64-root/x86_64-xen-elf

For XEN_ROOT I believe it should work with any version >= 4.8.

[0] https://github.com/sysml/lightvm
[1] https://github.com/sysml/mini-os
[2] https://github.com/sysml/toolchain
[3] https://github.com/sysml/mini-apps

Cheers,
Costin

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.