LinuxBios support for Via Mini-ITX motherboard

Angelo Arifi angelo-arifi at cogeco.ca
Thu Oct 10 10:25:01 CEST 2002


Sorry to bud in again but we constantly keep talking about linuxbios and
mini-tx mobos :) keep up to date on the discussion:

http://www.diyaudio.com/forums/showthread.php?s=&threadid=6552&perpage=40&pa
genumber=1

----- Original Message -----
From: "Steve M. Gehlbach" <steve at nexpath.com>
To: <linuxbios at clustermatic.org>
Sent: Wednesday, October 09, 2002 11:32 PM
Subject: RE: LinuxBios support for Via Mini-ITX motherboard


> > > I spent some time on it.  It has trouble to jump to hardwaremain from
> > > crt0.base somehow.  I'm tracking it at the moment.
> >
> > When I had this problem it always got back to a DRAM issue.
> >
>
> I agree. Below is my favorite "check and see if the copy worked" hack for
> crt0.base.  There is an extra pattern test if the copy fails for some
reason
> or other that I don't remember.  Maybe we ought to always compare ram to
> flash as a sanity check after the copy.
>
> -Steve
>
> // see if copy succeeded
>         leal    EXT(_liseg), %esi
>         leal    EXT(_iseg), %edi
>         cmpl    %esi, %edi
>         jz      .Lnocopy
>         movl    $EXT(_eliseg), %ecx
>         subl    %esi, %ecx
>         jz      .Lnocopy                /* should not happen */
> 0:      cmpsb
>         jnz .failed
>         loop 0b
>
>         CONSOLE_DEBUG_TX_STRING($str_success)
>         jmp .Lnocopy
>
> .failed:
>         CONSOLE_DEBUG_TX_STRING($str_failed)
>         CONSOLE_DEBUG_TX_HEX32(%ecx)
>         CONSOLE_DEBUG_TX_STRING($str_crlf)
>         leal    EXT(_liseg), %esi
>         movl    $0xa5a5a5a5,0(%esi)
>         movl    0(%esi),%eax
>         cmpl    $0xa5a5a5a5,%eax
>         jne 1f
>         CONSOLE_DEBUG_TX_STRING($str_g1)
>         jmp .Lnocopy
> 1:
>         CONSOLE_DEBUG_TX_STRING($str_f1)
>         CONSOLE_DEBUG_TX_STRING($str_failed)
>         CONSOLE_DEBUG_TX_HEX32(%eax)
>         CONSOLE_DEBUG_TX_STRING($str_crlf)
>         jmp . - 2
>         hlt     /* no sense in going on */
>
> .Lnocopy ....
>
> (at the end)
>
> str_success:   .string "\n\rRam compare succeeded.\r\n"
> str_failed:    .string "\n\rRam compare failed: val: "
> str_crlf:      .string "\n\r"
> str_f1:        .string "test 1 failed.\n\r"
> str_g1:        .string "test 1 okay.\n\r"
>
> _______________________________________________
> Linuxbios mailing list
> Linuxbios at clustermatic.org
> http://www.clustermatic.org/mailman/listinfo/linuxbios




More information about the coreboot mailing list