NOR Flash not unlocked

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NOR Flash not unlocked

1,320 Views
m_syed_ahmed
Contributor III

We are working on the NOR Flash (MT28EW128ABA1HJS-0SIT) chip. We are getting a cannot unlock chip error. Please find the log below

[ 5.737606] USTC Intel Flash Map Upper 16MB: Found 1 x16 devices at 0x0 in 16-bit bank
[ 5.760764] Amd/Fujitsu Extended Query Table at 0x0040
[ 5.776284] USTC Intel Flash Map Upper 16MB: CFI does not contain boot bank location. Assuming top.
[ 5.803397] number of CFI chips: 1
[ 5.813474] cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
[ 5.836680] Creating 6 MTD partitions on "USTC Intel Flash Map Upper 16MB":
[ 5.857515] 0x00000000-0x00020000 : "USTC-Reserved"
[ 5.873884] 0x00020000-0x00b20000 : "Root FS"
[ 5.887895] 0x00b20000-0x00b40000 : "User FS"
[ 5.902089] 0x00b40000-0x00f00000 : "uImage"
[ 5.915806] 0x00f00000-0x00f60000 : "u-boot bootloader"
[ 5.932618] 0x00f60000-0x01000000 : "fail-safe Root FS"
[ 6.340553] VFS: Mounted root (jffs2 filesystem).
[ 6.354289] Freeing unused kernel memory: 100k init
init started: BusyBox v1.9.0 (2008-01-03 13:08:07 PST)
starting pid 590, tty '': '/etc/init.d/rcS'
Could not unlock MTD device: /dev/mtd1

Tags (2)
0 Kudos
4 Replies

1,299 Views
m_syed_ahmed
Contributor III

Has anyone implemented Lock/Unlock functions for the NOR Flash chip (MT28EW128ABA1HJS)? Can anyone share anything helpful to perform lock/unlock in this chip?

0 Kudos

1,290 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please go to u-boot and execute the following command.

=> protect off all

0 Kudos

1,287 Views
m_syed_ahmed
Contributor III

We were doing that also. Still at Kernel side, when we try flash_unlock, it is giving the same cannot be unlocked error

0 Kudos

1,087 Views
yipingwang
NXP TechSupport
NXP TechSupport

Have you added bootargs similar as the following?

mtdparts=60000000.nor:1m(nor_bank0_rcw),2m(nor_bank0_uboot),13m(nor_bank0_uboot_env),48m(nor_bank0_itb),1m(nor_bank4_rcw),2m(nor_bank4_uboot),13m(nor_bank4_uboot_env),48m(nor_Usertest);

 Have you erased NOR flash 0x00020000-0x00b20000 and programmed jffs2 rootfs into it?

0 Kudos