apple-armv7: resolve the bring-up code carried by the Cascadia import
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Start with the J1 early boot fault described in arch/arm/mach-apple/j1_earlyfb.c, then review the related bring-up faults in #78 and the shared-tree workarounds in Patch 0003. Check how tools/kernel-tree/import-cascadia.py regenerates imported patches before choosing where a fix belongs. Done means the selected fault or workaround has a proper fix or is removed; for the J1 fault, the kernel boots without earlycon=j1fb and the cause is understood.
索引モデルが issue の本文から書いたものです。
説明
The apple-armv7 kernel moved to Project Cascadia 091d441 in #77, which brings the iPad 3 (J1) work closer. That import carries bring-up code that was the right way to get these boards running but shouldn't stay in the shared tree for good. This issue collects what's left, for whoever works on armv7 next.
cc @stephencox @rzxvx @shaynelegault
The early J1 fault
This is the one that matters most. The J1 kernel only boots with earlycon=j1fb in the bootargs. The comment in arch/arm/mach-apple/j1_earlyfb.c says the slow console changes the outcome: without it the kernel dies early in boot, with it the kernel boots, and the underlying fault hasn't been found. Timing could be hiding a problem that also affects later boots.
Done when: J1 boots without earlycon=j1fb, with the cause understood.
Faults listed in the J1 bring-up (#78)
- The CPU nodes use
0xa00/0xa01, but the A5X boots with MPIDR0x900, so Linux falls back to one possible CPU.maxcpus=1in the bootargs hides this. Cascadia PR #35 has a fix. - The static AIC mapping at
0xf0500000lands belowVMALLOC_STARTwith the J1's memory size, which gives theBUG: mapping ... out of vmalloc spaceline at t=0. It should move into the IO area. - The PMU node is
apple,pmu-d1946only. The D1974's registers differ, so a charger or backlight child needs anapple,pmu-d1974compatible first.
Bring-up code in the shared tree
These are built into every armv7 kernel, or touch core kernel code:
arch/arm/mach-apple/j1_earlyfb.c: a board-specific console with the panel address hardcoded. It only runs withearlycon=j1fb. It can go once the fault above is fixed, or become generic if an early console is still wanted.arch/arm/mach-apple/p105_fb_dbg.c: the P105 framebuffer debug helper.- Patch 0003, "ARM: apple: S5L bring-up workarounds and trace points in core code": workarounds and trace points in
init/,kernel/,arch/arm/kernel/andarch/arm/mm/. Each one should either get a proper fix or be dropped.
Where fixes go
tools/kernel-tree/import-cascadia.py regenerates kernel/patches/import/cascadia/0001-0020 on every re-import, so a change made directly in those files gets overwritten. Either of these works:
- Land the fix in Cascadia, and a re-import brings it here. Device trees (0021, and 0023 in #78) are refreshed by hand.
- Add a patch after the import in
kernel/patches/import/cascadia, for anything that shouldn't wait for Cascadia.
Picking off one item at a time is fine. Please mention this issue in the PR.
- 主要言語
- Python
- スター
- 102
- フォーク
- 27
- 平均マージ
- 10時間 43分
- マージ済み PR(30日)
- 293
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OrchardLinux/orchard のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OrchardLinux/orchard#398 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
OrchardLinux/orchard#365 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
OrchardLinux/orchard#420 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
OrchardLinux/orchard#416 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
OrchardLinux/orchard#414 ·
メンテナーはふだん 1 日以内に返信
OrchardLinux/orchard の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
LearningCircuit/local-deep-research#10161 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
chore: contact address [email protected]対応中かも @larsrollik が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Gustavo-Galvao-e-Silva/panchi#228 ·
メンテナーはふだん 1 日以内に返信