[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Near-upstream kernel for VisionFive2



Ok, after some trial and error i ran the following on the visionfive2:

git clone -b "v6.6" https://github.com/torvalds/linux.git; cd linux;
b4 am -o- https://lore.kernel.org/linux-pci/20231031115430.113586-2-minda.chen@starfivetech.com/ | git am
wget https://the.earth.li/~noodles/vf2-6.6-config; cp vf2-6.6-config .config
time make -j6 bindeb-pkg

It took >5hrs, but did build a kernel package.

However, booting this kernel stalls during boot process at 
 
>  4.967512] Run /init as init process
> [ 15.480323] cadence-qspi 13010000.spi: Cannot claim QSPI clock.
> [ 15.487045] platform 13040000.gpio: deferred probe pending
> [ 15.493097] platform 17020000.gpio: deferred probe pending
> [ 15.499140] platform 10000000.serial: deferred probe pending
> [ 15.505374] platform gpio-restart: deferred probe pending
> [ 15.511340] platform 10030000.i2c: deferred probe pending
> [ 15.511348] platform 10050000.i2c: deferred probe pending
> [ 15.511354] platform 12050000.i2c: deferred probe pending
> [ 15.511360] platform 12060000.i2c: deferred probe pending
> [ 15.511367] platform 13010000.spi: deferred probe pending
> [ 15.541071] platform 2b000000.pcie: deferred probe pending
> [ 15.541078] platform 2c000000.pcie: deferred probe pending

Any idea what could be wrong ?
Full boot log attached.

Thanks,
K


U-Boot SPL 2021.10 (May 31 2023 - 16:54:00 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|___/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Platform Suspend Device   : ---
Firmware Base             : 0x40000000
Firmware Size             : 392 KB
Firmware RW Offset        : 0x40000
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region01          : 0x0000000040000000-0x000000004003ffff M: (R,X) S/U: ()
Domain0 Region02          : 0x0000000040040000-0x000000004007ffff M: (R,W) S/U: ()
Domain0 Region03          : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes
Domain0 SysSuspend        : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10 (Dec 27 2023 - 19:53:40 +0800), Build: jenkins-github_visionfive2-21

CPU:   rv64imacu_zba_zbb
Model: StarFive VisionFive V2
DRAM:  8 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, era
se size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110B1-2253-D008E000-00004978
data version: 0x2
PCB revision: 0xb2
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:4a:40
Ethernet MAC1 address: 6c:cf:39:00:4a:41
--------EEPROM INFO--------

In:    serial
Out:   serial
Err:   serial
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
starfive_pcie pcie@2B000000: Port link up.
starfive_pcie pcie@2B000000: Starfive PCIe bus probed.
PCI: Failed autoconfig bar 10
starfive_pcie pcie@2C000000: Port link up.
starfive_pcie pcie@2C000000: Starfive PCIe bus probed.
PCI: Failed autoconfig bar 10

Device 0: Vendor: 0x126f Rev: V0714C0  Prod: AYM1LW0103OUT00638
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
... is now current device
Try booting from NVME0 ...
385 bytes read in 4 ms (93.8 KiB/s)
## Error: "boot2" not defined

Device 0: Vendor: 0x126f Rev: V0714C0  Prod: AYM1LW0103OUT00638
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
... is now current device
Try booting from NVME0 ...
385 bytes read in 4 ms (93.8 KiB/s)
## Error: "boot2" not defined
Tring booting distro ...
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110

Device 0: Vendor: 0x126f Rev: V0714C0  Prod: AYM1LW0103OUT00638
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
... is now current device
Try booting from NVME0 ...
385 bytes read in 4 ms (93.8 KiB/s)
## Warning: defaulting to text format
48366 bytes read in 6 ms (7.7 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
48366 bytes written in 2 ms (23.1 MiB/s)
Retrieving file: /extlinux/extlinux.conf
1166 bytes read in 5 ms (227.5 KiB/s)
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 5.15.0-starfive NVME
2:      Debian GNU/Linux bookworm/sid vmlinuz-6.6.0+ NVME default
3:      Debian GNU/Linux bookworm/sid 6.8 NVME
Enter choice: 2
2:      Debian GNU/Linux bookworm/sid vmlinuz-6.6.0+ NVME default
Retrieving file: /initrd.img-6.6.0+
15910940 bytes read in 84 ms (180.6 MiB/s)
Retrieving file: /vmlinuz-6.6.0+
6824110 bytes read in 39 ms (166.9 MiB/s)
append: root=/dev/nvme0n1p4 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmac
eth=chain_mode:1 selinux=0
Retrieving file: /dtbs/starfive/jh7110-visionfive-v2.dtb
48366 bytes read in 5 ms (9.2 MiB/s)
   Uncompressing Kernel Image
Moving Image from 0x44000000 to 0x40200000, end=417eb000
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Using Device Tree in place at 0000000048000000, end 000000004800eced

Starting kernel ...

clk u2_dw_i2c_clk_core already disabled
clk u2_dw_i2c_clk_apb already disabled
clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled
[    0.000000] Linux version 6.6.0+ (user@starfive) (gcc (Debian 12.2.0-14) 12.2.0, GNU l
d (GNU Binutils for Debian) 2.40) #2 SMP Sat Apr 20 10:32:41 CEST 2024
[    0.000000] Machine model: StarFive VisionFive V2
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10002
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI SRST extension detected
[    0.000000] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] OF: reserved mem: failed to allocate memory for node 'linux,cma': size 153
6 MiB
[    0.000000] OF: reserved mem: 0x0000000040000000..0x000000004007ffff (512 KiB) nomap n
on-reusable opensbi@40000000
[    0.000000] OF: reserved mem: 0x00000000c0110000..0x00000000c01fffff (960 KiB) nomap n
on-reusable e24@c0000000
[    0.000000] OF: reserved mem: 0x00000000f0000000..0x00000000f1fffffe (32767 KiB) map n
on-reusable xrpbuffer@f0000000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000023fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000004007ffff]
[    0.000000]   node   0: [mem 0x0000000040080000-0x00000000c010ffff]
[    0.000000]   node   0: [mem 0x00000000c0110000-0x00000000c01fffff]
[    0.000000]   node   0: [mem 0x00000000c0200000-0x000000023fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000023fffffff]
[    0.000000] SBI HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] Falling back to deprecated "riscv,isa"
[    0.000000] riscv: base ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 29 pages/cpu s78824 r8192 d31768 u118784
[    0.000000] Kernel command line: root=/dev/nvme0n1p4 rw console=tty0 console=ttyS0,115
200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
[    0.000000] Unknown kernel command line parameters "stmmaceth=chain_mode:1 selinux=0",
 will be passed to user space.
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 2064384
[    0.000000] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 3122516K/8388608K available (8635K kernel code, 5113K rwdata, 4096
K rodata, 2497K init, 494K bss, 332184K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 32187 entries in 126 pages
[    0.000000] ftrace: allocated 126 pages with 6 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000]  Rude 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=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] riscv: providing IPIs using SBI IPI extension
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d8
54df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500n
s
[    0.009416] Console: colour dummy device 80x25
[    0.014323] printk: console [tty0] enabled
[    0.019499] Calibrating delay loop (skipped), value calculated using timer frequency..
 8.00 BogoMIPS (lpj=16000)
