嵌入式爱好者

查看: 34752|回复: 6

[Linux] OK3399使用OTG升级变砖

[复制链接]

4

主题

5

帖子

35

积分

i.MX8MP通行证RK3588通行证RK3399通行证

扫一扫,手机访问本帖
发表于 2021-6-30 12:46:18 | 显示全部楼层 |阅读模式
使用OTG升级烧录update.img过程中,USB线松了导致升级失败,重新插入后再试,发现AndroidTool提示的是“发现MASKROM”而不是“发现Loader”,并且在第一步“下载Boot”就会失败,串口此时也无效了。

改用TF卡尝试烧录后,串口有输出,但是最后是提示“WARNING:Please contact Forlinx”:

  1. DDR Version 1.23 20190709
  2. In
  3. Channel 0: LPDDR3, 800MHz
  4. CS = 0
  5. MR0=0x58
  6. MR1=0x58
  7. MR2=0x58
  8. MR3=0x58
  9. MR4=0x2
  10. MR5=0x1
  11. MR6=0x5
  12. MR7=0x0
  13. MR8=0x1F
  14. MR9=0x1F
  15. MR10=0x1F
  16. MR11=0x1F
  17. MR12=0x1F
  18. MR13=0x1F
  19. MR14=0x1F
  20. MR15=0x1F
  21. MR16=0x1F
  22. Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=32 Size=1024MB
  23. Channel 1: LPDDR3, 800MHz
  24. CS = 0
  25. MR0=0x58
  26. MR1=0x58
  27. MR2=0x58
  28. MR3=0x58
  29. MR4=0x2
  30. MR5=0x1
  31. MR6=0x5
  32. MR7=0x0
  33. MR8=0x1F
  34. MR9=0x1F
  35. MR10=0x1F
  36. MR11=0x1F
  37. MR12=0x1F
  38. MR13=0x1F
  39. MR14=0x1F
  40. MR15=0x1F
  41. MR16=0x1F
  42. Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=32 Size=1024MB
  43. 256B stride
  44. ch 0 ddrconfig = 0x101, ddrsize = 0x20
  45. ch 1 ddrconfig = 0x101, ddrsize = 0x20
  46. pmugrf_os_reg[2] = 0x3280D280, stride = 0x9
  47. OUT
  48. Boot1: 2019-03-14, version: 1.19
  49. CPUId = 0x0
  50. ChipType = 0x10, 245
  51. SdmmcInit=2 0
  52. BootCapSize=100000
  53. UserCapSize=15028MB
  54. FwPartOffset=2000 , 100000
  55. mmc0:cmd5,20
  56. SdmmcInit=0 0
  57. BootCapSize=0
  58. UserCapSize=30436MB
  59. FwPartOffset=2000 , 0
  60. StorageInit ok = 79443
  61. SecureMode = 0
  62. SecureInit read PBA: 0x4
  63. SecureInit read PBA: 0x404
  64. SecureInit read PBA: 0x804
  65. SecureInit read PBA: 0xc04
  66. SecureInit read PBA: 0x1004
  67. SecureInit read PBA: 0x1404
  68. SecureInit read PBA: 0x1804
  69. SecureInit read PBA: 0x1c04
  70. SecureInit ret = 0, SecureMode = 0
  71. atags_set_bootdev: ret:(0)
  72. GPT 0x3380ec0 signature is wrong
  73. recovery gpt...
  74. GPT part:  0, name: Main Data Partition, start:0x800, size:0x3b7138f
  75. GPT part:  1, name:        UEFI:NTFS, start:0x3b71b8f, size:0x400
  76. recovery gpt success!
  77. no find partition:uboot.
  78. LoadTrust Addr:0x4000
  79. No find bl30.bin
  80. Load uboot, ReadLba = 2000
  81. hdr 0000000003380880 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

  82. Load OK, addr=0x200000, size=0xdace0
  83. RunBL31 0x10000
  84. NOTICE:  BL31: v1.3(debug):22b599a
  85. NOTICE:  BL31: Built : 11:03:32, Jul 10 2019
  86. NOTICE:  BL31: Rockchip release version: v1.1
  87. INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
  88. INFO:    Using opteed sec cpu_context!
  89. INFO:    boot cpu mask: 0
  90. INFO:    plat_rockchip_pmu_init(1181): pd status 3e
  91. INFO:    BL31: Initializing runtime services
  92. INFO:    BL31: Initializing BL32
  93. INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-223-g45f58ab9 #165 Thu Aug 15 00:59:09 UTC 2019 aarch64)

  94. INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2

  95. INF [0x0] TEE-CORE:init_teecore:83: teecore inits done
  96. INFO:    BL31: Preparing for EL3 exit to normal world
  97. INFO:    Entry point address = 0x200000
  98. INFO:    SPSR = 0x3c9


  99. U-Boot 2017.09 (Mar 10 2021 - 02:48:14 +0000)

  100. Model: Forlinx OK3399 Evaluation Board
  101. PreSerial: 2
  102. DRAM:  2 GiB
  103. Sysmem: init
  104. Relocation Offset is: 7dbe9000
  105. Using default environment

  106. no mmc device at slot 1
  107. Found IDB in SDcard
  108. dwmmc@fe320000: 1 (SD), sdhci@fe330000: 0
  109. Bootdev(atags): mmc 1
  110. MMC1: Legacy, 50Mhz
  111. PartType: EFI
  112. rockchip_get_boot_mode: Could not found misc partition
  113. boot mode: None
  114. init_resource_list: failed to get boot part, ret=-1
  115. init_resource_list: failed to get resource part, ret=-1
  116. Read kernel dtb failed, ret=-19
  117. RKPARM: Invalid parameter part table
  118. *** Warning - bad CRC, using default environment

  119. In:    serial
  120. Out:   serial
  121. Err:   serial
  122. Model: Forlinx OK3399 Evaluation Board
  123. board_modify_fdt
  124. Writing to MMC(0)... done
  125. display device not found
  126. rockchip_set_serialno: could not find efuse device
  127. switch to partitions #0, OK
  128. mmc1 is current device
  129. Found IDB in SDcard
  130. Bootdev(atags): mmc 1
  131. CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  132. CLK: (uboot. armb: enter 24000 KHz, init 24000 KHz, kernel 0N/A)
  133.   aplll 816000 KHz
  134.   apllb 24000 KHz
  135.   dpll 800000 KHz
  136.   cpll 24000 KHz
  137.   gpll 800000 KHz
  138.   npll 600000 KHz
  139.   vpll 24000 KHz
  140.   aclk_perihp 133333 KHz
  141.   hclk_perihp 66666 KHz
  142.   pclk_perihp 33333 KHz
  143.   aclk_perilp0 266666 KHz
  144.   hclk_perilp0 88888 KHz
  145.   pclk_perilp0 44444 KHz
  146.   hclk_perilp1 100000 KHz
  147.   pclk_perilp1 50000 KHz

  148. WARNING:Please contact Forlinx

  149. WARNING:Please contact Forlinx

  150. WARNING:Please contact Forlinx

  151. WARNING:Please contact Forlinx

  152. WARNING:Please contact Forlinx

  153. WARNING:Please contact Forlinx

  154. WARNING:Please contact Forlinx

  155. WARNING:Please contact Forlinx

  156. WARNING:Please contact Forlinx

  157. WARNING:Please contact Forlinx

  158. WARNING:Please contact Forlinx

  159. WARNING:Please contact Forlinx

  160. WARNING:Please contact Forlinx

  161. WARNING:Please contact Forlinx

  162. WARNING:Please contact Forlinx
复制代码
回复

使用道具 举报

4

主题

5

帖子

35

积分

i.MX8MP通行证RK3588通行证RK3399通行证

 楼主| 发表于 2021-6-30 12:47:33 | 显示全部楼层
系统是win10,请问接下来该如何处理
点评回复 支持 反对

使用道具 举报

0

主题

123

帖子

214

积分

发表于 2021-7-2 08:32:02 | 显示全部楼层
加密信息丢失,需要返厂重新刷加密信息
点评回复 支持 反对

使用道具 举报

0

主题

89

帖子

282

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证i.MX8MP通行证RK3568通行证RK3399通行证LS1028A通行证LS1012A通行证LS1043A\46A通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证FCU3001通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX RT通行证XX18通行证

发表于 2021-7-15 08:48:26 | 显示全部楼层
MASKROM设备是从安卓系统烧录其他系统时,没有擦除flash第一次升级失败而出现的,我都是再点一次升级就没问题了,正常烧写,然后就编程loader设备了
点评回复 支持 反对

使用道具 举报

0

主题

1

帖子

16

积分

发表于 2021-9-8 17:21:20 | 显示全部楼层
你好,请问你这个问题解决了吗,我也出现了相同的问题
点评回复 支持 反对

使用道具 举报

0

主题

89

帖子

282

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证i.MX8MP通行证RK3568通行证RK3399通行证LS1028A通行证LS1012A通行证LS1043A\46A通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证FCU3001通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX RT通行证XX18通行证

发表于 2021-9-11 10:51:21 | 显示全部楼层
这个板子发回我司后,没有重新刷加密信息,直接操作OTG烧写尝试,想要复现问题,但是直接OTG烧写成功,这种情况按手册操作OTG烧写即可。
点评回复 支持 反对

使用道具 举报

0

主题

89

帖子

282

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证i.MX8MP通行证RK3568通行证RK3399通行证LS1028A通行证LS1012A通行证LS1043A\46A通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证FCU3001通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX RT通行证XX18通行证

发表于 2021-10-12 16:54:41 | 显示全部楼层
现发现不同电脑的USB口驱动能力不同,也会导致如帖问题,出现该问题也可尝试更换USB口重新烧写验证。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 03:50

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表