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: | ||
- | + | 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: | ||
- | + | * QEMU-ARM instance modelled on http://people.debian.org/~aurel32/qemu/armel/ | |
- | * QEMU- | + | * This virtual machine will through a script, with following input: |
- | * | + | ** 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.