Subject: 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/18/2004 14:48:21
--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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
- 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?
Help is appreciated.
TIA, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="net4501.md"
comBIOS ver. 1.26a 20040819 Copyright (C) 2000-2004 Soekris Engineering.
net45xx
0064 Mbyte Memory CPU 80486 133 Mhz
Pri Mas SanDisk SDCFB-128 LBA 980-8-32 125 Mbyte
Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int
-------------------------------------------------------------------
0:00:0 1022 3000 06000000 0006 2280 00 00 00 00000000 00000000
0:18:0 100B 0020 02000000 0107 0290 00 3F 00 0000E001 A0000000 10
0:19:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0001000 11
0:20:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0002000 05
4 Seconds to automatic boot. Press Ctrl-P for entering Monitor.
NetBSD MBR boot
NetBSD/i386 ffsv1 Primary Bootstrap
>> NetBSD/i386 BIOS Boot, Revision 3.1
>> (build@himo.salmi.ch, Mon Oct 18 01:20:28 CEST 2004)
>> Memory: 639/64512 k
Press return to boot now, any other key for boot menu
booting hd0a:netbsd - starting in 0
1718260+2132100+289616 [141024+124022]=0x434a08
POST: 012345~
--RnlQjJ0d97Da+TV1--