[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-port-mac68k
Subject:    Re: NetBSD 9.3 and 7.2 on a PowerBook 170
From:       Nathanial Sloss <nathanialsloss () yahoo ! com ! au>
Date:       2022-12-16 11:05:43
Message-ID: 202212162205.45160.nat () netbsd ! org
[Download RAW message or body]

Hi,

I've been able to install (old-school) NetBSD-9.3 on a powerbook 160 with 8MB 
ram.

The kernel config was stripped of all unnecessary devices and filesystems except 
for ffs and tmpfs and cd9660.  Even networking was disabled resulting in a 
kernel of about 1.6MB in size.  This method will still work if the kernel is 
slightly larger no more than 2.0MB.

I made a cd filesystem of my mac68k destdir

It would be good to copy the sets you want to install somewhere in your 
destdir before you cut the cd.

(mkisofs -o output.iso -l -J -R -allow-leading-dots ./)


I could then boot this to single user setting cd0a as root and running 
rescue/init and bin/sh.

Swap should have been partitioned by you in Apple HD SC Setup, so run dislabel 
sd0, check the swap partition suffix (should be sd0b).

swapon /dev/sd0b right away as you'll need the swap memory.

So at this point you can newfs your hdd if requred, mount (say /mnt) it and 
use 
pax -rw -pe to copy the files straight from the bootable cd to the hdd or run 
tar on the sets to the hdd.

It's as soon as possible run the MAKEDEV script on the hdd before you reboot 
(this will save about 600kB of memory).

At present though it is not possible to boot to multiuser with 8MB of memory 
and no swap enabled in early boot (root file system checks and mounting of 
drives) with 8MB of memory.

For my powerbook I'm hoping to get much further with the 10MB memory module 
I've ordered, altough this is not an option for the 170 (8MB max).

There is a missing 700kB when the kernel starts which I hope to find out why 
and fix that may help init get to multiuser, but I'm not certain.

This method can be used to install any version of NetBSD though.

I hope this helps,

Nat

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; \
font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">Hi,</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">I've been able to install (old-school) NetBSD-9.3 on a powerbook \
160 with 8MB ram.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">The kernel config was stripped of all unnecessary devices and \
filesystems except for ffs and tmpfs and cd9660.  Even networking was disabled \
resulting in a kernel of about 1.6MB in size.  This method will still work if the \
kernel is slightly larger no more than 2.0MB.</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">I made a cd filesystem of my mac68k destdir</p> \
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> \
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">It would be good to copy the \
sets you want to install somewhere in your destdir before you cut the cd.</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">(<span style=" \
font-family:'Courier New,courier';">mkisofs -o output.iso -l -J -R \
-allow-leading-dots ./)</span></p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier \
New,courier';">I could then boot this to single user setting cd0a as root and running \
rescue/init and bin/sh.</span></p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Courier \
New,courier';">Swap should have been partitioned by you in Apple HD SC Setup, so run \
dislabel sd0, check the swap partition suffix (should be sd0b).</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier';">swapon /dev/sd0b right away as you'll need the \
swap memory.</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier';">So at this point \
you can newfs your hdd if requred, mount (say /mnt) it and use </span></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier';">pax -rw -pe to copy the files straight from the \
bootable cd to the hdd or run tar on the sets to the hdd.</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier';">It's as soon as possible run the MAKEDEV script \
on the hdd before you reboot (this will save about 600kB of memory).</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier';">At present though it is not possible to boot to \
multiuser with 8MB of memory and no swap enabled in early boot (root file system \
checks and mounting of drives) with 8MB of memory.</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier';">For my powerbook I'm hoping to get much further \
with the 10MB memory module I've ordered, altough this is not an option for the 170 \
(8MB max).</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier';">There is a \
missing 700kB when the kernel starts which I hope to find out why and fix that may \
help init get to multiuser, but I'm not certain.</span></p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" \
font-family:'Courier New,courier';">This method can be used to install any version of \
NetBSD though.</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier';">I hope this \
helps,</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; ">&nbsp;</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><span style=" font-family:'Courier New,courier';">Nat</span></p> \
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
">&nbsp;</p></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic