Skip to content

Instantly share code, notes, and snippets.

@Anime4000
Last active February 19, 2024 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anime4000/3358ee5788586e7bcaab57a5140a57b8 to your computer and use it in GitHub Desktop.
Save Anime4000/3358ee5788586e7bcaab57a5140a57b8 to your computer and use it in GitHub Desktop.
Huawei HG8240
Chip Type is SD5117P
safetycode boot type: spi nand flash
Safetycode build: (V500R019C00 Sep 7 2018 - 09:29:36)
Select startcodeA
startcode start at 0x1c020088
Startcode 2017.07 (V500R019C00 Sep 07 2018 - 09:30:09 +0800 V5)
NAND: SPI_NAND_FLASH_TYPE
flash_type = [0x6]
Nand ID: 0xC2 0x12 0xC2 0x12 0xC2 0x00 0x00 0x00
ECC Match pagesize:2K, oobzie:64, ecctype:8bit
Nand(Hardware): startcode select the uboot to load
the high RAM is :8080103c
startcode uboot boot count:0
use the main slave_paramA area from flash, the RAM data is not OK!!!
Use the AllsytemA to load first
Start in Normal Mode
Use the AllsytemA to load success
U-Boot 2017.07 (V500R019C00 Apr 24 2019 - 06:06:56 +0800 V5)
DRAM: 128 MiB
Boot From NAND flash
Chip Type is SD5117P
NAND: SPI_NAND_FLASH_TYPE
flash_type = [0x6]
Special Nand id table Version 1.23
Nand ID: 0xC2 0x12 0xC2 0x12 0xC2 0x00 0x00 0x00
ECC Match pagesize:2K, oobzie:64, ecctype:8bit
Nand(Hardware): Block:128KB Page:2KB Chip:134217728B OOB:64B ECC:8bit
128 MiB
128 MiB
Using default environment
[UBI-DEBUG]: all in ubi mode
In: serial
Out: serial
Err: serial
Net: phy init failure0
PHY power down !!!
Mbist flag = 0x0, ddr totoal size = 0x8000000
[common/pon_chip_v5/main.c__2053]::CRC:0x3d80a8b4, Magic1:0x5a5a5a5a, Magic2:0xa 5a5a5a5, count:0, CommitedArea:0x0, Active:0x0, RunFlag:0x0
UBI: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=1", size 127 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 1016, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 10, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 85 3105020
ubi0: available PEBs: 5, total reserved PEBs: 1011, PEBs reserved for bad PEB ha ndling: 20
Start from main system(0x0)!
CRC:0x3d80a8b4, Magic1:0x5a5a5a5a, Magic2:0xa5a5a5a5, count:1, CommitedArea:0x0, Active:0x0, RunFlag:0x0
Main area: Cert partition Found
Slave area: Cert partition Found
Main area (A) is OK!
CRC:0x93e83925, Magic1:0x5a5a5a5a, Magic2:0xa5a5a5a5, count:1, CommitedArea:0x0, Active:0x0, RunFlag:0x0
Bootcmd:ubi read 0x80907f6c allsystemA 0x1bc000 0x65000; bootm 0x80907fc0
BootArgs:noalign mem=119M flashsize=0x8000000 console=ttyAMA1,115200 root=/dev/m tdblock6 rootflags=image_off=0x221094 rootfstype=squashfs mtdparts=hinand:0x1000 00(bootcode)raw,0x7f00000(ubilayer_v5) ubi.mtd=1 maxcpus=0 l2_cache=l2x0 coheren t_pool=4M user_debug=0x1f panic=1 skb_priv=192 debug_ll=on
U-boot Start from NORMAL Mode!
## Booting kernel from Legacy Image at 80907fc0 ...
Image Name: Linux-3.10.53-HULK2
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1815084 Bytes = 1.7 MiB
Load Address: 80e08000
Entry Point: 80e08000
Match the dtb file index : 1!
Memory Start: 80900000
XIP Kernel Image ... OK
kernel loaded at 0x80908000, end = 0x80ac0478
Starting kernel ...
Uart base = 0x1010F000
dtb addr = 0x80F633D8
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.53-HULK2 (ci@SZXRTOSCI10000) (gcc version 4.7.1 (SDK V100R005 C00SPC030B050) ) #1 SMP Fri Apr 13 19:54:43 CST 2018
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=18c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Hisilicon A9, model: HISI-CA9
skbuff priv len is 192.
Memory policy: ECC disabled, Data cache writealloc
On node 0 totalpages: 30464
free_area_init_node: node 0, pgdat c04a7340, node_mem_map c04d7800
Normal zone: 298 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 30464 pages, LIFO batch:7
[dts]:cpu type is 5115
PERCPU: Embedded 7 pages/cpu @c0605000 s7488 r8192 d12992 u32768
pcpu-alloc: s7488 r8192 d12992 u32768 alloc=8*4096
pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 30166
Kernel command line: noalign mem=119M flashsize=0x8000000 console=ttyAMA1,115200 root=/dev/mtdblock6 rootflags=image_off=0x221094 rootfstype=squashfs mtdparts=h inand:0x100000(bootcode)raw,0x7f00000(ubilayer_v5) ubi.mtd=1 maxcpus=0 l2_cache= l2x0 coherent_pool=4M user_debug=0x1f panic=1 skb_priv=192 debug_ll=on
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
allocated 243712 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 119MB = 119MB total
Memory: 115196k/115196k available, 6660k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffe00000 - 0xfffe0000 (1920 kB)
vmalloc : 0xc7800000 - 0xff000000 ( 888 MB)
lowmem : 0xc0000000 - 0xc7700000 ( 119 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc04350e0 (4277 kB)
.init : 0xc0436000 - 0xc0462d40 ( 180 kB)
.data : 0xc0464000 - 0xc04ab3c8 ( 285 kB)
.bss : 0xc04ab3c8 - 0xc04d4108 ( 164 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512
sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 42949ms
[DTS][LED]-->WARN:Cannot find led info in dtb,make sure there is no led on board
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
Initializing cgroup subsys net_prio
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc0318498 - 0xc03184cc
Brought up 1 CPUs
SMP: Total of 1 processors activated (1332.01 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
NET: Registered protocol family 16
DMA: preallocated 4096 KiB pool for atomic coherent allocations
SD511x chip id:0x51176100
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c9, AUX_CTRL 0x02430001, Cache size: 262144 B
bio: create slab <bio-0> at 0
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource arm,sp804
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 12288 bytes)
UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 64
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
fuse init (API version 7.22)
msgmni has been set to 224
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
brd: module loaded
mtdoops: mtd device (mtddev=name/number) must be supplied
Spi id table Version 1.22
Special nand id table Version 1.33
Hisilicon Flash Memory Controller V100 Device Driver, Version 1.0
flash_type = 0x6
SPI_NAND_FLASH_TYPE
Nand ID: 0xC2 0x12 0xC2 0x12 0xC2 0x00 0x00 0x00
ECC Match pagesize:2K, oobzie:64, ecctype:8bit
Nand(Hardware): Block:128KB Page:2KB Chip:128MB OOB:64B ECC:8bit
NAND device: Manufacturer ID: 0xc2, Chip ID: 0x12 (Macronix MX35LF1GE4AB), 128Mi B, page size: 2048, OOB size: 64
NAND_ECC_NONE selected by board driver. This is not recommended!
raw_mtd: treat mtd0 as raw mtd.
2 cmdlinepart partitions found on MTD device hinand
Creating 2 MTD partitions on "hinand":
0x000000000000-0x000000100000 : "bootcode"
0x000000100000-0x000008000000 : "ubilayer_v5"
softdog: Software Watchdog Timer: 0.08 initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
TCP: cubic registered
NET: Registered protocol family 17
ThumbEE CPU extension supported.
mapp kbox ddrram_address=0, ddrram_size=0 fail[WARNNING]:Kbo x device descriptor struct kbox_dev_des Intialization Failed
kbox: init ddrram fail ret=-99
kbox: load OK
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "ubilayer_v5", size 127 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 1016, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 10, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 3/1, WL threshold: 512, image sequence number: 8531 05020
UBI: available PEBs: 5, total reserved PEBs: 1011, PEBs reserved for bad PEB han dling: 20
UBI: background thread "ubi_bgt0d" started, PID 306
Warning: unable to open an initial console.
squashfs_cache_init: sqcachesize=8.
VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
Freeing unused kernel memory: 176K (c0436000 - c0462000)
******** Total Boot time: 1015 ms, uncompress initrd cost 0 ms ********
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
1010e000.uart: ttyAMA0 at MMIO 0x1010e000 (irq = 77) is a 16550A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment