sunxi_nand_test
Подсистема sunxi_nand_test (sunxi_nand_test sub-system)
Help:
=> help sunxi_nand_test
sunxi_nand_test - sunxi_nand_test sub systerm
Usage:
sunxi_nand_test
<obtain nand chip inof>: [parm1:nand_info]
For example:
want to obtain nand chip info,
usage:sunxi_nand_test nand_info
<dump continuous phy pages>: [parm1:dump_phy_pages] [parm2:chip] [parm3:block]
[parm4:start_page] [parm5:end_page] [parm6:pmem] [parm7:printf_flag]
For example:
want to dump chip 0 block 1 's page 2 to page 5 data to 0x45000000 and don't display in terminal,
usage:sunxi_nand_test dump_phy_pages 0 1 2 5 0x45000000 no
<dump continuous blocks>: [parm1:dump_phy_blocks] [parm2:chip num] [parm3:start block num]
[parm4:end block num] [parm5:pmem] [parm6:printf_flag]
For example:
want to dump chip 0 block 1 to block 5 data to 0x45000000 and don't display in terminal
usage:sunxi_nand_test dump_phy_blocks 0 1 5 0x45000000 no
<dump logic data>: [parm1:dump_logic_data] [parm2:start_sector] [parm3:end_sector]
[parm4:pmem] [parm5:printf_flag]
For example:
want to dump sector 2 to 4 data to 0x45000000 and don't display in terminal,
usage:sunxi_nand_test dump_logic_data 2 4 0x45000000 no
<dump history data>: [parm1:dump_history_data] [parm2:start_sector] [parm3:end_sector]
For example:want to dump sector 200' history data,
usage:sunxi_nand_test dump_history_data 200 300
<dump read retry table>: [parm1:dump_read_retry_table]
For example:
want to dump read retry table,
usage:sunxi_nand_test dump_read_retry_table
<dump page table>: [parm1:dump_page_table]
For example:
want to dump page table,
usage:sunxi_nand_test dump_page_table
<dump bad table>: [parm1:dump_bad_table]
For example:
want to dump bad block table,usage:sunxi_nand_test dump_bad_table
<dump boot0>: [parm1:dump_boot0]
For example:
want to dump boot0 to 0x45000000 and don't display in terminal,
usage:sunxi_nand_test dump_boot0 0x45000000 no
<read write performance>: [parm1:performance]
For example:
want to test performance,
usage:sunxi_nand_test performance
<check read-write function>: [parm1:check read-write]
For example:want to check read-write function is normal,
usage:sunxi_nand_test read-write
=>
sunxi_nand_test obtain nand chip inof: [parm1:nand_info]
Примеры
sunxi_nand_test nand_info - получить информацию о чипе nand
sunxi_nand_test dump_phy_pages 0 1 2 5 0x45000000 no - сбросить страницу 2 блока 1 микросхемы 0 на данные страницы 5 до 0x45000000 и не отображать в терминале
sunxi_nand_test dump_phy_blocks 0 1 5 0x45000000 no - сбросить данные блока 1 микросхемы 0 в блок 5 до 0x45000000 и не отображать в терминале
sunxi_nand_test dump_logic_data 2 4 0x45000000 no - сбросить данные секторов 2-4 до 0x45000000 и не отображать в терминале
sunxi_nand_test dump_history_data 200 300 - выгрузить данные истории сектора 200
sunxi_nand_test dump_read_retry_table - сбросить таблицу повторов чтения
sunxi_nand_test dump_page_table - сбросить таблицу страниц
sunxi_nand_test dump_bad_table - сбросить таблицу плохих блоков
sunxi_nand_test dump_boot0 0x45000000 no - сбросить boot0 до 0x45000000 и не отображать в терминале
sunxi_nand_test performance - проверить работоспособность
sunxi_nand_test read-write - проверить, работает ли функция чтения-записи
Дополнение
Для ТВ-бокса:
=> sunxi_nand_test nand_info
------------------------- nand info--------
------------------------- physic layer ----
- id : 0 0 0 0 0 0 0 0 -
- total chips : 0
- total dies : 0
- total blocks : 0
- pages_per_block : 0
- sectors_per_page : 0
- support_multi_program : no
------------------------- logical layer ----
- super_chip_cnt : 0
- support two plane : no
- support v interleave : no
- support dual channel : no
- blk_cnt_per_super_chip : 0
- sector_cnt_per_super_page : 0
- page_cnt_per_super_blk : 0
- page_offset_for_next_super_blk: 0
- spare_bytes : 0
- multi plane block address offset: 0
Команда проверки nand-памяти приводит к перезагрузке !
=> sunxi_nand_test performance
performance start ...nand_secure_storage_first_build gs.blockA:0
nand_secure_storage_first_build gs.blockB:0
nand_secure_storage_first_build gs.blockA_init:0
nand_secure_storage_first_build gs.blockB_init:0
[3580.790]NAND_Malloc size=0!
[3580.792]malloc main buffer fail in nand secure storage write init
data abort
pc : [<9fed58fe>] lr : [<9ff01691>]
reloc pc : [<4a0108fe>] lr : [<4a03c691>]
sp : 9be7de50 ip : 9be7dea8 fp : 00000000
r10: 00000000 r9 : 9bea4e60 r8 : 9be7de68
r7 : 00000000 r6 : 00000000 r5 : 00000000 r4 : ffffffff
r3 : 00000800 r2 : 00000000 r1 : 00000000 r0 : ffffffff
Flags: NzCv IRQs on FIQs off Mode SVC_32
Resetting CPU ...