Skip to content

Instantly share code, notes, and snippets.

@colemancda
Forked from squeuei/lichee-nano-fel.md
Created May 11, 2022 07:51
Show Gist options
  • Save colemancda/f8ae4f067fabb16ad3fdca2f815b3131 to your computer and use it in GitHub Desktop.
Save colemancda/f8ae4f067fabb16ad3fdca2f815b3131 to your computer and use it in GitHub Desktop.
How to enter FEL mode on Lichee nano

How to enter FEL mode on Lichee nano

If SPI flash isn't on the board, just remove the TF(microSD) card from the board and supply the power. It's the same if SPI flash is empty,

If your board have a SPI flash with preloaded image, pull D4(SPI CLK) down to GND. You can use the metal part of USB micro B or TF card slot as GND. Diagram is in the comment below. Thanks: @ernestp for the correction and providing a diagram.

Or you can use the special boot image [link]. Just write it to a TF card and boot.

Don't forget to remove the GND connection after entering FEL mode otherwise you will never be able to write the boot image to the SPI flash.

Even though the host Linux PC recognizes the board (like as Onda (unverified) V972 tablet in flashing mode on lsusb), sudo sunxi-fel version may return ERROR: Allwinner USB FEL device not found!. In that case, you need to make a udev rule.

/etc/udev/rules.d/50-sunxi-fel.rules:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", MODE:="0666"

References

Off topic

If you want to build u-boot by yourself, python must be Python 2.x as of 2020-02-08. For example, you can't use the latest Fedora (F31) because the default interpreter of python is python 3.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment