Date: Mon, 2 Apr 2001 20:32:36 +0200 (CEST) From: Luigi Rizzo <luigi@info.iet.unipi.it> To: Gunther Schadow <gunther@aurora.regenstrief.org> Cc: freebsd-small@FreeBSD.ORG Subject: Re: problems with DiskOnChip ... Message-ID: <200104021832.UAA54242@info.iet.unipi.it> In-Reply-To: <3AC8C147.950B1F41@aurora.regenstrief.org> from Gunther Schadow at "Apr 2, 2001 06:13:27 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> Getting a disklabel onto them was a pain. But I have had a hard time > with disklabeling since the old days of 386BSD were past. Someone's > being too smart now :-). Anyway, I finally got the disklabel on, have a look at how picobsd does, it might help (the script is /usr/src/release/picobsd/build/picobsd) cheers luigi > but it was pure luck. Playing around with whether or not to write the > boot blocks etc. Once the disklabel was right I could newfs. But > in disklabel and mount operations I get a bunch of stray interrupt > (#7) warnings and it says that partition size != filesystem size > or something. But I can read and write just fine. > > Except during boot. This is what happens: > > >> FreeBSD/i386 BOOT > Default: 0:ad(0,a)kernel.gz > boot: ? > . .. bin sbin usr mnt etc dev stand boot.config kernel.config kernel.gz var boot > kernel > > (so it appears to be able to access the disk, reading the label from > it) But when I try to boot I get this: > > >> FreeBSD/i386 BOOT > Default: 0:ad(0,a)? > boot: kernel > Disk error 0x1 (lba=0x1768) > Invalid format > > Strange enough, I will get the same when I then try to boot from floppy > instead: > > >> FreeBSD/i386 BOOT > Default: 0:fd(0,a)? > boot: 0:fd(0,a)? > . .. kernel.gz fs.PICOBSD.gz boot etc kernel.config boot.config config.tar.gz > > >> FreeBSD/i386 BOOT > Default: 0:fd(0,a)? > boot: 0:fd(0,a)kernel.gz > Invalid format > > So, may be the boot sector is still no good. Oh man, that means back to > the argument with Mr. Disklabel :-( > > Here are dumps from fdisk and disklabel: > > ngigw1>fdisk fla0 > ******* Working on device /dev/fla0 ******* > parameters extracted from in-core disklabel are: > cylinders=995 heads=16 sectors/track=1 (16 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=995 heads=16 sectors/track=1 (16 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > <UNUSED> > The data for partition 2 is: > <UNUSED> > The data for partition 3 is: > <UNUSED> > The data for partition 4 is: > sysid 165,(FreeBSD/NetBSD/386BSD) > start 0, size 50000 (24 Meg), flag 80 (active) > beg: cyl 0/ sector 1/ head 0; > end: cyl 1023/ sector 63/ head 255 > > ngigw1>disklabel -r fla0 > # /dev/fla0c: > type: unknown > disk: fla0s1 > label: ngigw2-root > flags: > bytes/sector: 512 > sectors/track: 1 > tracks/cylinder: 16 > sectors/cylinder: 16 > cylinders: 995 > sectors/unit: 15920 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 15919 0 4.2BSD 512 4096 5 # (Cyl. 0 - 994*) > c: 15919 0 unused 0 0 # (Cyl. 0 - 994*) > > And this is what happens when I mount: > > ngigw1>mount /dev/fla0a /mnt > stray irq 7 > fla0: raw partition size != slice size > fla0: start 0, end 15919, size 15920 > stray irq 7 > fla0c: start 0, end 15918, size 15919 > > Isn't this weird? > > The partition entry always slips from the first to the fourth partition. > Trying to configure without a proper partition table (i.e., use raw disk) > doesn't work either... > > What should I do, what's wrong here? Anybody having more luck > with this? > > Any help is much appreciated! > -Gunther > > -- > Gunther Schadow, M.D., Ph.D. gschadow@regenstrief.org > Medical Information Scientist Regenstrief Institute for Health Care > Adjunct Assistent Professor Indiana University School of Medicine > tel:1(317)630-7960 http://aurora.regenstrief.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-small" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104021832.UAA54242>