OpenGrok
Cross Reference: prom.S
xref
: /
src
/
sys
/
arch
/
mipsco
/
stand
/
common
/
prom.S
Home
|
History
|
Annotate
|
Download
|
only in
common
History log of
/src/sys/arch/mipsco/stand/common/prom.S
Revision
Date
Author
Comments
1.3
28-Apr-2008
martin
Remove clause 3 and 4 from TNF licenses
1.2
26-Sep-2000
wdk
branches: 1.2.2; 1.2.128; 1.2.130; 1.2.132;
Since we don't have a lseek function in the PROM firmware standalone libs
we have to poke the data structures directly to force the offset we need.
The open() function returns with the address of the IO control block in
register t0 so we take a copy of it for our brute-force lseek function.
This should be reasonably portable since the firmware writers closely
follow UNIX semantics and the open stubs should recompile and use the
same registers. May break on the rebadged clones -- buyer beware.
The alternative is to use dummy reads to go forwards and reopen followed
by dummy reads to go backwards. It takes around 60 seconds to boot
using this method if we use a clean filesystem.
Tested with firmware versions 5.40 and 5.43
1.1
18-Sep-2000
wdk
Initial commit of a 2 stage bootloader for NetBSD/mipsco. Based on pmax
and alpha ports.
Uses PROM standalone I/O functions but due to the lack of a lseek function
it currently only works with version 5.40 of the firmware. A more portable
solution is being worked on.
installboot utility requires several changes in order to correctly install
the bootstrap code - there is a "volume directory" which contains a list
of filenames, start sectors and length. We need to add a "boot" entry of
the correct length starting at block 2. The boot file has to be ecoff
which means we waste another 0.5k
Normally the Mips filesystem has a ~500k partition for this purpose but it
should be possible to squeeze it all into the first 7k "BSD Style" (1k is
required for 2 different copies of the partition table)
Only the bootxx_ffs first stage bootstrap has been tested via bootp() which
loads the second stage off disk and then boots the kernel.
1.2.132.1
16-May-2008
yamt
sync with head.
1.2.130.1
18-May-2008
yamt
sync with head.
1.2.128.1
02-Jun-2008
mjf
Sync with HEAD.
1.2.2.2
20-Nov-2000
bouyer
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
1.2.2.1
26-Sep-2000
bouyer
file prom.S was added on branch thorpej_scsipi on 2000-11-20 20:14:14 +0000
Indexes created Mon Oct 20 00:09:40 GMT 2025