LS1028a: Booting from NOR+NAND flash device

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LS1028a: Booting from NOR+NAND flash device

2,317件の閲覧回数
gouravjain
Contributor IV

Hello everyone,

I'm attempting to boot LS1028a RDB from a NOR+NAND device setup where the NOR contains u-boot, and the NAND contains the kernel, root file system, etc. However, upon trying "sf probe" in u-boot, I noticed that the NAND is not being detected. Here are the observations:


=> sf probe 0:0
SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 2 GiB
=> sf probe 0:1
SF: unrecognized JEDEC id bytes: ff, 2c, 35
Failed to initialize SPI flash at 0:1 (error -2)


Could anyone provide some useful guidance on how to debug this issue effectively?

Thank you,
Gourav Jain

@yipingwang 

0 件の賞賛
返信
4 返答(返信)

2,269件の閲覧回数
LFGP
NXP TechSupport
NXP TechSupport

unfortunately, it is only implemented  for interact with NOR flash devices 

0 件の賞賛
返信

2,270件の閲覧回数
LFGP
NXP TechSupport
NXP TechSupport

for the moment it is only implemented for NOR flash devices.

0 件の賞賛
返信

2,282件の閲覧回数
LFGP
NXP TechSupport
NXP TechSupport

dear @gouravjain ,

please be sure about the SPI flas chip, in order to check it you can use the "dm uclass" command and be sure for the bus and the cs used in the "sf probe" command.

use the next link for dm uclass command documentation and examples

https://docs.u-boot.org/en/latest/usage/cmd/dm.html 

 

use the next link for sf probe command

https://docs.u-boot.org/en/latest/usage/cmd/sf.html 

0 件の賞賛
返信

2,277件の閲覧回数
gouravjain
Contributor IV

@LFGP : Thanks for addressing the query,

After conducting some debugging, I discovered that u-boot lacks support for NAND flash. Conversely, Linux does support NAND flash, but it only creates a single MTD partition. Kindly have a look in below shared items,

u-boot:

under the dir path: "ls1028ardb/tmp/work/x86_64-linux/u-boot-tools-native/1_2022.07-r0/git/drivers/mtd/spi" not able to see any nand flash related files,

-rw-r--r-- 1 rir rir 19926 Oct 13 06:10 spi-nor-ids.c
-rw-r--r-- 1 rir rir 105239 Oct 13 06:10 spi-nor-core.c
-rw-r--r-- 1 rir rir 2456 Oct 13 06:10 sf-uclass.c
-rw-r--r-- 1 rir rir 4238 Oct 13 06:10 sf_probe.c
-rw-r--r-- 1 rir rir 3444 Oct 13 06:10 sf_mtd.c
-rw-r--r-- 1 rir rir 2917 Oct 13 06:10 sf_internal.h
-rw-r--r-- 1 rir rir 19992 Oct 13 06:10 sf_dataflash.c
-rw-r--r-- 1 rir rir 15290 Oct 13 06:10 sandbox.c
-rw-r--r-- 1 rir rir 613 Oct 13 06:10 Makefile
-rw-r--r-- 1 rir rir 8598 Oct 13 06:10 Kconfig
-rw-r--r-- 1 rir rir 2303 Oct 13 06:10 fsl_espi_spl.c
-rw-r--r-- 1 rir rir 19664 Oct 13 06:10 spi-nor-tiny.c

 

linux: 

mtd-partition.PNG

Thanks,

Gourav Jain

0 件の賞賛
返信