[Dextrose] Problem with olpc-os-builder: ZD image of 20 MB

Daniel Castelo dcastelo at plan.ceibal.edu.uy
Wed Oct 13 11:56:38 EDT 2010


With this configuration:

[buildnr_from_file]
suffix=uy
path=uy-buildnr-0.88-1.5

When the version number has three digits the process fail. Seems like the
image name couldn't have more than nine characters.
For example with the image name: os100uy.zd  the process fail.
Its very strange, because I know that many dextrose builds have long names.

















If i change


On Wed, Oct 6, 2010 at 11:24 AM, Bernie Innocenti <bernie at codewiz.org>wrote:

> On Wed, 2010-10-06 at 09:42 -0200, Daniel Castelo wrote:
> > Hi! We could generate XO 1.5 images (dextrose images) with olpc os
> > builder, but sometimes we get a strange behaviour: at the end of the
> > process olpc os builder give us this error message:
> >
> > /home/latu/olpc-os-builder-1.1.0.dextrose.uy_4Oct/modules/sd_card_image/
> image.50.makefs.sh: line 54: * 512: syntax error: operand expected (error
> token is "* 512")
> >
> > and the size of the ZD image generated is just 20 MB.
> >
> > Have you ever seen this behaviour?
>
> I've never seen it myself. Here's the relevant code:
>
>  48  local img_sectors=$(sfdisk -uS -l $img | grep img2 | awk '{print $4}')
>  49  echo "(1 losetup error is normal here)"
>  50  losetup -d /dev/loop6 || :
>  51  losetup -o $((8192 * $BLOCK_SIZE)) --sizelimit $((131072 *
> $BLOCK_SIZE)) /dev/loop6 $img
>  52  echo "(1 losetup error is normal here)"
>  53  losetup -d /dev/loop7 || :
>  54  losetup -o $(((8192 + 131072) * $BLOCK_SIZE)) --sizelimit
> $(($img_sectors * $BLOCK_SIZE)) /dev/loop7 $img
>
> The error probably occurs because $img_sectors is uninitialized. Try
> adding some debug stamennts just after line 48. For example:
>
>  echo '*** BEGIN DEBUG ***'
>  sfdisk -uS -l $img
>  echo '---'
>  sfdisk -uS -l $img | grep img2
>  echo '---'
>  sfdisk -uS -l $img | grep img2 | awk '{print $4}'
>  echo '*** END DEBUG ***'
>
> --
>   // Bernie Innocenti - http://codewiz.org/
>  \X/  Sugar Labs       - http://sugarlabs.org/
>
>


-- 
Ing. Daniel Castelo
Plan Ceibal - Área Técnica
Avda. Italia 6201
Montevideo - Uruguay.
Tel.: 2 601 57 73 Interno 2228
E-mail : dcastelo at plan.ceibal.edu.uy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20101013/8e680927/attachment.html>


More information about the Devel mailing list