Re: olpc os builder

2013-12-31 Thread James Cameron
On Tue, Dec 31, 2013 at 01:54:14PM -0500, Tim Moody wrote:
 I created an fc17-32 vm and installed olpc-os-builder.
 
 When I run olpc-os-builder
 /usr/share/doc/olpc-os-builder-5.0.2/examples/olpc-os-12.1.0-xo1.ini
 I get 21003xx0.img, etc., which does not seem to be the latest
 build.  I was expecting something like 21021xx0.img.  How do I build
 the latest?

21003xx0.img will have been your latest build.  When you run it again,
you will get 21004xx0.img.

21021o0.img was the latest build that OLPC ran.  It was build 21 of
12.1.0.

There's no technical reason to increase the build number to beyond the
build number that OLPC used; the file names are not processed.  These
are different version spaces, as identified by the
customization_tag=xx.  You may wish to set that tag to ht.

See olpc-os-builder modules/buildnr_from_file and buildnr_from_cfg
README files for how to control the build number.

See also
http://wiki.laptop.org/go/Release_Process_Home#Version_numbering for
how the file numbering works.

There is no technical reason to use this numbering.  You could call
the build file ht7.img if you like, and it will still work.  Using the
convention does make it easier for people to understand the origin and
version of a build.

We limit to eight character file names because Open Firmware does not
have long file name support when using FAT formatted USB drive.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc os builder

2013-12-31 Thread Tim Moody
Thanks for this explanation.  Indeed when I saw that the next time I ran I 
got 21004xx0.img I suspected what you have confirmed.


However, just to be clear, if I build from 
/usr/share/doc/olpc-os-builder-5.0.2/examples/olpc-os-12.1.0-xo1.ini, will 
the image be identical to the release, regardless of build number?


Tim
-Original Message- 
From: James Cameron

Sent: Tuesday, December 31, 2013 5:16 PM
To: Tim Moody
Cc: devel@lists.laptop.org
Subject: Re: olpc os builder

On Tue, Dec 31, 2013 at 01:54:14PM -0500, Tim Moody wrote:

I created an fc17-32 vm and installed olpc-os-builder.

When I run olpc-os-builder
/usr/share/doc/olpc-os-builder-5.0.2/examples/olpc-os-12.1.0-xo1.ini
I get 21003xx0.img, etc., which does not seem to be the latest
build.  I was expecting something like 21021xx0.img.  How do I build
the latest?


21003xx0.img will have been your latest build.  When you run it again,
you will get 21004xx0.img.

21021o0.img was the latest build that OLPC ran.  It was build 21 of
12.1.0.

There's no technical reason to increase the build number to beyond the
build number that OLPC used; the file names are not processed.  These
are different version spaces, as identified by the
customization_tag=xx.  You may wish to set that tag to ht.

See olpc-os-builder modules/buildnr_from_file and buildnr_from_cfg
README files for how to control the build number.

See also
http://wiki.laptop.org/go/Release_Process_Home#Version_numbering for
how the file numbering works.

There is no technical reason to use this numbering.  You could call
the build file ht7.img if you like, and it will still work.  Using the
convention does make it easier for people to understand the origin and
version of a build.

We limit to eight character file names because Open Firmware does not
have long file name support when using FAT formatted USB drive.

--
James Cameron
http://quozl.linux.org.au/ 


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc os builder

2013-12-31 Thread James Cameron
On Tue, Dec 31, 2013 at 05:46:33PM -0500, Tim Moody wrote:
 However, just to be clear, if I build from
 /usr/share/doc/olpc-os-builder-5.0.2/examples/olpc-os-12.1.0-xo1.ini,
 will the image be identical to the release, regardless of build
 number?

Yes, if every file downloaded to your builder is the same as every
file downloaded to our builder.

As much time has elapsed since we made our build, it is hard to see
how that could be guaranteed.

You should test by comparing the packages.txt and activities.txt files
in the build directory with our files.

Packages originate from the repositories.  Activities originate from
the Wiki based lists.

Let me know what differences you see, in case I have an explanation
cached.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder

2013-08-12 Thread James Cameron
On Sun, Aug 11, 2013 at 01:45:53PM -0500, Jerry Vonau wrote:
 Is anybody else having trouble running OOB in the last day? I'm now
 getting this traceback when trying to run OOB:

No, olpc-os-builder has worked fine when I tried it this morning on a
similar build.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder

2013-08-12 Thread Jerry Vonau
On Tue, 2013-08-13 at 09:13 +1000, James Cameron wrote:
 On Sun, Aug 11, 2013 at 01:45:53PM -0500, Jerry Vonau wrote:
  Is anybody else having trouble running OOB in the last day? I'm now
  getting this traceback when trying to run OOB:
 
 No, olpc-os-builder has worked fine when I tried it this morning on a
 similar build.
 

