Subject: Re: jornada 720: success
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Steve Clement <steve@ion.lu>
List: port-hpcarm
Date: 07/22/2002 15:09:19
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
making sure the compat library is up to date...
`libcompat.a' is up to date.
making sure the kern library is up to date...
/usr/src/tools/obj/tools.NetBSD-1.6D-i386/bin/arm--netbsdelf-gcc -x 
assembler-with-cpp -D_LOCORE -I../../../../../../lib/libkern/arch/arm 
-Dhpcarm -Darm32 -I../../. -I../../../../../../arch -I../../../../../.. 
-nostdinc -DLKM -DDIAGNOSTIC -DCONSPEED="0x4b00" -DMAXUSERS=32 -D_KERNEL 
-D_KERNEL_OPT  -nostdinc -isystem /usr/local/hpcarm/usr/include  -c 
-traditional-cpp 
/usr/src/sys/arch/hpcarm/compile/JORNADA720/lib/kern/../../../../../../lib/libkern/arch/i386/byte_swap_2.S
/usr/src/sys/arch/hpcarm/compile/JORNADA720/lib/kern/../../../../../../lib/libkern/arch/i386/byte_swap_2.S: 
Assembler messages:
/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'
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/hpcarm/compile/JORNADA720/lib/kern
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/hpcarm/compile/JORNADA720
bash-2.05a#


and Yes I updated my nasm and all, perhaps I am a bit to bleeding edge?

Anyway getting on writing my findings up...

> More questions: 
> 
> powersave mode seems to work: if I hit the power key and another key
> (return for instance), the screen gets blank. If I hit power and another
> key again, I get the display back. Is it really in power save mode (ie:
> CPU power save)? Or is it just screen blanked and ports shut down? Do I
> kill my battery when I leave it in power save mode for hours?
> 
> Is there a way to get the battery level yet?
> 

is there any native apm support? any standard apm stuff?

> When NetBSD reboots the machine, screen brightness is maximum. I have to
> remove all the batteries (including the emergency battery) to restore
> the normal settings. Is there a way to workaround this?

well not that I am aware off, I had these problems too, perhaps we need 
to debug some registers to see what state their at before and after...


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