Skip to content

Instantly share code, notes, and snippets.

@luftreich
Created July 18, 2014 04:41
Show Gist options
  • Save luftreich/0737db6d278578d9046f to your computer and use it in GitHub Desktop.
Save luftreich/0737db6d278578d9046f to your computer and use it in GitHub Desktop.
验证 update u-boot via OTA, 手动change 默认u-boot
DDR clock is 444MHz with Low Power & 1T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
DX2DLLCR:40000000
DX2DQTR:ffffffff
DX2DQSTR:3db05001
DX3DLLCR:40000000
DX3DQTR:ffffffff
DX3DQSTR:3db05001
Stage 00 Result 00000000
Stage 01 Result 00000000
Stage 02 Result 00000000
Stage 03 Result 00000000
HHH
Boot From SPI
0x12345678
Boot from internal device 1st SPI
System Started
U-boot-00000-g83e5cff-dirty(m6_mbx_th10@jb-mr1-timehold-new) (Jul 18 2014 - 09:45:44)
aml_rtc_init
aml rtc init first time!
Clear HDMI KSV RAM
DRAM: 1 GiB
relocation Offset is: 105e4000
NAND: Amlogic nand flash uboot driver, Version U1.06.020 (c) 2010 Amlogic Inc.
SPI BOOT : continue i 0
No NAND device found!!!
NAND device id: 2c 64 44 4b a9 0
NAND device: Manufacturer ID: 0x2c, Chip ID: 0x2c (Micron B revision NAND 8GiB MT29F64G08CBABA)
1 NAND chips detected
#####aml_nand_init, with RB pins and chip->chip_delay:20
bus_cycle=5, bus_timing=6, start_cycle=6, end_cycle=7,system=5.0ns
oob size is not enough for selected bch mode: NAND_BCH60_1K_MODE force bch to mode: NAND_BCH40_1K_MODE
aml_chip->oob_fill_cnt =168,aml_chip->oob_size =744,bch_bytes =70
multi plane error for selected plane mode: NAND_TWO_PLANE_MODE force plane to : NAND_SINGLE_PLANE_MODE
aml_nand_init:oobmul =1,chip->ecc.layout->oobfree[0].length=16,aml_chip->oob_size=744
aml nand env valid addr: 8000 ,status =0
key start_blk=4088,end_blk=4095,aml_nand_key_init:684
aml nand key valid addr: 1ff000000
aml nand key valid addr: 1ff200000
aml nand key valid addr: 1ff400000
aml nand key valid addr: 1ff600000
CONFIG_KEYSIZE=0x10000; KEYSIZE=0xfffc; bbt=0x1330; default_keyironment_size=0xeccc
i=0,register --- nand_key
NAND bbt detect Bad block at 0
NAND bbt detect factory Bad block at b400000
NAND bbt detect factory Bad block at b600000
NAND bbt detect factory Bad block at dca00000
NAND bbt detect factory Bad block at e2a00000
NAND bbt detect factory Bad block at f5800000
NAND bbt detect factory Bad block at f7800000
Creating 8 MTD partitions on "nandnormal":
0x000000800000-0x000001000000 : "logo"
0x000001000000-0x000001800000 : "aml_logo"
0x000001800000-0x000002000000 : "recovery"
0x000002000000-0x000002800000 : "boot"
0x000002800000-0x000042c00000 : "system"
NAND bbt detect factory Bad block at b400000
NAND bbt detect factory Bad block at b600000
0x000042c00000-0x000062c00000 : "cache"
0x000062c00000-0x000072c00000 : "backup"
0x000072c00000-0x0001ff000000 : "data"
NAND bbt detect factory Bad block at dca00000
NAND bbt detect factory Bad block at e2a00000
NAND bbt detect factory Bad block at f5800000
NAND bbt detect factory Bad block at f7800000
nandnormal initialized ok
detect mx chiprevD :1 and nand_type: 40
nand_curr_device =1
MMC: SDIO Port B: 0, SDIO Port C: 1
SPI BOOT,spi_env_relocate_spec : env_relocate_spec 53
SF: Detected MX25L3205D with page size 256, total 4 MiB
SPI NOR Flash have write protect!!!
In: serial
Out: serial
Err: serial
aml_i2c_init
register usb cfg[0] = 9fe82c6c
Net: Meson_Ethernet
init suspend firmware done. (ret:0)
detect_storage
nand exist return 0
setenv storage nand
reboot_mode(0xc8100004)=0x0
reboot_mode=charging
SARADC open channel(4).
SARADC open channel(4).
ir init
switch_boot_mode
suspend_status_current2=0
Unknown command 'suspend' - try 'help'
efuse version is not selected.
Hit any key to stop autoboot: 1 ### 0
m6_mbx_th10# # ## #fatload mmc 0 # ## ## ## ## ## ## ## ## ## ## ## ## ## #help fatload
fatload - load binary file from a dos filesystem
Usage:
fatload <interface> <dev[:part]> <addr> <filename> [bytes]
- load binary file 'filename' from 'dev' on 'interface'
to address 'addr' from dos filesystem
m6_mbx_th10#fatload mmc 0 82000000 u-boot.bin_out
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 0 **
** Unable to use mmc 0:1 for fatload **
m6_mbx_th10#mmcinfo
sdio_detect return 1
Device: SDIO Port B
Manufacturer ID: 0
OEM: 0
Name: #Tran Speed: 40000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3965190144
Boot Part Size: 0
Bus Width: 4-bit
m6_mbx_th10#fatload mmc 0- # ## # 82000000 u-boot.bin.# #_out
reading u-boot.bin_out
360464 bytes read
m6_mbx_th10#sf probe 2
SF: Detected MX25L3205D with page size 256, total 4 MiB
SPI NOR Flash have write protect!!!
4096 KiB MX25L3205D at 0:2 is now current device
m6_mbx_th10#sf p# #ea# ## #erase 0 80000
m6_mbx_th10#sf wei# ## #rite # ## ## ## ## ## ## ## ## #help sf
sf - SPI flash sub-system
Usage:
sf probe [bus:]cs [hz] [mode] - init flash device on given SPI bus
and chip select
sf read addr offset len - read `len' bytes starting at
`offset' to memory at `addr'
sf write addr offset len - write `len' bytes from memory
at `addr' to flash at `offset'
sf erase offset len - erase `len' bytes from `offset'
m6_mbx_th10#sf write 82000000 0 80000
m6_mbx_th10#reset
resetting ...
EEEE I3000000032940xf1001103##03;77500EEEE I400000004294_M6_BL1_3431####>2534313
TE : 74534
DDR clock is 516MHz with Low Power & 1T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
DX2DLLCR:40000000
DX2DQTR:ffffffff
DX2DQSTR:3db05001
DX3DLLCR:40000000
DX3DQTR:ffffffff
DX3DQSTR:3db05001
Stage 00 Result 00000000
Stage 01 Result 00000000
Stage 02 Result 00000000
Stage 03 Result 00000000
HHH
Boot From SPI
0x12345678
Boot from internal device 1st SPI
System Started
U-boot-00000-g38a523d-dirty(m6_mbx_th10@jb-mr1-timehold-new) (Apr 09 2014 - 11:44:13)
aml_rtc_init
aml rtc init first time!
Clear HDMI KSV RAM
DRAM: 1 GiB
relocation Offset is: 105e8000
NAND: Amlogic nand flash uboot driver, Version U1.06.017 (c) 2010 Amlogic Inc.
SPI BOOT : continue i 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment