(→Introduction) |
|||
| (13 intermediate revisions not shown) | |||
| Line 9: | Line 9: | ||
The scope of this document is currently aimed towards the N900-DE, however the principles are expected for MeeGo globally. | The scope of this document is currently aimed towards the N900-DE, however the principles are expected for MeeGo globally. | ||
| - | + | ||
| + | |||
== Single partition installation vs Dual Part installation. == | == Single partition installation vs Dual Part installation. == | ||
| Line 57: | Line 58: | ||
** Import SMS messages/Conversations | ** Import SMS messages/Conversations | ||
** Import Misc application settings | ** Import Misc application settings | ||
| - | |||
| - | |||
== SSU is needed. == | == SSU is needed. == | ||
| Line 68: | Line 67: | ||
** Check for updates, compare on device repository against latest available system | ** Check for updates, compare on device repository against latest available system | ||
| - | == Maemo Data Sharing | + | == Maemo Data Sharing == |
To access realtime and safely the data stored on the eMMC live and direct. | To access realtime and safely the data stored on the eMMC live and direct. | ||
| Line 76: | Line 75: | ||
** Music and example files. | ** Music and example files. | ||
| + | * Mountpoint now accessible within N900-CE builds | ||
| + | ** '''/media/maemoMyDocs''' | ||
| + | == Accessing the Maemo eMMC MyDocs partition for importing contacts == | ||
| - | == Accessing the | + | * On Maemo, open Contacts and select the menu "Export" |
| + | * Follow the wizard through using defaults. | ||
| + | |||
| + | * This will create a folder ~/MyDocs/Exported Contacts/ | ||
| + | * Folder contents will be vcards in 2.1 format | ||
| + | |||
| + | * Bootup MeeGo and running the following should show all the files: | ||
| + | |||
| + | <pre> | ||
| + | |||
| + | mkdir /media/maemoMyDocs | ||
| + | mount -t vfat /dev/mmcblk1p1 /media/maemoMyDocs | ||
| + | ls /media/maemoMyDocs/Exported\ contacts | ||
| + | echo "Smile :)" | ||
| + | |||
| + | </pre> | ||
| + | |||
| + | * now we just need to import them :) | ||
| + | |||
| + | Wider script is available for testing: | ||
| + | |||
| + | http://wiki.meego.com/ARM/N900/DataManagement/ContactsImportScript | ||
| + | |||
| + | == Accessing the root partition == | ||
Quick discussions in IRC asking how to proceed: | Quick discussions in IRC asking how to proceed: | ||
| Line 92: | Line 117: | ||
* <jsv> lcuk: "cat /proc/self/mounts" on maemo5 console shows what's where. you should be able to ignore the bind mounts | * <jsv> lcuk: "cat /proc/self/mounts" on maemo5 console shows what's where. you should be able to ignore the bind mounts | ||
* <jsv> also, before you ask "mount -t ubifs ubi0:rootfs <mountpoint>" for rootfs on NAND | * <jsv> also, before you ask "mount -t ubifs ubi0:rootfs <mountpoint>" for rootfs on NAND | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | == extra notes == | ||
| + | |||
| + | merlin1991 highlighted this thread: http://forum.meego.com/showthread.php?t=3511 | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | * <lcuk> osso-backup appears to be closed source (the maemo backup tool) | ||
| + | * <lcuk> I wonder what would be required to tweak within that to run on n900-de | ||
| + | * <lcuk> obviously it is hildonised, but that is less of a tweak than rewriting from scratch | ||
| + | * <lcuk> hm | ||
| + | |||
| + | http://maemo.org/packages/package_instance/view/fremantle_ssu_pr1-2_armel/osso-backup/1.8.20-1+0m5/ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | == Scripts for Importing on firstboot == | ||
| + | |||
| + | * <lcuk> Sage, do you know any current meego packages which do scriptwork after bootup? ie where would the best place to put * this contacts import code? | ||
| + | * <Sage> lcuk: like during every boot or first boot? | ||
| + | * <lcuk> during bootup, but late enough in the sqequence that qtmobility and qcoreapplication type things will work | ||
| + | * <lcuk> we can determine firstboot or not based on a file somewhere that is written by the script | ||
| + | * <Sage> ok | ||
| + | * <lcuk> (similar to how maemo boot time optification scripts worked) | ||
| + | * <Sage> I would say that if you want Xorg be there and if you want to run those as user then /etc/xdg/autostart/ | ||
| + | * <Sage> if you want to execute as root then /etc/init.d/ | ||
| + | * <lamikr> lcuk Sage /etc/xdg/autostart/sample-media-install.desktop is an example from script that checks whether script is already run... | ||
| + | * <lcuk> ok thanks Sage, lamikr :) I will investigate both areas and see how to proceed. Adding these notes to the datamanagement page in the meantime | ||
| + | * <lamikr> lcuk Sage Don't though much like from this approach but don't know anything better atm. | ||
| + | |||
| + | |||
| + | <Sage> files in /etc/xdg/autostart/ are executed as meego user so mount will fail | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | The summer release wishes to have contact import, so this is a specific import side | ||
| + | but will need to have access to data exported from maemo | ||
| + | http://wiki.meego.com/ARM/N900/Summer_Release | ||
One of the most important aspects of a working system is Data Management. During the lifetime of a running system, data and configuration details are setup with the expectation that they are secure.
Ensuring that the data you create and configure on your device is sustained is a high priority. The notes on this page are a starting point to ensuring the various aspects of this are catered for.
The scope of this document is currently aimed towards the N900-DE, however the principles are expected for MeeGo globally.
Maemo device installation consists of 2 parts:
MeeGo Installation consists of 1 part:
With Maemo, it is possible for the Backup tool to store User data onto the eMMC and ensure that between installations the data is safe and can be restored from.
MeeGo however has no such ability. Even the Netbook is an all-in-one installation. This causes serious problems for data during updates or reinstallations. The following application requests and points are based around having this problem solved.
The N900 device is *lucky* to have the eMMC available (even if not used at present) Other MeeGo devices may not have such a device/data storage area available.
Now we can get on networks and get past initialisation issues, a mechanism to Backup/Restore data between reflashing is necessary. Added complexity for N900-de is that the whole "image" is on one partition which is overwritten by each image flashed.
A suggestion from IRC:
Similar to the Backup/Restore application.
This would require the Maemo Sharing to be functional first.
Now that we are doing more and filling in data, a mechanism to update is required.
To access realtime and safely the data stored on the eMMC live and direct.
mkdir /media/maemoMyDocs mount -t vfat /dev/mmcblk1p1 /media/maemoMyDocs ls /media/maemoMyDocs/Exported\ contacts echo "Smile :)"
Wider script is available for testing:
http://wiki.meego.com/ARM/N900/DataManagement/ContactsImportScript
Quick discussions in IRC asking how to proceed:
merlin1991 highlighted this thread: http://forum.meego.com/showthread.php?t=3511
http://maemo.org/packages/package_instance/view/fremantle_ssu_pr1-2_armel/osso-backup/1.8.20-1+0m5/
<Sage> files in /etc/xdg/autostart/ are executed as meego user so mount will fail
The summer release wishes to have contact import, so this is a specific import side but will need to have access to data exported from maemo http://wiki.meego.com/ARM/N900/Summer_Release