Subject: Re: jornada 720: success
To: Ben Harris <bjh21@netbsd.org>
From: Steve Clement <steve@ion.lu>
List: port-hpcarm
Date: 07/22/2002 16:19:11
Ben Harris wrote:
> In article <3D3C120F.5020101@ion.lu> you write:
> 
>>Ok, this is somehow all moving...
>>
>>I am about to write a howto on getting netbsd onto the Jornada but one 
>>of the biggest barriers is getting the netbsd kernel to compile, so I am 
>> trying to write as much info as possible about compiling the kernel on 
>>NetBSD. The compile errors are mostly ASM errors and I had to set some 
>>constants in order to get it to nearly compile, there were errors 
>>regarding bios32 on my i386 platform.
>>So my current problem is:
>>
>>bash-2.05a# /usr/src/tools/obj/tools.NetBSD-1.6D-i386/bin/nbmake-hpcarm
> 
> [...]
> 
>>/usr/src/sys/arch/hpcarm/compile/JORNADA720/lib/kern/../../../../../../lib/libkern/arch/i386/byte_swap_2.S:50: 
>>Error: bad instruction `movzwl 4(%esp),%eax'
>>/usr/src/sys/arch/hpcarm/compile/JORNADA720/lib/kern/../../../../../../lib/libkern/arch/i386/byte_swap_2.S:51: 
>>Error: bad instruction `rorw $8,%ax'
>>/usr/src/sys/arch/hpcarm/compile/JORNADA720/lib/kern/../../../../../../lib/libkern/arch/i386/byte_swap_2.S:52: 
>>Error: bad instruction `ret'
> 
> 
> So you seem to be getting the i386 .S files, which is clearly wrong, and is
> probably caused by your having MACHINE_ARCH set wrongly.  Can you show us
> the contents of $TOOLDIR/bin/nbmake-hpcarm and /etc/mk.conf?
> 

ok indeed arch wasnt set /etc/mk.conf doesnt exist nbmake contents :
#! /bin/sh
# Set proper variables to allow easy "make" building of a NetBSD subtree.
# Generated from:  $NetBSD: build.sh,v 1.63 2002/07/09 06:36:16 pooka Exp $
#

DESTDIR='/usr/local/hpcarm'; export DESTDIR
TOOLDIR='/usr/src/tools/obj/tools.NetBSD-1.6D-i386'; export TOOLDIR
MACHINE='hpcarm'; export MACHINE
MACHINE_ARCH='arm'; export MACHINE_ARCH
MAKEFLAGS='-m /usr/src/share/mk MKOBJDIRS=yes'; export MAKEFLAGS
USETOOLS=yes; export USETOOLS

exec "$TOOLDIR/bin/nbmake" ${1+"$@"}

chrs steve

-- 
ION Network Solutions
Steve Clement
Unix System Administrator
Tel: +352 091 721 923
Fax: +352 595 271
mailto:steve@ion.lu
http://www.ion.lu