zhikui.cui
946e8375d5
nand: coverity clean [1/1]
...
PD#SWPL-141996
Problem:
Unintentional integer overflow
Solution:
redefine related variables to u64
Verify:
just coverity pass
Change-Id: Idcced22cdecb2a925692e88eee0cd3b658fb71c4
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com >
2023-10-18 14:52:42 +08:00
qinglin.li
9d3b531cb4
break_gki: adjust break gki config [2/2]
...
PD#SWPL-137861
Problem:
adjust break gki config
Solution:
CONFIG_AMLOGIC_BREAK_GKI_20 only break gki2.0
CONFIG_AMLOGIC_BREAK_GKI break gki 1.0 and 2.0
Verify:
local
Change-Id: Ic86c771027980aa24c638d5f89c014240d65ec91
Signed-off-by: qinglin.li <qinglin.li@amlogic.com >
2023-09-05 20:43:25 +08:00
Bichao Zheng
3d744698f9
spinand: remove meson mtd erase interface [1/1]
...
PD#SWPL-136164
Problem:
No need to implement the erase interface for mtd
Solution:
remove meson mtd erase interface
Verify:
S1A
Change-Id: Id214b1551018586304dfffee06ba8d6cecbcb14d
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2023-08-16 02:29:00 -07:00
Bichao Zheng
ccc09fb175
spinand: adjust meson bbt [1/1]
...
PD#SWPL-136164
Problem:
if oob bit flips, may misidentify bad blocks
Solution:
find meson bbt directly.
Verify:
c3
Change-Id: I66e168963a3210052d154256c6b9ec0f6a1b862f
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2023-08-15 04:19:30 -07:00
Bichao Zheng
540d825988
spinfc: add new spi nfc driver [1/1]
...
PD#SWPL-133132
Problem:
adopt new spi flash controller with ecc engine
Solution:
add a new spi nfc flash driver
Verify:
s1a
Change-Id: I551d27ac29effe2bd0bb090a8cc9bc9897080a20
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2023-08-15 10:36:49 +08:00
Bichao Zheng
71225d83b0
nand: adjust the use of DMA [1/1]
...
PD#SWPL-135072
Problem:
fix ecc timeout.
Solution:
1. add dma_sync_single_for_cpu before read info.
2. remove invalid code
Verify:
S4
Change-Id: Ia7ba219d1e15415eea1507b9f864e1e81f8b6225
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2023-08-10 21:48:55 -07:00
Feng Chen
8b3b1996e7
nand: erase failed error [1/1]
...
PD#SWPL-129754
Problem:
erase flash error during OTA upgrade.
Solution:
change the check way of badblock.
Verify:
s4
Change-Id: I82b64b03f584d449e30a435f8ec7e7aa0bab3be7
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-07-09 15:08:14 -07:00
Bichao Zheng
20f5935b04
bf201: nand partition confirmation [1/1]
...
PD#SWPL-124386
Problem:
1. Reduce bootloader area
Solution:
1. remove ddrfip area
2. Reduce RSV to 14 blocks.
3. Reduce backup of BL2E BL2X DEVFIP to 2
4. Bootloader area reduced from 0x1600000 to 0x940000 bytes
Verify:
s4
Change-Id: I97187d33f211c7a5ab60e4cda2b369defb8363dd
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2023-06-16 20:23:48 -07:00
Feng Chen
03fe0b2794
mtd nand: CB2 optimize nand boot area [1/1]
...
PD#SWPL-123982
Problem:
- optimize nand boot area
Solution:
- optimize nand boot area
Verify:
BF201_S805C1A
Change-Id: I520add1439c625fdb5b8cded86090b1b21ccda2c
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-05-19 02:33:15 -07:00
Feng Chen
2d1b3f30de
spinand: cannot be mounted normally [1/1]
...
PD#SWPL-123829
Problem:
nand cannot be mounted normally.
Solution:
modify oob layout for BBM
Verify:
a1
Change-Id: I19b038cf6e9a5196d0637467d2572eb1178a9496
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-05-19 01:56:14 -07:00
Bichao Zheng
83a117c836
nand: get onfi mode from id table [1/1]
...
PD#SWPL-120491
Problem:
Wrong select onfi mode
Solution:
get onfi mode from id table
Verify:
s4
Change-Id: I478181a369b608b1d1598f9ab05760cbb9ab12e3
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2023-04-25 05:05:19 -07:00
Feng Chen
05429451ae
mtdblock: modify for squashfs mount [2/2]
...
PD#SWPL-116004
Problem:
1.squashfs don't handle bad block
2.partition size returned from mtdblock
is incorrect
Solution:
add Macro CONFIG_AML_NAND
Verify:
s4_aq243
Change-Id: I82110118b0bfe78a6615bd9159f741800b37abda
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-03-27 22:32:48 +08:00
Feng Chen
7b9735c463
spinand: add env_size for a1 [1/1]
...
PD#SWPL-115118
Problem:
error cause by different env size
define under uboot and kernel
Solution:
add env_size in dts
Verify:
a1
Change-Id: I2abfa546e38d650524da52641a7958f1c1f50d4b
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-03-23 05:12:12 -07:00
Feng Chen
9639867fc4
slcnand: 32b mount system partition fail in ramdisk [1/1]
...
PD#SWPL-110677
Problem:
mount system partition fail
Solution:
there is different partition
backup num of board platform,
4 or 8, add flag in dts file
to mark it as 8-backup
Verify:
s4d_t215
Change-Id: I2ce7682cb04163a5c3464853b90f4693608cac4f
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-02-20 06:03:35 -08:00
Feng Chen
dc764e2a01
spinand: add F50L1G41LB support [1/1]
...
PD#SH-13003
Problem:
spinand need F50L1G41LB support
Solution:
add flash id support
Verify:
a1_ad403
Change-Id: Icf9a78b3e8268063eaea628f0304c4f7c751eeac
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-02-19 22:05:31 -08:00
Feng Chen
38e1d98d92
nand: rsv memory allocation failure [1/1]
...
PD#SWPL-107508
Problem:
nand rsv memory allocation failure
in sometimes cause by apply for
continuous physical memory
Solution:
use discontinuous physical memory
memory malloc method
Verify:
s4
Change-Id: I86f99096e8c48562b78801c3f500a0ae291094b7
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
2023-01-13 15:47:48 +08:00
Bichao Zheng
b6cf12ed03
typo: Fix mtd typo errors [1/1]
...
PD#SWPL-103473
Problem:
1. typo errors
Solution:
1. fix typo errors
Verify:
s4
Change-Id: Icd7b87b77c763d4a8a8807a8ab25b1e59770c0ec
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2022-12-31 06:19:28 -08:00
Bichao Zheng
f886d9e766
nand: modify check bad block rule in add partition [1/1]
...
PD#SWPL-104886
Problem:
1. partition will change, when have use bad block
Solution:
1. only skip factory bad blocks in add partitions.
Verify:
s4
Change-Id: Ibb796410add3d02a34c8a41e7ef0e354d4f65e67
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2022-12-13 06:17:00 -08:00
Feng Chen
9a7b2542e8
spi-nand: modify check bad block rule in add partition method [1/1]
...
PD#SWPL-100114
Problem:
factory bad blocks and the other bad blocks
both in the return result of mtd check bad
blocks method, but in add partitions process
that not safety, because system partition might
use the same block in next startup.
Solution:
only skip factory bad blocks in add partitions
method.
Verify:
c3_aw419
Signed-off-by: Feng Chen <feng.chen@amlogic.com >
Change-Id: If9b0b10f41c07052ef955c1ebf3193ab657ec09e
2022-12-07 02:01:28 -07:00
pengzhao.liu
b946ffb848
typo: clear typo problem [1/1]
...
PD#SWPL-89627
Problem:
clear typo problem
Solution:
clear typo problem
Verify:
s4d
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com >
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
Bichao Zheng
2a4446af15
spi nand: c3 fix mtd0 write&read fail [1/1]
...
PD#SWPL-88624
Problem:
1. swupdate mtd0 fail
Solution:
1. add front info page support.
Verify:
c3
Change-Id: I99da5578b4d130656924fcdbd96ac7e85a1d0d8e
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2022-07-21 03:53:12 -07:00
Bichao Zheng
3ed03c5332
nand: fix rsv read fail [1/2]
...
PD#SWPL-86523
Problem:
rsv read fail when bit flip
Solution:
Use mtd api instead
Verify:
c3
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
Change-Id: I4fc9c94b2e47235c7a7d5a1c5fd592d84223f0ab
2022-06-30 18:20:42 +08:00
Bichao Zheng
ff62e3deaa
spinand: fix compile fail [1/1]
...
PD#SWPL-83836
Problem:
1. mk_smarthome32_clang compile fail.
Solution:
2. initialization variable.
Verify:
c3_aw419
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
Change-Id: I679e652e8a1f39b4933856ab72ce60850faccfd3
2022-06-30 18:09:28 +08:00
Bichao Zheng
7b68997a51
spinand: C3 add spinand support [1/1]
...
PD#SWPL-83836
Problem:
need add spinand support
Solution:
1. enabled spinand default
2. disabled emmc
3. add new partition
4. enabled ubifs support
Verify:
c3_aw419
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
Change-Id: Ic1e679d30f5bd23cb30115fe380b9a08e60b18f3
2022-06-30 18:09:28 +08:00
Bichao Zheng
6b2572b772
nand: support driver for s4d [1/1]
...
PD#SWPL-79112
Problem:
need support nand driver for s4d
Solution:
add s4d support
Verify:
s4d
Change-Id: Ife2638781da946f0527ff00546ca5a8cb97b293f
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2022-05-19 07:27:20 -07:00
Bichao Zheng
0d4c1967ad
spinand: add spi nand support [1/1]
...
PD#SWPL-77466
Problem:
need to support spi nand
Solution:
1. add spi nand support
2. add spifc v2 support
Verify:
A1
Change-Id: I183e52931a3b87b7d13ce6b7d930c2e16a6e0a25
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com >
2022-05-12 17:50:20 +08:00