TH1520(C910)boot information: CPU1、CPU2、CPU3: failed to come online ; only CPU0 succeed to come online
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c, linux
- Domain
- embedded-iot, operating-systems
Research direction
Start by comparing the attached LicheePi4A Linux 6.6 logs produced with upstream OpenSBI and revyos OpenSBI, then inspect the referenced Armbian build commit 3098c2f0 and the th1520-v6.6.3 and th1520-v1.3.1 branches. Done means identifying why secondary CPUs fail with the upstream binary and documenting or implementing a compatible OpenSBI update for TH1520.
Written by the indexing model from the issue text.
Description
build LicheePi4A images link:https://github.com/armbian/build.git
build command: sudo ./compile.sh BOARD=licheepi-4a BRANCH=edge RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=yes COMPRESS_OUTPUTIMAGE=sha,gpg,xz
Linux6.6 kernel link: https://github.com/revyos/th1520-linux-kernel.git
branch: th1520-v6.6.3
opensbi link: https://github.com/riscv-software-src/opensbi.git
branch: master
how to update opensbi binary? you can refer to the following fix:
thead: update linux to 6.6-rc5, update opensbi binary
https://github.com/armbian/build/commit/3098c2f0cc4441eef052eb825d7f39c1f28a1c99
LicheePi4A TH1520 boot information txt:
licheePi4A_linux6_6_dmesg_official_opensbi.txt
[ 0.090218] smp: Bringing up secondary CPUs ...
[ 1.102092] CPU1: failed to come online
[ 2.129308] CPU2: failed to come online
[ 3.156496] CPU3: failed to come online
[ 3.160519] smp: Brought up 1 node, 1 CPU
However if we use https://github.com/revyos/opensbi.git (branch: th1520-v1.3.1) , LicheePi4A TH1520 boot information is shown as following:
licheePi4A_linux_6_6_dmesg_revyos_opensbi.txt
[ 0.090069] smp: Bringing up secondary CPUs ...
[ 0.118766] cpu1: Ratio of byte access time to unaligned word access is 6.14, unaligned accesses are fast
[ 0.150904] cpu2: Ratio of byte access time to unaligned word access is 6.14, unaligned accesses are fast
[ 0.183032] cpu3: Ratio of byte access time to unaligned word access is 6.14, unaligned accesses are fast
[ 0.193054] smp: Brought up 1 node, 4 CPUs
- Dominant language
- C
- Stars
- 1.6k
- Forks
- 734
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from riscv-software-src/opensbi
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
riscv-software-src/opensbi#425 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
riscv-software-src/opensbi#424 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
riscv-software-src/opensbi#439 ·
-
sbi_trap_redirect() does not clear SPELP when the interrupted context had no landing pad expectedOpen
Difficulty 3/5 1-2 days Newbie friendliness 67/100
riscv-software-src/opensbi#438 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
riscv-software-src/opensbi#436 · 3 comments ·
All issues in riscv-software-src/opensbi
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
llvm:instcombine
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
llvm/llvm-project#246503 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day