Port-hp300 archive

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

Re: Installing NetBSD 8.2 on model 375



(cc'ed to tech-install@)

I wrote:

> martin.trusler@ wrote:
> 
> > However, the following are also in the same directory but are not
> > recognised:
> > debug.tgz
> > kern-GENERIC.tgz
> > modules.tgz
> > tests.tgz
> > six more files x*.tgz

 :

> I'll check how the INSTALL kernel goes on my 425e etc.

I've found a problem in miniroot installation problem.

src/distrib/miniroot/install.sub script filters set files per
"THESETS" from "ALLSETS" in MI install.sh and "MDSET" in MD install.md
https://nxr.netbsd.org/xref/src/distrib/miniroot/install.sub?r=1.53#628

but all ports other than amiga doesn't set MDSETS properly:
https://nxr.netbsd.org/xref/src/distrib/miniroot/install.sub?r=1.53#628

As you pointed out another mail, hp300 (and mac68k) install.md script
also lacks "md_get_partition_range()" function. 

The attached patch should resolve all issue so I'll commit this
soon and send a pullup requests.

Thanks!

Index: hp300/miniroot/install.md
===================================================================
RCS file: /cvsroot/src/distrib/hp300/miniroot/install.md,v
retrieving revision 1.17
diff -u -p -d -r1.17 install.md
--- hp300/miniroot/install.md	10 Apr 2019 14:52:53 -0000	1.17
+++ hp300/miniroot/install.md	2 Dec 2020 18:35:25 -0000
@@ -35,7 +35,7 @@
 #
 
 # Machine-dependent install sets
-MDSETS=""
+MDSETS="kern-GENERIC xbase xcomp xetc xfont xserver"
 
 md_set_term() {
 	if [ ! -z "$TERM" ]; then
@@ -83,6 +83,11 @@ md_get_ifdevs() {
 	mi_filter_dmesg | awk -F : '/^le[0-9]*:/ { print $1; }' | sort -u
 }
 
+md_get_partition_range() {
+	# return an expression describing the valid partition id's
+	echo '[a-h]'
+}
+
 md_installboot() {
 	# $1 is the root disk
 
Index: mac68k/miniroot/install.md
===================================================================
RCS file: /cvsroot/src/distrib/mac68k/miniroot/install.md,v
retrieving revision 1.5
diff -u -p -d -r1.5 install.md
--- mac68k/miniroot/install.md	10 Apr 2019 14:52:53 -0000	1.5
+++ mac68k/miniroot/install.md	2 Dec 2020 18:35:25 -0000
@@ -35,7 +35,7 @@
 #
 
 # Machine-dependent install sets
-MDSETS=""
+MDSETS="kern-GENERIC xbase xcomp xetc xfont xserver"
 
 md_set_term() {
 	if [ ! -z "$TERM" ]; then
@@ -83,6 +83,11 @@ md_get_ifdevs() {
 	mi_filter_dmesg | awk -F : '/^sn[0-9]*:/ { print $1; }' | sort -u
 }
 
+md_get_partition_range() {
+	# return an expression describing the valid partition id's
+	echo '[a-h]'
+}
+
 md_installboot() {
 	# $1 is the root disk
 
Index: miniroot/install.sub
===================================================================
RCS file: /cvsroot/src/distrib/miniroot/install.sub,v
retrieving revision 1.53
diff -u -p -d -r1.53 install.sub
--- miniroot/install.sub	19 Jan 2020 00:57:00 -0000	1.53
+++ miniroot/install.sub	2 Dec 2020 18:35:25 -0000
@@ -35,7 +35,7 @@ ROOTDISK=""				# filled in below
 VERSION=89936
 export VERSION
 
-ALLSETS="base comp etc games man misc rescue text"	# default install sets
+ALLSETS="base comp etc games man misc modules rescue text"	# default install sets
 UPGRSETS="base comp games man misc text"		# default upgrade sets
 THESETS=						# one of the above
 
Index: mvme68k/miniroot/install.md
===================================================================
RCS file: /cvsroot/src/distrib/mvme68k/miniroot/install.md,v
retrieving revision 1.8
diff -u -p -d -r1.8 install.md
--- mvme68k/miniroot/install.md	10 Apr 2019 14:52:53 -0000	1.8
+++ mvme68k/miniroot/install.md	2 Dec 2020 18:35:25 -0000
@@ -35,7 +35,7 @@
 #
 
 # Machine-dependent install sets
-MDSETS=""
+MDSETS="kern-GENERIC xbase xcomp xetc xfont xserver"
 
 md_set_term() {
 	if [ ! -z "$TERM" ]; then
Index: sun2/miniroot/install.md
===================================================================
RCS file: /cvsroot/src/distrib/sun2/miniroot/install.md,v
retrieving revision 1.5
diff -u -p -d -r1.5 install.md
--- sun2/miniroot/install.md	10 Apr 2019 14:52:53 -0000	1.5
+++ sun2/miniroot/install.md	2 Dec 2020 18:35:25 -0000
@@ -35,7 +35,7 @@
 
 # Machine-dependent install sets
 # MDSETS="xbin xman xinc xcon" XXX
-MDSETS=""
+MDSETS="kern-GENERIC"
 
 md_set_term() {
 	if [ ! -z "$TERM" ]; then
Index: sun3/miniroot/install.md
===================================================================
RCS file: /cvsroot/src/distrib/sun3/miniroot/install.md,v
retrieving revision 1.5
diff -u -p -d -r1.5 install.md
--- sun3/miniroot/install.md	10 Apr 2019 14:52:53 -0000	1.5
+++ sun3/miniroot/install.md	2 Dec 2020 18:35:25 -0000
@@ -35,7 +35,7 @@
 
 # Machine-dependent install sets
 # MDSETS="xbin xman xinc xcon" XXX
-MDSETS=""
+MDSETS="kern-GENERIC kern-GENERIC3X xbase xcomp xetc xfont xserver"
 
 md_set_term() {
 	if [ ! -z "$TERM" ]; then

---

Note I also notice there is another minor problem in miniroot script
in netbsd-9 branch.  It complains:
---
Available disks are:

awk: warning: escape sequence `\[' treated as plain `['
 source line number 1
 context is
        { h=$0; >>>  gsub("^[ <<<
awk: warning: escape sequence `\]' treated as plain `]'
 source line number 1
awk: warning: escape sequence `\[' treated as plain `['
 source line number 1
 context is
        { h=$0; >>>  gsub("^[ <<<
awk: warning: escape sequence `\]' treated as plain `]'
 source line number 1
sd0
sd1

Which disk is the root disk?

---

This is caused by the following lines:

https://nxr.netbsd.org/xref/src/distrib/miniroot/install.sub?r=1.53#1612
---
   1612 mi_filter_dmesg() {
   1613 	# Remove timestemps, sort.
   1614 	dmesg | awk '{ h=$0; gsub("^\[[0-9. ]*\] ", "", h); print h; }' \
   1615 	    | sort -u
   1616 }
---

Maybe it should be gsub("^\\[[0-9. ]*\\] ", "", h) ?

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index