Skip to content

Dev Mode and Debug Mode

inspector71 edited this page Aug 15, 2018 · 8 revisions

Dev Mode

The dev mode gives you access to all parts of the system. The filesystem is mounted in read write mode and network is enabled to allow ssh access to your system.

How to enable?

  1. You can enable the dev mode in /boot/cankshaft/crankshaft_env.sh -> DEV_MODE=1 By default system boots to shell. You can optionally set DEV_MODE_APP=1 to trigger start of openauto in dev mode.

  2. You can place a file called ENABLE_DEVMODE on a usb stick an connect it to the system. During boot the file will be detected and the system will boot into dev mode. Note: /boot/crankshaft/crankshaft_env.sh will be checked for DEV_MODE_APP=1 to decide to start openauto or not.

  3. You can enable dev mode by setting DEV_PIN GPIO to low if ENABLE_GPIO is set to 1. By default DEV_PIN=4and ENABLE_GPIO=1.

Debug Mode

The debug mode is created to allow a normal system start including network like in dev mode and enabling some logging.

How to enable?

  1. You can enable the debug mode in /boot/crankshaft/crankshaft_env.sh -> DEBUG_MODE=1
  2. You can place a file called ENABLE_DEBUG on a usb stick an connect it to the system During boot the file will be detected and the system will boot into debug mode
  3. You can enable the debug mode inside settings of openauto starting with pre4

Note: If both modes are enabled debug mode is dominant.

Creating Debug Log

How to create?

  1. Start in debug mode
  2. Reproduce the problem - for example open settings - change value and save
  3. Push the gray button on bottom of main screen. You will get a text note and the button is invisible
  4. After creation the logs are zipped and placed on /boot/debug.zip
Clone this wiki locally