signed /boot/olpc.fth

2014-10-15 Thread Sebastian Silva
Hi James, OLPC community, I'm looking to be able to run a forth script in secured laptops in the Peru deployment. I'm the buildmaster for the current production image, and hold the crypto keys necessary. Please point me to some docs or simple procedure off the top of your head, if you have

Re: signed /boot/olpc.fth

2014-10-15 Thread James Cameron
(if there is no lease), will verify the signature, and will then execute the script. In the bios-crypto build tree; ./sign-os.sh o1 olpc.fth runos.zip cp runos.zip actos.zip This is further documented on the Wiki [1], with a couple of usage examples [2] [3], but is possibly best described

Re: olpc.fth question

2012-06-17 Thread Kevin Gordon
more exception handling and 1.75 specifics to the procedures once we return to Canada, but the combination of OOB 4.1 and the olpc.fth boot are making the frequent process of updating/enhancing things while here in Kenya just fly!!! Cheers, KG On Tue, Jun 12, 2012 at 8:00 PM, James

Re: olpc.fth question

2012-06-17 Thread Sameer Verma
once we return to Canada, but the combination of OOB 4.1 and the olpc.fth boot are making the frequent process of updating/enhancing things while here in Kenya just fly!!! Cheers, KG Can you post it some place when done? Sameer On Tue, Jun 12, 2012 at 8:00 PM, James Cameron qu...@laptop.org

Re: olpc.fth question

2012-06-17 Thread Kevin Gordon
will add some more exception handling and 1.75 specifics to the procedures once we return to Canada, but the combination of OOB 4.1 and the olpc.fth boot are making the frequent process of updating/enhancing things while here in Kenya just fly!!! Cheers, KG Can you post it some

Re: olpc.fth question

2012-06-13 Thread Kevin Gordon
Jerry, James and Martin: Adam and I thank you all ... a lot We are now 100% operational using 1 USB stick to update all versions of XO. We will add some more exception handling and 1.75 specifics to the procedures once we return to Canada, but the combination of OOB 4.1 and the olpc.fth boot

Re: olpc.fth question

2012-06-13 Thread Sridhar Dhanapalan
versions of XO.  We will add some more exception handling and 1.75 specifics to the procedures once we return to Canada, but the combination of OOB 4.1 and the olpc.fth boot are making the frequent process of updating/enhancing things while here in Kenya just fly!!! Cheers, KG On Tue, Jun 12

olpc.fth question

2012-06-12 Thread Kevin Gordon
oodles of forth code from various sources and put together a nice little olpc.fth file which is sitting in the /boot directory on the USB stick. We then have an 885 .img file with the XO1 image, and an 885 .zd4 file with the XO1.5 image in the root of the stick. We hae coded it such that If we hit

Re: olpc.fth question

2012-06-12 Thread Jerry Vonau
much humming along nicely, to a point: We have borrowed oodles of forth code from various sources and put together a nice little olpc.fth file which is sitting in the /boot directory on the USB stick. We then have an 885 .img file with the XO1 image, and an 885 .zd4 file with the XO1.5

Re: olpc.fth question

