各位好:
我现在自己编译出updater.sb固件进行烧录,烧录不成功,以下是串口打印的信息,请看是什么回事?
UTP: executing "flash_eraseall /dev/mtd0"
Erasing 128 Kibyte @ 1400000 -- 100 % complete.
UTP: sending Success
UTP: received command '$ flash_eraseall /dev/mtd1'
UTP: sending Busy
UTP: executing "flash_eraseall /dev/mtd1"
Erasing 128 Kibyte @ 6180000 -- 90 % complete.
Skipping bad block at 0x061a0000
Erasing 128 Kibyte @ 6c00000 -- 100 % complete.
UTP: sending Success
UTP: received command 'send'
UTP: sending Success
UTP: received command '$ kobs-ng init $FILE'
UTP: sending Busy
UTP: executing "kobs-ng init $FILE"
Unable to find a matching key dictionary
ERROR: bootstream '/tmp/file.utp' is invalid
ROM Version 1
usage: kobs-ng [COMMAND] [ARGS]
Where [COMMAND] is one of:
dump [-v] [KOBS] ........................ Verify/dump boot structures
-v .................................... Verbose mode
imgverify [-v] [KEY] <file> ............. Verify image validity
-v .................................... Verbose mode
init [-v] [KEY] [KOBS] <file> ........... Initialize boot structure &
install bootstreams
-v .................................... Verbose mode
-n .................................... Dry run (don't commit to flash)
-w .................................... Commit to flash
update [-v] [KEY] [KOBS] [-0|1] <file> .. Update a single bootstream
-v .................................... Verbose mode
-0|1 .................................. Update specified bootstream #
extract [-v] [KEY] [KOBS] [-0|1] <file> . Extract a bootstream from flash
-v .................................... Verbose mode
-0|1 .................................. Extract specified bootstream #
[KOBS] boot structures config options
--chip_0_device_path=<path> .......... Device of boot (default /dev/mtd0)
--chip_1_device_path=<path> .......... The second chip in case of multichip NAND
--search_exponent=<value> ............ NCB field (default 2)
--data_setup_time=<value> ............ NCB field (default 80)
--data_hold_time=<value> ............. NCB field (default 60)
--address_setup_time=<value> ......... NCB field (default 25)
--data_sample_time=<value> ........... NCB field (default 6)
--row_address_size=<value> ........... NCB field (default 3)
--column_address_size=<value> ........ NCB field (default 2)
--read_command_code1=<value> ......... NCB field (default 0x00)
--read_command_code2=<value> ......... NCB field (default 0x30)
--boot_stream_major_version=<value> .. NCB field (default 1)
--boot_stream_minor_version=<value> .. NCB field (default 0)
--boot_stream_sub_version=<value> .... NCB field (default 0)
--ncb_version=<value> ................ NCB field (default 3)
[KEY] key management related options
-d ............................... Use device key (OTP) (not yet supported)
-z ............................... Use key of all zeroes (default)
-k<hexadecimalkey> ............... Use hex key of 16 bytes
UTP: sending Non-success
utp_poll: exit with status 1280
我已经定位到imx-bootlets-src-10.12.01代码中的main.c文件中的
fprintf(stderr, "ERROR: bootstream '%s' is invalid\n", infile);
并且向修改为fprintf(stderr, "ERROR: bootstream '%s' is invalid1111\n", infile);
可是重新编译后,不打印,不知道是怎么回事?麻烦看看是哪里出错了,在线等! |