It's working for me now also. grrr gremlins ;)

Jerry

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder

2013-08-12 Thread James Cameron
On Mon, Aug 12, 2013 at 06:44:09PM -0500, Jerry Vonau wrote:
 On Tue, 2013-08-13 at 09:13 +1000, James Cameron wrote:
  On Sun, Aug 11, 2013 at 01:45:53PM -0500, Jerry Vonau wrote:
   Is anybody else having trouble running OOB in the last day? I'm now
   getting this traceback when trying to run OOB:
  
  No, olpc-os-builder has worked fine when I tried it this morning on a
  similar build.
  
 
 It's working for me now also. grrr gremlins ;)

Yes.  I would prefer if olpc-os-builder could operate in two modes;
one where it did all the downloads, and a separate one where it can be
used offline.  This is what I did for mktinycorexo.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder

2013-08-12 Thread Jerry Vonau
On Tue, 2013-08-13 at 09:48 +1000, James Cameron wrote:
 On Mon, Aug 12, 2013 at 06:44:09PM -0500, Jerry Vonau wrote:
  On Tue, 2013-08-13 at 09:13 +1000, James Cameron wrote:
   On Sun, Aug 11, 2013 at 01:45:53PM -0500, Jerry Vonau wrote:
Is anybody else having trouble running OOB in the last day? I'm now
getting this traceback when trying to run OOB:
   
   No, olpc-os-builder has worked fine when I tried it this morning on a
   similar build.
   
  
  It's working for me now also. grrr gremlins ;)
 
 Yes.  I would prefer if olpc-os-builder could operate in two modes;
 one where it did all the downloads, and a separate one where it can be
 used offline.  This is what I did for mktinycorexo.
 

That is what I was leaning towards when I was looking at doing an
offline mode, like the staged pungi steps in olpc-xs-builder[1]. Use
yumdownloader --resolve to populate and create a single yum repo for use
in the image.

You could fake this by reusing the cache, run createrepo against the
cache directory holding the cache and use a single file:/// yum repo
statement in the ini file, commenting out the online repos. Now that OOB
caches activities just have to stop cleaning out the temp directory
between runs. Think I brought that up when --cacheonly was introduced.

Jerry

1. http://dev.laptop.org/git/projects/olpc-xs-builder/

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder

2013-08-12 Thread Daniel Drake
On Mon, Aug 12, 2013 at 5:48 PM, James Cameron qu...@laptop.org wrote:
 Yes.  I would prefer if olpc-os-builder could operate in two modes;
 one where it did all the downloads, and a separate one where it can be
 used offline.  This is what I did for mktinycorexo.

Try the --cache-only option.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder

2013-08-12 Thread Martin Langhoff
On Mon, Aug 12, 2013 at 8:53 PM, Daniel Drake d...@laptop.org wrote:
 On Mon, Aug 12, 2013 at 5:48 PM, James Cameron qu...@laptop.org wrote:
 Yes.  I would prefer if olpc-os-builder could operate in two modes;
 one where it did all the downloads, and a separate one where it can be
 used offline.  This is what I did for mktinycorexo.

 Try the --cache-only option.

+1 :-)



m
-- 
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder

2013-08-12 Thread James Cameron
On Mon, Aug 12, 2013 at 06:53:42PM -0600, Daniel Drake wrote:
 On Mon, Aug 12, 2013 at 5:48 PM, James Cameron qu...@laptop.org wrote:
  Yes.  I would prefer if olpc-os-builder could operate in two modes;
  one where it did all the downloads, and a separate one where it can be
  used offline.  This is what I did for mktinycorexo.
 
 Try the --cache-only option.

Thanks.  I have.  It used 1482966 bytes.  Then I removed --cache-only and it
used 267537 bytes.  Then I put it back and it used 233312 bytes.  It
is an improvement, but I don't yet know why.  ;-}

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder config file format change

2012-03-06 Thread Martin Langhoff
On Mar 2, 2012 6:21 PM, Daniel Drake d...@laptop.org wrote:
 I propose that we simplify this: remove the global.modules variable,
 and make the presence of a section become the hint that a module is
 loaded. For example:

Yes please. It's a common mistake to forget to add the module in the
modules list.

Some modules, however, only need to appear listed there. For those, I
propose _retaining_ the global.modules entry.

So for example:

   [global]
   fedora_release=17
   modules=base,xo1,yumcfg

   [yumcfg]
   add_excludes_to=fedora-rawhide

Simplifies to

   [global]
   fedora_release=17
   modules=base,xo1

   [yumcfg]
   add_excludes_to=fedora-rawhide

You can also do