2012-06-12 Thread James Cameron
On Tue, Jun 12, 2012 at 11:08:29AM -0400, Kevin Gordon wrote: Disclaimer: Newbie Forth question :-) Always welcome. We are trying to create a consolidated unsecured update stick. I worked on a secured update drive last week, so the techniques are on my mind. [...] So for those coming

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-19 Thread James Cameron
On Fri, Mar 16, 2012 at 11:55:54PM -0400, Paul Fox wrote: i'm a little confused. i know i reported that filesystem resize was quite fast now, but then james reported that a resize took a really long time still, and i haven't retested. if a resize takes a really long time, then i don't think

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-19 Thread Daniel Drake
Hi James, On Fri, Mar 16, 2012 at 5:58 PM, James Cameron qu...@laptop.org wrote: Consensus is to implement a partition resize in OpenFirmware as the last step of ''fs-update''.  This doesn't preclude the initramfs doing it, and the initramfs will do the filesystem resize. In OpenFirmware, we

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-19 Thread Martin Langhoff
On Mon, Mar 19, 2012 at 4:30 PM, Daniel Drake d...@laptop.org wrote: I think I see a potential problem here. The problem is that during upgrades, we run fs-update before upgrading firmware, and a firmware upgrade is necessary for this new functionality. (...) Maybe I have just made a good

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-19 Thread James Cameron
On Mon, Mar 19, 2012 at 02:30:22PM -0600, Daniel Drake wrote: Maybe I have just made a good argument as to why this needs to be done in the initramfs: to avoid tricky upgrade considerations. Yes, you must do it in initramfs for that reason. However the initramfs implementation is not yet

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-18 Thread Martin Langhoff
On Mar 16, 2012 11:03 PM, James Cameron qu...@laptop.org wrote: Attached is a revised patch, which places the resize: before zblocks-end: with a wrapper to prevent warning. This allows the resize: request to be added to olpc-os-builder without requiring OpenFirmware support. This completely

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-18 Thread James Cameron
On Sun, Mar 18, 2012 at 10:20:26PM -0400, Martin Langhoff wrote: On Mar 16, 2012 11:03 PM, James Cameron qu...@laptop.org wrote: Attached is a revised patch, which places the resize: before zblocks-end: with a wrapper to prevent warning. This allows the resize: request to be added to

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-16 Thread James Cameron
Nice work, I like it. It is already XO-1.75 aware. Please could we have a Linux initramfs expert adopt it for OLPC builds? On Thu, Mar 15, 2012 at 02:21:04PM -0300, Emiliano Pastorino wrote: Hi everyone! I wrote a dracut module a couple of weeks ago which runs during pre-mount and

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-16 Thread Daniel Drake
On Fri, Mar 16, 2012 at 12:10 AM, James Cameron qu...@laptop.org wrote: Nice work, I like it.  It is already XO-1.75 aware.  Please could we have a Linux initramfs expert adopt it for OLPC builds? Thanks Emiliano! I'll try to take on this project this release cycle. Posted some thoughts at

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-16 Thread James Cameron
On Fri, Mar 16, 2012 at 11:58:51AM -0600, Daniel Drake wrote: I'll try to take on this project this release cycle. Posted some thoughts at http://dev.laptop.org/ticket/10040 Thanks. Consensus is to implement a partition resize in OpenFirmware as the last step of ''fs-update''. This doesn't

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-16 Thread James Cameron
On Sat, Mar 17, 2012 at 10:58:05AM +1100, James Cameron wrote: On Fri, Mar 16, 2012 at 11:58:51AM -0600, Daniel Drake wrote: In OpenFirmware, we might either: * do the resize only if the .zd file requests it, (a new ''resize:'' line after ''zblocks-end:''), or This has been written and

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-16 Thread Paul Fox
james wrote: On Fri, Mar 16, 2012 at 11:58:51AM -0600, Daniel Drake wrote: I'll try to take on this project this release cycle. Posted some thoughts at http://dev.laptop.org/ticket/10040 Thanks. Consensus is to implement a partition resize in OpenFirmware as the last step of

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-16 Thread James Cameron
On Fri, Mar 16, 2012 at 11:55:54PM -0400, Paul Fox wrote: james wrote: On Fri, Mar 16, 2012 at 11:58:51AM -0600, Daniel Drake wrote: I'll try to take on this project this release cycle. Posted some thoughts at http://dev.laptop.org/ticket/10040 Thanks. Consensus is to

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-15 Thread Peter Robinson
130ms). I don't think its necessary to do this check every boot. I propose you move it to after fs-update has installed an image. Also, olpc.fth isn't executed in the secure boot path, so it does need to be put somewhere else. I like Richard's suggestion

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-15 Thread Daniel Drake
On Thu, Mar 15, 2012 at 1:58 AM, Peter Robinson pbrobin...@gmail.com wrote: Well it works fine for 100s of devices in our datacenter at work, maybe there's some mechanism not implemented in mmc or the linux code. cjb might be able to fill in some of the gaps.. It only works if the device is

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-15 Thread Emiliano Pastorino
Hi everyone! I wrote a dracut module a couple of weeks ago which runs during pre-mount and basically performs this steps: - If 99% of disk capacity is partitioned, exit. - else, expand the partition to full disk without losing data. I'm attaching a tar.gz file, without the extension becasue

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread Richard Smith
On Wed, Mar 14, 2012 at 1:35 AM, James Cameron qu...@laptop.org wrote: Grows the second partition so that it takes up all remaining space on the eMMC or microSD card.  Fix for #11690.  Part of #10040. Costs 120ms.  (Use of a flag file costs 130ms). I don't think its necessary to do this

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread Daniel Drake
of a flag file costs 130ms). I don't think its necessary to do this check every boot. I propose you move it to after fs-update has installed an image. Also, olpc.fth isn't executed in the secure boot path, so it does need to be put somewhere else. I like Richard's suggestion. Daniel

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread James Cameron
or microSD card. ?Fix for #11690. ?Part of #10040. Costs 120ms. ?(Use of a flag file costs 130ms). I don't think its necessary to do this check every boot. I propose you move it to after fs-update has installed an image. Also, olpc.fth isn't executed in the secure boot path, so it does need

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread John Watlington
that it takes up all remaining space on the eMMC or microSD card. ?Fix for #11690. ?Part of #10040. Costs 120ms. ?(Use of a flag file costs 130ms). I don't think its necessary to do this check every boot. I propose you move it to after fs-update has installed an image. Also, olpc.fth isn't

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread James Cameron
move it to after fs-update has installed an image. Also, olpc.fth isn't executed in the secure boot path, so it does need to be put somewhere else. I like Richard's suggestion. This would break fs-verify, and is therefore unacceptable. Is this really a concern ? It doesn't break

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread Peter Robinson
don't think its necessary to do this check every boot. I propose you move it to after fs-update has installed an image. Also, olpc.fth isn't executed in the secure boot path, so it does need to be put somewhere else. I like Richard's suggestion. This would break fs-verify

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread James Cameron
for #11690. ?Part of #10040. Costs 120ms. ?(Use of a flag file costs 130ms). I don't think its necessary to do this check every boot. I propose you move it to after fs-update has installed an image. Also, olpc.fth isn't executed in the secure boot path, so it does need to be put

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread Daniel Drake
On Wed, Mar 14, 2012 at 5:48 PM, James Cameron qu...@laptop.org wrote: I would prefer to solve this by having Linux expand the partition, but I'm told that can't work because Linux doesn't see the new size until next boot.  Do you know a way to avoid a reboot? Yes, we can do it from the

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread John Watlington
instead place it in the olpc.fth path for insecure boot, and in the fs-update path for secure install. Or we might add it to the tail of fs-update, and add an fs-update-no-resize for the factory to use, with an fs-resize for them to use after fs-verify. This sounds like the right compromise

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread Peter Robinson
, olpc.fth isn't executed in the secure boot path, so it does need to be put somewhere else. I like Richard's suggestion. This would break fs-verify, and is therefore unacceptable. Is this really a concern ? ? It doesn't break fs-verify if one is using the correct image for the storage

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread James Cameron
) in the first place, resulting in no change by the resize operation. The patch does change the size of the partition in this case, and providing one image to rule them all would simplify manufacturing ... in that it would remove a possible source of error. We might instead place it in the olpc.fth path

