SUN3

paco@javier:/emuladores/tme-0.6$ LTDL_LIBRARY_PATH=/usr/local/lib;export LTDL_LIBRARY_PATH paco@javier:/emuladores/tme-0.6$ cd .. paco@javier:/emuladores$ mkdir sun3 paco@javier:/emuladores$ cd sun3 paco@javier:/emuladores/sun3$ cp /usr/local/share/examples/tme/SUN3-CARRERA ./MY-SUN3 paco@javier:/emuladores/sun3$ wget http://people.csail.mit.edu/fredette/tme/sun3-carrera-rev-3.0.bin —11:33:10— http://people.csail.mit.edu/fredette/tme/sun3-carrera-rev-3.0.bin => `sun3-carrera-rev-3.0.bin’ Resolviendo people.csail.mit.edu… 128.30.2.148 Conectando a people.csail.mit.edu|128.30.2.148|:80… conectado. Petición HTTP enviada, esperando respuesta… 200 OK Longitud: 65,536 (64K) [application/octet-stream]

 0% [                                                                                         ] 0  8% [======>                                                                                  ] 5,21% [==================>                                                                      ] 1436% [===============================>                                                         ] 2467% [===========================================================>                             ] 44100%[========================================================================================>] 65,536        62.56K/s             

11:33:12 (62.38 KB/s) - `sun3-carrera-rev-3.0.bin' guardado [65536/65536]
paco@javier:~/emuladores/sun3$ cp /usr/local/share/examples/tme/sun3-carrera-eeprom.txt ./my-sun3-eeprom.txt

 

paco@javier:~/emuladores/sun3$ 
paco@javier:~/emuladores/sun3$ tme-sun-eeprom < my-sun3-eeprom.txt > my-sun3-eeprom.bin
tme-sun-eeprom notice: input format is text
tme-sun-eeprom notice: output format is binary
paco@javier:~/emuladores/sun3$ cp /usr/local/share/examples/tme/sun-keyboards.txt .                         
paco@javier:~/emuladores/sun3$ cp /usr/local/share/examples/tme/my-sun-macros.txt ./my-sun-macros.txt
paco@javier:~/emuladores/sun3$

 

paco@javier:~/emuladores/sun3$ dd if=/dev/zero of=my-sun3-disk.img bs=1 count=1 seek=1000000000
1+0 registros de entrada
1+0 registros de salida
un byte (1 B) copiado, 3,388e-05 segundos, 29,5 kB/s
paco@javier:~/emuladores/sun3$

 

paco@javier:~/emuladores/sun3$ wget -r http://www.sun3zoo.de/sun3arc/BootTapes/Sun3/index.html
Descargado: 69,037,743 bytes en 47 archivos

paco@javier:~/emuladores/sun3$ mv www.sun3zoo.de/sun3arc/BootTapes/Sun3 my-sunos-tape
paco@javier:~/emuladores/sun3$ cd my-sunos-tape
paco@javier:~/emuladores/sun3/my-sunos-tape$ uncompress *.Z
paco@javier:~/emuladores/sun3/my-sunos-tape$

 

 

ln -s tpboot.sun3               01
ln -s SunOS411.sun3.Exa.xdrtoc  02
ln -s munix_sun3                03
ln -s munixfs_sun3              04
ln -s miniroot_sun3             05
ln -s sun3_proto_root.sunos_4_1_1.tar 06
ln -s sun3_usr.tar              07

ln -s sun3_kvm.tar      08
ln -s sun3_install.tar          09
ln -s sun3_networking.tar   10
ln -s sun3_system_v.tar         11
ln -s sun3_sys.tar      12
ln -s sun3_sunview_users.tar    13
ln -s sun3_sunview_demo.tar 14
ln -s sun3_text.tar     15
ln -s sun3_demo.tar     16
ln -s sun3_openwindows_users.tar 17
ln -s sun3_openwindows_demo.tar  18
ln -s sun3_openwindows_fonts.tar 19
ln -s sun3_user_diag.tar    20
ln -s sun3_manual.tar       21
ln -s sun3_tli.tar      22
ln -s sun3_rfs.tar      23
ln -s sun3_debugging.tar    24
ln -s sun3_sunview_programmers.tar 25
ln -s sun3_shlib_custom.tar 26
ln -s sun3_graphics.tar         27
ln -s sun3_uucp.tar     28
ln -s copyright_sun3_tape1  29

ln -s sun3_security.tar         31
ln -s sun3_openwindows_programmers.tar 32
ln -s copyright_sun3_tape1      33
cd ..

for i in $( ls -1 my-sunos-tape/?? ); do
    ln -s $i
done

 

echo "command tape0 load 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33" >> MY-SUN3 
echo "command mainbus0 power up" >> MY-SUN3

 

http://www.sun3zoo.de/en/tme.html

http://people.csail.mit.edu/fredette/tme/sun3-150-nbsd.html

http://www.sun3zoo.de/sun3arc/BootTapes/

http://www.paulgraham.com/thist.html

http://people.csail.mit.edu/fredette/tme/sun4-75-nbsd.html

 

 

paco@javier:~/emuladores/sun3$ cp MY-SUN3 MY-SUN3.intall
paco@javier:~/emuladores/sun3$ wget ftp://ftp.cs.indiana.edu/pub/scheme-repository/imp/t/risc_sources.tar.gz
--18:20:25--  ftp://ftp.cs.indiana.edu/pub/scheme-repository/imp/t/risc_sources.tar.gz
           => `risc_sources.tar.gz'
Resolviendo ftp.cs.indiana.edu... 129.79.247.195
Conectando a ftp.cs.indiana.edu|129.79.247.195|:21... conectado.
Identificándose como anonymous ... ¡Conectado!
==> SYST ... hecho.    ==> PWD ... hecho.
==> TYPE I ... hecho.  ==> CWD /pub/scheme-repository/imp/t ... hecho.
==> PASV ... hecho.    ==> RETR risc_sources.tar.gz ... hecho.

    [                                                       <=>                                                        ] 477,677       14.45K/s             

18:20:55(21.91 KB/s) - `risc_sources.tar.gz' guardado [477677]

paco@javier:~/emuladores/sun3$ wget ftp://ftp.cs.indiana.edu/pub/scheme-repository/imp/t/sunt.tar.gz
--18:21:22--  ftp://ftp.cs.indiana.edu/pub/scheme-repository/imp/t/sunt.tar.gz
           => `sunt.tar.gz'
Resolviendo ftp.cs.indiana.edu... 129.79.247.195
Conectando a ftp.cs.indiana.edu|129.79.247.195|:21... conectado.
Identificándose como anonymous ... ¡Conectado!
==> SYST ... hecho.    ==> PWD ... hecho.
==> TYPE I ... hecho.  ==> CWD /pub/scheme-repository/imp/t ... hecho.
==> PASV ... hecho.    ==> RETR sunt.tar.gz ... hecho.

    [                                              <=>                                                                 ] 931,960        8.10K/s             

18:22:50(12.46 KB/s) - `sunt.tar.gz' guardado [931960]

paco@javier:~/emuladores/sun3$ gzip -d risc_sources.tar.gz 
paco@javier:~/emuladores/sun3$ gzip -d sunt.tar.gz 

 

Uff, Uff, it took some work, there is something I still do not understand, but it is already there… Let us see if I can manage to make it a bit more automatic.

 

 

setenv TAPE /dev/(n)rst0
command tape0 load risc_sources.tar sunt.tar
T 3.1 (5) MC68000/UNIX  Copyright (C) 1988 Yale University

 

It seems it is better to mount the tape as nrst, this way one tar is made and it copies the first file, the second tar fails, and the third tar copies the second file ..

 

 (herald sunbuild)
#|

To build a new system from sources:

1. You should be in a directory with sources and tsystem as subdirectories
   Execute the shell script in tsystem/envset
2. Start up tsystem/xt and load this file into orbit-env
3. (compile-support) and (exit)
4. Start up tsystem/xt again and load this file into orbit-env
5. (compile-sources) and (link-t '(tsystem new)) and (exit)
6. cd tsystem; linkt new.o new; cd ..
7. tsystem/new is a T without compiler. Start up new with a large heap.
8. ((*value t-implementation-env 'load-and-suspend-system) '(tsystem new) t)
   (exit)
9. cd tsystem; linkt new.o new    That's it.

|#