Subject: Re: how's 3.1? ( a work-around to SE/30 panic: no init )
To: None <port-mac68k@netbsd.org>
From: Sungwon Chung <lucky.cimon@gmail.com>
List: port-mac68k
Date: 12/31/2006 04:13:39
On 11/12/2006 00:32:22 Nuno wrote

>
> Yesterday I've tested 3.1 on a SE/30:
>
> - sysinst do the partition work ok but fails with network card
> configuration/detection and is impossible to install the os.
>
> - traditional method: after installation I get the error: "panic:
> init not found"
>

* Reason for SE/30 and Classic II

 Kernel 3.x cannot read/write to the
 file system created by Mkfs/mac68k utility,
 although the kernel 3.x can see the name of
 files in this file system. So, the traditional
 install method never work with NetBSD 3.

 I am not sure about the reason. But it is true
 that a file system created by Mkfs/mac68k
 is different from a file system created by
 NetBSD 3. And the Install/mac68k utility
 cannot access a file system created by NetBSD 3.

 The simplest solution may be using sysinst
 with SCSI CD-ROM or network. The following
 work-around is for those who do not have SCSI CD-ROM
 or LAN card with SE/30 or Classic II.


* Work-around

 1. In MacOS 7 on SE/30 or Classic II

    A. create 3 NetBSD partitions

       For example,

       sd0a: root&usr (800 MB) <--- for NetBSD system
       sd0b: swap     (100 MB)
       sd0g: tmp      (100 MB) <--- for temporary usage

    B. In MacOS, run Mkfs for sd0a and sd0g

    C. In MacOS, run Install utility and copy *.tgz to sd0g

 2. Boot with NetBSD 3.1 install kernel (netbsd-INSTALL/SBC)

    A. Run /bin/sh from utility menu

       # newfs /dev/rsd0a

    B. reboot


 3. Boot with NewBSD 2.1 install kernel (netbsd-INSTAL/SBC)

    A. Run /bin/sh from utility menu

       # mount /dev/rsd0a /mnt
       # mount /dev/rsd0g /mnt2
       # cd /mnt
       # tar -zxhepvf /mnt2/base.tgz  <--- repeat for all sets

       # cd /mnt/dev
       # ./MAKEDEV all

    B. manually write /etc/fstab file

       For example

       # cd /mnt/etc
       # cat > fstab
       /dev/sd0a / ffs rw 1 1
       /dev/sd0b none swap sw 0 0
       kernfs /kern kernfs rw

    C. reboot

 4. In MacOS 7,

    A. Boot the netbsd 3.1

       (Install utility cannot access the NetBSD file system
        created by 3.1 install kernel, but boot utility
        can access it !)

Happy new year,
Sungwon Chung