@evler 大佬你好哈!我拉了你的https://github.com/Evlers/linux_kernel_t113.git然后使用mangopi_dual_t113_defconfig配置文件,设备树中加了uart3配置;启动方式使用:uboot + linux6.0.1+buildroot rootfs;但是出现了奇怪的现象:CPU1: failed to come online cpu1启动失败; 请教大佬有什么什么思路提供?十分感谢😂 启动log如下:
U-Boot 2018.05 (Mar 21 2023 - 08:00:44 +0000) Allwinner Technology
[00.336]CPU: Allwinner Family
[00.339]Model: sun8iw20
[00.341]DRAM: 128 MiB
[00.344]Relocation Offset is: 04ec5000
[00.371]secure enable bit: 0
E/TC:0 tee_read_fdt:433 fine node /firmware/optee failed with FDT_ERR_NOTFOUND
[00.384]smc_tee_inform_fdt failed with: -65536[00.388]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.394]gic: sec monitor mode
[00.397]flash init start
[00.399]workmode = 0,storage type = 2
[00.402][mmc]: mmc driver ver uboot2018:2021-09-07 19:43:00
[00.409][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.437][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 4
[00.443]sunxi flash init ok
[00.446]line:703 init_clocks
[00.449]drv_disp_init
request pwm success, pwm7:pwm7:0x2000c00.
[00.463]drv_disp_init finish
[00.466]boot_gui_init:start
[00.469]set disp.dev2_output_type fail. using defval=0
[00.475]boot_gui_init:finish
partno erro : can't find partition bootloader
54 bytes read in 1 ms (52.7 KiB/s)
[00.494]bmp_name=bootlogo.bmp size 1152054
1152054 bytes read in 47 ms (23.4 MiB/s)
[00.655]LCD open finish
[00.657]Loading Environment from SUNXI_FLASH... OK
[00.685]Item0 (Map) magic is bad
[00.688]the secure storage item0 copy0 magic is bad
[00.696]Item0 (Map) magic is bad
[00.699]the secure storage item0 copy1 magic is bad
[00.704]Item0 (Map) magic is bad
secure storage read widevine fail
[00.710]secure storage read widevine fail with:-1
secure storage read ec_key fail
[00.717]secure storage read ec_key fail with:-1
secure storage read ec_cert1 fail
[00.724]secure storage read ec_cert1 fail with:-1
secure storage read ec_cert2 fail
[00.732]secure storage read ec_cert2 fail with:-1
secure storage read ec_cert3 fail
[00.739]secure storage read ec_cert3 fail with:-1
secure storage read rsa_key fail
[00.746]secure storage read rsa_key fail with:-1
secure storage read rsa_cert1 fail
[00.754]secure storage read rsa_cert1 fail with:-1
secure storage read rsa_cert2 fail
[00.761]secure storage read rsa_cert2 fail with:-1
secure storage read rsa_cert3 fail
[00.769]secure storage read rsa_cert3 fail with:-1
[00.774]usb burn from boot
delay time 0
weak:otg_phy_config
[00.785]usb prepare ok
[00.992]usb sof ok
[00.993]usb probe ok
[00.995]usb setup ok
set address 0x40
set address 0x40 ok
try to update
[04.000]do_burn_from_boot usb : have no handshake
List file under ULI/factory
** Unrecognized filesystem type **
[04.023]update part info
[04.026]update bootcmd
[04.044]replace fdt from raw partition(dtb) success
[04.049][mmc]: no mmc-hs400-1_8v!
[04.052][mmc]: no mmc-hs200-1_8v!
[04.055][mmc]: get max-frequency ok 50000000 Hz
[04.061]## error: update_fdt_dram_para : FDT_ERR_NOTFOUND
[04.068]update dts
Hit any key to stop autoboot: 0
[07.313]no vendor_boot partition is found
Android's image name: sun8i_arm
## Transferring control to Linux (at address 40008000)...
## Linux machid: 00000000, FDT addr: 41800000
[07.337]Starting kernel ...
[07.339][mmc]: mmc exit start
[07.358][mmc]: mmc 2 exit ok
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.0.1-gd7d8c971c9c5-dirty (dzh@compile) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #4 SMP Mon Apr 24 10:54:04 UTC 2023
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: MangoPi MQ-Dual
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0x47000000
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000040000000-0x0000000047ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x0000000047ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[ 0.000000] percpu: Embedded 11 pages/cpu s15508 r8192 d21356 u45056
[ 0.000000] pcpu-alloc: s15508 r8192 d21356 u45056 alloc=11*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: earlycon=sunxi-uart,0x02500C00 clk_ignore_unused initcall_debug=0 console=ttyS3,115200 loglevel=8 root=/dev/mmcblk2p5 init=/init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dtb@mmcblk0p6:dsp0@mmcblk0p7:private@mmcblk0p8:UDISK@mmcblk0p9 cma=16M snum= mac_addr= wifi_mac= bt_mac= specialstr= replace_fdt=dtb:raw gpt=1 androidboot.hardware=sun8iw20p1 boot_type=2 androidboot.boot_type=2 gpt=1 uboot_message=2018.05(03/21/2023-08:00:44) disp_reserve=2457600,0x448ee000 androidboot.dramsize=128
[ 0.000000] Unknown kernel command line parameters "partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dtb@mmcblk0p6:dsp0@mmcblk0p7:private@mmcblk0p8:UDISK@mmcblk0p9 snum= mac_addr= wifi_mac= bt_mac= specialstr= replace_fdt=dtb:raw boot_type=2 uboot_message=2018.05(03/21/2023-08:00:44) disp_reserve=2457600,0x448ee000", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 97312K/131072K available (8192K kernel code, 942K rwdata, 2100K rodata, 1024K init, 263K bss, 17376K reserved, 16384K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000014] Switching to timer-based delay loop, resolution 41ns
[ 0.000220] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000808] Console: colour dummy device 80x30
[ 0.000855] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000872] pid_max: default: 32768 minimum: 301
[ 0.001043] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001060] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001653] CPU: Testing write buffer coherency: ok
[ 0.001985] /cpus/cpu@0 missing clock-frequency property
[ 0.002019] /cpus/cpu@1 missing clock-frequency property
[ 0.002031] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002915] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003075] rcu: Hierarchical SRCU implementation.
[ 0.003081] rcu: Max phase no-delay instances is 1000.
[ 0.003672] smp: Bringing up secondary CPUs ...
[ 1.040373] CPU1: failed to come online
[ 1.040455] smp: Brought up 1 node, 1 CPU
[ 1.040466] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 1.040474] CPU: All CPU(s) started in SVC mode.
[ 1.040991] devtmpfs: initialized
[ 1.045887] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 1.046098] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 1.046121] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 1.046780] pinctrl core: initialized pinctrl subsystem
[ 1.048133] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 1.049097] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 1.049984] thermal_sys: Registered thermal governor 'step_wise'
[ 1.050300] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 1.050313] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 1.059372] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[ 1.059460] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[ 1.059772] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 1.060184] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5604000.tv-encoder
[ 1.060246] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 1.061241] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[ 1.072642] SCSI subsystem initialized
[ 1.072982] libata version 3.00 loaded.
[ 1.073187] usbcore: registered new interface driver usbfs
[ 1.073230] usbcore: registered new interface driver hub
[ 1.073274] usbcore: registered new device driver usb
[ 1.073491] mc: Linux media interface: v0.10
[ 1.073537] videodev: Linux video capture interface: v2.00
[ 1.073620] pps_core: LinuxPPS API ver. 1 registered
[ 1.073626] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.073642] PTP clock support registered
[ 1.074104] Advanced Linux Sound Architecture Driver Initialized.
[ 1.075410] clocksource: Switched to clocksource arch_sys_counter
[ 1.084034] NET: Registered PF_INET protocol family
[ 1.084250] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 1.084872] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 1.084902] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 1.084914] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 1.084933] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 1.084955] TCP: Hash tables configured (established 1024 bind 1024)
[ 1.085042] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 1.085078] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 1.085247] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 1.086082] RPC: Registered named UNIX socket transport module.
[ 1.086095] RPC: Registered udp transport module.
[ 1.086099] RPC: Registered tcp transport module.
[ 1.086103] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.087195] Initialise system trusted keyrings
[ 1.087600] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 1.093369] NFS: Registering the id_resolver key type
[ 1.093445] Key type id_resolver registered
[ 1.093450] Key type id_legacy registered
[ 1.093495] Key type asymmetric registered
[ 1.093501] Asymmetric key parser 'x509' registered
[ 1.093644] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 1.093653] io scheduler mq-deadline registered
[ 1.093659] io scheduler kyber registered
[ 1.161629] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 1.173166] CAN device driver interface
[ 1.173999] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.174008] ehci-platform: EHCI generic platform driver
[ 1.174170] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.174188] ohci-platform: OHCI generic platform driver
[ 1.177381] sun6i-rtc 7090000.rtc: registered as rtc0
[ 1.177505] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T02:16:51 UTC (94611)
[ 1.177648] sun6i-rtc 7090000.rtc: RTC enabled
[ 1.178010] i2c_dev: i2c /dev entries driver
[ 1.180267] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.181614] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz)
[ 1.182182] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 1.182528] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 1.182722] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 1.182898] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 1.183026] sun8i-ce 3040000.crypto: Register cbc(aes)
[ 1.183048] sun8i-ce 3040000.crypto: Register ecb(aes)
[ 1.183058] sun8i-ce 3040000.crypto: Register cbc(des3_ede)
[ 1.183068] sun8i-ce 3040000.crypto: Register ecb(des3_ede)
[ 1.183101] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0
[ 1.184076] usbcore: registered new interface driver usbhid
[ 1.184087] usbhid: USB HID core driver
[ 1.187146] NET: Registered PF_PACKET protocol family
[ 1.187175] can: controller area network core
[ 1.187252] NET: Registered PF_CAN protocol family
[ 1.187260] can: raw protocol
[ 1.187267] can: broadcast manager protocol
[ 1.187276] can: netlink gateway - max_hops=1
[ 1.187471] Key type dns_resolver registered
[ 1.187623] Registering SWP/SWPB emulation handler
[ 1.187832] Loading compiled-in X.509 certificates
[ 1.208135] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[ 1.209548] printk: console [ttyS3] disabled
[ 1.230007] 2500c00.serial: ttyS3 at MMIO 0x2500c00 (irq = 231, base_baud = 1500000) is a 16550A
[ 2.178859] printk: console [ttyS3] enabled
[ 2.204847] 2501400.serial: ttyS5 at MMIO 0x2501400 (irq = 232, base_baud = 1500000) is a 16550A
[ 2.215167] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[ 2.225071] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[ 2.230897] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 1
[ 2.239740] hub 1-0:1.0: USB hub found
[ 2.243541] hub 1-0:1.0: 1 port detected
[ 2.253220] ehci-platform 4200000.usb: EHCI Host Controller
[ 2.258914] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 2
[ 2.272228] clk: Not disabling unused clocks
[ 2.276598] ALSA device list:
[ 2.279570] No soundcards found.
[ 2.284167] ohci-platform 4200400.usb: Generic Platform OHCI controller
[ 2.290866] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 3
[ 2.303754] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[ 2.309379] sunxi-mmc 4020000.mmc: Got CD GPIO
[ 2.314452] ehci-platform 4200000.usb: irq 236, io mem 0x04200000
[ 2.320988] ohci-platform 4200400.usb: irq 238, io mem 0x04200400
[ 2.333396] sunxi-mmc 4021000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[ 2.342661] sunxi-mmc 4022000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[ 2.351779] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[ 2.358612] sunxi-mmc 4020000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[ 2.368826] hub 2-0:1.0: USB hub found
[ 2.372769] hub 2-0:1.0: 1 port detected
[ 2.400219] hub 3-0:1.0: USB hub found
[ 2.404026] hub 3-0:1.0: 1 port detected
[ 2.627342] mmc2: new DDR MMC card at address 0001
[ 2.633091] mmcblk2: mmc2:0001 AT20S1 112 MiB
[ 2.646550] mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8 p9
[ 2.653100] mmcblk2boot0: mmc2:0001 AT20S1 128 KiB
[ 2.659816] mmcblk2boot1: mmc2:0001 AT20S1 128 KiB
[ 3.285511] phy phy-4100400.phy.0: Changing dr_mode to 1
[ 3.290867] ehci-platform 4101000.usb: EHCI Host Controller
[ 3.296491] ehci-platform 4101000.usb: new USB bus registered, assigned bus number 4
[ 3.304505] ehci-platform 4101000.usb: irq 235, io mem 0x04101000
[ 3.335408] ehci-platform 4101000.usb: USB 2.0 started, EHCI 1.00
[ 3.342324] hub 4-0:1.0: USB hub found
[ 3.346195] hub 4-0:1.0: 1 port detected
[ 3.515485] ohci-platform 4101400.usb: Generic Platform OHCI controller
[ 3.522134] ohci-platform 4101400.usb: new USB bus registered, assigned bus number 5
[ 3.530098] ohci-platform 4101400.usb: irq 237, io mem 0x04101400
[ 3.610201] hub 5-0:1.0: USB hub found
[ 3.614005] hub 5-0:1.0: 1 port detected
[ 3.642633] EXT4-fs (mmcblk2p5): mounted filesystem with ordered data mode. Quota mode: disabled.
[ 3.651666] VFS: Mounted root (ext4 filesystem) readonly on device 179:5.
[ 3.659363] devtmpfs: mounted
[ 3.663679] Freeing unused kernel image (initmem) memory: 1024K
[ 3.669884] Run /init as init process
[ 3.673552] with arguments:
[ 3.676533] /init
[ 3.678804] with environment:
[ 3.681941] HOME=/
[ 3.684298] TERM=linux
[ 3.687035] partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dtb@mmcblk0p6:dsp0@mmcblk0p7:private@mmcblk0p8:UDISK@mmcblk0p9
[ 3.703104] snum=
[ 3.705383] mac_addr=
[ 3.708001] wifi_mac=
[ 3.710618] bt_mac=
[ 3.713061] specialstr=
[ 3.715871] replace_fdt=dtb:raw
[ 3.719356] boot_type=2
[ 3.722146] uboot_message=2018.05(03/21/2023-08:00:44)
[ 3.727637] disp_reserve=2457600,0x448ee000
can't run '/etc/preinit': No such file or directory
[ 3.853901] EXT4-fs (mmcblk2p5): re-mounted. Quota mode: disabled.
Starting syslogd: OK
Starting klogd: OK
Populating /dev using udev: [ 3.979556] udevd[101]: starting version 3.2.7
[ 9.105398] random: crng init done
[ 9.129299] udevd[101]: specified group 'input' unknown
[ 9.135470] udevd[101]: specified group 'kvm' unknown
[ 9.163026] udevd[102]: starting eudev-3.2.7
与主线linux内核启动log对比:
9ddd952b-bfb3-4550-8732-2fa920423adb-image.png