OTA升级流程分析

Sent SIGKILL to all processesore.c,1184,main_loop–
Requesting system reboot
[ 33.537200] ATC260X_GAUGE: [atc260x_gauge_shutdown]soc:100, batv:4300mV
[ 33.678512] Restarting system.
[ 33.684122] _atc2603c_9a_pm_do_reboot() : reboot…………………..
ver1.1-40e5d4b (build Apr 26 2018 14:19:18)
first boot: 0
ATC2603c!
find HOSC
_atc2603c_probe 164: 0xff: ca
PMU:type 1 ver 1
0x62:0x0
PMU:PMU_SYS_CTL0:0x204b,CTL1:0xf,CTL3:0x4080
core_pll 900M
init ddr, mode=1
vdd_ddr: val=0x90ca, ver=1
DRAM:Init End:mode=1,clk=240MHz,type=0x0,width=0,cbc=0x12,iod=0x252f,drv0=0xc,drv1=0x2,wrodt=2,rdodt=0@20170915_T…OK.
====ddr_test 64 MB ===
==ddr_test ok==
dev_pll 654M
load uboot, boot num =0
load: lba=0, sec=1, type=1
load uboot addr=0x1ffffc0, sector=1220
load: lba=0, sec=1220, type=1
load app.bin
load: lba=62, sec=318, type=0
secmbrc consume 116 ms
app ,bootdev = 0x0,40718583
serialno=d3ae3e78,c5f0c7a4

U-Boot 2015.07 (Jul 20 2018 - 18:44:45 +0800)ATS3605 NAND ZXF86

DRAM: DDR cap 64 MB
64 MiB
Relocation Offset is: 01f2c000
I2C2 mode_cmd=0
Set dcdc1 1150000 uV
Set dcdc3 3100000 uV
NAND: c&d_ftl_Jan 24 2018_19:29:01 PageSize=2K NandFlash
(CMU_NANDPLL=0x0000010a, CMU_NANDCCLK=0x00000001
SLCNandIdTable_GetNandInfo 393
SLCNandIdTable_GetNandInfo 405
__initNandDma, NAND use DMA no:32
PDL_NandOpBaseInit 494
l_dvfslevel=0x7021: (PAD_CTL=0x00000002, PAD_DRV2=0x00000200, PAD_PULLCTL2=0x000007e1, MFP_CTL3=0x80000020
(CMU_NANDPLL=0x0000010a, CMU_NANDCCLK=0x00000001
(NAND_CTL=0x00000000, NAND_DMA_ADDR=0x00000000, NAND_DMA_CTL=0x20000000
__CheckChipIdAndTable 344: nandId[0]=1590da98, nandId[1]=81676
SLCNandIdTable_GetNandInfo 393
SLCNandIdTable_GetNandInfo 405
bootBlockNum=26
afi config: ce=0x0, clk=0, paddrv=0x3, extraEccMode=0, noBatteryMode=0, downGradeMode=0, BadBlockRunRec=0, nandReserved=0x00000000
PDL_ECCUnitInfoBrom =
{
.randomizer = 2
.eccBits = 24
.uDataSize = 4
.paritySize = 42
.eccUnitSize = 1024
.pageSize = 2048
.spareSize = 128
}
PDL_ECCUnitInfoOrg =
{
.randomizer = 2
.eccBits = 24
.uDataSize = 8
.paritySize = 42
.eccUnitSize = 1024
.pageSize = 2048
.spareSize = 128
}
PDL_ECCUnitInfoExtra =
{
.randomizer = 2
.eccBits = 60
.uDataSize = 8
.paritySize = 106
.eccUnitSize = 1024
.pageSize = 1024
.spareSize = 1152
}
PDL_ECCUnitInfoForSystem is PDL_ECCUnitInfoOrg
nand_id_boot 0x1590da98, 0x00081676
i 1, nand_id 0x00000000, 0x00000000
i 2, nand_id 0x00000000, 0x00000000
i 3, nand_id 0x00000000, 0x00000000
ChipCnt = 1, ChipBitMap 0x0
CMU_NANDPLL=116, CMU_NANDCCLK=1
PDL_ConfigInfo.PadDrvLevel=0x00000003
__NandInit 793
l_dvfslevel=0x7021: (PAD_CTL=0x00000002, PAD_DRV2=0x00000200, PAD_PULLCTL2=0x000007e1, MFP_CTL3=0x80000020
(CMU_NANDPLL=0x00000116, CMU_NANDCCLK=0x00000001
(NAND_CTL=0x00000000, NAND_DMA_ADDR=0x00000000, NAND_DMA_CTL=0x20000000
readBasicinfoBlock(26)
nandcore error: _BasicInfoReadBack 312: basic block version not suitable!
readBasicinfoBlock(27)
nandcore error: _BasicInfoReadBack 312: basic block version not suitable!
nandcore error: _BasicInfoReadBack: first good block 28 is no basic info block!
logicalStartPhyBlk=26
multiplaneStartBlk=26 PlanePerDie=1
mapMultiplaneBlk1=28
mapMultiplaneBlk2=29
programedPageNum1=5
programedPageNum2=10
find valid log page from mapBlock 28!
find valid log page from mapBlock 29!
logSeq1=2, logSeq2=3
__reloadVirtualMapTableInDie success!
Bad Block List:
die0: 0(2) 1(2) 2(2) 3(2) 4(2) 5(2) 6(2) 7(2) 8(2) 9(2) 10(2) 11(2) 12(2) 13(2) 14(2) 15(2) 16(2) 17(2) 18(2) 19(2) 20(2) 21(2) 22(2) 23(2) 24(2) 25(2) 26(1) 27(1) 1439(1) 1536(1) 1537(1) 1790(1)
Total block 2048,bad block 32.
disk size 245 MiB
MMC: MMC: source clk CMU_DEVPLL:654000000Hz
MMC: source clk CMU_DEVPLL:654000000Hz
host0 scan ok
mmc0: 0 (SD)
Using default environment

reading boot_logo.bmp.gz
dispaly panel backlight on
In: uart@b0162000
Out: serial
Err: serial
read OTA_FLAG val=0x31
====check_ota_package =0=====
file size = 0x2971800
reading update.zip
FAT: Misaligned buffer address (03fbb060)
head len size = 0x800
ota uppack: image=uImage, env_addr=kernel_addr_r
ota: env=kernel_addr_r, addr=0x7fc0
reading update.zip
file uImage size = 0x393e00
ota uppack: image=kernel.dtb, env_addr=fdt_addr_r
ota: env=fdt_addr_r, addr=0xe00000
reading update.zip
file kernel.dtb size = 0x6800
ota uppack: image=ota_initrafms.img, env_addr=ramdisk_addr_r
ota: env=ramdisk_addr_r, addr=0x10fffc0
reading update.zip
file ota_initrafms.img size = 0x63e400
ota package is ok, run ramboot
Hit any key to stop autoboot: 0

Booting kernel from Legacy Image at 00007fc0 …

Image Name: Linux-3.10.52
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3750912 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum … OK

Loading init Ramdisk from Legacy Image at 010fffc0 …

Image Name: RAMFS
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 6546211 Bytes = 6.2 MiB
Load Address: 02000000
Entry Point: 02000000
Verifying Checksum … OK

Flattened Device Tree blob at 00e00000

Booting using the fdt blob at 0xe00000
XIP Kernel Image … OK
reserving fdt memory region: addr=3800000 size=800000
Using Device Tree in place at 00e00000, end 00e0963f
can not find SN, ret = -1
read sn faild:-1,
bootargs console=ttyS1,115200 earlyprintk no_console_suspend loglevel=7 clk_ignore_unused androidboot.serialno=d3ae3e7800000000
freeze owl NAND..

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.52 (soft6@zxfserver) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49389) ) #92 SMP PREEMPT Sat Jul 21 11:50:49 CST 2018
[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: ACTIONS OWL SoC (Flattened Device Tree), model: ats3605
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Malformed early option ‘androidboot.serialno’
[ 0.000000] Malformed early option ‘dvfslevel’
[ 0.000000] Malformed early option ‘bootdev’
[ 0.000000] cma: CMA: reserved 4 MiB at 03400000
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] owl_smp_init()
[ 0.000000] owl_smp_init_cpus(): ncores 4
[ 0.000000] owl_init_early ()
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c07fa000 s9344 r8192 d15232 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS1,115200 earlyprintk no_console_suspend loglevel=7 clk_ignore_unused androidboot.serialno=d3ae3e7800000000 dvfslevel=0x40718583 bootdev=nand
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 38452k/38452k available, 27084k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc06aea80 (6811 kB)
[ 0.000000] .init : 0xc06af000 - 0xc06e1480 ( 202 kB)
[ 0.000000] .data : 0xc06e2000 - 0xc0727f20 ( 280 kB)
[ 0.000000] .bss : 0xc0727f20 - 0xc076bc64 ( 272 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:223
[ 0.000000] [OWL] init sirqs, nr_sirq 3
[ 0.000000] owl_time_init()
[ 0.000000] [OWL] ats3605 clock initialization
[ 0.000000] [ats3605] timer initialization
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[ 0.000000] Console: colour dummy device 80x30
[ 0.012970] Calibrating delay loop… 449.74 BogoMIPS (lpj=2248704)
[ 0.071014] pid_max: default: 32768 minimum: 301
[ 0.075970] Mount-cache hash table entries: 512
[ 0.088191] Initializing cgroup subsys freezer
[ 0.092723] Initializing cgroup subsys net_cls
[ 0.097162] Initializing cgroup subsys perf_event
[ 0.102012] CPU: Testing write buffer coherency: ok
[ 0.107277] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.112791] owl_smp_prepare_cpus(max_cpus:4)
[ 0.117263] Setting up static identity map for 0xc04eccf0 - 0xc04ecd48
[ 0.123943] owl_init_cache()
[ 0.126978] L310 cache controller enabled
[ 0.130888] l2x0: 16 ways, CACHE_ID 0x410000c9, AUX_CTRL 0x3e030000, Cache size: 262144 B
[ 0.193045] owl_boot_secondary cpu:1
[ 0.196436] po 1
[ 0.199018] wakeup 1
[ 0.201163] CPU1: Booted secondary processor
[ 0.201167] pr:-1
[ 0.512805] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.533040] owl_boot_secondary cpu:2
[ 0.542148] po 2
[ 0.544765] wakeup 2
[ 0.546993] CPU2: Booted secondary processor
[ 0.546997] pr:-1
[ 0.642830] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.663061] owl_boot_secondary cpu:3
[ 0.672169] po 3
[ 0.674786] wakeup 3
[ 0.676928] CPU3: Booted secondary processor
[ 0.676932] pr:-1
[ 0.782830] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.782955] Brought up 4 CPUs
[ 0.791543] SMP: Total of 4 processors activated (1797.73 BogoMIPS).
[ 0.797966] CPU: All CPU(s) started in SVC mode.
[ 0.803704] devtmpfs: initialized
[ 0.810046] pinctrl core: initialized pinctrl subsystem
[ 0.815674] regulator-dummy: no parameters
[ 0.820141] NET: Registered protocol family 16
[ 0.824821] requeue_bios init work
[ 0.828378] scan_work init work
[ 0.834127] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.841430] owl_machine_init()
[ 0.845524] GPIOA initialization
[ 0.848967] GPIOB initialization
[ 0.852398] GPIOC initialization
[ 0.855866] GPIOD initialization
[ 0.862020] hw-breakpoint: found 2 (+1 reserved

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值