[CUWiN-Dev] Re: Fail to boot after upgrade
Jeongkeun Lee
jklee at mmlab.snu.ac.kr
Mon Dec 18 11:55:41 CST 2006
Hi Luke and David,
I've encountered the same problem after upgrading node image on our net4526
boards. According to the Luke's solution, I changed the /sbin/upgrade script
by adding the block-size and fragment-size parameters as follows:
attempt newfs -b 4096 -f 512 $rdev
But I still have the negative total sector number of BIOS disk geometry, and
booting after upgrade fails again.
Here are the output of "disklabel wd0":
-------------------------------------------------------------------------
CTRL-A Z for help | 19200 8N1 | NOR | Minicom 2.1 | VT102 | Offline
# disklabel wd0
# /dev/rwd0d:
type: ESDI
disk: net4526
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 4
sectors/cylinder: 128
cylinders: 977
total sectors: 125056
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 62512 32 4.2BSD 0 0 0 # (Cyl. 0*-
488*)
c: 62512 32 unused 0 0 # (Cyl. 0*-
488*)
d: 125056 0 unused 0 0 # (Cyl. 0 -
976)
e: 62512 62544 4.2BSD 0 0 0 # (Cyl. 488*-
976)
---------------------------------------------------------------------------
Here are the output of "fdisk wd0":
---------------------------------------------------------------------------
# fdisk wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 977, heads: 4, sectors/track: 32 (128 sectors/cylinder)
total sectors: 125056
BIOS disk geometry:
cylinders: 977, heads: 4, sectors/track: 32 (128 sectors/cylinder)
total sectors: -9035909694452662272
Partition table:
0: NetBSD (sysid 169)
start 32, size 62512 (31 MB, Cyls 0-488/2/17)
1: NetBSD (sysid 169)
start 62544, size 62512 (31 MB, Cyls 488/2/17-977), Active
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
---------------------------------------------------------------------------
Here are the output of BIOS Booting Screen:
----------------------------------------------------------------------------
comBIOS ver. 1.28 20050527 Copyright (C) 2000-2005 Soekris Engineering.
net45xx
0064 Mbyte Memory CPU 80486 133 Mhz
Pri Mas 064MB ATA Flash Disk LBA 977-4-32 62 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:17:0 168C 0013 02000001 0116 0290 10 3C 00 A0000000 00000000 10
0:18:0 100B 0020 02000000 0107 0290 00 3F 00 0000E001 A0010000 11
5 Seconds to automatic boot. Press Ctrl-P for entering Monitor.
NetBSD MBR boot
NetBSD/i386 ffsv1 Primary Bootstrap
0:-(
>> NetBSD/i386 BIOS Boot, Revision 3.3
>> (leejeo at 147.46.216.211, Tue Dec 19 00:17:25 KST 2006)
>> Memory: 639/64512 k
Press return to boot now, any other key for boot menu
booting hd0e:netbsd - starting in 0
2387100read text: Input/output error
boot: hd0e:netbsd: Input/output error
booting hd0e:netbsd.gz
open netbsd.gz: No such file or directory
boot: hd0e:netbsd.gz: No such file or directory
booting hd0e:onetbsd - starting in 0
open onetbsd: No such file or directory
boot: hd0e:onetbsd: No such file or directory
booting hd0e:onetbsd.gz
open onetbsd.gz: No such file or directory
boot: hd0e:onetbsd.gz: No such file or directory
booting hd0e:netbsd.old - starting in 0
open netbsd.old: No such file or directory
boot: hd0e:netbsd.old: No such file or directory
booting hd0e:netbsd.old.gz
open netbsd.old.gz: No such file or directory
boot: hd0e:netbsd.old.gz: No such file or directory
----------------------------------------------------------------------------
>From the output of "disklabel wd0", I noticed that fsize and bsize of
partition 'e' are set to zero while the output from Luke's machine was 1024
and 8192 for fragment size and for block size. As I use net4526, I guess the
Luke's setting of "newfs -b 4096 -f 512" must be valid because Luke's
machine was net4826. I don't know why I still suffer the negative total
sector number.
Thanks.
-- Jeongkeun
> -----Original Message-----
> From: cu-wireless-dev-bounces at lists.cuwireless.net [mailto:cu-wireless-
> dev-bounces at lists.cuwireless.net] On Behalf Of David Young
> Sent: Sunday, November 05, 2006 6:12 PM
> To: cu-wireless-dev at lists.cuwireless.net
> Subject: Re: [CUWiN-Dev] Re: Fail to boot after upgrade
>
> On Thu, Nov 02, 2006 at 10:39:18PM +0000, Lu-chuan Kung wrote:
> > Lu-chuan Kung <kung <at> uiuc.edu> writes:
> >
> > > 5 partitions:
> > > # size offset fstype [fsize bsize cpg/sgs]
> > > a: 62512 32 4.2BSD 0 0 0 # (Cyl.
0*-
> > > 488*)
> > > c: 62512 32 unused 0 0 # (Cyl.
0*-
> > > 488*)
> > > d: 125056 0 unused 0 0 # (Cyl. 0
-
> > 976)
> > > e: 62512 62544 4.2BSD 1024 8192 7816 # (Cyl.
488*-
> > 976)
> > > [snap]
> > > I noticed that in the output of disklabel. The number of total sectors
> of
> > BIOS
> > > disk geometry is negative. However, the individual parameters
> > (Cyl,Head,S/Cyl)
> > > seem to be correct and thus I couldn't fix it in disklabel.
> > >
> > > And by the way, why do we need disk geometry when using
> "/sbin/upgrade"? I
> > > didn't notice anything related to disk geometry in the source of the
> script.
> > >
> > > Luke
> > >
> >
> > Hi Dave,
> >
> > I actually solved the problem by myself and want to share this
> information
> > here. The problem is actually caused by wrong block-size and fragment-
> size
> > setting on /dev/wd0e. I changed the line that executes newfs in
> /sbin/upgrade
> > to:
> > newfs -b 4096 -f 512
> >
> > and then everything works.
>
> Luke,
>
> Thanks! I will give that a try.
>
> Dave
>
> --
> David Young OJC Technologies
> dyoung at ojctech.com Urbana, IL * (217) 278-3933
> _______________________________________________
> CU-Wireless-Dev mailing list
> CU-Wireless-Dev at lists.cuwireless.net
> http://lists.chambana.net/cgi-bin/listinfo/cu-wireless-dev
More information about the CU-Wireless-Dev
mailing list