Rafal Boni | 6 Mar 2008 04:11
Picon
Favicon

-current kernel headers vs. MS VC compiler

Folks:
	It looks like changes to the kernel headers over the last couple of 
months have broken the ability to build things that rely on libsa, etc. 
with compilers other than GCC & PCC.  Specifically, I can no longer 
build hpcboot.exe with MS eMbedded Visual C++ 4.0 after upgrading my 
kernel tree to the head of trunk.

	The first change that bit me was a change from the old 
'__attribute__((packed))', which used to be defined away on non-GCC 
compilers (probably incorrectly, but nonetheless) to using '__packed', 
in sys/ufs/ffs/fs.h:

	RCS file: /cvsroot/src/sys/ufs/ffs/fs.h,v
	Working file: fs.h
	head: 1.49
	----------------------------
	revision 1.49
	date: 2007/12/25 18:33:49;  author: perry;  state: Exp;  lines: +2 -2
	Convert many of the uses of __attribute__ to equivalent
	__packed, __unused and __dead macros from cdefs.h

I've 'fixed' this with the following change, because I don't know how to 
make the MS compiler #pragma pack fit into the syntax we require (nor 
was I able to find an MS compiler extension which looked it it might help):

Index: cdefs.h
===================================================================
RCS file: /cvsroot/src/sys/sys/cdefs.h,v
retrieving revision 1.66
diff -u -p -r1.66 cdefs.h
(Continue reading)

Andreas Bartelt | 9 Mar 2008 18:58
Picon
Favicon

Jornada 690 and bt3c(4)

Hi,

I was testing a 3com Bluetooth 3CRWB6096 (version 2.0) PCMCIA card with 
my Jornada 690.

Unfortunately, the card doesn't work with "netbsd-4". I've tried to 
enable the corresponding option, but the kernel doesn't build then.

I've also tried to crosscompile current for hpcsh. I've successfully 
build the kernel, but "build.sh -m hpcsh release" did fail at some 
point. The current kernel also doesn't work with the netbsd-4 userland...

Has anybody successfully used this Bluetooth card with a Jornada 690 yet?

regards,
Andreas

Valeriy E. Ushakov | 9 Mar 2008 19:51
Picon

Re: Jornada 690 and bt3c(4)

On Sun, Mar 09, 2008 at 18:58:57 +0100, Andreas Bartelt wrote:

> I was testing a 3com Bluetooth 3CRWB6096 (version 2.0) PCMCIA card with 
> my Jornada 690.
> 
> Unfortunately, the card doesn't work with "netbsd-4". I've tried to 
> enable the corresponding option, but the kernel doesn't build then.

Try attached patch to hpcsh/include/intr.h.  It makes GENERIC
buildable with BT support enabled.

I guess splraiseipl fell through proverbial cracks on netbsd-4 b/c no
drivers except bluetooth use it directly and hpcsh doesn't used MI
spl.h that defines spl* in terms of splraiseipl.

> I've also tried to crosscompile current for hpcsh. I've successfully 
> build the kernel, but "build.sh -m hpcsh release" did fail at some 
> point.

I haven't done a build.sh release in a while.  And unfortunately
releng doesn't currently build sh3 releases b/c a bug in gcc breaks
sh3 gcc when hosted on 64-bit host (and releng build cluster is now
all 64-bit due to combination of circumstances).

What was the error message.

> The current kernel also doesn't work with the netbsd-4 userland...

What's the failure mode?

(Continue reading)

Valeriy E. Ushakov | 9 Mar 2008 20:07
Picon

Re: Jornada 690 and bt3c(4)

On Sun, Mar 09, 2008 at 21:51:42 +0300, Valeriy E. Ushakov wrote:

> I haven't done a build.sh release in a while.  And unfortunately
> releng doesn't currently build sh3 releases b/c a bug in gcc breaks
> sh3 gcc when hosted on 64-bit host (and releng build cluster is now
> all 64-bit due to combination of circumstances).
> 
> What was the error message.

PS: I mostly do "builsh.sh ... distribution sets" instead of release
to save time on building kernels that I don't need.  If the error was
in the release stage the above will give you all the userland sets to
install.

SY, Uwe
--

-- 
uwe <at> stderr.spb.ru                       |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen

Andreas Bartelt | 9 Mar 2008 22:56
Picon
Favicon

Re: Jornada 690 and bt3c(4)

Hi Uwe,

Valeriy E. Ushakov wrote:
> On Sun, Mar 09, 2008 at 18:58:57 +0100, Andreas Bartelt wrote:
> 
>> I was testing a 3com Bluetooth 3CRWB6096 (version 2.0) PCMCIA card with 
>> my Jornada 690.
>>
>> Unfortunately, the card doesn't work with "netbsd-4". I've tried to 
>> enable the corresponding option, but the kernel doesn't build then.
> 
> Try attached patch to hpcsh/include/intr.h.  It makes GENERIC
> buildable with BT support enabled.
> 

thanks, after applying these patches, I was able to build the kernel.

However, attaching bt3c results in an error (dmesg is attached) and 
btconfig gives no output. When I remove the Bluetooth card, the system 
crashes.

>> I've also tried to crosscompile current for hpcsh. I've successfully 
>> build the kernel, but "build.sh -m hpcsh release" did fail at some 
>> point.
> 
> I haven't done a build.sh release in a while.  And unfortunately
> releng doesn't currently build sh3 releases b/c a bug in gcc breaks
> sh3 gcc when hosted on 64-bit host (and releng build cluster is now
> all 64-bit due to combination of circumstances).
> 
(Continue reading)

Rafal Boni | 10 Mar 2008 20:19
Picon
Favicon

hpcboot -- loading kernels <at> ELF physaddr vs. ELF vaddr?

Currently, hpcboot loads all ELF files  <at>  the virtual address from the ELF
program headers... however, at least on ARM (and I believe on SH and MIPS
too) the kernel is actually loaded into physical memory.

Is there any reason not to load the kernels at the physaddr given in the
ELF header vs. the vaddr as we do now?  That way, we could load kernels
like the following and not have to redesign the VM layout when the HW
memory layout changes.

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x008000 0xc0200000 0xa0200000 0x1d3a94 0x1d3a94 R E 0x8000
  LOAD           0x1e0000 0xc03d8000 0xa03d8000 0x05f48 0x4d9c0 RW  0x8000

Patch below.

--rafal

Index: load_elf.cpp
===================================================================
RCS file: /cvsroot/src/sys/arch/hpc/stand/hpcboot/load_elf.cpp,v
retrieving revision 1.17
diff -u -p -r1.17 load_elf.cpp
--- load_elf.cpp        5 Mar 2006 04:04:13 -0000       1.17
+++ load_elf.cpp        10 Mar 2008 19:16:22 -0000
 <at>  <at>  -166,9 +166,9  <at>  <at>  ElfLoader::load()
                if (ph->p_type == PT_LOAD) {
                        size_t filesz = ph->p_filesz;
                        size_t memsz = ph->p_memsz;
-                       kv = ph->p_vaddr;
(Continue reading)

Michael Wileman | 28 Mar 2008 17:31
Picon

WPA-supported wireless card for 680

After trying several different ways, I am unable to get my Orinoco 
Gold card to support WPA encryption with the hostap wpa_supplicant. 
I'm pretty sure this is a limitation of the hardware or the wi driver.

It seems that all of the atheros-based cards supporting WPA are 
32-bit cards that won't work at all in the Jornada.  Does anyone have 
a wireless card working in their 680 with WPA?

Mike


Gmane