Open ChalesYu opened 2 years ago
@ChalesYu - booting android devices is a quite different story than booting chromeos devices, which have a much more friendly bootloader ... it should be possible to build a boot.img via mkbootimg i think ... best would be to check in the postmarketos community as they are quite experienced in porting android devices to mainline ... in case you make any progress it would be nice to keep me up to date here
good luck - hexdump
Thanks @hexdump0815 , I have seen the wiki of postmarketos, the mediatek SoC have rarely support except chromebook devices, of course , fastboot can boot recompiled BSP kernel 4.14.xxx in repacked bootimg.
So I guess the only way is to port an u-boot or coreboot . which is a more friendly bootloader. But I don't have enough knowledge to do that (yet).
Althrough the software part is not friendly, but the hardware looks friendly enough.( The SoC looks didn't burned any FUSE , and board have one SD card slot and two USB port ). This can be think as a SBC but have a build-in touchscreen , build-in audio and build-in battery (The WIFI&BT part more like mt7668/mt7663 sdio , and didn't have LTE RF part on board ).
EDIT : Delete dumped blob and logs
Just did some progress to avoid devices become a brick. Now it's ready to test new bootloader (flash to mmcblk0boot0 ?).
Put some blob dump(backup) and logs from that device: https://github.com/ChalesYu/extdrv4openwrt/tree/device-asus-apad10pro-p030-playground/devicetree/asus-apad10pro-p030-mt6771v
Some progress: have using fastboot chainload a uboot successfully. but uboot have some driver issue, can't load kernel from mmc/usb yet.
<debug_uart>
U-Boot 2022.10-rc3-00047-g1573b6a869-dirty (Sep 03 2022 - 00:00:00 +000)
CPU: MediaTek MT8183
DRAM: 2 GiB
Core: 22 devices, 14 uclasses, devicetree: separate
WDT: Started watchdog@10007000 with servicing (60s timeout)
MMC: mmc@11230000: 0, mmc@11240000: 1
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: usb_ether
Hit any key to stop autoboot: 0
=>
=>
@ChalesYu - oh, i was not even aware that there is mt8183 support in u-boot meanwhile - maybe i should play around with trying to chainload it on the kukui chromebooks one day ...
for your case maybe have a look in the dts files or the mt8183_pumpkin_defconfig if there is anything to adjust to bring them closer to your hardware - do you have a dts/dtb file for your system? if yes your might compare them to see if there is anything different around mmc?
good luck and best wishes - hexdump
btw. how did you actually get the u-boot/serial(?) output from that device?
maybe i should play around with trying to chainload it on the kukui chromebooks one day ...
uboot is still have something didn't work , chain load from fastboot have enough limit. and coreboot already have some source code for kukui , you can try that.
do you have a dts/dtb file for your system?
If BSP dts , yes . If mainline, No. It need lot's of try.
how did you actually get the u-boot/serial(?) output from that device?
take it apart, and connect uart port on board physically. like TVbox did.
my uboot config is based on mt8183_pumpkin_defconfig , modify text_base from 0x4c000000 to 0x40080000.
@hexdump0815 can you give some your mainline dmesg, kernel load address, ramdisk(initrd) address. fdt(device tree) address and bootargs for reference ?
I have found a way and try to load your kernel in RAM but it didn't output anything in UART port, then it reboot. The RAM 0x08000000 can't be modify , don't know why. Vendor kernel load at 0x40080000, ramdisk at 0x55000000 , and vendor devicetree at 0x54000000
Here is full log , after that serial port didn't output anything, then it rebooted.
[LK]jump to K64 0x40080000
[ATF](0)[14.406581]INFO: save kernel info
[ATF](0)[14.407085]INFO: Kernel_EL 2
[ATF](0)[14.407512]NOTICE: Kernel is 64Bit
[ATF](0)[14.407997]NOTICE: pc=0x40080000, r0=0x54000000, r1=0x0
[ATF](0)[14.408707]INFO: BL3-1: Preparing for EL3 exit to normal world, Kernel
[ATF](0)[14.409601]INFO: BL3-1: Next image address = 0x40080000
[ATF](0)[14.410333]INFO: BL3-1: Next image spsr = 0x3c9
[ATF](0)[14.410984]INFO: SPM: enable SPMC mode
[ATF](0)[14.411540]INFO: el3_exit
<debug_uart>
U-Boot 2022.10-rc3-00050-g81564379b8 (Sep 06 2022 - 06:05:21 +0800)
CPU: MediaTek MT8183
DRAM: 2 GiB
Core: 22 devices, 14 uclasses, devicetree: separate
WDT: Started watchdog@10007000 with servicing (60s timeout)
MMC: mmc@11230000: 0, mmc@11240000: 1
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: usb_ether
Hit any key to stop autoboot: 0
=>
=>
=> md 40100000
40100000: 08088b1f 631698f5 2d750300 746f6f62 .......c..u-boot
40100010: 6e69622e 7b5aec00 9a555470 4923eeff .bin..Z{pTU...#I
40100020: 79d251e7 3ba4c807 8e232f09 30f0868c .Q.y...;./#....0
40100030: 90776e45 365c7151 ee94c764 cb58424a Enw.Qq\6d...JBX.
40100040: 109dd701 69a88705 ae244042 153d89c3 .......iB@$...=.
40100050: da4d6337 e8f774e7 c350622e e803a6b2 7cM..t...bP.....
40100060: a35b8538 eecccd89 80dd8ed4 848c08f8 8.[.............
40100070: a102e487 7bddf7f7 cc149a1b 355bbb3a .......{....:.[5
40100080: 755d2c7f ce7b9cea f9df3ef7 e9ce77ce .,]u..{..>...w..
40100090: 871ca234 d1130953 a4b4281d eb12853c 4...S....(..<...
401000a0: 759976df e77ce003 a99a7663 aa27af1d .v.u..|.cv....'.
401000b0: 2c4e056d f427cb16 d58f9f15 1c3492a5 m.N,..'.......4.
401000c0: add6a892 2fb756d0 e8506c4d 2996a358 .....V./MlP.X..)
401000d0: bfc07534 ad1b5db0 ad37b0ca 6a511e07 4u...]....7...Qj
401000e0: 4a8a3b47 65232fa4 6ac58958 7642ff23 G;.J./#eX..j#.Bv
401000f0: b86e7b97 0f2349ca 0ce80c30 28a850a3 .{n..I#.0....P.(
=> unzip 40100000 4c000000
Uncompressed size: 482184 = 0x75B88
=> go 4c000000
## Starting application at 0x4C000000 ...
<debug_uart>
U-Boot 2022.10-rc3-00050-g81564379b8-dirty (Sep 06 2022 - 08:47:52 +0800)
CPU: MediaTek MT8183
DRAM: 2 GiB
Core: 22 devices, 14 uclasses, devicetree: separate
WDT: Started watchdog@10007000 with servicing (60s timeout)
MMC: mmc@11230000: 0, mmc@11240000: 1
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: usb_ether
Hit any key to stop autoboot: 0
=>
=>
=>
=> md 40180000
40180000: 08088b1f 62f8eee0 746d0300 33383138 .......b..mt8183
40180010: 6d75702d 6e696b70 6274642e 7b5ddc00 -pumpkin.dtb..]{
40180020: 79c51c90 eea7bdef 207a13a9 490e8490 ...y......z ...I
40180030: 68b42120 3679f667 04080722 c4092042 !.hg.y6"...B ..
40180040: b9a736d3 e1bbbdd9 fb476e76 388783d0 .6......vnG....8
40180050: 21d8260c 5095392e 84a715c4 a4a95589 .&.!.9.P.....U..
40180060: f972e040 765b6501 48fe2eca 4aec0452 @.r..e[v...HR..J
40180070: b8729395 83b65d94 5409509d d248aa28 ..r..]...P.T(.H.
40180080: f33dd33d 7b3d3d7d 0115abbb a7a66aae =.=.}=={.....j..
40180090: d1efbf5f fd7f5f3d abdecccd 3bf3ff43 _...=_......C..;
401800a0: 40b6be42 f211c908 74d2df95 d1963d0b B..@.......t.=..
401800b0: 7fb88463 f2d0efbd 5ff0906f bc9da78c c.......o.._....
401800c0: 790bb10f 6616a8cb 9cd5d9b7 9dc64b96 ...y...f.....K..
401800d0: 5acced9a e8b97273 018f45d3 6bf2238e ...Zsr...E...#.k
401800e0: f201d1e9 52fc8397 79f7647a 1f37a398 .......Rzd.y..7.
401800f0: 66245010 52a32d14 f3dc08a8 7b63b1e8 .P$f.-.R......c{
=> md 40280000
40280000: 08088b1f 62f8eeda 6d490300 2d656761 .......b..Image-
40280010: 39312e35 732d312e 6d2d6274 002b3874 5.19.1-stb-mt8+.
40280020: 540b9cec c799d71b 0f1199bf 8831ae03 ...T..........1.
40280030: 24b13187 4d0dea70 88c03cd2 e12329d8 .1.$p..M.<...)#.
40280040: 1c3cda57 9dae26ac 4f498453 2edbb0d8 W.<..&..S.IO....
40280050: 0a7527c1 a4ec430d 78dda13e 1d6e2562 .'u..C..>..xb%n.
40280060: ba4e459f dd3d8789 58935d64 9d9624d9 .EN...=.d].X.$..
40280070: 36ef1ee7 77745b04 3812da93 04d492af ...6.[tw...8....
40280080: 606c680c 2012bbf6 b1410d81 6f9eee20 .hl`... ..A. ..o
40280090: cd197e72 ffdfbdcc 73bbefde b7b8961f r~.........s....
402800a0: 6acf106c 30f56bc5 d8e2ec76 ea6013ff l..j.k.0v.....`.
402800b0: cb7a52c3 d79e22dd bbb804ae ccf71f99 .Rz.."..........
402800c0: 227cb109 35cda3cf c0d6eb68 adaff5bd ..|"...5h.......
402800d0: 585ccfc4 8fccfc2a 763b0a7d b2fba58d ..\X*...}.;v....
402800e0: b11e8c32 7e174cd3 47f9bd5c 3e07365b 2....L.~\..G[6.>
402800f0: 5bd119ad 892c4dc3 f57ec011 cb9be5dd ...[.M,...~.....
=> md 40d80000
40d80000: 08088b1f 63169a8c 49750300 7274696e .......c..uInitr
40d80010: 69622e64 bc84006e d12d9453 b6982db6 d.bin...S.-..-..
40d80020: 6da7636d db6db6db b4ef6db6 6db6db6d mc.m..m..m..m..m
40d80030: cfb599db d6e3ef7d 158a8fa9 2d15cd6d ....}.......m..-
40d80040: 47de8c46 9cd63e8f a0e413f1 4badaa98 F..G.>.........K
40d80050: 68460c53 0880d199 ff00e644 38b4a377 S.Fh....D...w..8
40d80060: 0345035c fff80406 20a3f0d9 de6ede20 \.E........ .n.
40d80070: 6d80010c 2d6c2cac 6c0d1d9c 64689d4c ...m.,l-...lL.hd
40d80080: f5642404 85ec1834 ae01e51d b6dcdc74 .$d.4.......t...
40d80090: 7b5713d8 2cfb4a17 3bd67877 49da9753 ..W{.J.,wx.;S..I
40d800a0: a0bdc6f9 1a565bb6 1b269c8a 2e75d72f .....[V...&./.u.
40d800b0: a73448e7 0caeb311 a666efe4 5adbdadd .H4.......f....Z
40d800c0: 671c5ed3 dd3b4e38 0dfe75de ac00285c .^.g8N;..u..\(..
40d800d0: d68ae66b 9d200feb 9465c8c6 00be1528 k..... ...e.(...
40d800e0: a6634401 a6a4587f 2b95db15 b42ad4ec .Dc..X.....+..*.
40d800f0: d47f4936 73855aa8 956cd5ef 55aaa837 6I...Z.s..l.7..U
=>
=>
=> unzip 40d80000 55000000
Uncompressed size: 17834664 = 0x11022A8
=>
=> unzip 40180000 4c100000
Uncompressed size: 42465 = 0xA5E1
=> unzip 40280000 4c180000
Uncompressed size: 26106368 = 0x18E5A00
=>
=> setenv bootargs "root=/dev/sdaaaaaaaa rootwait rw console=ttyS0,921600n8 no_console_suspend consoleblank=0"
=>
=> booti 4c180000 55000000 4c100000
Moving Image from 0x4c180000 to 0x4c200000, end=4db70000
## Loading init Ramdisk from Legacy Image at 55000000 ...
Image Name:
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 17834600 Bytes = 17 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 4c100000
Booting using the fdt blob at 0x4c100000
Loading Ramdisk to bea6c000, end bfb6e268 ... OK
Loading Device Tree to 00000000bea5e000, end 00000000bea6b5e0 ... OK
Starting kernel ...
lets reopen this issue as long aswe are actively communicating in it ... will try to provide you some of the info you were asking for from kukui, but chromebooks are quite different from android devices in the way they boot i.e. bootloader, trustzone etc. .... it might take a few days until i get to trying to find the info for you
Some progress:
If don't add maxcpus=1
to bootargs it will stuck at smp: Bringing up secondary CPUs ...
,don't know why.
And here is Boot log , seems good. But still looks have some issue, it won't find any mmc/usb devices. After the end of log, it rebooted.
U-Boot 2022.10-rc3-00050-g81564379b8 (Sep 06 2022 - 06:05:21 +0800)
CPU: MediaTek MT8183
DRAM: 2 GiB
Core: 22 devices, 14 uclasses, devicetree: separate
WDT: Started watchdog@10007000 with servicing (60s timeout)
MMC: mmc@11230000: 0, mmc@11240000: 1
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: usb_ether
Hit any key to stop autoboot: 0
=>
=>
=>
=> unzip 40d80000 55000000
Uncompressed size: 17834664 = 0x11022A8
=> unzip 40180000 4c100000
Uncompressed size: 42465 = 0xA5E1
=> unzip 40280000 4c180000
Uncompressed size: 26106368 = 0x18E5A00
=>
=> setenv bootargs "root=/dev/sdaaaaaaaa rootwait rw earlycon=uart8250,mmio32,0x11002000 console=ttyS0,921600n8 swiotlb=512 maxcpus=1"
=> booti 4c180000 55000000 4c100000
Moving Image from 0x4c180000 to 0x4c200000, end=4db70000
## Loading init Ramdisk from Legacy Image at 55000000 ...
Image Name:
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 17834600 Bytes = 17 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 4c100000
Booting using the fdt blob at 0x4c100000
Loading Ramdisk to bea6c000, end bfb6e268 ... OK
Loading Device Tree to 00000000bea5e000, end 00000000bea6b5e0 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.19.1-stb-mt8+ (root@aarch64) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT Sun Aug 14 13:19:46 CEST 2022
[ 0.000000] Machine model: Pumpkin MT8183
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000050000000, size 41 MiB
[ 0.000000] OF: reserved mem: initialized node scp_mem_region@50000000, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xbfbd4780-0xbfbd6fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004fffffff]
[ 0.000000] node 0: [mem 0x0000000050000000-0x00000000528fffff]
[ 0.000000] node 0: [mem 0x0000000052900000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 20 pages/cpu s44200 r8192 d29528 u81920
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: root=/dev/sdaaaaaaaa rootwait rw earlycon=uart8250,mmio32,0x11002000 console=ttyS0,921600n8 swiotlb=512 maxcpus=1
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 1970904K/2097152K available (14528K kernel code, 1622K rwdata, 5836K rodata, 3328K init, 518K bss, 126248K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 640 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c100000
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] /cpus/cpu@102[6] /cpus/cpu@103[7] }
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000001] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.001543] Console: colour dummy device 80x25
[ 0.002231] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=52000)
[ 0.003575] pid_max: default: 32768 minimum: 301
[ 0.004238] LSM: Security Framework initializing
[ 0.004932] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.005907] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.008559] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.009510] cblist_init_generic: Setting shift to 3 and lim to 1.
[ 0.010378] cblist_init_generic: Setting shift to 3 and lim to 1.
[ 0.011336] rcu: Hierarchical SRCU implementation.
[ 0.011963] rcu: Max phase no-delay instances is 1000.
[ 0.012995] EFI services will not be available.
[ 0.013918] smp: Bringing up secondary CPUs ...
[ 0.014511] smp: Brought up 1 node, 1 CPU
[ 0.015037] SMP: Total of 1 processors activated.
[ 0.015680] CPU features: detected: 32-bit EL0 Support
[ 0.016352] CPU features: detected: 32-bit EL1 Support
[ 0.017028] CPU features: detected: CRC32 instructions
[ 0.018299] CPU: All CPU(s) started at EL2
[ 0.018865] alternatives: patching kernel code
[ 0.020671] devtmpfs: initialized
[ 0.027769] KASLR disabled due to lack of seed
[ 0.028520] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.029805] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.030941] pinctrl core: initialized pinctrl subsystem
[ 0.032100] DMI not present or invalid.
[ 0.033180] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.034515] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.035487] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.036543] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.037616] audit: initializing netlink subsys (disabled)
[ 0.039461] thermal_sys: Registered thermal governor 'step_wise'
[ 0.039467] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.040547] audit: type=2000 audit(0.036:1): state=initialized audit_enabled=0 res=1
[ 0.042458] cpuidle: using governor ladder
[ 0.043009] cpuidle: using governor menu
[ 0.043651] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.044563] ASID allocator initialised with 65536 entries
[ 0.045272] HugeTLB: can optimize 4095 vmemmap pages for hugepages-1048576kB
[ 0.046192] HugeTLB: can optimize 127 vmemmap pages for hugepages-32768kB
[ 0.047086] HugeTLB: can optimize 7 vmemmap pages for hugepages-2048kB
[ 0.047939] HugeTLB: can optimize 0 vmemmap pages for hugepages-64kB
[ 0.049203] Serial: AMBA PL011 UART driver
[ 0.055172] Trying to register duplicate clock ID: 113
[ 0.137517] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.138412] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.139367] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.140244] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.207392] raid6: neonx8 gen() 1958 MB/s
[ 0.275465] raid6: neonx4 gen() 2005 MB/s
[ 0.343539] raid6: neonx2 gen() 1903 MB/s
[ 0.411618] raid6: neonx1 gen() 1627 MB/s
[ 0.479694] raid6: int64x8 gen() 1318 MB/s
[ 0.547779] raid6: int64x4 gen() 1463 MB/s
[ 0.615845] raid6: int64x2 gen() 1281 MB/s
[ 0.683935] raid6: int64x1 gen() 947 MB/s
[ 0.684496] raid6: using algorithm neonx4 gen() 2005 MB/s
[ 0.751991] raid6: .... xor() 1428 MB/s, rmw enabled
[ 0.752641] raid6: using neon recovery algorithm
[ 0.754054] iommu: Default domain type: Translated
[ 0.754694] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.755851] SCSI subsystem initialized
[ 0.756579] usbcore: registered new interface driver usbfs
[ 0.757331] usbcore: registered new interface driver hub
[ 0.758051] usbcore: registered new device driver usb
[ 0.758999] pps_core: LinuxPPS API ver. 1 registered
[ 0.759649] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
[ 0.760868] PTP clock support registered
[ 0.761411] EDAC MC: Ver: 3.0.0
[ 0.763416] FPGA manager framework
[ 0.763926] Advanced Linux Sound Architecture Driver Initialized.
[ 0.765411] vgaarb: loaded
[ 0.766050] clocksource: Switched to clocksource arch_sys_counter
[ 0.767041] VFS: Disk quotas dquot_6.6.0
[ 0.767591] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.774345] NET: Registered PF_INET protocol family
[ 0.775202] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.777978] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.779123] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.780143] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.781289] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[ 0.782493] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.783434] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.784352] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.785428] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.786463] RPC: Registered named UNIX socket transport module.
[ 0.787237] RPC: Registered udp transport module.
[ 0.787852] RPC: Registered tcp transport module.
[ 0.788466] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.789311] PCI: CLS 0 bytes, default 64
[ 0.790146] Unpacking initramfs...
[ 0.794383] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.795619] armv8-pmu pmu-a73: hw perfevents: failed to probe PMU!
[ 0.796962] kvm [1]: IPA Size Limit: 40 bits
[ 0.802722] kvm [1]: vgic-v2@c420000
[ 0.803209] kvm [1]: GIC system register CPU interface enabled
[ 0.806108] kvm [1]: vgic interrupt IRQ18
[ 0.806666] kvm [1]: Hyp mode initialized successfully
[ 0.811668] Initialise system trusted keyrings
[ 0.818120] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[ 0.824453] zbud: loaded
[ 0.826033] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.834350] NFS: Registering the id_resolver key type
[ 0.835058] Key type id_resolver registered
[ 0.835606] Key type id_legacy registered
[ 0.836199] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.837081] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.918254] NET: Registered PF_ALG protocol family
[ 0.918919] xor: measuring software checksum speed
[ 0.930056] 8regs : 2308 MB/sec
[ 0.938050] 32regs : 2310 MB/sec
[ 0.950052] arm64_neon : 2121 MB/sec
[ 0.950628] xor: using function: 32regs (2310 MB/sec)
[ 0.951299] Key type asymmetric registered
[ 0.951836] Asymmetric key parser 'x509' registered
[ 0.952578] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.958126] io scheduler mq-deadline registered
[ 0.958722] io scheduler kyber registered
[ 1.001660] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.007290] printk: console [ttyS0] disabled
[ 1.050112] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 243, base_baud = 1625000) is a ST16650V2
[ 1.051430] printk: console [ttyS0] enabled
[ 1.051430] printk: console [ttyS0] enabled
[ 1.052507] printk: bootconsole [uart8250] disabled
[ 1.052507] printk: bootconsole [uart8250] disabled
[ 1.059094] Serial: AMBA driver
[ 1.060528] mtk-iommu 10205000.iommu: mm dts parse fail(-517).
[ 1.067708] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ovl@14008000
[ 1.068789] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ovl@14009000
[ 1.069860] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ovl@1400a000
[ 1.074082] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/rdma@1400b000
[ 1.075168] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/rdma@1400c000
[ 1.076260] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/color@1400e000
[ 1.077353] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ccorr@1400f000
[ 1.082082] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/aal@14010000
[ 1.083158] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/gamma@14011000
[ 1.084343] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/dpi@14015000
[ 1.093224] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 1.109828] loop: module loaded
[ 1.138230] megasas: 07.719.03.00-rc1
[ 1.141307] e1000: Intel(R) PRO/1000 Network Driver
[ 1.141929] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.146099] e1000e: Intel(R) PRO/1000 Network Driver
[ 1.146728] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.147506] igb: Intel(R) Gigabit Ethernet Network Driver
[ 1.148187] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.148924] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 1.149714] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.154084] sky2: driver version 1.30
[ 1.154778] VFIO - User Level meta-driver version: 0.3
[ 1.159481] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.160309] ehci-pci: EHCI PCI platform driver
[ 1.160897] ehci-platform: EHCI generic platform driver
[ 1.161678] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.166083] ohci-pci: OHCI PCI platform driver
[ 1.166678] ohci-platform: OHCI generic platform driver
[ 1.167900] usbcore: registered new interface driver usb-storage
[ 1.174571] i2c_dev: i2c /dev entries driver
[ 1.186098] device-mapper: ioctl: 4.46.0-ioctl (2022-02-22) initialised: dm-devel@redhat.com
[ 1.194758] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1099999 KHz, changing to: 1131000 KHz
[ 1.196554] cpu cpu0: EM: created perf domain
[ 1.204012] sdhci: Secure Digital Host Controller Interface driver
[ 1.204807] sdhci: Copyright(c) Pierre Ossman
[ 1.212589] Synopsys Designware Multimedia Card Interface Driver
[ 1.213972] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.218337] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.220138] usbcore: registered new interface driver usbhid
[ 1.220843] usbhid: USB HID core driver
[ 1.229414] NET: Registered PF_PACKET protocol family
[ 1.234251] 9pnet: Installing 9P2000 support
[ 1.234861] Key type dns_resolver registered
[ 1.235771] registered taskstats version 1
[ 1.236311] Loading compiled-in X.509 certificates
[ 1.239551] zswap: loaded using pool lzo/zbud
[ 1.242935] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
[ 1.417350] mtk-iommu 10205000.iommu: mm dts parse fail(-517).
[ 1.421580] panfrost 13040000.gpu: clock rate = 511999970
[ 1.428698] panfrost 13040000.gpu: [drm:panfrost_devfreq_init] Failed to register cooling device
[ 1.434646] panfrost 13040000.gpu: mali-g72 id 0x6221 major 0x0 minor 0x3 status 0x0
[ 1.435634] panfrost 13040000.gpu: features: 00000000,000004f7, issues: 00000000,00000400
[ 1.436667] panfrost 13040000.gpu: Features: L2:0x07120206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
[ 1.442071] panfrost 13040000.gpu: shader_present=0x7 l2_present=0x1
[ 1.454642] [drm] Initialized panfrost 1.2.0 20180908 for 13040000.gpu on minor 0
[ 1.460897] mtk-iommu 10205000.iommu: bound 14017000.larb (ops mtk_smi_larb_component_ops)
[ 1.461969] mtk-iommu 10205000.iommu: bound 16010000.larb (ops mtk_smi_larb_component_ops)
[ 1.466092] mtk-iommu 10205000.iommu: bound 1502f000.larb (ops mtk_smi_larb_component_ops)
[ 1.467154] mtk-iommu 10205000.iommu: bound 1a002000.larb (ops mtk_smi_larb_component_ops)
[ 1.468202] mtk-iommu 10205000.iommu: bound 17010000.larb (ops mtk_smi_larb_component_ops)
[ 1.469248] mtk-iommu 10205000.iommu: bound 15021000.larb (ops mtk_smi_larb_component_ops)
[ 1.478104] mtk-iommu 10205000.iommu: bound 1a001000.larb (ops mtk_smi_larb_component_ops)
[ 1.479880] mediatek-disp-ovl 14008000.ovl: Adding to iommu group 0
[ 1.481578] mediatek-disp-ovl 14009000.ovl: Adding to iommu group 0
[ 1.486665] mediatek-disp-ovl 1400a000.ovl: Adding to iommu group 0
[ 1.487898] mediatek-disp-rdma 1400b000.rdma: Adding to iommu group 0
[ 1.489112] mediatek-disp-rdma 1400c000.rdma: Adding to iommu group 0
[ 1.495474] ALSA device list:
[ 1.495865] No soundcards found.
[ 1.825670] Freeing initrd memory: 17416K
[ 1.827550] Freeing unused kernel memory: 3328K
[ 1.828264] Run /init as init process
Loading, please wait...
Starting version 247.3-7
[ 2.920024] mt6397-rtc mt6358-rtc: registered as rtc0
[ 2.920728] mt6397-rtc mt6358-rtc: setting system clock to 2020-11-10T05:41:49 UTC (1604986909)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
@ChalesYu - that is some good progress - congratulations - what did you do to get it booting in the end?
the cpu bringup not working is kind of expected as on linux aarch64 only psci is allowed for this (and partially spintables i think which are still used by the asahi linux project for their apple m1 port) and that is usually not supported by anroid bootloaders ... there are two ways around this: hack the proprietary cpu bringup code (maybe as some kind of dummy-psci?) into mainline which cannot be upstreamed or teach the boot loader some basic psci like i think it is done here for some snapdragon devices: https://github.com/geckyn/lk2nd ... btw. - not that i fully nderstand all this - this is just what i learned from looking at this some time ago
a tree at which commmits to look at might be interesting for you might be: https://github.com/mt8163-mainline/linux - it is a tried mainline bringup for another mt soc on and android device - maybe there is something interesting about getting mmc to work in it and there is also some commenting out of "enable-method = "psci";" - i do not remember if that helped in his case
as you do not have mmc or usb working it might be a good idea to build a small rootfs with busybox as initrd to have at least a shell for further debuging - maybe https://github.com/hexdump0815/petitboot/blob/main/make-petitboot-img.sh minus the petitboot stuff might be a good start - there are also some more links in the readme of that repo
good luck, best wishes and please keep me updated on any progress you make - hexdump
@hexdump0815 you can take a look compare my bootarg
in log , At that time the kernel has been booted, but didn't output debug log , add a earlycon=
to make uart port output that.
Some progress:
use a replaced to boot and get a shell, but really limited. Get multi-core work should ASAP. And I know the ATF(https://github.com/ARM-software/arm-trusted-firmware) is handle the pcsi, have ask @bkerler how to replace it in vendor's bootloader, that may help for multi-core running in mainline kernel , I don't really understand the relationship between TEE and ATF, Just want to find way to replace ATF from vendor MTK TEE.
@hexdump0815 , If you know some patch for u-boot can make multi-core work on your kernel, please let me know, thanks.
I'm also waiting for mainline get a UFS support on some MTK devices , the vendor android live in it.
So the progress in pending, until more than 1 core on cpu can be used. Else this linux shell is too easy panic and hang, can't use it to debug drivers.
EDIT: refresh the full log , can do a openwrt ramdisk boot, the similar soc is mt7622. (But after a period time, when serial output lot's of things, it will hang and reboot.)
U-Boot 2022.10-rc3-00050-g81564379b8-dirty (Sep 09 2022 - 08:19:37 +0800)
CPU: MediaTek MT8183
DRAM: 2 GiB
Core: 22 devices, 14 uclasses, devicetree: separate
WDT: Started watchdog@10007000 with servicing (60s timeout)
MMC: mmc@11230000: 0, mmc@11240000: 1
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: usb_ether
Hit any key to stop autoboot: 0
a
b
c
Uncompressed size: 4672172 = 0x474AAC
Uncompressed size: 43502 = 0xA9EE
Uncompressed size: 26106368 = 0x18E5A00
Moving Image from 0x4c280000 to 0x4c400000, end=4dd70000
## Loading init Ramdisk from Legacy Image at 55000000 ...
Image Name:
Image Type: AArch64 Linux RAMDisk Image (lzma compressed)
Data Size: 4672108 Bytes = 4.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 4c100000
Booting using the fdt blob at 0x4c100000
Loading Ramdisk to bf6f9000, end bfb6da6c ... OK
Loading Device Tree to 00000000bf6eb000, end 00000000bf6f89ed ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.19.1-stb-mt8+ (root@aarch64) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT Sun Aug 14 13:19:46 CEST 2022
[ 0.000000] Machine model: Pumpkin MT8183
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000050000000, size 41 MiB
[ 0.000000] OF: reserved mem: initialized node scp_mem_region@50000000, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfb6dfff]
[ 0.000000] NUMA: NODE_DATA [mem 0xbcbe6780-0xbcbe8fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfb6dfff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004fffffff]
[ 0.000000] node 0: [mem 0x0000000050000000-0x00000000528fffff]
[ 0.000000] node 0: [mem 0x0000000052900000-0x00000000bcffffff]
[ 0.000000] node 0: [mem 0x00000000bf6f9000-0x00000000bfb6dfff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfb6dfff]
[ 0.000000] On node 0, zone DMA: 9977 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 1170 pages in unavailable ranges
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 20 pages/cpu s44200 r8192 d29528 u81920
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 504967
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: root=/dev/sda1 rootwait rw earlycon=uart8250,mmio32,0x11002000 console=ttyS0,921600n8 swiotlb=512 maxcpus=1
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 1939292K/2052564K available (14528K kernel code, 1622K rwdata, 5836K rodata, 3328K init, 518K bss, 113272K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 640 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c100000
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] /cpus/cpu@102[6] /cpus/cpu@103[7] }
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000001] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.001575] Console: colour dummy device 80x25
[ 0.002258] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=52000)
[ 0.003601] pid_max: default: 32768 minimum: 301
[ 0.004265] LSM: Security Framework initializing
[ 0.004961] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.005935] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.008590] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.009540] cblist_init_generic: Setting shift to 3 and lim to 1.
[ 0.010409] cblist_init_generic: Setting shift to 3 and lim to 1.
[ 0.011367] rcu: Hierarchical SRCU implementation.
[ 0.011995] rcu: Max phase no-delay instances is 1000.
[ 0.013045] EFI services will not be available.
[ 0.013971] smp: Bringing up secondary CPUs ...
[ 0.014565] smp: Brought up 1 node, 1 CPU
[ 0.015090] SMP: Total of 1 processors activated.
[ 0.015734] CPU features: detected: 32-bit EL0 Support
[ 0.016407] CPU features: detected: 32-bit EL1 Support
[ 0.017082] CPU features: detected: CRC32 instructions
[ 0.018359] CPU: All CPU(s) started at EL2
[ 0.018925] alternatives: patching kernel code
[ 0.020748] devtmpfs: initialized
[ 0.028147] KASLR disabled due to lack of seed
[ 0.028888] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.030172] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.031331] pinctrl core: initialized pinctrl subsystem
[ 0.032522] DMI not present or invalid.
[ 0.033578] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.034912] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.035883] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.036950] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.038016] audit: initializing netlink subsys (disabled)
[ 0.039916] thermal_sys: Registered thermal governor 'step_wise'
[ 0.039922] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.041359] audit: type=2000 audit(0.036:1): state=initialized audit_enabled=0 res=1
[ 0.043262] cpuidle: using governor ladder
[ 0.043812] cpuidle: using governor menu
[ 0.044478] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.045400] ASID allocator initialised with 65536 entries
[ 0.046109] HugeTLB: can optimize 4095 vmemmap pages for hugepages-1048576kB
[ 0.047029] HugeTLB: can optimize 127 vmemmap pages for hugepages-32768kB
[ 0.047915] HugeTLB: can optimize 7 vmemmap pages for hugepages-2048kB
[ 0.048768] HugeTLB: can optimize 0 vmemmap pages for hugepages-64kB
[ 0.050044] Serial: AMBA PL011 UART driver
[ 0.056156] Trying to register duplicate clock ID: 113
[ 0.138675] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.139571] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.140446] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.141322] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.210305] raid6: neonx8 gen() 1956 MB/s
[ 0.278368] raid6: neonx4 gen() 2002 MB/s
[ 0.346450] raid6: neonx2 gen() 1903 MB/s
[ 0.414526] raid6: neonx1 gen() 1628 MB/s
[ 0.482593] raid6: int64x8 gen() 1318 MB/s
[ 0.550685] raid6: int64x4 gen() 1469 MB/s
[ 0.618761] raid6: int64x2 gen() 1281 MB/s
[ 0.686858] raid6: int64x1 gen() 947 MB/s
[ 0.687418] raid6: using algorithm neonx4 gen() 2002 MB/s
[ 0.754893] raid6: .... xor() 1427 MB/s, rmw enabled
[ 0.755544] raid6: using neon recovery algorithm
[ 0.756977] iommu: Default domain type: Translated
[ 0.757617] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.758777] SCSI subsystem initialized
[ 0.759518] usbcore: registered new interface driver usbfs
[ 0.760266] usbcore: registered new interface driver hub
[ 0.760986] usbcore: registered new device driver usb
[ 0.761935] pps_core: LinuxPPS API ver. 1 registered
[ 0.762585] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
[ 0.763804] PTP clock support registered
[ 0.764347] EDAC MC: Ver: 3.0.0
[ 0.766389] FPGA manager framework
[ 0.766896] Advanced Linux Sound Architecture Driver Initialized.
[ 0.768407] vgaarb: loaded
[ 0.769047] clocksource: Switched to clocksource arch_sys_counter
[ 0.770031] VFS: Disk quotas dquot_6.6.0
[ 0.770581] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.777321] NET: Registered PF_INET protocol family
[ 0.778194] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.780970] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.782115] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.783134] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.784281] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[ 0.785486] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.786427] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.787346] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.788422] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.789449] RPC: Registered named UNIX socket transport module.
[ 0.790224] RPC: Registered udp transport module.
[ 0.790838] RPC: Registered tcp transport module.
[ 0.791452] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.792297] PCI: CLS 0 bytes, default 64
[ 0.793134] Unpacking initramfs...
[ 0.797405] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.798646] armv8-pmu pmu-a73: hw perfevents: failed to probe PMU!
[ 0.800033] kvm [1]: IPA Size Limit: 40 bits
[ 0.805767] kvm [1]: vgic-v2@c420000
[ 0.806250] kvm [1]: GIC system register CPU interface enabled
[ 0.809064] kvm [1]: vgic interrupt IRQ18
[ 0.813185] kvm [1]: Hyp mode initialized successfully
[ 0.815396] Initialise system trusted keyrings
[ 0.816149] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[ 0.830346] zbud: loaded
[ 0.831899] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.837343] NFS: Registering the id_resolver key type
[ 0.838046] Key type id_resolver registered
[ 0.838594] Key type id_legacy registered
[ 0.839188] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.840070] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.916289] NET: Registered PF_ALG protocol family
[ 0.916922] xor: measuring software checksum speed
[ 0.933045] 8regs : 2308 MB/sec
[ 0.941045] 32regs : 2310 MB/sec
[ 0.953045] arm64_neon : 2121 MB/sec
[ 0.953617] xor: using function: 32regs (2310 MB/sec)
[ 0.954284] Key type asymmetric registered
[ 0.954820] Asymmetric key parser 'x509' registered
[ 0.955501] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.961085] io scheduler mq-deadline registered
[ 0.961680] io scheduler kyber registered
[ 1.004457] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.010185] printk: console [ttyS0] disabled
[ 1.053048] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 243, base_baud = 1625000) is a ST16650V2
[ 1.054333] printk: console [ttyS0] enabled
[ 1.054333] printk: console [ttyS0] enabled
[ 1.055411] printk: bootconsole [uart8250] disabled
[ 1.055411] printk: bootconsole [uart8250] disabled
[ 1.061721] Serial: AMBA driver
[ 1.063112] mtk-iommu 10205000.iommu: mm dts parse fail(-517).
[ 1.066411] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ovl@14008000
[ 1.067491] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ovl@14009000
[ 1.068564] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ovl@1400a000
[ 1.077076] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/rdma@1400b000
[ 1.078162] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/rdma@1400c000
[ 1.079256] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/color@1400e000
[ 1.080351] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/ccorr@1400f000
[ 1.085076] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/aal@14010000
[ 1.086152] mediatek-drm mediatek-drm.1.auto: Adding component match for /soc/gamma@14011000
[ 1.095385] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 1.109470] loop: module loaded
[ 1.145845] megasas: 07.719.03.00-rc1
[ 1.149016] e1000: Intel(R) PRO/1000 Network Driver
[ 1.153048] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.153817] e1000e: Intel(R) PRO/1000 Network Driver
[ 1.154444] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.155221] igb: Intel(R) Gigabit Ethernet Network Driver
[ 1.155902] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.156632] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 1.165046] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.165819] sky2: driver version 1.30
[ 1.166496] VFIO - User Level meta-driver version: 0.3
[ 1.168591] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.173062] ehci-pci: EHCI PCI platform driver
[ 1.173653] ehci-platform: EHCI generic platform driver
[ 1.174443] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.175232] ohci-pci: OHCI PCI platform driver
[ 1.175824] ohci-platform: OHCI generic platform driver
[ 1.181084] usbcore: registered new interface driver usb-storage
[ 1.183384] i2c_dev: i2c /dev entries driver
[ 1.197080] device-mapper: ioctl: 4.46.0-ioctl (2022-02-22) initialised: dm-devel@redhat.com
[ 1.205697] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1099999 KHz, changing to: 1131000 KHz
[ 1.207469] cpu cpu0: EM: created perf domain
[ 1.214854] sdhci: Secure Digital Host Controller Interface driver
[ 1.215636] sdhci: Copyright(c) Pierre Ossman
[ 1.218988] Synopsys Designware Multimedia Card Interface Driver
[ 1.220331] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.227322] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.233118] usbcore: registered new interface driver usbhid
[ 1.233822] usbhid: USB HID core driver
[ 1.241260] NET: Registered PF_PACKET protocol family
[ 1.242045] 9pnet: Installing 9P2000 support
[ 1.242670] Key type dns_resolver registered
[ 1.243571] registered taskstats version 1
[ 1.244110] Loading compiled-in X.509 certificates
[ 1.248258] zswap: loaded using pool lzo/zbud
[ 1.250833] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
[ 1.424031] mtk-iommu 10205000.iommu: mm dts parse fail(-517).
[ 1.427907] panfrost 13040000.gpu: clock rate = 511999970
[ 1.435175] panfrost 13040000.gpu: [drm:panfrost_devfreq_init] Failed to register cooling device
[ 1.436646] panfrost 13040000.gpu: mali-g72 id 0x6221 major 0x0 minor 0x3 status 0x0
[ 1.445051] panfrost 13040000.gpu: features: 00000000,000004f7, issues: 00000000,00000400
[ 1.446088] panfrost 13040000.gpu: Features: L2:0x07120206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
[ 1.447579] panfrost 13040000.gpu: shader_present=0x7 l2_present=0x1
[ 1.457579] [drm] Initialized panfrost 1.2.0 20180908 for 13040000.gpu on minor 0
[ 1.468106] mtk-iommu 10205000.iommu: bound 14017000.larb (ops mtk_smi_larb_component_ops)
[ 1.469247] mtk-iommu 10205000.iommu: bound 16010000.larb (ops mtk_smi_larb_component_ops)
[ 1.470297] mtk-iommu 10205000.iommu: bound 1502f000.larb (ops mtk_smi_larb_component_ops)
[ 1.471344] mtk-iommu 10205000.iommu: bound 1a002000.larb (ops mtk_smi_larb_component_ops)
[ 1.472390] mtk-iommu 10205000.iommu: bound 17010000.larb (ops mtk_smi_larb_component_ops)
[ 1.481049] mtk-iommu 10205000.iommu: bound 15021000.larb (ops mtk_smi_larb_component_ops)
[ 1.482099] mtk-iommu 10205000.iommu: bound 1a001000.larb (ops mtk_smi_larb_component_ops)
[ 1.483469] mediatek-disp-ovl 14008000.ovl: Adding to iommu group 0
[ 1.484991] mediatek-disp-ovl 14009000.ovl: Adding to iommu group 0
[ 1.489333] mediatek-disp-ovl 1400a000.ovl: Adding to iommu group 0
[ 1.490515] mediatek-disp-rdma 1400b000.rdma: Adding to iommu group 0
[ 1.493348] mediatek-disp-rdma 1400c000.rdma: Adding to iommu group 0
[ 1.494356] mediatek-drm mediatek-drm.1.auto: bound 14008000.ovl (ops mtk_disp_ovl_component_ops)
[ 1.495486] mediatek-drm mediatek-drm.1.auto: bound 14009000.ovl (ops mtk_disp_ovl_component_ops)
[ 1.496609] mediatek-drm mediatek-drm.1.auto: bound 1400a000.ovl (ops mtk_disp_ovl_component_ops)
[ 1.505069] mediatek-drm mediatek-drm.1.auto: bound 1400b000.rdma (ops mtk_disp_rdma_component_ops)
[ 1.506215] mediatek-drm mediatek-drm.1.auto: bound 1400c000.rdma (ops mtk_disp_rdma_component_ops)
[ 1.507358] mediatek-drm mediatek-drm.1.auto: bound 1400e000.color (ops mtk_disp_color_component_ops)
[ 1.508525] mediatek-drm mediatek-drm.1.auto: bound 1400f000.ccorr (ops mtk_disp_ccorr_component_ops)
[ 1.513059] mediatek-drm mediatek-drm.1.auto: bound 14010000.aal (ops mtk_disp_aal_component_ops)
[ 1.514186] mediatek-drm mediatek-drm.1.auto: bound 14011000.gamma (ops mtk_disp_gamma_component_ops)
[ 1.515355] mediatek-drm mediatek-drm.1.auto: Not creating crtc 0 because component 14 is disabled or missing
[ 1.516604] mediatek-drm mediatek-drm.1.auto: Not creating crtc 0 because component 10 is disabled or missing
[ 1.529301] [drm] Initialized mediatek 1.0.0 20150513 for mediatek-drm.1.auto on minor 1
[ 1.531678] ALSA device list:
[ 1.532059] No soundcards found.
[ 4.978688] Freeing initrd memory: 4560K
[ 4.980396] Freeing unused kernel memory: 3328K
[ 4.981110] Run /init as init process
failed to open /proc/modules
[ 5.270994] init: Console is alive
[ 5.288303] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.290751] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 5.293854] mt6397-rtc mt6358-rtc: registered as rtc0
[ 5.294542] mt6397-rtc mt6358-rtc: setting system clock to 2020-11-16T18:13:08 UTC (1605550388)
[ 5.296235] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.302177] init: - preinit -
ip: SIOCGIFFLAGS: No such device
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 9.352154] procd: - early -
[ 9.955813] procd: - watchdog -
[ 9.957392] procd: - ubus -
[ 20.009052] random: crng init done
[ 20.010628] procd: - init -
Please press Enter to activate this console.
[ 20.099687] urngd: v1.0.2 started.
[ 20.189290] kmodloader: loading kernel modules from /etc/modules.d/*
[ 20.194921] kmodloader: done loading kernel modules from /etc/modules.d/*
BusyBox v1.35.0 (2022-09-03 02:55:34 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 22.03.0, r19685-512e76967f
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/# lsmod
[ 21.730127] NET: Registered PF_INET6 protocol family
[ 21.736797] Segment Routing with IPv6
[ 21.737323] In-situ OAM (IOAM) with IPv6
ccm 20480 0
cmac 16384 0
ctr 16384 0
gcm 24576 0
ghash_generic 16384 0
ipv6 483328 28 [permanent]
mtk_wdt 20480 1
rtc_mt6397 16384 1
seqiv 16384 0
root@(none):/# uname -a
Linux OpenWrt 5.19.1-stb-mt8+ #1 SMP PREEMPT Sun Aug 14 13:19:46 CEST 2022 aarch64 GNU/Linux
root@OpenWrt:/# uptime
18:13:33 up 0 min, load average: 0.38, 0.09, 0.03
root@OpenWrt:/#
@hexdump0815 Sorry, my bad , the multi-core issue is caused by my chain loaded u-boot. (NOT a ATF issue)
because I also try using this u-boot load vendor BSP android kernel, it also stuck at smp: Bringing up secondary CPUs ...
U-Boot 2022.10-rc3-00050-g81564379b8-dirty (Sep 09 2022 - 08:19:37 +0800)
CPU: MediaTek MT8183
DRAM: 2 GiB
Core: 22 devices, 14 uclasses, devicetree: separate
WDT: Started watchdog@10007000 with servicing (60s timeout)
MMC: mmc@11230000: 0, mmc@11240000: 1
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: usb_ether
Hit any key to stop autoboot: 0
a
b
c
Error: Bad gzipped data
Uncompressed size: 43502 = 0xA9EE
Uncompressed size: 25339916 = 0x182A80C
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
Card did not respond to voltage select! : -110
=>
=> setenv bootargs "console=tty0 earlycon=uart8250,mmio32,0x11002000 console=ttyS0,921600n8 vmalloc=400M slub_debug=OFZPU \
> swiotlb=noforce page_owner=on cgroup.memory=nosocket,nokmem androidboot.hardware=mt6771 \
> firmware_class.path=/vendor/firmware loop.max_part=7 has_battery_removed=0 androidboot.boot_devices=bootdevice,11230000.mmc \
> root=/dev/ram androidboot.verifiedbootstate=orange bootopt=64S3,32N2,64N2 buildvariant=user ddr_name=ddr_speed=0 \
> androidboot.meta_log_disable=0 printk.disable_uart=0 bootprof.pl_t=1311 bootprof.lk_t=12304 bootprof.logo_t=5834 \
> androidboot.serialno=xxxxxxxxxxxxxxx androidboot.bootreason=PowerKey gpt=1 usb2jtag_mode=0 mrdump_ddrsv=yes \
> mrdump_cb=0x11e000,0x2000 androidboot.dtb_idx=0 androidboot.dtbo_idx=0 "
=>
=> booti 4c280000 - 54000000
## Flattened Device Tree blob at 54000000
Booting using the fdt blob at 0x54000000
ERROR: reserving fdt memory region failed (addr=bfe00000 size=40000 flags=4)
ERROR: reserving fdt memory region failed (addr=bffff000 size=1000 flags=4)
Loading Device Tree to 00000000bfb41000, end 00000000bfb6d325 ... OK
Starting kernel ...
[ 0.000000] <0>-(0)[0:swapper]Booting Linux on physical CPU 0x0
[ 0.000000] <0>-(0)[0:swapper]Linux version 4.14.141+ (nobody@android-build) (Android (5484270 based on r353983c) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 740
[ 0.000000] <0>-(0)[0:swapper]Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] <0>-(0)[0:swapper]Machine model: MT6771V/WM
[ 0.000000] <0>-(0)[0:swapper]earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[ 0.000000] <0>-(0)[0:swapper]bootconsole [uart8250] enabled
[ 0.000000] <0>-(0)[0:swapper]mrdump_get_cb: mrdump_cbaddr=0x000000000011e000, mrdump_cbsize=0x0000000000002000
[ 0.000000] <0>-(0)[0:swapper][dummy_read_reserve_init] dram_rank0_addr = 0x000000007c6df000, size = 0x1000
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node reserve-memory-dram_r0_dummy_read, compatible id reserve-memory-dram_r0_dummy_read
[ 0.000000] <0>-(0)[0:swapper]ZMC: zmc_memory_init, name: zone-movable-cma-memory, base: 0x00000000c0000000, size: 0x00000000ffc00000
[ 0.000000] <0>-(0)[0:swapper]ZMC: Start to zone: 0
[ 0.000000] <0>-(0)[0:swapper]memory-ssmr: setup_feature_size, rmem->size: 0x00000000ffc00000
[ 0.000000] <0>-(0)[0:swapper]memory-ssmr: setup_feature_size, svp-size: 0x0000000010000000
[ 0.000000] <0>-(0)[0:swapper]memory-ssmr: finalize_region_size, secmem_region: 0x0000000010000000
[ 0.000000] <0>-(0)[0:swapper]memory-ssmr: ssmr_preinit, total target size: 0x0000000010000000
[ 0.000000] <0>-(0)[0:swapper]memory-ssmr: ssmr_preinit, SSMR init: continue
[ 0.000000] <0>-(0)[0:swapper]ZMC: ::[memory-ssmr]: size: 0x0000000010000000, align: 0x0000000001000000
[ 0.000000] <0>-(0)[0:swapper]ZMC: ::[0x00000000c0000000-0x00000001bfc00000] remain of rmem
[ 0.000000] <0>-(0)[0:swapper]ZMC: ::cma_init_reserved_mem - [0x00000001af000000 - 0x00000001bfc00000]
[ 0.000000] <0>-(0)[0:swapper]ZMC: ===> MOVABLE ZONE: Update range[0x00000001af000000,0x00000001bfc00000)
[ 0.000000] <0>-(0)[0:swapper]memory-ssmr: zmc_ssmr_init, base: 0x00000001af000000, size: 0x0000000010c00000
[ 0.000000] <0>-(0)[0:swapper]ZMC: ::[PASS]: memory-ssmr[0x00000001af000000-0x00000001bfc00000] (rmem->size=0x00000000ef000000)
[ 0.000000] <0>-(0)[0:swapper]ZMC: Start to zone: 1
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node zone-movable-cma-memory, compatible id mediatek,zone_movable_cma
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node reserve-memory-sspm_share, compatible id mediatek,reserve-memory-sspm_share
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node reserve-memory-scp_share, compatible id mediatek,reserve-memory-scp_share
[ 0.000000] <0>-(0)[0:swapper][dummy_read_reserve_init] dram_rank1_addr = 0x00000001bfffe000, size = 0x1000
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node reserve-memory-dram_r1_dummy_read, compatible id reserve-memory-dram_r1_dummy_read
[ 0.000000] <0>-(0)[0:swapper][CONNADP][W]reserve_memory_consys_fn: name: consys-reserve-memory,base: 0xbfc00000,size: 0x200000
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node consys-reserve-memory, compatible id mediatek,consys-reserve-memory
[ 0.000000] <0>-(0)[0:swapper][memblock]mediatek,ram_console: 0x54400000 - 0x54410000 (0x10000)
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node mblock-9-ram_console, compatible id mediatek,ram_console
[ 0.000000] <0>-(0)[0:swapper][memblock]mediatek,pstore: 0x54410000 - 0x544f0000 (0xe0000)
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node mblock-10-pstore, compatible id mediatek,pstore
[ 0.000000] <0>-(0)[0:swapper][memblock]mediatek,minirdump: 0x544f0000 - 0x54500000 (0x10000)
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node mblock-11-minirdump, compatible id mediatek,minirdump
[ 0.000000] <0>-(0)[0:swapper]OF: reserved mem: initialized node mblock-5-atf-log-reserved, compatible id mediatek,atf-log-reserved
[ 0.000000] <0>-(0)[0:swapper]ZMC: Query return: [0x00000001af000000,0x00000001bfc00000)
[ 0.000000] <0>-(0)[0:swapper]psci: probing for conduit method from DT.
[ 0.000000] <0>-(0)[0:swapper]psci: PSCIv1.0 detected in firmware.
[ 0.000000] <0>-(0)[0:swapper]psci: Using standard PSCI v0.2 function IDs
[ 0.000000] <0>-(0)[0:swapper]psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] <0>-(0)[0:swapper]psci: SMC Calling Convention v1.1
[ 0.000000] <0>-(0)[0:swapper]random: get_random_bytes called from start_kernel+0x8c/0x468 with crng_init=0
[ 0.000000] <0>-(0)[0:swapper]percpu: Embedded 23 pages/cpu s55000 r8192 d31016 u94208
[ 0.000000] <0>-(0)[0:swapper]Detected VIPT I-cache on CPU0
[ 0.000000] <0>-(0)[0:swapper]CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] <0>-(0)[0:swapper]Speculative Store Bypass Disable mitigation not required
[ 0.000000] <0>-(0)[0:swapper]Built 1 zonelists, mobility grouping on. Total pages: 1458895
[ 0.000000] <0>-(0)[0:swapper]Kernel command line: console=tty0 earlycon=uart8250,mmio32,0x11002000 console=ttyS0,921600n8 vmalloc=400M slub_debug=OFZPU \
[ 0.000000] <0>swiotlb=noforce page_owner=on cgroup.memory=nosocket,nokmem androidboot.hardware=mt6771 \
[ 0.000000] <0>firmware_class.path=/vendor/firmware loop.max_part=7 has_battery_removed=0 androidboot.boot_devices=bootdevice,11230000.mmc \
[ 0.000000] <0>root=/dev/ram androidboot.verifiedbootstate=orange bootopt=64S3,32N2,64N2 buildvariant=user ddr_name=ddr_speed=0 \
[ 0.000000] <0>androidboot.meta_log_disable=0 printk.disable_uart=0 bootprof.pl_t=1311 bootprof.lk_t=12304 bootprof.logo_t=5834 \
[ 0.000000] <0>androidboot.serialno=xxxxxxxxxxxxxxx androidboot.bootreason=PowerKey gpt=1 usb2jtag_mode=0 mrdump_ddrsv=yes \
[ 0.000000] <0>mrdump_cb=0x11e000,0x2000 androidboot.dtb_idx=0 androidboot.dtbo_idx=0
[ 0.000000] <0>-(0)[0:swapper]PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] <0>-(0)[0:swapper]Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.000000] <0>-(0)[0:swapper]Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] <0>-(0)[0:swapper]software IO TLB: mapped [mem 0xffffe000-0xffffe800] (0MB)
[ 0.000000] <0>-(0)[0:swapper]Memory: 5782232K/6208056K available (14142K kernel code, 1900K rwdata, 4688K rodata, 3968K init, 7797K bss, 151392K reserved, 274432K cma-reserved)
[ 0.000000] <0>-(0)[0:swapper]Virtual kernel memory layout:
[ 0.000000] <0>-(0)[0:swapper] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] <0>-(0)[0:swapper] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] <0>-(0)[0:swapper] .text : 0x (ptrval) - 0x (ptrval) ( 14144 KB)
[ 0.000000] <0>-(0)[0:swapper] .rodata : 0x (ptrval) - 0x (ptrval) ( 4736 KB)
[ 0.000000] <0>-(0)[0:swapper] .init : 0x (ptrval) - 0x (ptrval) ( 3968 KB)
[ 0.000000] <0>-(0)[0:swapper] .data : 0x (ptrval) - 0x (ptrval) ( 1900 KB)
[ 0.000000] <0>-(0)[0:swapper] .bss : 0x (ptrval) - 0x (ptrval) ( 7798 KB)
[ 0.000000] <0>-(0)[0:swapper] fixed : 0xffffffbefe7fb000 - 0xffffffbefec00000 ( 4116 KB)
[ 0.000000] <0>-(0)[0:swapper] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] <0>-(0)[0:swapper] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] <0>-(0)[0:swapper] 0xffffffbf32000000 - 0xffffffbf37ffffc0 ( 95 MB actual)
[ 0.000000] <0>-(0)[0:swapper] memory : 0xffffffcc80000000 - 0xffffffcdfffff000 ( 6143 MB)
[ 0.000000] <0>-(0)[0:swapper]SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] <0>-(0)[0:swapper]
[ 0.000000] <0>-(0)[0:swapper]**********************************************************
[ 0.000000] <0>-(0)[0:swapper]** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] <0>-(0)[0:swapper]** **
[ 0.000000] <0>-(0)[0:swapper]** trace_printk() being used. Allocating extra memory. **
[ 0.000000] <0>-(0)[0:swapper]** **
[ 0.000000] <0>-(0)[0:swapper]** This means that this is a DEBUG kernel and it is **
[ 0.000000] <0>-(0)[0:swapper]** unsafe for production use. **
[ 0.000000] <0>-(0)[0:swapper]** **
[ 0.000000] <0>-(0)[0:swapper]** If you see this message and you are not debugging **
[ 0.000000] <0>-(0)[0:swapper]** the kernel, report this immediately to your vendor! **
[ 0.000000] <0>-(0)[0:swapper]** **
[ 0.000000] <0>-(0)[0:swapper]** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] <0>-(0)[0:swapper]**********************************************************
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU0: update cpu_capacity 604
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU1: update cpu_capacity 604
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU2: update cpu_capacity 604
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU3: update cpu_capacity 604
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU4: update cpu_capacity 1024
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU5: update cpu_capacity 1024
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU6: update cpu_capacity 1024
[ 0.000000] <0>-(0)[0:swapper/0]sched-energy: CPU7: update cpu_capacity 1024
[ 0.000000] <0>-(0)[0:swapper/0]Preemptible hierarchical RCU implementation.
[ 0.000000] <0>-(0)[0:swapper/0] Tasks RCU enabled.
[ 0.000000] <0>-(0)[0:swapper/0]NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] <0>-(0)[0:swapper/0]GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] <0>-(0)[0:swapper/0]GICv3: no VLPI support, no direct LPI support
[ 0.000000] <0>-(0)[0:swapper/0]GICv3: CPU0: found redistributor 0 region 0:0x000000000c100000
[ 0.000000] <0>-(0)[0:swapper/0]### gic-v3 init done. ###
[ 0.000000] <0>-(0)[0:swapper/0]mtk_infracfg_ao_init: infra mfg debug: 050000f2
[ 0.000000] <0>-(0)[0:swapper/0]arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] <0>-(0)[0:swapper/0]clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000003] <0>-(0)[0:swapper/0]sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.001431] <0>-(0)[0:swapper/0]base=0xffffff800810b000, irq=6
[ 0.002195] <0>-(0)[0:swapper/0]gpt1, base=0xffffff800810b010
[ 0.002946] <0>-(0)[0:swapper/0]gpt2, base=0xffffff800810b020
[ 0.003698] <0>-(0)[0:swapper/0]gpt3, base=0xffffff800810b030
[ 0.004449] <0>-(0)[0:swapper/0]gpt4, base=0xffffff800810b040
[ 0.005200] <0>-(0)[0:swapper/0]gpt5, base=0xffffff800810b050
[ 0.005951] <0>-(0)[0:swapper/0]gpt6, base=0xffffff800810b060
[ 0.006730] <0>-(0)[0:swapper/0]apxgpt1: clkdiv=1, cmp=128, hz=250, freq=32000
[ 0.007678] <0>-(0)[0:swapper/0]acao clkevt, freq=32000
[ 0.008974] <0>.(0)[0:swapper/0]ram_console:[DT] 0x800@0x11d000, 0x1(0xec0)
[ 0.009895] <0>.(0)[0:swapper/0]ram_console: [DT] 0xe0000@0x54410000-0x10000@0x544f0000
[ 0.010948] <0>.(0)[0:swapper/0]ram_console: using sram:0x11d000
[ 0.011736] <0>.(0)[0:swapper/0]ram_console: buffer start: 0xffffff800810f000, size: 0x800
[ 0.013074] <0>.(0)[0:swapper/0]pmic & external buck: 0xff
[ 0.013793] <0>.(0)[0:swapper/0]ram_console: CPU notifier status: 0, 0, 0x0, 0
[ 0.014737] <0>.(0)[0:swapper/0]ram_console: CPU HPS footprint: 0, 0x0, 0, 0
[ 0.015657] <0>.(0)[0:swapper/0]ram_console: last init function: 0xffffff9318565094
[ 0.016804] <0>.(0)[0:swapper/0]Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=52000)
[ 0.018379] <0>.(0)[0:swapper/0]pid_max: default: 32768 minimum: 301
[ 0.019277] <0>.(0)[0:swapper/0]Security Framework initialized
[ 0.020044] <0>.(0)[0:swapper/0]SELinux: Initializing.
[ 0.020814] <0>.(0)[0:swapper/0]Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.021957] <0>.(0)[0:swapper/0]Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.023811] <0>-(0)[0:swapper/0]init_heavy_tlb start.
[ 0.023822] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=0 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.023827] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=1 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.023831] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=2 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.023835] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=3 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.023839] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=4 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.023844] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=5 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.023848] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=6 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.023852] <0>-(0)[0:swapper/0]init_heavy_tlb: cpu=7 thresh_l=2147483647 thresh_h=358 max_capaicy=1024
[ 0.049661] <0>.(0)[1:swapper/0]ASID allocator initialised with 32768 entries
[ 0.057667] <0>.(0)[1:swapper/0]Hierarchical SRCU implementation.
[ 0.069033] <0>.(0)[1:swapper/0]tag_devinfo_data size:200, HRID size:4
[ 0.069915] <0>.(0)[1:swapper/0][devinfo][SegCode] Segment Code=0x34
[ 0.070788] <0>.(0)[1:swapper/0][BOOT_REASON] 'boot_reason=' is not found
[ 0.071693] <0>.(0)[1:swapper/0]log_store: sram header address 0x (ptrval).
[ 0.072683] <0>.(0)[1:swapper/0]log_store printk log buff addr:0x4dab3d98, size 0x80000. buff flag 0x427.
[ 0.073943] <0>.(0)[1:swapper/0]sig 0x5678ef90 flag 0x427 add 0x7ffc0000 size 0x40000 offsize 0x20 point 0x20bc1
[ 0.081977] <0>.(0)[1:swapper/0]smp: Bringing up secondary CPUs ...
just to do some research and found this device looks like a teclast t30(pro) without LTE.
now , I'm try to using (patched) vendor lk to boot. but without source is really annoying. But have a similar source can reference. https://github.com/SoCXin/MT6737/tree/master/linux/bootloader/lk
Vendor's lk bootloader also patch the vendor's dtb,which lives in android boot.img, if it patch failed (when replace to mainline dtb), it reboot. So, the mainline dtb must be patched(merge part of extracted vendor simple dtb), to make lk can patch. But after lk patch, kernel may have trouble to understand it, of course ,lot's of error and panic.
And here is some boot log , with my patched device tree (lk didn't patch yet).
[8222] lk finished --> jump to linux kernel 64Bit
[8223]
[LK]jump to K64 0x40080000
[ATF](0)[9.901463]INFO: save kernel info
[ATF](0)[9.901955]INFO: Kernel_EL 2
[ATF](0)[9.902371]NOTICE: Kernel is 64Bit
[ATF](0)[9.902845]NOTICE: pc=0x40080000, r0=0x54000000, r1=0x0
[ATF](0)[9.903545]INFO: BL3-1: Preparing for EL3 exit to normal world, Kernel
[ATF](0)[9.904428]INFO: BL3-1: Next image address = 0x40080000
[ATF](0)[9.905149]INFO: BL3-1: Next image spsr = 0x3c9
[ATF](0)[9.905790]INFO: SPM: enable SPMC mode
[ATF](0)[9.906336]INFO: el3_exit
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.19.1-stb-mt8+ (root@aarch64) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT Sun Aug 14 13:19:46 CEST 2022
[ 0.000000] Machine model: MT6771V/WM
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'scp_mem_region@40000000': base 0x0000000040000000, size 256 MiB
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000040000000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node scp_mem_region@40000000, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000001bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xbf56a780-0xbf56cfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000001bfffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000543fffff]
[ 0.000000] node 0: [mem 0x0000000054400000-0x00000000544fffff]
[ 0.000000] node 0: [mem 0x0000000054500000-0x00000000545fffff]
[ 0.000000] node 0: [mem 0x0000000054600000-0x000000005463ffff]
[ 0.000000] node 0: [mem 0x0000000054640000-0x000000007cadffff]
[ 0.000000] node 0: [mem 0x000000007cae0000-0x000000007ffbffff]
[ 0.000000] node 0: [mem 0x000000007ffc0000-0x000000008dffffff]
[ 0.000000] node 0: [mem 0x000000008e000000-0x000000008f3fffff]
[ 0.000000] node 0: [mem 0x000000008f400000-0x000000009faeffff]
[ 0.000000] node 0: [mem 0x000000009faf0000-0x000000009fffffff]
[ 0.000000] node 0: [mem 0x00000000a0000000-0x00000000bfbfffff]
[ 0.000000] node 0: [mem 0x00000000bfc00000-0x00000000bfe3ffff]
[ 0.000000] node 0: [mem 0x00000000bfe40000-0x00000000bfffefff]
[ 0.000000] node 0: [mem 0x00000000bffff000-0x00000000bfffffff]
[ 0.000000] node 0: [mem 0x00000000c0000000-0x00000001bfffefff]
[ 0.000000] node 0: [mem 0x00000001bffff000-0x00000001bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000001bfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 20 pages/cpu s44200 r8192 d29528 u81920
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1548288
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: console=tty0 abcdefg console=ttyS0,921600n1 vmalloc=400M slub_debug=OFZPU swiotlb=noforce page_owner=on cgroup.memory=nosocket,nokmem androidboot.hardwar0
[ 0.000000] Unknown kernel command line parameters "abcdefg vmalloc=400M page_owner=on has_battery_removed=1 bootopt=64S3,32N2,64N2 buildvariant=user ddr_name= ddr_speed=0 usb2jtag_mode=.
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Stack Depot early init allocating hash table with memblock_alloc, 8388608 bytes
[ 0.000000] Memory: 1853020K/6291456K available (14528K kernel code, 1622K rwdata, 5836K rodata, 3328K init, 518K bss, 4438436K reserved, 0K cma-reserved)
[ 0.000000] **********************************************************
[ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] ** **
[ 0.000000] ** This system shows unhashed kernel memory addresses **
[ 0.000000] ** via the console, logs, and other interfaces. This **
[ 0.000000] ** might reduce the security of your system. **
[ 0.000000] ** **
[ 0.000000] ** If you see this message and you are not debugging **
[ 0.000000] ** the kernel, report this immediately to your system **
[ 0.000000] ** administrator! **
[ 0.000000] ** **
[ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] **********************************************************
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 640 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c100000
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[ 0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] /cpus/cpu@102[6] /cpus/cpu@103[7] }
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000001] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.001487] irq: no irq domain found for interrupt-controller@c530a80 !
[ 0.002351] Failed to map interrupt for /soc/timer@10017000
[ 0.003100] Failed to initialize '/soc/timer@10017000': -22
[ 0.004287] Console: colour dummy device 80x25
[ 0.005698] printk: console [tty0] enabled
[ 0.006344] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=52000)
[ 0.007701] pid_max: default: 32768 minimum: 301
[ 0.008526] LSM: Security Framework initializing
[ 0.009364] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.010387] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.014544] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.015512] cblist_init_generic: Setting shift to 3 and lim to 1.
[ 0.016458] cblist_init_generic: Setting shift to 3 and lim to 1.
[ 0.017515] rcu: Hierarchical SRCU implementation.
[ 0.018151] rcu: Max phase no-delay instances is 1000.
[ 0.019672] EFI services will not be available.
[ 0.021062] smp: Bringing up secondary CPUs ...
[ 0.023029] Detected VIPT I-cache on CPU1
[ 0.023066] GICv3: CPU1: found redistributor 1 region 0:0x000000000c120000
[ 0.023112] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.024483] Detected VIPT I-cache on CPU2
[ 0.024504] GICv3: CPU2: found redistributor 2 region 0:0x000000000c140000
[ 0.024523] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.025833] Detected VIPT I-cache on CPU3
[ 0.025852] GICv3: CPU3: found redistributor 3 region 0:0x000000000c160000
[ 0.025871] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.027490] CPU features: detected: Spectre-v2
[ 0.027500] CPU features: detected: Spectre-BHB
[ 0.027503] CPU features: detected: ARM erratum 858921
[ 0.027508] Detected VIPT I-cache on CPU4
[ 0.027526] GICv3: CPU4: found redistributor 100 region 0:0x000000000c180000
[ 0.027535] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.027546] arch_timer: CPU4: Trapping CNTVCT access
[ 0.027554] CPU4: Booted secondary processor 0x0000000100 [0x410fd092]
[ 0.028875] Detected VIPT I-cache on CPU5
[ 0.028891] GICv3: CPU5: found redistributor 101 region 0:0x000000000c1a0000
[ 0.028899] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.028905] arch_timer: CPU5: Trapping CNTVCT access
[ 0.028910] CPU5: Booted secondary processor 0x0000000101 [0x410fd092]
[ 0.030229] Detected VIPT I-cache on CPU6
[ 0.030246] GICv3: CPU6: found redistributor 102 region 0:0x000000000c1c0000
[ 0.030253] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.030259] arch_timer: CPU6: Trapping CNTVCT access
[ 0.030264] CPU6: Booted secondary processor 0x0000000102 [0x410fd092]
[ 0.031557] Detected VIPT I-cache on CPU7
[ 0.031573] GICv3: CPU7: found redistributor 103 region 0:0x000000000c1e0000
[ 0.031581] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.031587] arch_timer: CPU7: Trapping CNTVCT access
[ 0.031592] CPU7: Booted secondary processor 0x0000000103 [0x410fd092]
[ 0.031650] smp: Brought up 1 node, 8 CPUs
[ 0.056287] SMP: Total of 8 processors activated.
[ 0.056912] CPU features: detected: 32-bit EL0 Support
[ 0.057590] CPU features: detected: 32-bit EL1 Support
[ 0.058269] CPU features: detected: CRC32 instructions
[ 0.059673] CPU: All CPU(s) started at EL2
[ 0.060274] alternatives: patching kernel code
[ 0.064189] devtmpfs: initialized
[ 0.095566] KASLR disabled due to lack of seed
[ 0.096449] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.097744] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.098871] pinctrl core: initialized pinctrl subsystem
[ 0.100272] DMI not present or invalid.
[ 0.101433] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.103288] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.104313] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.105417] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.106508] audit: initializing netlink subsys (disabled)
[ 0.107396] audit: type=2000 audit(0.100:1): state=initialized audit_enabled=0 res=1
[ 0.109033] thermal_sys: Registered thermal governor 'step_wise'
[ 0.109038] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.110330] cpuidle: using governor ladder
[ 0.111858] cpuidle: using governor menu
[ 0.112697] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.113712] ASID allocator initialised with 32768 entries
[ 0.114429] HugeTLB: can optimize 4095 vmemmap pages for hugepages-1048576kB
[ 0.115352] HugeTLB: can optimize 127 vmemmap pages for hugepages-32768kB
[ 0.116241] HugeTLB: can optimize 7 vmemmap pages for hugepages-2048kB
[ 0.117096] HugeTLB: can optimize 0 vmemmap pages for hugepages-64kB
[ 0.118646] Serial: AMBA PL011 UART driver
[ 0.128279] Trying to register duplicate clock ID: 113
[ 0.173039] platform 10005000.pinctrl: Fixing up cyclic dependency with c530a80.interrupt-controller
[ 0.175215] irq: no irq domain found for interrupt-controller@c530a80 !
[ 0.176089] mt8183-pinctrl 10005000.pinctrl: Failed to add EINT, but pinctrl still can work
[ 0.215211] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.216098] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.216976] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.217853] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.284451] raid6: neonx8 gen() 3297 MB/s
[ 0.352513] raid6: neonx4 gen() 3508 MB/s
[ 0.420581] raid6: neonx2 gen() 3131 MB/s
[ 0.488647] raid6: neonx1 gen() 2453 MB/s
[ 0.556724] raid6: int64x8 gen() 1586 MB/s
[ 0.624785] raid6: int64x4 gen() 1768 MB/s
[ 0.692846] raid6: int64x2 gen() 1649 MB/s
[ 0.760913] raid6: int64x1 gen() 1371 MB/s
[ 0.761474] raid6: using algorithm neonx4 gen() 3508 MB/s
[ 0.828975] raid6: .... xor() 2658 MB/s, rmw enabled
[ 0.829626] raid6: using neon recovery algorithm
[ 0.831361] iommu: Default domain type: Translated
[ 0.832004] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.833557] SCSI subsystem initialized
[ 0.834457] usbcore: registered new interface driver usbfs
[ 0.835242] usbcore: registered new interface driver hub
[ 0.835979] usbcore: registered new device driver usb
[ 0.837115] pps_core: LinuxPPS API ver. 1 registered
[ 0.837768] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
[ 0.838984] PTP clock support registered
[ 0.839549] EDAC MC: Ver: 3.0.0
[ 0.841650] FPGA manager framework
[ 0.842250] Advanced Linux Sound Architecture Driver Initialized.
[ 0.843968] vgaarb: loaded
[ 0.844731] clocksource: Switched to clocksource arch_sys_counter
[ 0.845851] VFS: Disk quotas dquot_6.6.0
[ 0.846403] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.855464] NET: Registered PF_INET protocol family
[ 0.856357] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.862085] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.863245] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.864277] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.865565] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 0.867033] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.868061] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.869084] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.870327] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.871658] RPC: Registered named UNIX socket transport module.
[ 0.872437] RPC: Registered udp transport module.
[ 0.873070] RPC: Registered tcp transport module.
[ 0.873686] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.874532] PCI: CLS 0 bytes, default 64
[ 0.875451] Unpacking initramfs...
[ 0.876123] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.877541] hw perfevents: enabled with armv8_cortex_a73 PMU driver, 7 counters available
[ 0.879023] kvm [1]: IPA Size Limit: 40 bits
[ 0.880170] kvm [1]: vgic-v2@c420000
[ 0.880650] kvm [1]: GIC system register CPU interface enabled
[ 0.881565] kvm [1]: vgic interrupt IRQ18
[ 0.882233] kvm [1]: Hyp mode initialized successfully
[ 0.885173] Initialise system trusted keyrings
[ 0.885978] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[ 0.898868] zbud: loaded
[ 0.903283] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.905570] NFS: Registering the id_resolver key type
[ 0.906275] Key type id_resolver registered
[ 0.906825] Key type id_legacy registered
[ 0.907489] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.908382] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.932604] NET: Registered PF_ALG protocol family
[ 0.933276] xor: measuring software checksum speed
[ 0.935886] 8regs : 4974 MB/sec
[ 0.938381] 32regs : 5134 MB/sec
[ 0.941537] arm64_neon : 3819 MB/sec
[ 0.942111] xor: using function: 32regs (5134 MB/sec)
[ 0.942780] Key type asymmetric registered
[ 0.943319] Asymmetric key parser 'x509' registered
[ 0.944068] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.945327] io scheduler mq-deadline registered
[ 0.945933] io scheduler kyber registered
[ 0.971704] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.974825] Serial: AMBA driver
[ 0.981710] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.991116] loop: module loaded
[ 0.992626] megasas: 07.719.03.00-rc1
[ 0.996026] e1000: Intel(R) PRO/1000 Network Driver
[ 0.996674] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.997533] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.998185] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.999025] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.999732] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.000519] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 1.001351] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.002181] sky2: driver version 1.30
[ 1.002927] VFIO - User Level meta-driver version: 0.3
[ 1.005477] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.006338] ehci-pci: EHCI PCI platform driver
[ 1.006969] ehci-platform: EHCI generic platform driver
[ 1.007804] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.008624] ohci-pci: OHCI PCI platform driver
[ 1.009277] ohci-platform: OHCI generic platform driver
[ 1.010644] usbcore: registered new interface driver usb-storage
[ 1.013250] i2c_dev: i2c /dev entries driver
[ 1.016123] device-mapper: ioctl: 4.46.0-ioctl (2022-02-22) initialised: dm-devel@redhat.com
[ 1.017835] Unable to handle kernel paging request at virtual address fffffffffffffe13
[ 1.018879] Mem abort info:
[ 1.019247] ESR = 0x0000000096000004
[ 1.019739] EC = 0x25: DABT (current EL), IL = 32 bits
[ 1.020437] SET = 0, FnV = 0
[ 1.020852] EA = 0, S1PTW = 0
[ 1.021265] FSC = 0x04: level 0 translation fault
[ 1.021905] Data abort info:
[ 1.022283] ISV = 0, ISS = 0x00000004
[ 1.022786] CM = 0, WnR = 0
[ 1.023177] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000041480000
[ 1.024056] [fffffffffffffe13] pgd=0000000000000000, p4d=0000000000000000
[ 1.024956] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 1.025688] Modules linked in:
[ 1.026093] CPU: 4 PID: 1 Comm: swapper/0 Not tainted 5.19.1-stb-mt8+ #1
[ 1.026974] Hardware name: MT6771V/WM (DT)
[ 1.027512] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 1.028425] pc : regulator_is_enabled+0x18/0x140
[ 1.029043] lr : mtk_cpufreq_probe+0x284/0x72c
[ 1.029632] sp : ffff80000808b910
[ 1.030067] x29: ffff80000808b910 x28: ffff000004576280 x27: 00000000fffffdfb
[ 1.031007] x26: ffff8000093a2000 x25: ffff800009931bc8 x24: ffff00000462dd00
[ 1.031946] x23: ffff8000097d9000 x22: ffff000004579010 x21: ffff8000097d9a58
[ 1.032884] x20: 0000000000000001 x19: fffffffffffffdfb x18: 00000000fffffffe
[ 1.033822] x17: ffff800008923498 x16: ffff800008bd6894 x15: 0000000000000020
[ 1.034760] x14: ffffffffffffffff x13: 0a726f74616c7567 x12: 657220636f727020
[ 1.035698] x11: 0000000000000000 x10: 0000000000000075 x9 : 0000000000000000
[ 1.036636] x8 : 0000000000000070 x7 : 20746567206f7420 x6 : 64656c696166203a
[ 1.037574] x5 : 000000000000001f x4 : 0000000000000000 x3 : ffff800009916378
[ 1.038512] x2 : 0000000000000000 x1 : 0000000000000000 x0 : fffffffffffffdfb
[ 1.039450] Call trace:
[ 1.039772] regulator_is_enabled+0x18/0x140
[ 1.040337] mtk_cpufreq_probe+0x284/0x72c
[ 1.040879] platform_probe+0x68/0xe0
[ 1.041365] really_probe.part.0+0x9c/0x2ac
[ 1.041916] __driver_probe_device+0x98/0x144
[ 1.042489] driver_probe_device+0xac/0x140
[ 1.043039] __device_attach_driver+0xb4/0x120
[ 1.043624] bus_for_each_drv+0x78/0xd0
[ 1.044129] __device_attach+0xa8/0x1c0
[ 1.044634] device_initial_probe+0x14/0x20
[ 1.045184] bus_probe_device+0x9c/0xa4
[ 1.045689] device_add+0x384/0x864
[ 1.046148] platform_device_add+0x114/0x234
[ 1.046711] platform_device_register_full+0x100/0x190
[ 1.047387] mtk_cpufreq_driver_init+0xb8/0x110
[ 1.047987] do_one_initcall+0x50/0x1c0
[ 1.048495] kernel_init_freeable+0x20c/0x290
[ 1.049071] kernel_init+0x28/0x13c
[ 1.049535] ret_from_fork+0x10/0x20
[ 1.050011] Code: 910003fd a90153f3 aa0003f3 52800034 (39406000)
[ 1.050813] ---[ end trace 0000000000000000 ]---
[ 1.051439] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 1.052444] SMP: stopping secondary CPUs
[ 1.052965] Kernel Offset: 0x80000 from 0xffff800008000000
[ 1.053684] PHYS_OFFSET: 0x40000000
[ 1.054142] CPU features: 0x000,00324811,00001086
[ 1.054761] Memory Limit: none
[ 1.055164] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---
[ATF](0)[19.917848]INFO: aee_wdt_dump: on cpu0
[ATF](0)[19.918385]INFO: (0) pc: lr: sp: pstate=3c5
[ATF](0)[19.919568]INFO: (0) x29: ffff800008003f70 x28: ffff8000097e3540 x27: ffff8000093bfdb0
[ATF](0)[19.920635]INFO: (0) x26: ffff8000097e3540 x25: 0000000000000000 x24: 0000000000000000
[ATF](0)[19.921701]INFO: (0) x23: 0000000060000005 x22: 0000000000000003 x21: ffff000001c47e80
[ATF](0)[19.922767]INFO: (0) x20: ffff800009885318 x19: 0000000000000000 x18: 0000000000000000
[ATF](0)[19.923833]INFO: (0) x17: ffff800075f51000 x16: ffff800008004000 x15: 0000000000004000
[ATF](0)[19.924899]INFO: (0) x14: 0000000000000024 x13: 0000000000000001 x12: 0000000000000040
[ATF](0)[19.925965]INFO: (0) x11: ffff000002000548 x10: ffff00000200054a x09: ffff000001c14770
[ATF](0)[19.927031]INFO: (0) x08: ffff000002000570 x07: 0000000000000000 x06: ffff000002000578
[ATF](0)[19.928097]INFO: (0) x05: 0000000000000000 x04: 0000000000000012 x03: ffff8000097d9ab8
[ATF](0)[19.929164]INFO: (0) x02: 0000000000000000 x01: 0000000000000001 x00: 0000000000000001
[ATF](0)[19.930229]NOTICE: Kernel WDT not ready
[ATF](0)[19.930768]NOTICE: Wait timeout.
[ATF](1)[19.931241]INFO: aee_wdt_dump: on cpu1
[ATF](1)[19.931781]INFO: (1) pc: lr: sp: pstate=3c5
[ATF](1)[19.932965]INFO: (1) x29: ffff80000800bf70 x28: ffff000001da5d40 x27: 0000000000000000
[ATF](1)[19.934032]INFO: (1) x26: ffff000001da5d40 x25: 0000000000000000 x24: 0000000000000000
[ATF](1)[19.935097]INFO: (1) x23: 0000000060000005 x22: 0000000000000003 x21: ffff000001c47e80
[ATF](1)[19.936164]INFO: (1) x20: ffff800009885318 x19: 0000000000000001 x18: 0000000000000014
[ATF](1)[19.937230]INFO: (1) x17: ffff800075f65000 x16: ffff80000800c000 x15: 0000000000004000
[ATF](1)[19.938296]INFO: (1) x14: 00000000000003e1 x13: 0000000000000001 x12: 0000000000000040
[ATF](1)[19.939362]INFO: (1) x11: ffff000002000548 x10: ffff00000200054a x09: ffff000001c14770
[ATF](1)[19.940428]INFO: (1) x08: ffff000002000570 x07: 0000000000000000 x06: ffff000002000578
[ATF](1)[19.941495]INFO: (1) x05: 0000000000000000 x04: 0000000000000010 x03: ffff8000097d9ab8
[ATF](1)[19.942561]INFO: (1) x02: 0000000000000000 x01: 0000000000000002 x00: 0000000000000001
[ATF](1)[19.943626]NOTICE: Kernel WDT not ready
[ATF](1)[19.944165]NOTICE: Wait timeout.
[ATF](7)[19.944637]INFO: aee_wdt_dump: on cpu7
[ATF](7)[19.945177]INFO: (7) pc: lr: sp: pstate=3c5
[ATF](7)[19.946361]INFO: (7) x29: ffff80000803bf70 x28: ffff000002d98040 x27: 00000000002437bc
[ATF](7)[19.947427]INFO: (7) x26: 0000000000000001 x25: ffff0000153f1638 x24: ffff00000342c180
[ATF](7)[19.948493]INFO: (7) x23: 0000000000000005 x22: 0000000000000003 x21: ffff000001c47e80
[ATF](7)[19.949559]INFO: (7) x20: ffff800009885318 x19: 0000000000000007 x18: 00000000ffffffff
[ATF](7)[19.950626]INFO: (7) x17: ffff800075fdd000 x16: ffff80000803c000 x15: 0000000000004000
[ATF](7)[19.951692]INFO: (7) x14: ffff000003428000 x13: 00000000000001ff x12: 0000000000000040
[ATF](7)[19.952758]INFO: (7) x11: ffff000002000548 x10: ffff00000200054a x09: ffff000001c14770
[ATF](7)[19.953824]INFO: (7) x08: ffff000002000570 x07: 0000000000000000 x06: ffff000002000578
[ATF](7)[19.954890]INFO: (7) x05: 0000000000000000 x04: 000000000000003f x03: ffff8000097d9ab8
[ATF](7)[19.955956]INFO: (7) x02: 0000000000000000 x01: 0000000000000006 x00: 0000000000000001
[ATF](7)[19.957022]NOTICE: Kernel WDT not ready
[ATF](7)[19.957561]NOTICE: Wait timeout.
[ATF](6)[19.958044]INFO: aee_wdt_dump: on cpu6
[ATF](6)[19.958578]INFO: (6) pc: lr: sp: pstate=3c5
[ATF](6)[19.959762]INFO: (6) x29: ffff800008033f70 x28: ffff000001db2ec0 x27: 0000000000000000
[ATF](6)[19.960829]INFO: (6) x26: ffff000001db2ec0 x25: 0000000000000000 x24: 0000000000000000
[ATF](6)[19.961895]INFO: (6) x23: 0000000060000005 x22: 0000000000000003 x21: ffff000001c47e80
[ATF](6)[19.962961]INFO: (6) x20: ffff800009885318 x19: 0000000000000006 x18: 0000000000000014
[ATF](6)[19.964027]INFO: (6) x17: ffff800075fc9000 x16: ffff800008034000 x15: 0000000000004000
[ATF](6)[19.965093]INFO: (6) x14: 000000000000005c x13: 0000000000000001 x12: 0000000000000040
[ATF](6)[19.966159]INFO: (6) x11: ffff000002000548 x10: ffff00000200054a x09: ffff000001c14770
[ATF](6)[19.967225]INFO: (6) x08: ffff000002000570 x07: 0000000000000000 x06: ffff000002000578
[ATF](6)[19.968292]INFO: (6) x05: 0000000000000000 x04: 00000000000000bf x03: ffff8000097d9ab8
[ATF](6)[19.969358]INFO: (6) x02: 0000000000000000 x01: 0000000000000007 x00: 0000000000000001
[ATF](6)[19.970424]NOTICE: Kernel WDT not ready
[ATF](6)[19.970962]NOTICE: Wait timeout.
[ATF](4)[19.971446]INFO: aee_wdt_dump: on cpu4
[ATF](4)[19.971980]INFO: (4) pc: lr: sp: pstate=80000005
[ATF](4)[19.973218]INFO: (4) x29: ffff80000808b430 x28: ffff80000808b673 x27: ffff8000092b7128
[ATF](4)[19.974284]INFO: (4) x26: 0000000000000001 x25: ffff8000087fed7c x24: 0000000000418958
[ATF](4)[19.975350]INFO: (4) x23: 000000000000005e x22: fffffffff091344f x21: 000000000f6ed0c5
[ATF](4)[19.976417]INFO: (4) x20: ffff8000093cdea8 x19: 00000000000032c8 x18: 0000000000000001
[ATF](4)[19.977483]INFO: (4) x17: 697865202174696e x16: 69206c6c696b206f x15: 0720072007200720
[ATF](4)[19.978549]INFO: (4) x14: ffff8000097f4c50 x13: 00000000000003ea x12: 000000000000014e
[ATF](4)[19.979615]INFO: (4) x11: 0720072007200720 x10: ffff80000984cc50 x09: 00000000fffff000
[ATF](4)[19.980681]INFO: (4) x08: ffff8000097f4c50 x07: ffff80000984cc50 x06: 0000000000000000
[ATF](4)[19.981747]INFO: (4) x05: 000000000000bff4 x04: 0000000000000000 x03: 0000000000000000
[ATF](4)[19.982813]INFO: (4) x02: 0000000000000004 x01: ffff80000808b430 x00: 0000000000003119
[ATF](4)[19.983879]NOTICE: Kernel WDT not ready
[ATF](4)[19.984418]NOTICE: Wait timeout.
[ATF](5)[19.984902]INFO: aee_wdt_dump: on cpu5
@ChalesYu - i remember having read that from other bootloaders as well, that they do not so nice things to the dtb (i think it was amazon tablets) ... from the logs it seems all cpu cores are up now - maybe trying to disable cpufreq in kernel config and/or dtb to at least get beyond that current crash?
Just report some progress. now switch back to use chainload u-boot to boot.
get a stable shell with maxcpus=1 cpuidle.off=1
, so it is ready to test drivers.
already get sdcard at msdc1-11240000 work in kernel.
wow - that looks like a good base to move on ... but most probably you'll have to touch the lk once you want to bring up the other cores but one thing after the other :) ... good luck!
now trying to compile and boot from other vendor mt6771 BSP code, but it looks won't get panel and touch controller work. write these driver without old source is beyond my ability.
So , anyway, I guess we need to waiting for a long time (3 years or more longer ?) till someone agree to publish their vendor BSP code for this tablet.
i do not want to spread pssimism, but the chances are high that the bsp sources will never be published and even if, then its not clear how useable they would be for mainline porting - to have them is definitely better than nothing, but some of the bsp sources are sometimes very close to nothing when it comes to them being really useful for such porting efforts
tablet is asus adol pad P030 (aka apad 10 pro), it have a MT8788 BSP Android 10 with kernel 4.14.141+(mp1V9110) I can attach to UART port, and found it using LK(little kernel) as old MTK SoC did.
I also found a guide , but failed when trying. https://github.com/freedomtan/X20-96-board/wiki/booting-mainline-kernel It can boot into fastboot but failed when booting mainlineboot.img
the screen driver is hx8279_sl101pm32d1720_wuxga_b06 , touch controler is silead gsl3692.
DeviceTree from fs :
asus_apad10pro_p030.dts
Any ideas ? Is there a way to pack boot.img so fastboot can boot it ?