Re: OFW unsecure kernel/initramfs load from zip file

2011-09-22 Thread Daniel Drake
On Wed, Sep 21, 2011 at 11:39 PM, Mitch Bradley w...@laptop.org wrote: Yeah, what James said. That said, in most cases the mount/unmount penalty is not bad, because in cases where it was, I did some caching to make it less onerous.  Cases in point include JFFS2, where mount is inherently

Re: OFW unsecure kernel/initramfs load from zip file

2011-09-21 Thread Daniel Drake
On Wed, Sep 21, 2011 at 3:20 PM, Daniel Drake d...@laptop.org wrote: Thanks Mitch for the sample code, I'm attaching what I have now, which seems to be working, and implements the above. It also allows for a mix of (e.g.) vmlinuz and runrd.zip, always preferring the unzipped version even if

Re: OFW unsecure kernel/initramfs load from zip file

2011-09-21 Thread Mitch Bradley
Yeah, what James said. That said, in most cases the mount/unmount penalty is not bad, because in cases where it was, I did some caching to make it less onerous. Cases in point include JFFS2, where mount is inherently horrible, so I cache the result of scanning the whole NAND surface, and the

OFW unsecure kernel/initramfs load from zip file

2011-09-19 Thread Daniel Drake
Hi, Right now, our signed images included in the boot partition: signed initramfs and kernel (runrd.zip runos.zip), used for secure boot unsigned initramfs and kernel (vmlinuz initrd.img), used in unsecure mode, but identical the the files in the signed tarballs I'd like to change the unsecure