NetBSD-Users archive

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

Re: Soekris 5501 Console Delay (WAS: Re: Tuning a soekris 4501)



Haha, yeah, I used to get this long delay too until I sat down for an hour and 
printf debugged the loaders and found out it had to do with enabling the a20 
line.  To get it working, just change the gateA20 function in 
/usr/src/sys/arch/i386/stand/lib/gatea20.c to read (a lame hack, but it works!):

void
gateA20(void)
{
        __asm("pushfl ; cli");
        /*
         * Not all systems enable A20 via the keyboard controller.
         *      * IBM PS/2 L40
         *      * AMD Elan SC520-based systems
         */
        if
        (
                (1)  /* make it true all the time for the Soekris 4501/5501 so 
we don't wait forever */
#ifdef SUPPORT_PS2
            (biosmca_ps2model == 0xf82) ||
#endif
            (inb(K_STATUS) == 0xff && inb(K_RDWR) == 0xff)
#endif
        )
        {
                int data;

                data = inb(0x92);
                outb(0x92, data | 0x2);
        } else {
                while (inb(K_STATUS) & K_IBUF_FUL);

                while (inb(K_STATUS) & K_OBUF_FUL)
                        (void)inb(K_RDWR);

                outb(K_CMD, KC_CMD_WOUT);

                delay(100);
                while (inb(K_STATUS) & K_IBUF_FUL);

                outb(K_RDWR, x_20);

                delay(100);
                while (inb(K_STATUS) & K_IBUF_FUL);

                while (inb(K_STATUS) & K_OBUF_FUL)
                        (void)inb(K_RDWR);
        }
        __asm("popfl");
}

-Bill



----- Original Message ----
From: Brian A. Seklecki <lavalamp%spiritual-machines.org@localhost>
To: Lubomir Sedlacik <salo%Xtrmntr.org@localhost>
Cc: Jared D. McNeill <jmcneill%invisible.ca@localhost>; Adrian Portelli 
<adrianp%stindustries.net@localhost>; Louis Guillaume 
<lguillaume%berklee.edu@localhost>; netbsd-users%NetBSD.org@localhost
Sent: Friday, October 10, 2008 2:27:00 PM
Subject: Soekris 5501 Console Delay (WAS: Re: Tuning a soekris 4501)

> The only issue I see is approx. 2 minute delay in the bootloader before
> it loads the kernel.  I know that Jared has seen this, too.
>

Two Minutes?! Yikes!  What's it doing?  Some kind of hardware probe that 
times out?

Are you doing installboot -o console=com0,speed=0?

~BAS



      



Home | Main Index | Thread Index | Old Index