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

Evert evert at poboxes.info
Mon Apr 3 06:36:20 UTC 2006


Hi all!



David McCullough wrote:
> 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.

Thanks for the tip. I will continue my quest there!  :-)



>> 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 ?

I use the following version:
sfdisk version 3.08 (aeb at cwi.nl, 040824) from util-linux-2.12r

This is the one that comes with Gentoo Linux (stable). Are there any known problems with this version? If so, which newer (or older?) version should I go for instead?



> 
> 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.




More information about the uClibc mailing list