Not getting a good CF-image with Snapgear-3.3...

David McCullough david_mccullough at au.securecomputing.com
Fri Mar 31 13:44:06 UTC 2006


Jivin Evert lays it down ...
> Hi all!
> 
> I'm trying to build a usable Snapgear install, but am running into problems 
> at the end when the CF-image is being assembled. Looks like the mbr 
> generated is not complete/valid.

This would be more appropriately posted on the uClinux-dev list.

> Here's some output:
> 
> >dd if=/dev/zero of=mbr.img bs=512 count=1
> >1+0 records in
> >1+0 records out
> >echo -e "1,121343,L,*\n,,61,-" | sfdisk -uS -C 490 -H 8 -S 32 mbr.img
> >Warning: mbr.img is not a block device
> >Disk mbr.img: cannot get geometry
> >
> >Disk mbr.img: 490 cylinders, 8 heads, 32 sectors/track
> >
> >sfdisk: seek error: wanted 0x0000000000000000, got 0x0000000000000000
> > mbr.img: unrecognized partition table type
> >Old situation:
> >No partitions found
> >New situation:
> >Units = sectors of 512 bytes, counting from 0
> >
> >   Device Boot    Start       End   #sectors  Id  System
> > mbr.img1   *         1    121343     121343  83  Linux
> > mbr.img2        121344    125439       4096  61  SpeedStor
> > mbr.img3             0         -          0   0  Empty
> > mbr.img4             0         -          0   0  Empty
> >
> >sfdisk: seek error: wanted 0x0000000000000000, got 0x0000000000000000

This is the problem I guess,  everything else looks about right.  Why I
don't understand is that the error is complaining that it got what
it wanted :-)

What version of sfdisk do you have installed ?  Can you try a different
version ?

Cheers,
Davidm

> >Re-reading the partition table ...
> >BLKRRPART: Inappropriate ioctl for device
> >
> >If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
> >to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
> >(See fdisk(8).)
> >make[4]: *** [extimage] Error 1
> >make[4]: Leaving directory `/home/evert/Snapgear/vendors/Soekris/net4801'
> >make[3]: *** [extimage-64MB] Error 2
> >make[3]: Leaving directory `/home/evert/Snapgear/vendors/Soekris/net4801'
> >make[2]: *** [image] Error 2
> >make[2]: Leaving directory `/home/evert/Snapgear/vendors/Soekris/net4801'
> >make[1]: *** [image] Error 2
> >make[1]: Leaving directory `/home/evert/Snapgear/vendors'
> >make: *** [image] Error 2
> 
> 
> As you can see I am aiming at a 64MB CF on a Soekris(-compatible) system.
> 
> 
> Regards,
>   Evert
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc

-- 
David McCullough,  david_mccullough at securecomputing.com,   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com



More information about the uClibc mailing list