Skip to content

Developer FAQ & Common errors

Michael Zimmermann edited this page Dec 15, 2017 · 13 revisions

This information is outdated because of the REWRITE.


First of all

If you cannot boot into efidroid or you try to do boot another ROM from within efidroid and it fails: reboot to efidroid again! It will show you an error message which help you to identify the issue.

Table of Contents


1. efidroid boots but it unusable because of graphic issues

  • Cause: If you use DMA in your lk_inc.mk ( WITH_2NDSTAGE_DISPLAY_DMA_TRIGGER ) you may need to adjust the trigger delay
  • Solution: Increase the value in target_display.c

2. 64bit only: TWRP boot fails (ptrace error)

when i select TWRP to flash a new ROM it does not boot into TWRP.. failure is: ptrace(PTRACE_SETREGSET,477,0x404,0x7fc5d88fa0) invalid argument ... (or similar)


3. Graphical glitches e.g. at the bottom of the screen (especially on hi-res screens)

  • Cause: EFIDroid allocates 8MB by default for the screen buffer. Your device's screen resolution is too high to fit inside 8MB.
  • Solution: increase LCD_VRAM_SIZE in your config.ini: e.g. LCD_VRAM_SIZE = 0x1000000

4. no suitable device tree found error pops up while booting

  • Solution : Add DEVICE_PREFER_ATAGS_HWID := 1 in your lk_inc.mk
Clone this wiki locally