TH1520(C910)boot information: CPU1、CPU2、CPU3: failed to come online ; only CPU0 succeed to come online

オープン
#336 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c, linux

調査の方向性

まず、upstream OpenSBI と revyos OpenSBI で生成された、添付の LicheePi4A Linux 6.6 ログを比較し、次に参照されている Armbian build commit 3098c2f0 と、th1520-v6.6.3 および th1520-v1.3.1 ブランチを調査します。upstream binary で secondary CPUs が失敗する理由を特定し、TH1520 向けの互換性のある OpenSBI update を文書化または実装できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C
スター
1.6k
フォーク
734
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

riscv-software-src/opensbi のほかの issue

riscv-software-src/opensbi の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。