• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-cqtcocoa誰得pythonphprubygameguibathyscaphec翻訳計画中(planning stage)omegatframeworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Revisiondd36bfefeea5e6c1f8bb7005cc9102875df83c24 (tree)
Time2023-01-11 19:53:42
Authorphabrics <phabrics@phab...>
Commiterphabrics

Log Message

Added generation of firmware config files and tape links to binary sets, as well as disk creation to automated TME machine setup script.

Change Summary

Incremental Difference

--- a/machine/sun/tme-make-machs
+++ b/machine/sun/tme-make-machs
@@ -89,33 +89,75 @@ for mach in `ls $loc/SUN*`; do
8989 fi
9090 done
9191
92+# Remember, skip "etc" for an upgrade.
93+sets="etc base comp games man misc rescue text"
94+
9295 # Finally, set up the links to the NetBSD installation files and device configuration
9396 for arch in {sun2,sun3,sun4,sun-ultra}; do
9497 netbsd_path=NetBSD/NetBSD-$netbsd_rel/$arch
9598 netbsd_iso=NetBSD/images/$netbsd_rel/NetBSD-$netbsd_rel-sparc
9699 netbsd=netbsd-$arch
100+ prom=my-$arch-eeprom.bin
97101 for machd in `ls -d $arch-*/`; do
98102 cd $machd
103+ echo "Making $machd"
99104 if [ $arch = "sun4" ]; then
100105 [ -d ../sun-fw ] && ln -sf ../sun-fw/$arch* .
101106 [ -d ../sun-fw ] && ln -sf ../sun-fw/SUNW,501-1* .
102107 [ -f "../${netbsd_iso}.iso" ] && ln -sf "../${netbsd_iso}.iso" $netbsd.iso
108+ macht="SS2"
109+ cnt=2008
110+ arch+=c
111+ prom=my-$arch-nvram.bin
112+ sz=10G
103113 elif [ $arch = "sun-ultra" ]; then
104114 [ -d ../sun-fw ] && ln -sf ../sun-fw/SUNW* .
105115 [ -f "../${netbsd_iso}64.iso" ] && ln -sf "../${netbsd_iso}64.iso" $netbsd.iso
106- elif [ -d "../$netbsd_path" ] && [ ! -d "$netbsd.tape" ]; then
107- [ -d ../sun-fw ] && ln -sf ../sun-fw/$arch* .
108- mkdir $netbsd.tape
109- cd $netbsd.tape
110- ln -s ../../$netbsd_path/installation/tapeimage/tapeboot 01
111- touch 02 03
112- gzip -c -d ../../$netbsd_path/installation/miniroot/miniroot.fs.gz > 04
113- gzip -c -d ../../$netbsd_path/binary/kernel/netbsd-RAMDISK.gz > 05
116+ cnt=8176
117+ arch=sun4u
118+ prom=my-$arch-nvram.bin
119+ sz=10G
120+ else
121+ if [ -d "../$netbsd_path" ] && [ ! -d "$netbsd.tape" ]; then
122+ [ -d ../sun-fw ] && ln -sf ../sun-fw/$arch* .
123+ mkdir $netbsd.tape
124+ cd $netbsd.tape
125+ ln -s ../../$netbsd_path/installation/tapeimage/tapeboot 01
126+ touch 02 03
127+ gzip -c -d ../../$netbsd_path/installation/miniroot/miniroot.fs.gz > 04
128+ gzip -c -d ../../$netbsd_path/binary/kernel/netbsd-RAMDISK.gz > 05
129+ if [ $arch = "sun3" ]; then
130+ mv 05 02
131+ i=5
132+ else
133+ i=6
134+ fi
135+ for f in $sets; do
136+ j=`printf %02d $i`
137+ gzip -c -d ../../$netbsd_path/binary/sets/${f}.tgz > $j
138+ ((i+=1))
139+ done
140+ cd ..
141+ fi
114142 if [ $arch = "sun3" ]; then
115- mv 05 02
143+ macht="3/150"
144+ [ -f $prom ] || tme-sun-eeprom < $(basename $machd)-eeprom.txt > $prom
145+ else
146+ macht="2/120"
147+ fi
148+ cnt=0
149+ prom=my-$arch-idprom.bin
150+ sz=3G
151+ fi
152+ if [ ! -f $prom ]; then
153+ dd if=/dev/zero bs=1 count=$cnt of=$prom
154+ if [ $arch != "sun4u" ]; then
155+ macaddr=`printf 8:0:20:%02X:%02X:%02X $[RANDOM%256] $[RANDOM%256] $[RANDOM%256]`
156+ echo "$macht $macaddr"
157+ tme-sun-idprom $macht $macaddr >> $prom
116158 fi
117- cd ..
118159 fi
160+ [ -f my-$arch-disk.img ] || dd if=/dev/zero of=my-$arch-disk.img bs=1 count=1 seek=$sz
119161 cd ..
120162 done
121163 done