调试指南
11 Jul 2024
Read time: 7 minute(s)
软件日志存放在安装目录下的 log 文件夹,并按日期组织日志文件,如下图:
在每个日期文件夹下,有一个 log 文件、watcher.log 文件以及一些如 1#6#3、1#10 的文件夹
-
main.log 是软件主程序 exe 产生的日志文件,记录用户操作
-
watcher.log 是 USB 设备监控程序 UsbWatcher.ext 产生的日志文件,记录 USB 设备的状态变化
-
1#6#3 是把设备烧写时用到的各级 USB 端口号用“#”按顺序连接起来,这些文件夹下存放每次烧写时产生的日志
烧写日志内容如下:
[debug] [2022-06-23 16:52:35] Burn Image file F:/img files/aic1601_per1_mmc_v1.0.0.img ...
[debug] [2022-06-23 16:52:35] Meta 0 image.updater.spl ...
[debug] [2022-06-23 16:52:35] Blocksize 4 , chunk 1048576 * 0 , rest 43520
[debug] [2022-06-23 16:52:35] Offset: 6656 Size: 43520
[debug] [2022-06-23 16:52:35] Dev 1:10 Send the rest data 43520
[debug] [2022-06-23 16:52:36] Meta 1 image.updater.env ...
[debug] [2022-06-23 16:52:36] Blocksize 4 , chunk 1048576 * 0 , rest 16384
[debug] [2022-06-23 16:52:36] Offset: 51712 Size: 16384
[debug] [2022-06-23 16:52:36] Dev 1:10 Send the rest data 16384
[debug] [2022-06-23 16:52:36] Meta 2 image.updater.uboot ...
[debug] [2022-06-23 16:52:36] Blocksize 4 , chunk 1048576 * 0 , rest 440576
[debug] [2022-06-23 16:52:36] Offset: 68096 Size: 440576
[debug] [2022-06-23 16:52:36] Dev 1:10 Send the rest data 440576
[error] [2022-06-23 16:52:37] Don't check the result of updater.uboot
[debug] [2022-06-23 16:52:37] Meta 3 image.info ...
[debug] [2022-06-23 16:52:37] Wait to reconnect dev 1:10
[debug] [2022-06-23 16:52:37] 16:52:37 Wait for Dev 1:10 ready
[debug] [2022-06-23 16:52:37] Waiting 1:10 over
[debug] [2022-06-23 16:52:38] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] [2022-06-23 16:52:38] Offset: 0 Size: 2048
[debug] [2022-06-23 16:52:38] Dev 1:10 Send the rest data 2048
[debug] [2022-06-23 16:52:38] Meta 4 image.target.spl ...
[debug] [2022-06-23 16:52:38] Blocksize 512 , chunk 1048576 * 0 , rest 43520
[debug] [2022-06-23 16:52:38] Offset: 510464 Size: 43520
[debug] [2022-06-23 16:52:38] Dev 1:10 Send the rest data 43520
[debug] [2022-06-23 16:52:38] Meta 5 image.target.uboot ...
[debug] [2022-06-23 16:52:38] Blocksize 512 , chunk 1048576 * 0 , rest 440364
[debug] [2022-06-23 16:52:38] Offset: 555520 Size: 440364
[debug] [2022-06-23 16:52:38] Dev 1:10 Send the rest data 440832
[debug] [2022-06-23 16:52:39] Meta 6 image.target.env ...
[debug] [2022-06-23 16:52:39] Blocksize 512 , chunk 1048576 * 0 , rest 16384
[debug] [2022-06-23 16:52:39] Offset: 997888 Size: 16384
[debug] [2022-06-23 16:52:39] Dev 1:10 Send the rest data 16384
[debug] [2022-06-23 16:52:39] Meta 7 image.target.kernel ...
[debug] [2022-06-23 16:52:39] Blocksize 512 , chunk 1048576 * 12 , rest 692915
[debug] [2022-06-23 16:52:39] Offset: 1014272 Size: 13275827
[debug] [2022-06-23 16:52:39] Dev 1:10 Send chunk 0 ...
[debug] [2022-06-23 16:52:41] Dev 1:10 Send chunk 1 ...
[debug] [2022-06-23 16:52:43] Dev 1:10 Send chunk 2 ...
[debug] [2022-06-23 16:52:44] Dev 1:10 Send chunk 3 ...
[debug] [2022-06-23 16:52:46] Dev 1:10 Send chunk 4 ...
[debug] [2022-06-23 16:52:48] Dev 1:10 Send chunk 5 ...
[debug] [2022-06-23 16:52:50] Dev 1:10 Send chunk 6 ...
[debug] [2022-06-23 16:52:52] Dev 1:10 Send chunk 7 ...
[debug] [2022-06-23 16:52:54] Dev 1:10 Send chunk 8 ...
[debug] [2022-06-23 16:52:56] Dev 1:10 Send chunk 9 ...
[debug] [2022-06-23 16:52:58] Dev 1:10 Send chunk 10 ...
[debug] [2022-06-23 16:53:00] Dev 1:10 Send chunk 11 ...
[debug] [2022-06-23 16:53:02] Dev 1:10 Send the rest data 693248
[debug] [2022-06-23 16:53:03] Meta 8 image.target.rootfs ...
[debug] [2022-06-23 16:53:03] Blocksize 512 , chunk 1048576 * 24 , rest 0
[debug] [2022-06-23 16:53:03] Offset: 14291456 Size: 25165824
[debug] [2022-06-23 16:53:03] Dev 1:10 Send chunk 0 ...
[debug] [2022-06-23 16:53:05] Dev 1:10 Send chunk 1 ...
[debug] [2022-06-23 16:53:07] Dev 1:10 Send chunk 2 ...
[debug] [2022-06-23 16:53:09] Dev 1:10 Send chunk 3 ...
[debug] [2022-06-23 16:53:11] Dev 1:10 Send chunk 4 ...
[debug] [2022-06-23 16:53:13] Dev 1:10 Send chunk 5 ...
[debug] [2022-06-23 16:53:15] Dev 1:10 Send chunk 6 ...
[debug] [2022-06-23 16:53:17] Dev 1:10 Send chunk 7 ...
[debug] [2022-06-23 16:53:19] Dev 1:10 Send chunk 8 ...
[debug] [2022-06-23 16:53:20] Dev 1:10 Send chunk 9 ...
[debug] [2022-06-23 16:53:22] Dev 1:10 Send chunk 10 ...
[debug] [2022-06-23 16:53:24] Dev 1:10 Send chunk 11 ...
[debug] [2022-06-23 16:53:26] Dev 1:10 Send chunk 12 ...
[debug] [2022-06-23 16:53:28] Dev 1:10 Send chunk 13 ...
[debug] [2022-06-23 16:53:30] Dev 1:10 Send chunk 14 ...
[debug] [2022-06-23 16:53:32] Dev 1:10 Send chunk 15 ...
[debug] [2022-06-23 16:53:34] Dev 1:10 Send chunk 16 ...
[debug] [2022-06-23 16:53:36] Dev 1:10 Send chunk 17 ...
[debug] [2022-06-23 16:53:38] Dev 1:10 Send chunk 18 ...
[debug] [2022-06-23 16:53:40] Dev 1:10 Send chunk 19 ...
[debug] [2022-06-23 16:53:42] Dev 1:10 Send chunk 20 ...
[debug] [2022-06-23 16:53:44] Dev 1:10 Send chunk 21 ...
[debug] [2022-06-23 16:53:46] Dev 1:10 Send chunk 22 ...
[debug] [2022-06-23 16:53:48] Dev 1:10 Send chunk 23 ...
[debug] [2022-06-23 16:53:50] Burn 1:10 successfully!
[debug] [2022-06-23 16:53:50] Reboot the device 1:10 ...