Aymeric Vincent | 1 Jul 20:49 2005
Picon

Re: NetBSD 2.0.2


        Hi,

Ignatios Souvatzis <is <at> NetBSD.org> writes:

> >  Is there a serial console available at this point? I could hook up a Linux
> >  laptop then ...
> 
> Would need a specialized kernel, where the serial port has priority for 
> the console.

You "just" need to patch the "serconsole" global variable to be 0,
which I believe can be done with gdb or a hex editor. (ser0 is in the
INSTALL kernel)

The kernel compile-time option just switches the default value of the
variable, as seen in amiga/dev/ser.c

#ifdef SERCONSOLE
int     serconsole = 0;
#else
int     serconsole = -1;
#endif

Regards,
 Aymeric

S.P.Zeidler | 9 Jul 14:20 2005
Picon

please try to reproduce weird problem with pthread_create and stacksize limit

Hi,

the following program:
--- snip ---
#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    pthread_once_t once_init = PTHREAD_ONCE_INIT;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
}
--- snap ---

compiled by:
cc -o whatthehell -O2 -DNETBSD whatthehell.c -lm -lcrypt -lresolv -lpthread

will, when run and stacksize limit is 4089k or higher, yield on my Amiga:
8% ./whatthehell && echo ok
Abort (core dumped)

(and it'll take around two minutes and brake all processes on the machine
to a standstill when it does that)
(Continue reading)

Gunther Nikl | 11 Jul 12:55 2005
Picon

Re: please try to reproduce weird problem with pthread_create and stacksize limit

On Sat, Jul 09, 2005 at 12:20:08PM +0000, S.P.Zeidler wrote:
> the following program:
> --- snip ---
> #include <pthread.h>
> #include <stddef.h>
> 
> void *thread_routine(void *data) {
>     return data;
> }
> 
> int main() {
>     pthread_t thd;
>     pthread_mutexattr_t mattr;
>     pthread_once_t once_init = PTHREAD_ONCE_INIT;

  once_init appears to be unused. I don't know if that matters.

  Gunther

>     int data = 1;
>     pthread_mutexattr_init(&mattr);
>     return pthread_create(&thd, NULL, thread_routine, &data);
> }
> --- snap ---

S.P.Zeidler | 14 Jul 23:39 2005
Picon

Re: please try to reproduce weird problem with pthread_create and stacksize limit

gni <at> gecko.de (Gunther Nikl) writes:

>>     pthread_once_t once_init = PTHREAD_ONCE_INIT;

>  once_init appears to be unused. I don't know if that matters.

The snippet is part of the configure tests in apr, and some other pthread
implemetations would use the variable.
The compiler should simply drop the unused variable.

regards,
	spz
--

-- 
spz <at> serpens.de (S.P.Zeidler)

g.o.d | 29 Jul 09:44 2005
Picon

Etherlink III pcmci fails to initialize

hello,

i tried to install netbsd 2.0 on my amiga 1200 the morning.

it has a pcmci networkcard 3com etherlink iii in it.

the kernel detects the card, but says something (similar, i
am not near the amiga right now) like this:

eb0: wrote 0x7ff got 0x0, disabling device

how can i get this card to work for installing netbsd via
net?

thanks
heiko


Gmane