Subject: Re: boot problems with large MEMORY_DISK_ROOT_SIZE fixed?
To: None <port-i386@NetBSD.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: port-i386
Date: 10/19/2004 01:49:58
Jukka Salmi --> port-i386 (2004-10-18 14:48:21 +0200):
> Hi,
> 
> I just noticed PR 24978 was closed four days ago because the problem
> ("The boot process stops quickly after some addresses display and PC
> reboots" when using large MEMORY_DISK_ROOT_SIZE) was fixed; I updated
> my sources and tried again, but without success: now I can't even use
> small (2MB) memory disks anymore! When I tried last (June 2004) the
> problem existed only for md's larger than about 8MB.
> 
> Just to make sure it's not my mistake (would be good news ;-)) here
> is what I did:
> 
> - hardware: Soekris net4501, Compact Flash
> - built kernel using NET4501 config plus the following options:
> 	options MEMORY_DISK_HOOKS
> 	options MEMORY_DISK_IS_ROOT
> 	options MEMORY_DISK_SERVER=0
> 	options MEMORY_DISK_ROOT_SIZE=4096
> 	pseudo-device md 1
> - created root fs directory structure (/sbin/init, /in/sh, /lib/...,
>   /dev/MAKEDEV, etc)
> - makefs -s 2m md.img dir
> - mdsetimage netbsd.NET4501.MD md.img
> - gzip -c netbsd.NET4501.MD >netbsd
> - I PXE booted the net4501 using NetBSD 2.99.10, and used fdisk,
>   disklabel and newfs to create a filesystem on the CF
> - copied /usr/mdec/boot and the gzipped ramdisk kernel to /
> - installboot -v -o timeout=3 /dev/rwd0a /usr/mdec/bootxx_ffsv1

...adding console=com0 solved the problem. So this problem was
not at all related to PR 24978, it only showed the same symptoms.


> - reboot
> 
> Booting the net4501 resulted in an endless reboot loop (boot messages
> are attached).
> 
> Is this supposed to work as described above, or did I miss something?


Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~