Skip to content

Commit

Permalink
chore: disable kexec on rpi4 and rockpi
Browse files Browse the repository at this point in the history
Disable kexec on SBC's known to have issues when doing kexec

Fixes: #5649

Raspberry Pi seems to have issues enabling secondary CPU's on subsequent
reboots. RockPi's doesn't seem to work at all with kexec.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed May 31, 2022
1 parent 48423a9 commit 400a88d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (r *Rockpi4) Install(disk string) (err error) {
func (r *Rockpi4) KernelArgs() procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty0").Append("ttyS2,1500000n8"),
procfs.NewParameter("sysctl.kernel.kexec_load_disabled").Append("1"),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (r *Rockpi4c) Install(disk string) (err error) {
func (r *Rockpi4c) KernelArgs() procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty0").Append("ttyS2,1500000n8"),
procfs.NewParameter("sysctl.kernel.kexec_load_disabled").Append("1"),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (r *RPi4) Install(disk string) (err error) {
func (r *RPi4) KernelArgs() procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty0").Append("ttyAMA0,115200"),
procfs.NewParameter("sysctl.kernel.kexec_load_disabled").Append("1"),
}
}

Expand Down

0 comments on commit 400a88d

Please sign in to comment.