EasyManua.ls Logo

NXP Semiconductors Layerscape LS1028A BSP - Page 55

NXP Semiconductors Layerscape LS1028A BSP
136 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
-> SPI-NOR device support (MTD_SPI_NOR [=y])
Depends on: MTD [=y] && MTD_SPI_NOR [=y]
Compile-time Configuration Options
Config Values Defualt Value Description
CONFIG_SPI_NXP_FLEXSPI y/n y
Enable FlexSPI module
CONFIG_MTD_SPI_NOR_BAS
E
y/n y
Enables the framework for
SPI-NOR
Verification in U-Boot
=> sf probe 0:0
SF: Detected mt35xu512g with page size 256 Bytes, erase size 128 KiB, total 64 MiB
=> sf erase 0 100000
SF: 1048576 bytes @ 0x0 Erased: OK
=> sf write 82000000 0 1000
SF: 4096 bytes @ 0x0 Written: OK
=> sf read 81100000 0 1000
SF: 4096 bytes @ 0x0 Read: OK
=> cm.b 81100000 82000000 1000
Total of 4096 byte(s) were the same
Verification in Linux:
The booting log
......
nxp-fspi 20c0000.flexspi: mt35xu512aba (65536 Kbytes)
nxp-fspi 20c0000.flexspi: mt35xu512aba (65536 Kbytes)
......
Erase the FlexSPI flash
~ # mtd_debug erase /dev/mtd0 0x00000000 1048576
Erased 1048576 bytes from address 0x00000000 in flash
Write the FlexSPI flash
~ # dd if=/bin/ls.coreutils of=tp bs=4096 count=1
~ # mtd_debug write /dev/mtd0 0 4096 tp
Copied 4096 bytes from tp to address 0x00000000 in flash
Read the FlexSPI flash
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
55

Table of Contents

Related product manuals