Open main menu

DAVE Developer's Wiki β

Changes

Booting from NAND flash on i.MX6-based platforms

315 bytes added, 08:12, 1 September 2022
no edit summary
{{AppliesToSBCLynx}}
{{InfoBoxBottom}}
 
{{ObsoleteWikiPage|link=DESK-MX6-L/Deployment/Booting_from_NAND_flash}}
 
==Introduction==
With respect to the NOR flash memories, NAND devices are known to be quite challenging with regard to the reliability. This is especially true when the NAND flash is used as the boot device. Several techniques such as wear leveling and bad block management have to be implemented to achieve an acceptable reliability.
==How to burn the boot partition==
{{WarningMessage|text=This application note was validated before '''XELK 4''' kit version which is using u-boot SPL. Instruction ha to be modified according to [[Standalone_boot_(XELK)#NAND_flash | Standalone boot from NAND]] page.}}
 
The burning of the boot partition is performed by the [https://github.com/NXPmicro/imx-kobs <code>kobs-ng</code> tool].
When the NAND flash is not burned yet, the product is usually configured in order to boot from a different device such as an SD card or through serial download mode. Once the Linux kernel is up and running, the <code>kobs-ng</code> can be run as shown in the following example:
<pre class="boardworkstation-terminal">
./kobs-ng-5.4 init -x -v -w --chip_0_device_path=/dev/mtd0 mx6sx_board_nand_u-boot.imx
MTD CONFIG:
8,186
edits