[    0.030702] pid_max: default: 32768 minimum: 301
[    0.041411] LSM: initializing lsm=capability,landlock,yama,apparmor,tomoyo,bpf,integri
ty
[    0.051987] landlock: Up and running.
[    0.056020] Yama: becoming mindful.
[    0.060005] AppArmor: AppArmor initialized
[    0.064532] TOMOYO Linux initialized
[    0.068487] LSM support for eBPF active
[    0.074702] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.083169] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear
)
[    0.099111] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.107503] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.115968] ASID allocator disabled (0 bits)
[    0.120873] rcu: Hierarchical SRCU implementation.
[    0.126152] rcu:     Max phase no-delay instances is 1000.
[    0.132686] EFI services will not be available.
[    0.138262] smp: Bringing up secondary CPUs ...
[    0.167301] cpu1: Ratio of byte access time to unaligned word access is 0.01, unaligne
d accesses are slow
[    0.203355] cpu2: Ratio of byte access time to unaligned word access is 0.01, unaligne
d accesses are slow
[    0.239406] cpu3: Ratio of byte access time to unaligned word access is 0.01, unaligne
d accesses are slow
[    0.250048] smp: Brought up 1 node, 4 CPUs
[    0.430541] node 0 deferred pages initialised in 172ms
[    0.439851] devtmpfs: initialized
[    0.457225] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns
: 7645041785100000 ns
[    0.468042] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.476444] pinctrl core: initialized pinctrl subsystem
[    0.484626] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.492666] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.501510] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocation
s
[    0.512626] audit: initializing netlink subsys (disabled)
[    0.518894] audit: type=2000 audit(0.416:1): state=initialized audit_enabled=0 res=1
[    0.519536] thermal_sys: Registered thermal governor 'fair_share'
[    0.527431] thermal_sys: Registered thermal governor 'bang_bang'
[    0.534136] thermal_sys: Registered thermal governor 'step_wise'
[    0.540744] thermal_sys: Registered thermal governor 'user_space'
[    0.547352] thermal_sys: Registered thermal governor 'power_allocator'
[    0.578093] cpu0: Ratio of byte access time to unaligned word access is 0.01, unaligne
d accesses are slow
[    0.604292] platform soc: Fixed dependency cycle(s) with /soc/plic@c000000
[    0.625931] platform soc:dsi-output: Fixed dependency cycle(s) with /soc/dc8200@294000
00/port/endpoint@2
[    0.636810] platform 295d0000.mipi: Fixed dependency cycle(s) with /soc/dsi-output/por
ts/port@1/endpoint
[    0.647648] platform 29590000.hdmi: Fixed dependency cycle(s) with /soc/dc8200@2940000
0/port/endpoint@1
[    0.667509] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.674993] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.688746] pps_core: LinuxPPS API ver. 1 registered
[    0.694224] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom
etti@linux.it>
[    0.704285] PTP clock support registered
[    0.710207] NetLabel: Initializing
[    0.713965] NetLabel:  domain hash size = 128
[    0.718758] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.725075] NetLabel:  unlabeled traffic allowed by default
[    0.731439] clocksource: Switched to clocksource riscv_clocksource
[    0.743528] VFS: Disk quotas dquot_6.6.0
[    0.748166] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.757162] AppArmor: AppArmor Filesystem Enabled
[    0.776919] NET: Registered PF_INET protocol family
[    0.783517] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.806698] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes,
linear)
[    0.816446] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.825608] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.836909] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[    0.847354] TCP: Hash tables configured (established 65536 bind 65536)
[    0.855854] MPTCP token hash table entries: 8192 (order: 5, 196608 bytes, linear)
[    0.864673] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.872483] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.881527] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.887835] NET: Registered PF_XDP protocol family
[    0.893127] PCI: CLS 0 bytes, default 64
[    0.899087] Initialise system trusted keyrings
[    0.904440] Unpacking initramfs...
[    0.908498] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.915758] zbud: loaded
[    0.922650] Key type asymmetric registered
[    0.927214] Asymmetric key parser 'x509' registered
[    3.729110] Freeing initrd memory: 15536K
[    3.767764] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    3.776201] io scheduler mq-deadline registered
[    3.791650] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.803159] mousedev: PS/2 mouse device common for all mice
[    3.810159] ledtrig-cpu: registered to indicate activity on CPUs
[    3.817013] riscv-pmu-sbi: SBI PMU extension is available
[    3.822980] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    3.829413] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension
 is not available
[    3.842256] NET: Registered PF_INET6 protocol family
[    3.874973] Segment Routing with IPv6
[    3.879121] In-situ OAM (IOAM) with IPv6
[    3.883553] mip6: Mobile IPv6
[    3.886830] NET: Registered PF_PACKET protocol family
[    3.892605] mpls_gso: MPLS GSO support
[    3.903176] registered taskstats version 1
[    3.907982] Loading compiled-in X.509 certificates
[    3.926201] Key type .fscrypt registered
[    3.930546] Key type fscrypt-provisioning registered
[    3.961154] Key type encrypted registered
[    3.965605] AppArmor: AppArmor sha1 policy hashing enabled
[    3.971698] ima: No TPM chip found, activating TPM-bypass!
[    3.977796] ima: Allocated hash algorithm: sha256
[    3.983022] ima: No architecture policies found
[    3.988079] evm: Initialising EVM extended attributes:
[    3.993737] evm: security.selinux
[    3.997398] evm: security.SMACK64 (disabled)
[    4.002099] evm: security.SMACK64EXEC (disabled)
[    4.007182] evm: security.SMACK64TRANSMUTE (disabled)
[    4.012742] evm: security.SMACK64MMAP (disabled)
[    4.017830] evm: security.apparmor
[    4.021578] evm: security.ima
[    4.024846] evm: security.capability
[    4.028784] evm: HMAC attrs: 0x1
[    4.937487] clk: Disabling unused clocks
[    4.948711] Freeing unused kernel image (initmem) memory: 2496K
[    4.967512] Run /init as init process
[   15.480323] cadence-qspi 13010000.spi: Cannot claim QSPI clock.
[   15.487045] platform 13040000.gpio: deferred probe pending
[   15.493097] platform 17020000.gpio: deferred probe pending
[   15.499140] platform 10000000.serial: deferred probe pending
[   15.505374] platform gpio-restart: deferred probe pending
[   15.511340] platform 10030000.i2c: deferred probe pending
[   15.511348] platform 10050000.i2c: deferred probe pending
[   15.511354] platform 12050000.i2c: deferred probe pending
[   15.511360] platform 12060000.i2c: deferred probe pending
[   15.511367] platform 13010000.spi: deferred probe pending
[   15.541071] platform 2b000000.pcie: deferred probe pending
[   15.541078] platform 2c000000.pcie: deferred probe pending


Reply to: