20180115_jeffrey - silenceuncrio/diary GitHub Wiki

0905

ๅนซๅฟ™้€ฒ่กŒ DRAM ็š„ debug

ไธ€้–‹ๅง‹็š„็•ซ้ข image

Load Init Script image

DDR Stress Test

  • Start Freq(MHz) = 520
  • End Freq(MHz) = 520 image

ไธ€้–‹ๅง‹็š„่จŠๆฏ

============================================
        DDR Stress Test (2.6.0) 
        Build: Aug  1 2017, 17:33:59
        NXP Semiconductors.
============================================

============================================
        Chip ID
CHIP ID = i.MX6 UltraLite(0x64)
Internal Revision = TO1.1
============================================

============================================
        Boot Configuration
SRC_SBMR1(0x020d8004) = 0x000008b3
SRC_SBMR2(0x020d801c) = 0x01000001
============================================

ARM Clock set to 528MHz

============================================
        DDR configuration
DDR type is DDR3 
Data width: 16, bank num: 8
Row size: 15, col size: 10
Chip select CSD0 is used 
Density per chip select: 512MB 
============================================

DDR Stress Test ไน‹ๅพŒ็š„่จŠๆฏ

DDR Stress Test Iteration 1
Current Temperature: 31
============================================

DDR Freq: 528 MHz
t0.1: data is addr test
Address of failure(step2): 0x80000000
Data was: 0xe3e2ffff
But pattern  should match address 
Error: failed to run stress test!!!

0940

้–‹ๅง‹ไพ†ๅš M360 ็š„ dual image

m360 ้–‹ๆฉŸ่จŠๆฏ - https://gist.github.com/silenceuncrio/a01f33e56887efd4d76e30a36b3bcd4a

1020

ๅพž linux ็š„่จŠๆฏๅฏไปฅ็œ‹ๅˆฐ

[    3.176000] Creating 5 MTD partitions on "MT7621-NAND":
[    3.188000] 0x000000000000-0x00000ff80000 : "ALL"
[    3.196000] 0x000000000000-0x000000080000 : "Bootloader"
[    3.208000] 0x000000080000-0x000000100000 : "Config"
[    3.220000] 0x000000100000-0x000000140000 : "Factory"
[    3.232000] 0x000000140000-0x00000ff80000 : "firmware"
[    3.244000] 0x0000002be7b5-0x00000ff80000 : "rootfs"

็›ฎๅ‰็š„ uboot env

U-Boot 1.1.3 (Sep 20 2017 - 23:53:31)
MT7621 # printenv
bootcmd=cp.b 0xBFC20000 0x81E00000 0x10000;go 0x81E00000
bootdelay=5
baudrate=57600
ethaddr="00:AA:BB:CC:DD:10"
ethact=Eth0 (10/100-M)
raschksum1=421C8ED2
rootfs1_crc32=00000000
rootfs1_len=0
rootfs1_type=3
bootfile=sysupgrade.bin
autostart=no
filesize=4c0004
fileaddr=80100000
ipaddr=10.10.10.220
serverip=10.10.10.20
Image1Stable=1
BootImage=1
stdin=serial
stdout=serial
stderr=serial

Environment size: 387/4092 bytes
MT7621 #

็œ‹ไธๅ‡บ uboot env ๅ’Œ mtd partitions ๆœ‰ไปปไฝ•้—œ่ฏ

1030

ๅœจ m360 uboot ็š„ source code ๆ‰พๅˆฐ DUAL_IMAGE_SUPPORT ็š„ define

1040

ๅพž http://www.cnblogs.com/sammei/p/3921477.html ็œ‹ไพ†

DUAL_IMAGE_SUPPORT ไผผไนŽๅทฒ็ถ“ๆ™‚ๅšไบ†ๆˆ‘ๅ€‘ๆƒณ่ฆ็š„ dual image ๆฉŸๅˆถ

1515

็›ฎๅ‰้‚„ๅกๅœจ uboot ็š„ tool chain ็•ถไธญ