按照您提供的方式,更新了LSDK2012中的dts和rcw文件,如附件所示, 使用flex-builder -i mkfw -m ls1012ardb -b qspi -c linux来生成uboot 使用flex-builder -i mkrfs生成ubuntu 使用flex-bulider -i mkbootpartition -a arm64生成引导文件 之后使用flex-installer 将文件安装盘中,启动道bmu_init后卡住,日志如下
U-Boot 2018.03 (Feb 25 2019 - 03:16:08 +0000)
SoC: LS1012A Rev2.0 (0x87040120) Clock Configuration: CPU0(A53):1000 MHz Bus: 250 MHz DDR: 1000 MT/s Reset Configuration Word (RCW): 00000000: 0800000a 00000000 00000000 00000000 00000010: 35080000 c000000c 40000000 00001800 00000020: 00000000 00000000 00000000 00014572 00000030: 00000000 1082a120 00000096 00000000 I2C: ready DRAM: 446 MiB ds2460 write secret ok Using SERDES1 Protocol: 13576 (0x3508) PPA Firmware: Version LSDK-18.06-Forlinx SEC Firmware: 'loadables' present in config loadables: 'trustedOS@1' WARNING: Calling __hwconfig without a buffer and before environment is ready MMC: FSL_SDHC: 0, FSL_SDHC: 1 Loading Environment from SPI Flash... SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB OK In: serial Out: serial Err: serial Model: OK1012-C Board: OK1012-C SATA link 0 timeout. AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst Found 0 device(s). SCSI: Net: PFE class pe firmware PFE tmu pe firmware pfe_configure_serdes 0 eth0: pfe_eth0, eth1: pfe_eth1 Hit any key to stop autoboot: 0 Stopping PFE... starting USB... USB0: Register 200017f NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found
Device 0: Vendor: PNY Rev: PMAP Prod: USB 3.0 FD Type: Removable Hard Disk Capacity: 15112.0 MB = 14.7 GB (30949376 x 512) ... is now current device Scanning usb 0:1... Scanning usb 0:2... Found U-Boot script /ls1012ardb_boot.scr 962 bytes read in 638 ms (1000 Bytes/s) ## Executing script at 80000000 ** Invalid partition 4 ** 36950528 bytes read in 885 ms (39.8 MiB/s) 14798 bytes read in 131 ms (109.4 KiB/s) ## Flattened Device Tree blob at 90000000 Booting using the fdt blob at 0x90000000 Using Device Tree in place at 0000000090000000, end 00000000900069cd WARNING: fdt_fixup_stdout: could not read serial0 alias: FDT_ERR_NOTFOUND PCIe0: pcie@3400000 Root Complex: no link
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.4.47-dirty (root@steven-virtual-machine) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #1 SMP PREEMPT Tue Jun 15 00:19:07 CST 2021 [ 0.000000] Machine model: LS1012A RDB Board [ 0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '') [ 0.000000] printk: bootconsole [uart8250] enabled [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Failed to reserve 320 MiB [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x000000009bdfffff] [ 0.000000] NUMA: NODE_DATA [mem 0x9bd0f800-0x9bd10fff] [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080000000-0x000000009bdfffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x000000009bdfffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009bdfffff] [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv0.2 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] percpu: Embedded 24 pages/cpu s59928 r8192 d30184 u98304 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 112392 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID= rw rootwait [ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 389832K/456704K available (18748K kernel code, 2484K rwdata, 8920K rodata, 5888K init, 1001K bss, 66872K reserved, 0K cma-reserved) [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=1. [ 0.000000] 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=1 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x458 with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns [ 0.000004] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns [ 0.008662] Console: colour dummy device 80x25 [ 0.013222] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=100000) [ 0.023676] pid_max: default: 32768 minimum: 301 [ 0.028430] LSM: Security Framework initializing [ 0.033154] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.040538] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.072464] ASID allocator initialised with 32768 entries [ 0.085944] rcu: Hierarchical SRCU implementation. [ 0.099788] EFI services will not be available. [ 0.112390] smp: Bringing up secondary CPUs ... [ 0.116972] smp: Brought up 1 node, 1 CPU [ 0.121017] SMP: Total of 1 processors activated. [ 0.125768] CPU features: detected: 32-bit EL0 Support [ 0.130957] CPU features: detected: CRC32 instructions [ 0.146690] CPU: All CPU(s) started at EL2 [ 0.150842] alternatives: patching kernel code [ 0.156561] devtmpfs: initialized [ 0.164535] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.174415] futex hash table entries: 256 (order: 2, 16384 bytes, linear) [ 0.181508] xor: measuring software checksum speed [ 0.226390] 8regs : 1919.000 MB/sec [ 0.270649] 32regs : 2359.000 MB/sec [ 0.314906] arm64_neon: 2067.000 MB/sec [ 0.319125] xor: using function: 32regs (2359.000 MB/sec) [ 0.324581] pinctrl core: initialized pinctrl subsystem [ 0.330883] DMI not present or invalid. [ 0.335205] NET: Registered protocol family 16 [ 0.340208] DMA: preallocated 256 KiB pool for atomic allocations [ 0.346382] audit: initializing netlink subsys (disabled) [ 0.353207] audit: type=2000 audit(0.300:1): state=initialized audit_enabled=0 res=1 [ 0.365095] cpuidle: using governor menu [ 0.369513] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.377555] Serial: AMBA PL011 UART driver [ 0.381822] imx mu driver is registered. [ 0.385805] imx rpmsg driver is registered. [ 0.392901] Machine: LS1012A RDB Board [ 0.396726] SoC family: QorIQ LS1012A [ 0.400414] SoC ID: svr:0x87040120, Revision: 2.0 [ 0.429634] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.436448] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.443214] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.449980] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.460812] cryptd: max_cpu_qlen set to 1000 [ 0.545375] raid6: neonx8 gen() 1441 MB/s [ 0.617792] raid6: neonx8 xor() 1316 MB/s [ 0.690207] raid6: neonx4 gen() 1327 MB/s [ 0.762600] raid6: neonx4 xor() 1246 MB/s [ 0.835024] raid6: neonx2 gen() 1031 MB/s [ 0.907426] raid6: neonx2 xor() 1042 MB/s [ 0.979926] raid6: neonx1 gen() 630 MB/s [ 1.052338] raid6: neonx1 xor() 733 MB/s [ 1.124736] raid6: int64x8 gen() 838 MB/s [ 1.197133] raid6: int64x8 xor() 634 MB/s [ 1.269572] raid6: int64x4 gen() 911 MB/s [ 1.341975] raid6: int64x4 xor() 651 MB/s [ 1.414369] raid6: int64x2 gen() 601 MB/s [ 1.486776] raid6: int64x2 xor() 516 MB/s [ 1.559216] raid6: int64x1 gen() 403 MB/s [ 1.631652] raid6: int64x1 xor() 412 MB/s [ 1.635961] raid6: using algorithm neonx8 gen() 1441 MB/s [ 1.641408] raid6: .... xor() 1316 MB/s, rmw enabled [ 1.646416] raid6: using neon recovery algorithm [ 1.651656] ACPI: Interpreter disabled. [ 1.659592] iommu: Default domain type: Passthrough [ 1.664838] vgaarb: loaded [ 1.667910] SCSI subsystem initialized [ 1.676027] usbcore: registered new inte**ce driver usbfs [ 1.681628] usbcore: registered new inte**ce driver hub [ 1.687041] usbcore: registered new device driver usb [ 1.693117] i2c i2c-0: IMX I2C adapter registered [ 1.698394] mc: Linux media inte**ce: v0.10 [ 1.702745] videodev: Linux video capture inte**ce: v2.00 [ 1.708378] pps_core: LinuxPPS API ver. 1 registered [ 1.713389] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 1.722620] PTP clock support registered [ 1.726675] EDAC MC: Ver: 3.0.0 [ 1.731394] No BMan portals available! [ 1.735604] QMan: Allocated lookup table at (____ptrval____), entry count 65537 [ 1.743103] No QMan portals available! [ 1.747061] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree [ 1.757321] FPGA manager framework [ 1.760859] Advanced Linux Sound Architecture Driver Initialized. [ 1.768227] clocksource: Switched to clocksource arch_sys_counter [ 1.774653] VFS: Disk quotas dquot_6.6.0 [ 1.778680] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.785818] pnp: PnP ACPI: disabled [ 1.795481] thermal_sys: Registered thermal governor 'step_wise' [ 1.795485] thermal_sys: Registered thermal governor 'power_allocator' [ 1.802000] NET: Registered protocol family 2 [ 1.813628] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear) [ 1.822154] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 1.830059] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear) [ 1.837341] TCP: Hash tables configured (established 4096 bind 4096) [ 1.843861] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 1.850468] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 1.857651] NET: Registered protocol family 1 [ 1.874573] RPC: Registered named UNIX socket transport module. [ 1.880595] RPC: Registered udp transport module. [ 1.885343] RPC: Registered tcp transport module. [ 1.890091] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.896601] PCI: CLS 0 bytes, default 64 [ 1.901289] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available [ 1.909358] kvm [1]: IPA Size Limit: 40bits [ 1.914592] kvm [1]: vgic interrupt IRQ1 [ 1.918640] kvm [1]: Hyp mode initialized successfully [ 1.925560] Initialise system trusted keyrings [ 1.930345] workingset: timestamp_bits=44 max_order=17 bucket_order=0 [ 1.937552] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.947857] NFS: Registering the id_resolver key type [ 1.953040] Key type id_resolver registered [ 1.957276] Key type id_legacy registered [ 1.961333] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.968117] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 1.974568] fuse: init (API version 7.31) [ 1.978770] 9p: Installing v9fs 9p2000 file system support [ 1.999769] Key type asymmetric registered [ 2.003937] Asymmetric key parser 'x509' registered [ 2.008938] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243) [ 2.020548] io scheduler mq-deadline registered [ 2.025156] io scheduler kyber registered [ 2.036416] layerscape-pcie 3400000.pcie: host bridge /soc/pcie@3400000 ranges: [ 2.043874] layerscape-pcie 3400000.pcie: IO 0x4000010000..0x400001ffff -> 0x00000000 [ 2.052063] layerscape-pcie 3400000.pcie: MEM 0x4040000000..0x407fffffff -> 0x40000000 [ 2.060411] layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00 [ 2.067187] pci_bus 0000:00: root bus resource [bus 00-ff] [ 2.072728] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 2.078972] pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff]) [ 2.089621] pci 0000:00:00.0: [1957:8101] type 01 class 0x060400 [ 2.095711] pci 0000:00:00.0: reg 0x38: [mem 0x4040000000-0x40400007ff pref] [ 2.102873] pci 0000:00:00.0: supports D1 D2 [ 2.107186] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot [ 2.115254] pci 0000:00:00.0: BAR 6: assigned [mem 0x4040000000-0x40400007ff pref] [ 2.122907] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 2.128485] pcieport 0000:00:00.0: PME: Signaling with IRQ 25 [ 2.134613] pcieport 0000:00:00.0: AER: enabled with IRQ 24 [ 2.145559] EINJ: ACPI disabled. [ 2.153334] Bus freq driver module loaded [ 2.163102] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 2.172027] printk: console [ttyS0] disabled [ 2.176480] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 14, base_baud = 7812500) is a 16550A [ 2.185314] printk: console [ttyS0] enabled [ 2.185314] printk: console [ttyS0] enabled [ 2.193734] printk: bootconsole [uart8250] disabled [ 2.193734] printk: bootconsole [uart8250] disabled [ 2.204189] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 14, base_baud = 7812500) is a 16550A [ 2.213521] SuperH (H)SCI(F) driver initialized [ 2.218617] msm_serial: driver initialized [ 2.227152] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 2.241171] brd: module loaded [ 2.251683] loop: module loaded [ 2.269385] imx ahci driver is registered. [ 2.273932] ahci-qoriq 3200000.sata: 3200000.sata supply ahci not found, using dummy regulator [ 2.282673] ahci-qoriq 3200000.sata: 3200000.sata supply phy not found, using dummy regulator [ 2.291278] ahci-qoriq 3200000.sata: 3200000.sata supply target not found, using dummy regulator [ 2.300235] ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl platform mode [ 2.309224] ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst [ 2.323613] scsi host0: ahci-qoriq [ 2.327354] ata1: SATA max UDMA/133 mmio [mem 0x03200000-0x0320ffff] port 0x100 irq 21 [ 2.337818] spi-nor spi0.0: found w25q128, expected m25p80 [ 2.343368] spi-nor spi0.0: w25q128 (16384 Kbytes) [ 2.355106] libphy: Fixed MDIO Bus: probed [ 2.360141] tun: Universal TUN/TAP device driver, 1.6 [ 2.366131] thunder_xcv, ver 1.0 [ 2.369476] thunder_bgx, ver 1.0 [ 2.372776] nicpf, ver 1.0 [ 2.375872] Freescale FM module, FMD API version 21.1.0 [ 2.381294] Freescale FM Ports module [ 2.384978] fsl_mac: fsl_mac: FSL FMan MAC API based driver [ 2.390671] fsl_dpa: FSL DPAA Ethernet driver [ 2.395128] fsl_advanced: FSL DPAA Advanced drivers: [ 2.400109] fsl_proxy: FSL DPAA Proxy initialization driver [ 2.405778] fsl_oh: FSL FMan Offline Parsing port driver [ 2.411822] hclge is initializing [ 2.415170] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version [ 2.422412] hns3: Copyright (c) 2017 Huawei Corporation. [ 2.427806] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 2.434875] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 2.440675] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [ 2.446523] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 2.452509] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k [ 2.459488] igb: Copyright (c) 2007-2014 Intel Corporation. [ 2.465112] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k [ 2.472962] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 2.479240] sky2: driver version 1.30 [ 2.483461] usbcore: registered new inte**ce driver r8152 [ 2.489010] usbcore: registered new inte**ce driver asix [ 2.494474] usbcore: registered new inte**ce driver ax88179_178a [ 2.501220] VFIO - User Level meta-driver version: 0.3 [ 2.511039] dwc3 2f00000.usb3: Failed to get clk 'ref': -2 [ 2.518625] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.525219] ehci-pci: EHCI PCI platform driver [ 2.529736] ehci-platform: EHCI generic platform driver [ 2.535105] ehci-orion: EHCI orion driver [ 2.539236] ehci-exynos: EHCI EXYNOS driver [ 2.543522] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 2.549787] ohci-pci: OHCI PCI platform driver [ 2.554306] ohci-platform: OHCI generic platform driver [ 2.559702] ohci-exynos: OHCI EXYNOS driver [ 2.564411] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 2.569974] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 2.577783] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x0000000002010010 [ 2.587260] xhci-hcd xhci-hcd.0.auto: irq 20, io mem 0x02f00000 [ 2.593976] hub 1-0:1.0: USB hub found [ 2.597803] hub 1-0:1.0: 1 port detected [ 2.602063] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 2.607602] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 2.615304] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 2.621906] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 2.630530] hub 2-0:1.0: USB hub found [ 2.634340] hub 2-0:1.0: 1 port detected [ 2.638952] usbcore: registered new inte**ce driver usb-storage [ 2.648794] ftm-alarm 29d0000.timer: registered as rtc1 [ 2.654098] ata1: SATA link down (SStatus 0 SControl 300) [ 2.660676] i2c /dev entries driver [ 2.670021] imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0) [ 2.677760] qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver [ 2.685020] sdhci: Secure Digital Host Controller Inte**ce driver [ 2.691281] sdhci: Copyright(c) Pierre Ossman [ 2.696163] Synopsys Designware ** Card Inte**ce Driver [ 2.703075] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.739701] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit [ 2.778237] mmc1: SDHCI controller on 1580000.esdhc [1580000.esdhc] using ADMA 64-bit [ 2.788092] ledtrig-cpu: registered to indicate activity on CPUs [ 2.796129] usbcore: registered new inte**ce driver usbhid [ 2.801771] usbhid: USB HID core driver [ 2.808072] No fsl,qman node [ 2.811102] Freescale USDPAA process driver [ 2.815413] fsl-usdpaa: no region found [ 2.819351] Freescale USDPAA process IRQ driver [ 2.824689] cbus_baseaddr: ffff800013000000, ddr_baseaddr: ffff000003400000, ddr_phys_baseaddr: 83400000, ddr_size: c00000 [ 2.835815] pfe_hw_init [ 2.838296] CLASS version: 20 [ 2.841379] TMU version: 1011231 [ 2.844643] BMU1 version: 21 [ 2.847572] BMU2 version: 21 [ 2.850574] EGPI1 version: 50 [ 2.853698] EGPI2 version: 50 [ 2.856761] HGPI version: 50 [ 2.859640] HIF version: 10 [ 2.862472] HIF NOPCY version: 10 [ 2.865810] bmu_init(1) done [ 2.868714] bmu_init(2) done [url=]附件[/url]
使用飞凌LSDK 1806的固件正常的日志、修改后的dts和rcw文件如附件所示。请问是其他地方还需要修改吗?还是说需要更新Uboot才可以支持LSDK2012版本的固件?
|