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

Re: [Xen-devel] [PATCH ARM v6 13/14] mini-os: arm: build system



On 16 July 2014 23:03, Julien Grall <julien.grall@xxxxxxxxxx> wrote:
> Hi Thomas,
>
>
> On 16/07/14 12:07, Thomas Leonard wrote:
>>
>> Based on an initial patch by Karim Raslan.
>>
>> This activates the ARM code added in the previous patches. On ARM,
>> Mini-OS will boot and display some output on the console. Tested with:
>>
>> make XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- \
>>         CONFIG_TEST=y CONFIG_START_NETWORK=n CONFIG_BLKFRONT=n \
>>         CONFIG_NETFRONT=n CONFIG_FBFRONT=n CONFIG_KBDFRONT=n \
>>         CONFIG_CONSFRONT=n CONFIG_XC=n -j4
>
>
> Can you provide instructions to build (git tag/branch...) and test mini-os?

$ git clone -b next https://github.com/talex5/xen.git
$ cd xen/extras/mini-os
$ make CONFIG_TEST=y

(if cross-compiling, add XEN_TARGET_ARCH=arm32
CROSS_COMPILE=arm-linux-gnueabihf- )

This is my mini-os.cfg file:

  name = 'mini-os'
  kernel = 'mini-os.img'
  builder = 'linux'
  memory = 16
  on_crash = 'preserve'
  disk = ['/dev/vg0/test,,xvda' ]
  vif = ['mac=c0:ff:ee:c0:ff:ee,bridge=br0' ]

> Also, is there any particular to not build blkfront, netfront, consfront?
>
> It would be nice if they are working from the initial support.

It turned out it didn't build because it wanted rand() from math.c
(which ARM doesn't use).

As rand probably isn't something that should be exposed for general
use (it just calls gettimeofday), I've moved it into test.c (on the
next branch mentioned above).


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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