Re: [PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-14 Thread James Cameron
. I propose you move it to after fs-update has installed an image. Also, olpc.fth isn't executed in the secure boot path, so it does need to be put somewhere else. I like Richard's suggestion. This would break fs-verify, and is therefore unacceptable

[PATCH] olpc.fth - grow the root filesystem partition on boot

2012-03-13 Thread James Cameron
be run by the operating system for the space to be available to the user. olpc/olpc.fth | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/olpc/olpc.fth b/olpc/olpc.fth index 368e3c5..cd3b723 100644 --- a/olpc/olpc.fth +++ b/olpc

olpc.fth

2011-02-03 Thread Jerry Vonau
Hi all: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from within olpc.fth. Any hints will be welcome, Jerry ___ Devel mailing list

Re: olpc.fth

2011-02-03 Thread Martin Langhoff
On Thu, Feb 3, 2011 at 4:16 PM, Jerry Vonau jvo...@shaw.ca wrote: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from within olpc.fth. I used to think you could, but according

Re: olpc.fth

2011-02-03 Thread Jerry Vonau
On Thu, 2011-02-03 at 16:21 -0500, Martin Langhoff wrote: On Thu, Feb 3, 2011 at 4:16 PM, Jerry Vonau jvo...@shaw.ca wrote: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from

Re: olpc.fth

2011-02-03 Thread Jerry Vonau
On Thu, 2011-02-03 at 15:37 -0600, Jerry Vonau wrote: On Thu, 2011-02-03 at 16:21 -0500, Martin Langhoff wrote: On Thu, Feb 3, 2011 at 4:16 PM, Jerry Vonau jvo...@shaw.ca wrote: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file

Re: olpc.fth

2011-02-03 Thread Jerry Vonau
that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from within olpc.fth. I used to think you could, but according to Reuben and Mitch... you can't. By the time boot.fth gets executed, OFW has put the memory back in readonly

Re: olpc.fth

2011-02-03 Thread James Cameron
On Thu, Feb 03, 2011 at 03:16:43PM -0600, Jerry Vonau wrote: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from within olpc.fth. Yes, certainly, provided the laptop is not secured

Re: olpc.fth

2011-02-03 Thread Jerry Vonau
: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from within olpc.fth. I used to think you could, but according to Reuben and Mitch... you can't. By the time

Re: olpc.fth

2011-02-03 Thread Jerry Vonau
On Fri, 2011-02-04 at 10:16 +1100, James Cameron wrote: On Thu, Feb 03, 2011 at 03:16:43PM -0600, Jerry Vonau wrote: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from within

Re: olpc.fth

2011-02-03 Thread James Cameron
On Thu, Feb 03, 2011 at 05:20:26PM -0600, Jerry Vonau wrote: ok the buffer is too small, the key gets truncated, but this looks to be viable. Anybody got a quick fix? I've not validated your code, but in the newkatag.fth example the size of the buffer keybuf is set by the value on the stack

Re: olpc.fth

2011-02-03 Thread Jerry Vonau
, Feb 3, 2011 at 4:16 PM, Jerry Vonau jvo...@shaw.ca wrote: Just a quick question is it possible to run commands that are available at OFW prompt inside the olpc.fth file? I'm looking at trying to run add-tag-from-file from within olpc.fth. I used to think you could

updated olpc.fth for XO-1.5

2009-12-13 Thread Daniel Drake
Hi Richard, Sorry to turn around on this -- we no longer want the XO-1.5-specific kernel parameters in olpc.fth since we are now building them into the kernel. For future XO-1.5 bootfw releases please replace olpc.fth with the one included here This isn't critical - everything still works fine

Re: updated olpc.fth for XO-1.5

2009-12-13 Thread Richard A. Smith
On 12/13/2009 06:54 AM, Daniel Drake wrote: Hi Richard, Sorry to turn around on this -- we no longer want the XO-1.5-specific kernel parameters in olpc.fth since we are now building them into the kernel. Ok. Great. I'm going to release a firmware tonight so I'll add this in. -- Richard

Re: Booting squashfs from olpc.fth

2009-10-27 Thread NoiseEHC
like you would boot SOAS. My problem is with making the olpc.fth file currently i'm trying with the following \ Boot script for SD Boot \ created from http://wiki.laptop.org/go/Custom_bootloader ro boot=casper rootdelay=1 splash console=ttyS0,115200 console=tty0 fbcon=font:SUN12x22 to boot-file

Booting squashfs from olpc.fth

2009-10-26 Thread Sebastian Silva
Hello I'm trying to boot into Trisquel like you would boot SOAS. My problem is with making the olpc.fth file currently i'm trying with the following \ Boot script for SD Boot \ created from http://wiki.laptop.org/go/Custom_bootloader ro boot=casper rootdelay=1 splash console=ttyS0,115200

Re: olpc.fth and OFW api docs

2008-08-28 Thread S Page
[EMAIL PROTECTED] wrote: mitch wrote: My recent rewrite of the Olpc.fth wiki page documents the basics from the XO perspective. thanks. that page is now the excellent boot reference i was hoping for. :-) I put all the pages I could find that describe aspects of XO startup

