Commit | Line | Data |
---|---|---|
15e8442f JA |
1 | MobiCore Daemon in Android |
2 | --- | |
3 | Command line | |
4 | -- | |
5 | The MobiCore Daemon supports 4 command line options. It also displays them with the help option: | |
6 | ||
7 | # ./mcDriverDaemon -h | |
8 | usage: ./mcDriverDaemon [-mdsbh] | |
9 | Start MobiCore Daemon | |
10 | ||
11 | -h show this help | |
12 | -b fork to background | |
13 | -m IMAGE load mobicore from IMAGE to DDR | |
14 | -s disable daemon scheduler(default enabled) | |
15 | -r DRIVER load dyamic driver | |
16 | ||
17 | -b Forks the daemon to background | |
18 | ||
19 | # ./mcDriverDaemon -b | |
20 | ||
21 | Makes the daemon run in background and returns immediate control to the shell. No need to use shell forking with & | |
22 | ||
23 | -m Loads a mobicore image to DDR | |
24 | ||
25 | # ./mcDriverDaemon -m /data/app/mobicore.img | |
26 | ||
27 | Loads the mobicore.img to DDR and starts executing it. | |
28 | ||
29 | -s Disables NQ IRQ scheduler | |
30 | ||
31 | # ./mcDriverDaemon -s | |
32 | ||
33 | -r Loads dynamic driver at startup. The full path of the driver binary must be given, eg. /data/app/driver.drbin | |
34 | ||
35 | # ./mcDriverDaemon -r /data/app/driver.drbin | |
36 | ||
37 | Custom registry locations | |
38 | -- | |
39 | Registry fallback | |
40 | ||
41 | In case of a Device wipe in Android the /data/app/mcRegistry folder will be deleted with all it's contents. To overcome | |
42 | this the daemon supports a fallback location(eg /system/app/mcRegistry): it first tries to load the trustlet | |
43 | from /data/app/mcRegistry/[uuid].tlbin and if it fails then it tries to read the trustlet from /system/app/mcRegistry/[uuid].tlb | |
44 | ||
45 | Both paths are completely configurable for the Daemon using 2 environment variables:MC_REGISTRY_PATH and MC_REGISTRY_FALLBACK_PATH | |
46 | ||
47 | For example if you want to use /data/app/mcRegistry as the default path and /system/app/mcRegistry as the fallback path: | |
48 | ||
49 | $ export MC_REGISTRY_PATH=/data/app/mcRegistry | |
50 | $ export MC_REGISTRY_FALLBACK_PATH=/system/app/mcRegistry | |
51 | $ /data/app/mcDriverDaemon | |
52 | ||
53 | Custom authtoken path | |
54 | -- | |
55 | ||
56 | The authtoken file is created at provisioning and is by default located in /data/app/mcRegistry/00000.authtoken | |
57 | ||
58 | Because a device wipe could delete this file and make MobiCore unusable a new environment variable has been added to change the | |
59 | default behaviour: MC_AUTH_TOKEN_PATH | |
60 | ||
61 | $ export MC_AUTH_TOKEN_PATH=/efs | |
62 | $ /data/app/mcDriverDaemon | |
63 | ||
64 | This would change the location of the authtoken file to /efs |