hi, <br><br>I tested with "f11-0.88-xo1.5-py.ini"<br>I added 'echo >&2 "*** $(<$buildnr_path)$suffix ***"' and shows: <br><br>*** 104pyg ***<br><br><br><div class="gmail_quote">2010/11/11 Bernie Innocenti <span dir="ltr"><<a href="mailto:bernie@codewiz.org" target="_blank">bernie@codewiz.org</a>></span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Thu, 2010-11-11 at 15:31 -0200, Esteban Arias wrote:<br>
> hi,<br>
><br>
> I downloaded the last olpc-os-builder for dextrose.<br>
><br>
> When the file "buildnr-0.88-py" has correlative number up "100",<br>
> the process of creation image (./osbuilder.py<br>
> examples/f11-0.88-xo1.5-py.ini) shows:<br>
><br>
> .../modules/sd_card_image/<a href="http://image.50.makefs.sh" target="_blank">image.50.makefs.sh</a>: line 54: * 512: error<br>
> sintáctico: se esperaba un operando (error token is "* 512")<br>
><br>
> and out image: os103pyg.zd for 6,7Mb<br>
><br>
> any idea?<br>
<br>
</div>The error message points at this code:<br>
<br>
  $(($img_sectors * $BLOCK_SIZE))<br>
<br>
<br>
It's possible that $img_sectors contains some junk, such as an error<br>
message. The variable is initialized like this:<br>
<br>
  local img_sectors=$(sfdisk -uS -l $img | grep img2 | awk '{print $4}')<br>
<br>
The only variable in this expression is $img, which is initialized from<br>
the buildnr:<br>
<br>
  local img=$outputdir/os$buildnr.disk.img<br>
<br>
Proceeding backwards, we find that $buildnr is initialized like this:<br>
<br>
<br>
  buildnr=$(read_buildnr)<br>
<br>
Grepping around, I found that the shell function read_buildnr is defined<br>
in lib/shlib.sh:<br>
<br>
 read_buildnr() {<br>
        local buildnr_path=$intermediatesdir/buildnr<br>
        local suffix=$(read_config buildnr_from_file suffix)<br>
        if [[ -e $buildnr_path ]]; then<br>
                echo "$(<$buildnr_path)$suffix"<br>
        else<br>
                echo "0$suffix"<br>
        fi<br>
 }<br>
<br>
Maybe the problem is that the file contains a space or \n after the<br>
number?<br>
<br>
If it's not clear, put a debug statement at the end of read_buildnr:<br>
<br>
 echo >&2 "*** $(<$buildnr_path)$suffix ***"<br>
<br>
You should get something like this on the terminal:<br>
<br>
 *** 100uy ***<br>
<font color="#888888"><br>
--<br>
   // Bernie Innocenti - <a href="http://codewiz.org/" target="_blank">http://codewiz.org/</a><br>
 \X/  Sugar Labs       - <a href="http://sugarlabs.org/" target="_blank">http://sugarlabs.org/</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>    Esteban Arias<br>    Investigación y Desarrollo - Plan Ceibal<br>    Avda. Italia 6201<br>    Montevideo - Uruguay.<br>    Tel.: 2601.57.73 Interno 2228<br>    E-mail : <a href="mailto:earias@plan.ceibal.edu.uy" target="_blank">earias@plan.ceibal.edu.uy</a><br>

<br>