[Soekris] Burning Flash Cards

kfl kfl at xiphos.ca
Mon Aug 25 20:17:36 UTC 2003


Hi,

I just tried with a 128MB card and didn't have any problems. I am thinking
that the Kingston CF/64 (orange)
is too slow or something. Does that make sense? Is there any 'speed' or spec
I should look into before buying more flash cards?

Regards,

Karim.

> -----Original Message-----
> From: soekris-tech-admin at lists.soekris.com
> [mailto:soekris-tech-admin at lists.soekris.com]On Behalf Of kfl
> Sent: Monday, August 25, 2003 3:18 PM
> To: Sokeris; Wim Vandeputte
> Subject: RE: [Soekris] Burning Flash Cards
>
>
> Hi,
>
> Thanks for your reply. I do take in account the CHS as you can see at that
> line:
>
> dd if=/dev/zero of=minibsd-disk.bin bs=512 count=125184
>
> where count is C*H*S or the sector/units count and is 125184.
>
> I'm doing the same procedure in my script as in flashdist (using
> vnconfig to
> create a virtual disk).
> I also tried the picobsd autoinstall script (init_flash) which wa working
> fine on 32MB cards.
>
> BTW I have Kingston CF/64 (the orange one) could that be the problem?
>
>
> > -----Original Message-----
> > From: Wim Vandeputte [mailto:wim at kd85.com]
> > Sent: Monday, August 25, 2003 11:18 AM
> > To: kfl
> > Cc: Sokeris; goat
> > Subject: Re: [Soekris] Burning Flash Cards
> >
> >
> >
> > Hallo Karim,
> >
> > I could be wrong, but you can't 'just' dd an image and not take in
> > account the geometry of the CF like the Soekris sees is *if you want
> > a valid bootloader installed* ;-)
> >
> > Have a look at all the other scripts out there, like the flashdist from
> > Chris Cappuccio that write to a fresh CF or OpenSoekris that creates an
> > image first with vnconfig
> >
> > You can create an image with dd, but before you format it, you have to
> > change the CHS settings with disklabel
> >
> > Which Kingston card do you have? I tried a Kingston CF/64-S
> yesterday and
> > that one works just fine with OpenBSD to boot from (while others
> > have their
> > issues). There is another version of this card, the 'slow one' which is
> > called CF/64, I did not have time to test that one. (the
> CF/64-S is blue,
> > the CF/64 looks orange)
> >
> > Wim.
> >
> > On Mon, Aug 25, 2003 at 10:38:40AM -0400, kfl wrote:
> > > Hi
> > >
> > > Thank you for your reply,
> > >
> > > The cards I use are Kingston 64MB.
> > >
> > > I use dd to 'burn' the image and this script to create it:
> > >
> > > The comments in the code should give you more info but I can
> > explain it more
> > > if needed.
> > >
> > > #!/bin/sh
> > > #
> > > # count is 125184 for a 64MB card
> > > # count is 63488 for a 32MB card
> > > # use 'disklabel -rwn ad[n] auto | grep sectors/unit' to get count
> > > #
> > > if [ $# != 1 ]
> > > then
> > >         echo "usage: $0 minibsdfile.tgz";
> > >         exit 1;
> > > fi
> > > echo "For which type of card do you want to create an image?
> > [32MB/64MB]"
> > > read size
> > > if [ $size = '32MB' ]
> > > then
> > >         echo "you choose 32MB"
> > > 	echo "Zeroing image"
> > > 	dd if=/dev/zero of=minibsd-disk.bin bs=512 count=63488
> > > fi
> > >
> > > if [ $size = '64MB' ]
> > > then
> > >         echo "you choose 64MB"
> > > 	echo "Zeroing image"
> > > 	dd if=/dev/zero of=minibsd-disk.bin bs=512 count=125184
> > > fi
> > >
> > > if [ $size != '32MB' ]
> > > then
> > > 	if [ $size != '64MB' ]
> > > 	then
> > > 		echo "invalid entry size:$size";
> > > 		exit 1;
> > > 	fi
> > > fi
> > >
> > > echo "Creating pseudo vnode device"
> > > vnconfig -s labels -c vn0 minibsd-disk.bin
> > > echo "Partitionning virtual disk"
> > > disklabel -Brw vn0 auto
> > > disklabel vn0 > temp
> > > echo "/  c:.*unused*/ { h" > sed.in
> > > echo "s/  c:\(.*\)unused\(.*\)/  a:\14.2BSD\2/p" >> sed.in
> > > echo "g" >> sed.in
> > > echo "}" >> sed.in
> > > sed -f sed.in temp > temp1
> > > rm sed.in
> > > disklabel -R -r vn0 temp1
> > > rm temp1
> > > rm temp
> > > disklabel vn0
> > > echo "running newfs..."
> > > newfs -b 8192 -f 1024 -U /dev/vn0a
> > > echo "mounting virtual disk"
> > > mount /dev/vn0a /mnt
> > > cd /mnt
> > > tar zxvf $1
> > > echo "cleanning up"
> > > cd /
> > > umount /mnt
> > > vnconfig -u vn0
> > > echo "done. Use (dd if=minibsd-disk.bin of=/dev/ bs=8k) to copy
> > the image to
> > > flash."
> > >
> > > Like I said what is very weird is that 32MB card will boot
> but 64MB will
> > > give me read error.
> > >
> > >
> > > > -----Original Message-----
> > > > From: goat [mailto:goat at severus.org]
> > > > Sent: Saturday, August 23, 2003 3:18 PM
> > > > To: kfl
> > > > Cc: soekris-tech at lists.soekris.com
> > > > Subject: Re: [Soekris] Burning Flash Cards
> > > >
> > > >
> > > > How exactly are you "burning" the images to the CF?  Are you
> > > > dd'ing a 32MB image to the raw device or are you using some other
> > > > method?
> > > >
> > > > From the limited info you provided, it would appear that your MBR
> > > > is hosed.  I, and many others, have had problems with different
> > > > brands of CF media and disk geometry weirdness.  More info will
> > > > help us help you.  :)
> > > >
> > > > jeff
> > > >
> > > > kfl wrote:
> > > > > Hi,
> > > > >
> > > > > 	We are using Net4501 and FreeBSD 4.5 For the OS. Now
> > > > everything was fine
> > > > > until we moved to 64MB cards.
> > > > > I'll explain:
> > > > >
> > > > > 	I have sent the script I am using to create a disk image
> > > > for a Sokeris box.
> > > > > If i burn a 32MB flash card there is no problems but if I use a
> > > > 64MB card I
> > > > > get 'read error' right at the beginning (afer the 5 second boot
> > > > delay). I
> > > > > have tried several cards and they all behave the same way (Read
> > > > Error). I
> > > > > even tried to burn a (working) 32MB image onto a 64MB card
> > > > without success.
> > > > >
> > > > > 	Does anybody else has ever seen that?
> > > > >
> > > > >
> > > > > Karim Fodil-Lemelin
> > > > > Network Engineering.
> > > > > Xiphos Technologies
> > > > > www.xiphos.com
> > > >
> > > >
> > > >
> > > > --
> > > > goat at severus.org
> > > > "Rock over London, Rock on Chicago..."
> > > >
> > >
> > >
> > > _____________________________________________________________________
> > > Soekris Engineering, technical discussion mailing list
> > > [un]subscribe: http://lists.soekris.com/mailman/listinfo/soekris-tech
> >
>
>
> _____________________________________________________________________
> Soekris Engineering, technical discussion mailing list
> [un]subscribe: http://lists.soekris.com/mailman/listinfo/soekris-tech
>





More information about the Soekris-tech mailing list