[base]
[xo1]

but it looks really dorky.

cheers,

m
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder config file format change

2012-03-06 Thread Daniel Drake
On Tue, Mar 6, 2012 at 7:22 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
 You can also do

        [base]
        [xo1]

 but it looks really dorky.

Maybe it looks a bit odd, but I think it is the best option, because
it retains consistency, makes documentation/training simpler, and will
reduce confusion.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder config file format change

2012-03-06 Thread Martin Langhoff
On Tue, Mar 6, 2012 at 9:38 AM, Daniel Drake d...@laptop.org wrote:
 Maybe it looks a bit odd, but I think it is the best option, because
 it retains consistency, makes documentation/training simpler, and will
 reduce confusion.

A bit of DWIM won't hurt ;-)




m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder config file format change

2012-03-02 Thread James Cameron
+1

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder config file format change

2012-03-02 Thread Chris Leonard
On Fri, Mar 2, 2012 at 6:20 PM, Daniel Drake d...@laptop.org wrote:

 Thoughts/objections?

I'm not an OOB user so I will abstatin, but it sounds like a nice
simplification and I am interested to hear from actual OOB users.

cjl
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [olpc-os-builder PATCH] avoid loop device collision on shared build hosts

2011-12-19 Thread Daniel Drake
On Tue, Dec 13, 2011 at 7:18 PM, James Cameron qu...@laptop.org wrote:
 Changes the hard coded loop device numbers to numbers that are
 discovered using losetup itself.

Pushed, thanks
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder -- injecting Sugar translations

2010-10-14 Thread Daniel Drake
On 14 October 2010 16:58, Martin Langhoff martin.langh...@gmail.com wrote:
 We have 4 local languages that are not in Sugar nor Linux/Fedora
 localizations. The plan so far is to start working on Sugar's Pootle
 for Sugar and Activities. The timeframes don't allow for a full cycle
 upstream (not even glibc knows about them).

 How do we inject them into an OS image? I suspect we'll need an
 os-image-builder module to

  - frob libc locales list (if required)

This already happens based on the configured languages.

  - install sugar translations
  - install activity translations

The problem with force installing activity translations into the
regular place like this is that they'll get blown away on activity
update.

 Is there a better way? Am I missing anything?

If glibc doesn't know about them then you'll have to add all the
locale data as well. I suspect that is also a prerequisite for adding
a language to Pootle.

You could look at the code used to generate language packs and rework
that into a more generic archive which could be fed to
olpc-os-builder.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-10-06 Thread Juliano Bittencourt

 I've been helping Hellanio to get his build with kdelibs and koffice. I  
hit awkward error in preimage.90.core.sh

 After some investigation I isolated the error when olpc-os-build compile 
the python bytecode

/usr/lib/python2.6/site-packages/nose/proxy.py:93: SyntaxWarning: assertion is 
always true, perhaps remove parentheses?

 Any clue on how to solve that?

 Best, 

 Juliano

On 03/10/2010, at 15:56, Hellânio Costa wrote:

 Had something to do with the size of the generated image? which limit the 
 image size?
 Where it stated that (can I change?) as informed before, I can use up to 
 800MB of memory. If I install all these packages already installed in a 
 notebook the pure system then the right, is soon to be large.
 already almost to using dd to copy the entire system and generate a image! :)
 
 
 2010/10/3 Daniel Drake d...@laptop.org
 On 3 October 2010 16:48, Hellânio Costa hella...@virtual.ufc.br wrote:
  #   also removed some packages in Gnome
 
 no need to modify the code, you can use custom_packages to remove them
 
  ERROR:root:Error creating Live CD : fsck returned an error!
  ERROR: Failure in BuildStage: module base, part build.40.imagecreate.py,
  error code 1
 
 First time I've seen this error. It is also different from the other 2
 you have reported. My next step would be to go into the code of
 imgcreate and figure out where it logs the actual output from fsck.
 
 Daniel
 
 
 
 -- 
 Instituto UFC - Virtual
 www.virtual.ufc.br
 
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-10-06 Thread Daniel Drake
On 6 October 2010 20:35, Juliano Bittencourt juli...@lec.ufrgs.br wrote:

     I've been helping Hellanio to get his build with kdelibs and koffice. I  
 hit awkward error in preimage.90.core.sh

     After some investigation I isolated the error when olpc-os-build compile 
 the python bytecode

 /usr/lib/python2.6/site-packages/nose/proxy.py:93: SyntaxWarning: assertion 
 is always true, perhaps remove parentheses?

     Any clue on how to solve that?

Take a look at the file..what's it choking on?
If you're compiling with optimizations, see if it compiles without
optimizations. Or vice versa if you're compiling without
optimizations, see if it compiles with optimizations.
If you speak python you can probably take a stab at fixing or at least
understanding it.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-10-06 Thread Juliano Bittencourt

Thanks, I will take a look and in last case create a patch for the file. I 
just though it was a strange behavior. I commented the line in 
preimage.90.core.sh and everything build fine. Later I ran the optimization on 
the XO itself and everything ran fine.

 more later,

juliano

On 06/10/2010, at 16:49, Daniel Drake wrote:

 On 6 October 2010 20:35, Juliano Bittencourt juli...@lec.ufrgs.br wrote:
 
 I've been helping Hellanio to get his build with kdelibs and koffice. I  
 hit awkward error in preimage.90.core.sh
 
 After some investigation I isolated the error when olpc-os-build compile 
 the python bytecode
 
 /usr/lib/python2.6/site-packages/nose/proxy.py:93: SyntaxWarning: assertion 
 is always true, perhaps remove parentheses?
 
 Any clue on how to solve that?
 
 Take a look at the file..what's it choking on?
 If you're compiling with optimizations, see if it compiles without
 optimizations. Or vice versa if you're compiling without
 optimizations, see if it compiles with optimizations.
 If you speak python you can probably take a stab at fixing or at least
 understanding it.
 
 Daniel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-10-03 Thread Daniel Drake
On 3 October 2010 16:48, Hellânio Costa hella...@virtual.ufc.br wrote:
 #   also removed some packages in Gnome

no need to modify the code, you can use custom_packages to remove them

 ERROR:root:Error creating Live CD : fsck returned an error!
 ERROR: Failure in BuildStage: module base, part build.40.imagecreate.py,
 error code 1

First time I've seen this error. It is also different from the other 2
you have reported. My next step would be to go into the code of
imgcreate and figure out where it logs the actual output from fsck.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-29 Thread Hellânio Costa
Now I'm worried because even just leaving a package in custom_packages error
persists.
---


os48: * FILE SYSTEM WAS MODIFIED *
os48: 33487/49152 files (1.6% non-contiguous), 177284/177284 blocks
/usr/lib/python2.6/site-packages/imgcreate/errors.py:40: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
  return str(self.message)
ERROR:root:Error creating Live CD : fsck returned an error!
 * Caught error, cleanup and then bail out.
 * Running part cleanup base cleanup.50.cleanup.sh...
 * Running part cleanup buildnr_from_file cleanup.50.write_buildnr.sh...
ERROR: Failure in BuildStage: module base, part build.40.imagecreate.py,
error code 1


2010/9/28 Hellânio Costa hella...@virtual.ufc.br

 I did not add anything more and it worked, so the error is in the extra
 packages that I'm wanting.

 I'll try one by one then ... =(

 2010/9/27 Daniel Drake d...@laptop.org

 On 27 September 2010 20:04, Hellânio Costa hella...@virtual.ufc.br
 wrote:
  Did with custom_packages and even then the error is the same one has any
  idea which package is giving this error?

 Have you confirmed that the error does not occur if you make a build
 without any customizations?

 Daniel




 --
 Instituto UFC - Virtual
 www.virtual.ufc.br




-- 
Instituto UFC - Virtual
www.virtual.ufc.br
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-28 Thread Hellânio Costa
I did not add anything more and it worked, so the error is in the extra
packages that I'm wanting.

I'll try one by one then ... =(

2010/9/27 Daniel Drake d...@laptop.org

 On 27 September 2010 20:04, Hellânio Costa hella...@virtual.ufc.br
 wrote:
  Did with custom_packages and even then the error is the same one has any
  idea which package is giving this error?

 Have you confirmed that the error does not occur if you make a build
 without any customizations?

 Daniel




-- 
Instituto UFC - Virtual
www.virtual.ufc.br
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC OS Builder recipe for forcing OpenDNS resolver

2010-09-28 Thread Reuben K. Caron
Martin,

Isn't a pre-requisite to also remove root? Alternatively have you  
considered rebuilding initrd signed with ARG keys to check and readd  
the config on every reboot if it has been removed?

Regards,

Reuben


On Sep 28, 2010, at 4:06 PM, Martin Langhoff wrote:

 Working recently in La Rioja (Argentina) we came up with a strategy to
 enforce some content filtering on the XOs even when connected via
 random local ISPs (IOWs, when borrowing a neighbour's connection, or
 at a wifi-friendly cafe).

 The results are here, in the form of an OLPC OS Builder recipe.

   http://wiki.laptop.org/go/OS_Builder/Adding_OpenDNS_Configuration

 Comments welcome. Getting this working involved Sebastián Miranda,
 Guillermo Narvaez and Reuben. Thanks to all!



 m
 -- 
  martin.langh...@gmail.com
  mar...@laptop.org -- School Server Architect
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC OS Builder recipe for forcing OpenDNS resolver

2010-09-28 Thread Martin Langhoff
On Tue, Sep 28, 2010 at 5:04 PM, Reuben K. Caron reu...@laptop.org wrote:
 Isn't a pre-requisite to also remove root?

Removing root is a way to make it stronger / harder to workaround.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-27 Thread Hellânio Costa
Did with custom_packages and even then the error is the same one has any
idea which package is giving this error?

2010/9/24 Daniel Drake d...@laptop.org

 On 24 September 2010 14:12, Hellânio Costa hella...@virtual.ufc.br
 wrote:
  ok,
  need to install the koffice-suite on the laptop besides some
 applications,
  you see:
  I edited for convenience only kspkglist.50.gnome.inc

 You should use the custom_packages module and avoid modifying
 olpc-os-builder code to add new packages.

 Try doing a build without modifications first. That will tell us if
 your build problem is related to your additions or not.

 Daniel




-- 
Instituto UFC - Virtual
www.virtual.ufc.br
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-27 Thread Daniel Drake
On 27 September 2010 20:04, Hellânio Costa hella...@virtual.ufc.br wrote:
 Did with custom_packages and even then the error is the same one has any
 idea which package is giving this error?

Have you confirmed that the error does not occur if you make a build
without any customizations?

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-24 Thread James Cameron
Are you running it as root?

On 24/09/2010, at 10:01 PM, Hellânio Costa wrote:
 Normalize file times...
 touch: configurando horário de /var/tmp/olpc-os-builder/mnt-fs/dev/fd: 
 Permissão negada

I presume this would read Permission denied.

Are you running it on Fedora 11?

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-24 Thread Hellânio Costa
yes I am logged in as root

Fedora 11 without updates.

