Editing Mer/Proposals/Community Firmware

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
{{Mer}}
+
This is a proposal how community firmware images as mentioned in [[Task:Community_firmware_image_distribution]] could be done in practice
-
 
+
-
This is a proposal how community firmware images as mentioned in [[Task:Community_firmware_image_distribution]] could be done in practice.
+
Permissions needed from Nokia to maemo.org:
Permissions needed from Nokia to maemo.org:
Line 17: Line 15:
Requirements on maemo.org:
Requirements on maemo.org:
-
* Interface to distribute files through EULA acceptance and MAC validation
+
* QEMU-ARM instance modelled on http://people.debian.org/~aurel32/qemu/armel/
-
* QEMU-ARMEL instance modelled on http://people.debian.org/~aurel32/qemu/armel/ with wget, python installed
+
* This virtual machine will through a script, with following input:
-
* https://code.launchpad.net/~mer-committers/m-r/restricted-nokia-image-maker (a tool that based on a config.py makes a image with restricted debs installed)
+
** A tar.gz with a Mer rootfs
 +
** A list of packages L (with exact URL to Diablo update repositories), along with an URL to optional patch to be run with 'bash'
 +
* Do the following:
 +
** Download each package X into directory nokia-closed/ with patching script P listed in L
 +
*** mkdir -p package-X/DEBIAN
 +
*** dpkg-deb -x package-X-deb-file package-X
 +
*** dpkg-deb -e package-X-deb-file package-X/DEBIAN
 +
*** cd package-X
 +
*** execute patch script P if exists
 +
*** cd ..
 +
*** dpkg-deb --build nokia-closed-patched/package-X-deb-file package-X
 +
** tar pzxf the tar.gz into mer-rootfs
 +
** in mer-rootfs, temporarily move /usr/sbin/invoke-rc.d to /usr/sbin/invoke-rc.d.REAL and /sbin/start-stop-daemon to /sbin/start-stop-daemon.REAL, and ln -s /bin/true /usr/sbin/invoke-rc.d /sbin/start-stop-daemon
 +
** export LC_ALL=C
 +
** copy nokia-closed-patched/ into mer-rootfs/nokia-closed-patched
 +
** for each package X
 +
*** chroot nokia-closed-patched dpkg -i /nokia-closed-patched/package-X-deb-file
 +
** remove mer-rootfs/nokia-closed-patched directory
 +
** remove mer-rootfs/usr/sbin/invoke-rc.d , mer-rootfs/sbin/start-stop-daemon
 +
** mv /sbin/start-stop-daemon.REAL /sbin/start-stop-daemon
 +
** mv /usr/sbin/invoke-rc.d.REAL /usr/sbin/invoke-rc.d
 +
** tar.gz up mer-rootfs (without mer-rootfs prefix), and make accessible behind a EULA from maemo.org to worthy MAC addresses.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: