Port-xen archive

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

Re: call for testing: xen 4.1 packages



On 30.03.11 19:24, Manuel Bouyer wrote:
> On Wed, Mar 30, 2011 at 09:51:08AM +0200, Christoph Egger wrote:
>>
>> Hi,
>>
>> I have packaged xen 4.1.
>>
>> Get the packages from
>> http://www.netbsd.org/~cegger/xenkernel41.tar.gz
>> http://www.netbsd.org/~cegger/xentools41.tar.gz
>>
>> Unpack them in pkgsrc/sysutils/
> 
> I built the xenkernel41, but it doesn't boot. My boot.cfg line is:
> menu=Boot Xen41:load /netbsd console=com0; multiboot /xen41-debug.gz 
> dom0_mem=256M console=com1 com1=9600,8n1 loglvl=all guest_loglvl=all
> 
> (I also tried without the "loglvl=all guest_loglvl=all").
> The system resets just after loading the netbsd kernel; xen doesn't
> print anything on serial console; I also see nothing on VGA.
> 

I found it:

In xen/arch/x86/boot/build32.mk there are these lines:

# NB. awk invocation is a portable alternative to 'head -n -1'
%.S: %.bin
        (od -v -t x $< | awk 'NR > 1 {print s} {s=$$0}' | \
        sed 's/ /,0x/g' | sed 's/^[0-9]*,/ .long /') >$@

These generate different output on NetBSD than on Linux.
That is why xen boots when compiled on Linux host.

For comparison have a look at tools/firmware/hvmloader/32bit/mkhex
where this generates the same output on both NetBSD and Linux:

echo "unsigned $1[] = {"
od -v -t x $2 | sed 's/^[0-9]*  */0x/' | sed 's/  */, 0x/g' | sed
's/$/,/' | sed 's/0x,//' | sed 's/^[0-9]*,//'
echo "};"

Christoph


Home | Main Index | Thread Index | Old Index