So I do not understand why this is giving error! : (

I may be generating a very large image and then the error?


2010/9/24 James Cameron qu...@laptop.org

 I presume this would read Permission denied.


--
Instituto UFC - Virtual
www.virtual.ufc.br
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-24 Thread Esteban Bordon
Are you executing osbuilder.py using sudo? If you're using sudo
olpc-os-builder have a problem when it executes chroot.

You must to try using root user.

cheers.


2010/9/24 Hellânio Costa hella...@virtual.ufc.br

 Hi everybody,

 I'm having a problem when working with them olpc-builder, because it
 returns the following error:

 os19: 71283/131072 files (0.9% non-contiguous), 386289/524288 blocks
  * Running part mountfs base mountfs.50.mount.sh...
 Mounting intermediate filesystem image...
  * Running part preimage base preimage.90.core.sh...
 Normalize file times...
 touch: configurando horário de /var/tmp/olpc-os-builder/mnt-fs/dev/fd:
 Permissão negada
 Compiling python bytecode...
  * Caught error, cleanup and then bail out.
  * Running part cleanup base cleanup.50.cleanup.sh...
  * Running part cleanup buildnr_from_file cleanup.50.write_buildnr.sh...
 ERROR: Failure in PreImageStage: module base, part preimage.90.core.sh,
 error code 1


 can you help me?

 --
 Instituto UFC - Virtual
 www.virtual.ufc.br


 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-24 Thread Daniel Drake
On 24 September 2010 13:01, Hellânio Costa hella...@virtual.ufc.br wrote:
 Hi everybody,

 I'm having a problem when working with them olpc-builder, because it returns
 the following error:

 os19: 71283/131072 files (0.9% non-contiguous), 386289/524288 blocks
  * Running part mountfs base mountfs.50.mount.sh...
 Mounting intermediate filesystem image...
  * Running part preimage base preimage.90.core.sh...
 Normalize file times...
 touch: configurando horário de /var/tmp/olpc-os-builder/mnt-fs/dev/fd:
 Permissão negada

This error can be ignored

 Compiling python bytecode...
  * Caught error, cleanup and then bail out.

This usually means that there is some python file in your image that
is failing to compile (syntax errors or something).
Unfortunately the python compiler program logs both verbose regular
info and errors to stdout, and we discard stdout, so it's not
immediately obvious which file it is failing on.

It would be a good idea to post your build config and state your aims.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-24 Thread Hellânio Costa
ok,

need to install the koffice-suite on the laptop besides some applications,
you see:

I edited for convenience only kspkglist.50.gnome.inc

# --- OLPC / UFCeará BRAZIL
#


# gnome desktop
gnome-python2-gconf
gnome-desktop
gnome-panel
gnome-session
gnome-terminal
metacity
nautilus

# allow switching from Sugar
olpc-switch-desktop

# GNOME dependencies. Listed explicitly to prevent equivalent components
# from other desktops being brought in instead
PolicyKit-gnome
notification-daemon

# battery applet
batterymon

# internet
xulrunner
firefox

# office
abiword

# graphics

# audio  video
audacity
totem
totem-gstreamer
totem-mozplugin
-totem-xine
-xine-lib

# more desktop stuff
file-roller
gedit
gnash-plugin
NetworkManager-gnome
xdg-user-dirs-gtk

# --- plugin flash #
swfdec-mozilla
alsa-tools-firmware

# java
java-1.6.0-openjdk-plugin
java-1.6.0-openjdk

# office
koffice-suite
koffice-langpack-pt_BR.noarch
xpdf

# --- Dependencias do Koffice --

koffice-kword
koffice-core
koffice-filters
koffice-karbon
koffice-kchart
koffice-kexi
koffice-kexi-driver-mysql
koffice-kexi-driver-pgsql
koffice-kformula
koffice-kivio
koffice-kplato
koffice-kpresenter
koffice-krita
koffice-kspread
koffice-kugar
GraphicsMagick
arts
dejavu-lgc-sans-fonts
kdelibs3
koffice-libs
libpaper
libpqxx
lyx-cmex10-fonts
poppler-qt
ruby-libs
wv2
kde-filesystem
kde-settings
kdelibs-common
libxml2
libxslt
lyx-fonts-common
openjpeg-libs
poppler
libxml2-python
oxygen-icon-theme
poppler-glib
poppler-utils

# Utilitarios q o projeto precisa
tuxmath
tuxpaint
tuxpaint-devel
squeak-image.noarch
squeak-vm
squeak-vm-nonXOplugins
ucblogo


2010/9/24 Daniel Drake d...@laptop.org

 On 24 September 2010 13:01, Hellânio Costa hella...@virtual.ufc.br
 wrote:
  Hi everybody,
 
  I'm having a problem when working with them olpc-builder, because it
 returns
  the following error:
 
  os19: 71283/131072 files (0.9% non-contiguous), 386289/524288 blocks
   * Running part mountfs base mountfs.50.mount.sh...
  Mounting intermediate filesystem image...
   * Running part preimage base preimage.90.core.sh...
  Normalize file times...
  touch: configurando horário de /var/tmp/olpc-os-builder/mnt-fs/dev/fd:
  Permissão negada

 This error can be ignored

  Compiling python bytecode...
   * Caught error, cleanup and then bail out.

 This usually means that there is some python file in your image that
 is failing to compile (syntax errors or something).
 Unfortunately the python compiler program logs both verbose regular
 info and errors to stdout, and we discard stdout, so it's not
 immediately obvious which file it is failing on.

 It would be a good idea to post your build config and state your aims.

 Daniel




-- 
Instituto UFC - Virtual
www.virtual.ufc.br
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC-OS-Builder

2010-09-24 Thread Daniel Drake
On 24 September 2010 14:12, Hellânio Costa hella...@virtual.ufc.br wrote:
 ok,
 need to install the koffice-suite on the laptop besides some applications,
 you see:
 I edited for convenience only kspkglist.50.gnome.inc

You should use the custom_packages module and avoid modifying
olpc-os-builder code to add new packages.

Try doing a build without modifications first. That will tell us if
your build problem is related to your additions or not.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder repository help

2010-08-03 Thread Mike Dawson
Hi,

There's no need to clone repos...  when you use image builder or os
builder it will download only the required packages.

You can also put a proxy cache in between the build script and the
Internet (set the http_proxy variable) to make sure that when you go
to run the build again nothing will need re-downloaded.  I have used
polipo for this before and it works very nicely - if you set that as
the proxy then to store files whilst running scripts nothing ever gets
downloaded twice.

Re. downloading itself - why not schedule/run any large downloads
overnight?  That will likely be required as you won't normally get
away with stuff that will download during the day...

Regards,

-Mike

On 03/08/2010, javed khan javedkhan...@gmail.com wrote:
 Hi All
 i followed the instruction in the read me of olpc-os-builder as

  1.  install Fedora 11,

 2.  install the build dependencies:

 yum install zlib-devel libtomcrypt-devel glibc-headers

 3.  build the package:

 make install

 4.  install the run-time dependencies:

 yum install python-imgcreate bitfrost

 now i have some question
 I want to create local repository, so which files i should download from
 http://xs-dev.laptop.org/~dsd/repos/
 there are three folders
 f11
 f11-xo1.5
 f11-xo1
 there are tons of files there.
 now what should i do, download all three folders, or download some spceific
 files from each folder.
 here in Ministry of Education (Afghanistan) we have a shared 1mb internet
 which is the main probelm.

 Regards

 --
 Javid Alam
 Software Developer and Technical support Officer OLPC
 Ministry of Education
 Kabul Afghanistan
 contact: +93(0)798123451
 alternative email: javid.a...@moe.gov.af

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder repository help

2010-08-03 Thread James Cameron
On Tue, Aug 03, 2010 at 10:39:21AM +0430, javed khan wrote:
 now i have some question
 I want to create local repository, so which files i should download from
 http://xs-dev.laptop.org/~dsd/repos/
 there are three folders
 f11
 f11-xo1.5
 f11-xo1
 there are tons of files there.
 now what should i do, download all three folders, or download some spceific
 files from each folder.
 here in Ministry of Education (Afghanistan) we have a shared 1mb internet 
 which
 is the main probelm.

The files are downloaded by osbuilder.py and kept in cache/ directory
for re-use, so be sure not to delete cache/ directory and therefore each
download should happen only once no matter how many builds you run.

This might be enough for you without creating a local repository.

I've done this on a slow rural connection (3mb) and it wasn't as costly
as I had feared.  By taking a local backup of cache/ directory for
additional builder instances, I've saved much download time.

Unfortunately, there still seems to be some downloads of repodata/ that
are not cached, so I can certainly see the need for a local repository.

If you would like to create a local repository, you could select the
latest version of the .i386.rpm, .i586.rpm or .noarch.rpm files.

The .src.rpm files are not needed by the builder, so you need not select
them.

If you are building for XO-1, select files from f11/ and f11-xo1/
directories.

If you are building for XO-1.5, select files from f11/ and f11-xo1.5/
directories.

You need the repodata/ directory as well.

I do not recall how to use a local repository in .ini files, but there's
a modules/repos/README file in olpc-os-builder that may help.

Regarding slow links where downloads may be broken.  There does not
appear to be rsync access to these files, but wget --continue works
fine.  The only problem I can see with using wget blindly is that there
are older versions of kernels that are not required.  There is little
point downloading them.  This command is faulty approximation:

wget --continue --timestamping --recursive --no-parent \
 --reject=src.rpm http://xs-dev.laptop.org/~dsd/repos/

See man wget for how to restrict this further.

If you can document the steps you used to get everything local, please
let me know and I'll add something to the documentation in
olpc-os-builder.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder repository help

2010-08-03 Thread Esteban Bordon
The repo config that start with olpc_public_rpms_ is downloaded from
http://xs-dev.laptop.org/~dsd/repos. This configuration is hardcoded in
modules/repos/ksmain.50.repos.py
If you want to change it, you should change the line that contains
url = http://xs-dev.laptop.org/~dsd/repos/%s; % name
for
url = http://localhost/my_local_repo/%s % name


Cheers,
Esteban.

2010/8/3 James Cameron qu...@laptop.org

 On Tue, Aug 03, 2010 at 10:39:21AM +0430, javed khan wrote:
  now i have some question
  I want to create local repository, so which files i should download from
  http://xs-dev.laptop.org/~dsd/repos/http://xs-dev.laptop.org/%7Edsd/repos/
  there are three folders
  f11
  f11-xo1.5
  f11-xo1
  there are tons of files there.
  now what should i do, download all three folders, or download some
 spceific
  files from each folder.
  here in Ministry of Education (Afghanistan) we have a shared 1mb internet
 which
  is the main probelm.

 The files are downloaded by osbuilder.py and kept in cache/ directory
 for re-use, so be sure not to delete cache/ directory and therefore each
 download should happen only once no matter how many builds you run.

 This might be enough for you without creating a local repository.

 I've done this on a slow rural connection (3mb) and it wasn't as costly
 as I had feared.  By taking a local backup of cache/ directory for
 additional builder instances, I've saved much download time.

 Unfortunately, there still seems to be some downloads of repodata/ that
 are not cached, so I can certainly see the need for a local repository.

 If you would like to create a local repository, you could select the
 latest version of the .i386.rpm, .i586.rpm or .noarch.rpm files.

 The .src.rpm files are not needed by the builder, so you need not select
 them.

 If you are building for XO-1, select files from f11/ and f11-xo1/
 directories.

 If you are building for XO-1.5, select files from f11/ and f11-xo1.5/
 directories.

 You need the repodata/ directory as well.

 I do not recall how to use a local repository in .ini files, but there's
 a modules/repos/README file in olpc-os-builder that may help.

 Regarding slow links where downloads may be broken.  There does not
 appear to be rsync access to these files, but wget --continue works
 fine.  The only problem I can see with using wget blindly is that there
 are older versions of kernels that are not required.  There is little
 point downloading them.  This command is faulty approximation:

wget --continue --timestamping --recursive --no-parent \
 --reject=src.rpm 
 http://xs-dev.laptop.org/~dsd/repos/http://xs-dev.laptop.org/%7Edsd/repos/

 See man wget for how to restrict this further.

 If you can document the steps you used to get everything local, please
 let me know and I'll add something to the documentation in
 olpc-os-builder.

 --
 James Cameron
 http://quozl.linux.org.au/
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder .iso output - usable@

2010-04-26 Thread Martin Langhoff
On Mon, Apr 26, 2010 at 8:19 AM, Daniel Drake d...@laptop.org wrote:
 Had an interesting question from Sebastian M here in La Rioja...

 The .iso output of olpc-os-builder (and published on build.laptop.org)
 -- is it useful? Can it be run in emulation? Has anyone tried?

Is it easy to build with an extra (vanilla) Fedora kernel?

 Personally I suspect it won't work, because it has OLPC's XO-specific

Agreed - I don't think the VM compatible drivers are built in.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder config tweaks

2010-04-12 Thread Daniel Drake
I also fixed a small issue in the configuration where public_rpm
packages were not overriding F11 updates...be sure to double-check the
list of package changes in the next build.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder [PATCH] add a Quick Start to README and reformat

2010-01-05 Thread Daniel Drake
On Tue, 2010-01-05 at 13:50 +1100, James Cameron wrote:
 Tested olpc-os-builder on Fedora 11, and documented the steps required
 to produce a build in a Quick Start section of the README.

Thanks, but I'm not so sure about getting users to run make install
since that will put things in /usr rather than /usr/local.

It's possible to use olpc-os-builder without installing it, so the
instructions could be modified that way, but it's probably best to wait
for Fedora inclusion:
https://bugzilla.redhat.com/show_bug.cgi?id=551411

in which case the instructions become a lot simpler.

If that doesn't get completed this week, perhaps its something you could
take over.

cheers
Daniel


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder [PATCH] add a Quick Start to README and reformat

2010-01-05 Thread James Cameron
On Tue, Jan 05, 2010 at 10:45:10AM +, Daniel Drake wrote:
 Thanks, but I'm not so sure about getting users to run make install
 since that will put things in /usr rather than /usr/local.

make apparently does nothing, and the README at the time said to use
the olpc-os-builder command, so a make install was implied.

make install should really use /usr/local or DESTDIR.

Duplicating the documentation for the two different use-cases is
probably the right thing to do.
 
-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder [PATCH] add a Quick Start to README and reformat

2010-01-05 Thread Daniel Drake
On Wed, 2010-01-06 at 07:24 +1100, James Cameron wrote:
 On Tue, Jan 05, 2010 at 10:45:10AM +, Daniel Drake wrote:
  Thanks, but I'm not so sure about getting users to run make install
  since that will put things in /usr rather than /usr/local.
 
 make apparently does nothing, and the README at the time said to use
 the olpc-os-builder command, so a make install was implied.

make is needed to compile the support binaries.

The README was written in preparation for being installed as the fedora
package, and is already used for that purpose at
https://bugzilla.redhat.com/show_bug.cgi?id=551411

 make install should really use /usr/local or DESTDIR.

It already supports DESTDIR but olpc-os-builder itself doesnt support
being run in installed mode in anything other than /usr
(this could be fixed, but its probably not worth it. lets just focus on
the Fedora efforts...)

Daniel


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: olpc-os-builder [PATCH] add a Quick Start to README and reformat

2010-01-05 Thread James Cameron
On Tue, Jan 05, 2010 at 09:25:13PM +, Daniel Drake wrote:
 On Wed, 2010-01-06 at 07:24 +1100, James Cameron wrote:
  On Tue, Jan 05, 2010 at 10:45:10AM +, Daniel Drake wrote:
   Thanks, but I'm not so sure about getting users to run make install
   since that will put things in /usr rather than /usr/local.
  
  make apparently does nothing, and the README at the time said to use
  the olpc-os-builder command, so a make install was implied.
 
 make is needed to compile the support binaries.

It does nothing.  If you then proceed to do a build, many minutes later
you get evidence you haven't built the support binaries:

Checksum tree tarball...
 * Running part postimage sd_card_image postimage.50.makezd.sh...
Making ZD image for os1003...
/sdb/src/olpc-os-builder/modules/sd_card_image/postimage.50.makezd.sh: line 23: 
/sdb/src/olpc-os-builder/bin/zhashfs: No such file or directory
 * Caught error, cleanup and then bail out.
 * Running part cleanup base cleanup.50.cleanup.sh...
 * Running part cleanup buildnr_from_file cleanup.50.write_buildnr.sh...
ERROR: Failure in PostImageStage: module sd_card_image, part 
postimage.50.makezd.sh, error code 1

The workaround is to do make install, and then ignore the installed files.

-- 
James Cameron
http://quozl.linux.org.au/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel