Re: Linux in a binary world... a doomsday scenario

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

 



On Wed, 14 Dec 2005, Eric W. Biederman wrote:

> "linux-os \(Dick Johnson\)" <[email protected]> writes:
>
>> On Wed, 14 Dec 2005, Eric W. Biederman wrote:
>>
>>> "linux-os \(Dick Johnson\)" <[email protected]> writes:
>>>
>>>> When the linux-BIOS group started, few knew where to start. Then,
>>>> mysteriously, there was a complete directory tree of a well-known
>>>> BIOS that appeared on the web. That was a start.
>>>
>>> Nope it wasn't.  None of the developers even read the code.
>>> We needed to keep our hands clean.
>>>
>>> Eric
>>>
>>
>> Standard disclaimer #123
>
> And it is true.
>
> It's not like a mess of 20 year old spaghetti assembly is a useful
> starting point for anything.
>
> I sat down and I read the relevant standards documents and what
> chipset documentation there was and I manged to write code.
>
> It's not like there is anything fundamentally hard about what bootstrap
> firmware does.
>
> Not to be insulting but disbelief here sounds a lot like SCO's assertion
> that Linus couldn't written linux.

No, no. If you know that there is information available that you
could read and use as a reference, then you would certainly read
that information, wouldn't you?  There are many things about
the PC/AT architecture that could not possibly be known without
using some kind of reference because of "compatibility" issues.

For instance, how do you link the two interrupt controllers
together? You can't see it in the old PC/AT handbook schematics,
and its not in the documentation of the chips. Also, reading
a register won't give you the answer because the register values
are dynamic. So, you look to see what others have done. You
can start with the AT BIOS that's published, but it won't work
(I know because I have written two AT Class BIOS). You really
need to see what others have done in a few cases.

When we started to use the AMD SC520, we found out that the
BIOS vendor wanted to charge a large fee per "label".
So, I wrote a BIOS for it. Using all of the available
documentation for the SC520 plus the PC/AT would not result
in a few things working. So I had to peek. Just like
everybody else.

So, if you claim that you have written a PC/AT BIOS without
ever seeing how others have done it, you are in a world of
hurt, sort of beating yourself up for no good reason at all.

Also, since the basic architecture accesses things from software
interrupts, it's pretty easy to debug stuff. You just keep
substituting your code for the BIOS code. Eventually, you
have everything working except the raw initialization stuff
which can only be tested by throwing it off the cliff and
seeing if it will fly! That's when you find that the cascaded
interrupt controller doesn't work, BYW.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.13.4 on an i686 machine (5589.56 BogoMips).
Warning : 98.36% of all statistics are fiction.
.

****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux