Tool/software:
We have a patch for BCH16 uboot nand driver, is a similar patch required for linux nand/mtd drivers; if we decide to write the nand paritions from within the linux.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
We have a patch for BCH16 uboot nand driver, is a similar patch required for linux nand/mtd drivers; if we decide to write the nand paritions from within the linux.
Hi Hong Guan,
Sorry! i thought because this thread was a follow-up question for the previous linked ticket, i thought the context would have carried here.
anyways,
we are using PSDK 9.1, with uboot 2023.04 and kernel 6.1.46.
for a custom AM3352 board with NAND: 256MB, MT29F2G08ABAGA, ONFI Compliant,
For this nand part you had suggested a patch that fixs the MLO paritition with a uboot img.
My question is does a similar patch for linux mtd utils exists? If YES can i please get it. we may plan to write to the MLO from kernel instead of uboot.
regards
Karthik
Here is Linux SDK kernel GPMC-NAND online guide for your reference.
https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/09_01_00_001/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Storage/NAND.html#
Best,
-Hong
Hi Hong, i see there is inherent support for BCH16 in the linux drivers; does this mean MTDUtils would work for both the BCH16 and BCH8 NANDs and these patches are not required for linux drivers:
U-boot patch for NAND booting with Linux SDK 9.1 on AM335x GP EVM
1. mtd: nand: omap_gpmc: Fix NAND in SPL for AM335x
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2023.04-next&id=c0176ab8dd53f86e193c578ec4781400e9fb18e3
2. mtd: rawnand: omap_elm: Fix elm_init definition
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2023.04-next&id=d6f939a90c3192adf5c5bec1ec4fbc05ec36144e
I will try that and get back to you.
For supporting the specific NAND device on your customer board in u-boot, you'll need all threee patches as noted in the early e2e.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1375060/am3352-nand-boot-issue/5275475#5275475
Best,
-Hong