Re: olpc.fth and OFW api docs

2008-08-25 Thread pgf
rewrite of the Olpc.fth wiki page documents the basics from the XO perspective. thanks. that page is now the excellent boot reference i was hoping for. :-) The primary documentation for the client interface is in the IEEE Open Firmware standard; you might be able to find a near-final

Re: olpc.fth and OFW api docs

2008-08-25 Thread Bert Freudenberg
recent rewrite of the Olpc.fth wiki page documents the basics from the XO perspective. thanks. that page is now the excellent boot reference i was hoping for. :-) The primary documentation for the client interface is in the IEEE Open Firmware standard; you might be able to find a near

joyride-1563 broken, olpc.fth missing, fails to boot

2008-01-21 Thread James Cameron
G'day, Build joyride-1563 is broken, it lacks an olpc.fth. Reproducer is to olpc-update from joyride-1551 to joyride-1563, try to boot, the result is Boot device: /usb/wlan and Can't open boot device. Verify using OFW commands: dir n:\versions\pristine\fe9d1dbbe15c2391d8f48b120148f0a5

Re: joyride-1563 broken, olpc.fth missing, fails to boot [FIX]

2008-01-21 Thread Mitch Bradley
You don't really need the entire olpc.fth - the following lines should suffice: ok setenv ramdisk n:\boot\olpcrd.img ok boot n:\boot\vmlinuz root=mtd0 rootfstype=jffs2 Those lines are short enough to type manually. The rest of olpc.fth is just automated reflash and support for boot-alt. Most

Re: joyride-1563 broken, olpc.fth missing, fails to boot [FIX]

2008-01-21 Thread James Cameron
the IP address and telnet to it from another system, % telnet 10.0.0.147 3. on this other system, obtain a copy of /boot/olpc.fth from build joyride-1551 and display it on your screen, without any line-wraps, rsync \ rsync://updates.laptop.org/build-joyride-1551/root/boot