修改spif和uboot,加上写保护与解除保护

This commit is contained in:
2025-01-21 15:58:55 +08:00
parent a10ff1b209
commit 10e6767b22
10 changed files with 456 additions and 15 deletions

View File

@@ -757,6 +757,7 @@ CONFIG_MTD_SPI_NOR=y
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
# CONFIG_SPI_CADENCE_QUADSPI is not set
# CONFIG_SPI_FLASH_SR is not set
# CONFIG_SPI_FLASH_DEFAULT_LOCK is not set
# CONFIG_MTD_UBI is not set
CONFIG_DTC=y
CONFIG_OF=y

View File

@@ -757,6 +757,7 @@ CONFIG_MTD_SPI_NOR=y
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
# CONFIG_SPI_CADENCE_QUADSPI is not set
# CONFIG_SPI_FLASH_SR is not set
# CONFIG_SPI_FLASH_DEFAULT_LOCK is not set
# CONFIG_MTD_UBI is not set
CONFIG_DTC=y
CONFIG_OF=y

View File

@@ -24,7 +24,7 @@
/*bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=6 lpj=240000 root=/dev/mtdblock4 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=env@mtdblock1:env-redund@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:extend@mtdblock5:rootfs_data@mtdblock6:UDISK@mtdblock7 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";*/
/* for OTA recovery system:(kernel rootfs extend) */
bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=1 lpj=240000 root=/dev/mtdblock4 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=env@mtdblock1:env-redund@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:extend@mtdblock5:recovery@mtdblock6:rootfs_data@mtdblock7:UDISK@mtdblock8 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";
bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=1 lpj=240000 root=/dev/mtdblock4 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=env@mtdblock1:env-redund@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:extend@mtdblock5:recovery@mtdblock6:UDISK@mtdblock7 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";
/* for OTA recovery system:(kernel rootfs extend appImg recoveryImg) */

View File

@@ -762,6 +762,7 @@ CONFIG_MTD_SPI_NOR=y
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
# CONFIG_SPI_CADENCE_QUADSPI is not set
# CONFIG_SPI_FLASH_SR is not set
CONFIG_SPI_FLASH_DEFAULT_LOCK=y
# CONFIG_MTD_UBI is not set
CONFIG_DTC=y
CONFIG_OF=y

View File

@@ -765,6 +765,7 @@ CONFIG_MTD_SPI_NOR=y
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
# CONFIG_SPI_CADENCE_QUADSPI is not set
# CONFIG_SPI_FLASH_SR is not set
# CONFIG_SPI_FLASH_DEFAULT_LOCK is not set
# CONFIG_MTD_UBI is not set
CONFIG_DTC=y
CONFIG_OF=y

View File

@@ -30,6 +30,7 @@ size = 16
; 2、name最大12个字符
; 3、size = 0, 将创建一个无大小的空分区
; 4、为了安全和效率考虑分区大小最好保证为16M字节的整数倍
; 5、size 128 = 64KB 扇区512byte py_nor_flash
;********************************************************************************************************
[partition_start]
@@ -47,13 +48,13 @@ size = 16
[partition]
name = boot
size = 6144
size = 9728
downloadfile = "boot.fex"
user_type = 0x8000
[partition]
name = rootfs
size = 20480
size = 24064
downloadfile = "rootfs.fex"
user_type = 0x8000
@@ -81,10 +82,10 @@ size = 16
; downloadfile = "recoveryimg.fex"
; user_type = 0x8000
[partition]
name = rootfs_data
size = 2048
user_type = 0x8000
;[partition]
; name = rootfs_data
; size = 2048
; user_type = 0x8000