1 MobiCore Daemon in Android
6 The MobiCore Daemon supports 4 command line options. It also displays them with the help option:
9 usage: ./mcDriverDaemon [-mdsbh]
14 -m IMAGE load mobicore from IMAGE to DDR
15 -s disable daemon scheduler(default enabled)
16 -d SIZE donate SIZE bytes to mobicore(disabled on most platforms)
17 -r DRIVER load dyamic driver
19 -b Forks the daemon to background
23 Makes the daemon run in background and returns immediate control to the shell. No need to use shell forking with &
25 -m Loads a mobicore image to DDR
27 # ./mcDriverDaemon -m /data/app/mobicore.img
29 Loads the mobicore.img to DDR and starts executing it.
31 -s Disables NQ IRQ scheduler
35 -d Sets how much RAM is donated to Mobicore in bytes
37 # ./mcDriverDaemon -d 1048576
39 If no -d is specified then the daemon donates 1Mb. The Value 0 disables RAM donation.
41 -r Loads dynamic driver at startup. The full path of the driver binary must be given, eg. /data/app/driver.drbin
43 # ./mcDriverDaemon -r /data/app/driver.drbin
45 Custom registry locations
49 In case of a Device wipe in Android the /data/app/mcRegistry folder will be deleted with all it's contents. To overcome
50 this the daemon supports a fallback location(eg /system/app/mcRegistry): it first tries to load the trustlet
51 from /data/app/mcRegistry/[uuid].tlbin and if it fails then it tries to read the trustlet from /system/app/mcRegistry/[uuid].tlb
53 Both paths are completely configurable for the Daemon using 2 environment variables:MC_REGISTRY_PATH and MC_REGISTRY_FALLBACK_PATH
55 For example if you want to use /data/app/mcRegistry as the default path and /system/app/mcRegistry as the fallback path:
57 $ export MC_REGISTRY_PATH=/data/app/mcRegistry
58 $ export MC_REGISTRY_FALLBACK_PATH=/system/app/mcRegistry
59 $ /data/app/mcDriverDaemon
64 The authtoken file is created at provisioning and is by default located in /data/app/mcRegistry/00000.authtoken
66 Because a device wipe could delete this file and make MobiCore unusable a new environment variable has been added to change the
67 default behaviour: MC_AUTH_TOKEN_PATH
69 $ export MC_AUTH_TOKEN_PATH=/efs
70 $ /data/app/mcDriverDaemon
72 This would change the location of the authtoken file to /efs