litex-hub / linux-on-litex-rocket

Run 64-bit Linux on LiteX + RocketChip
BSD 2-Clause "Simplified" License
181 stars 18 forks source link

Change Linux variant for Rocket CPU #32

Closed pcotret closed 1 year ago

pcotret commented 1 year ago

linux4 doesn't exist anymore

ERROR:SoC:linux4 CPU variant not supported, supported are: 
 - full
 - linux
 - medium
 - small

linux seems to be a good alternative https://github.com/litex-hub/pythondata-cpu-rocket/blob/master/pythondata_cpu_rocket/verilog/update.sh#L101

gsomlo commented 1 year ago

See https://github.com/enjoy-digital/litex/commit/c3e93620ec92510ca544c3ed0e83bddb2ad433c9

The new "linux4" would probably be --cpu-variant medium --cpu-num-cores 4

HTH, --Gabriel

On Mon, May 22, 2023 at 01:29:48PM -0700, Pascal Cotret wrote:

linux4 doesn't exist anymore

ERROR:SoC:linux4 CPU variant not supported, supported are:

  • full
  • linux
  • medium
  • small

linux seems to be a good alternative

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

You can view, comment on, or merge this pull request online at:

https://github.com/litex-hub/linux-on-litex-rocket/pull/32

Commit Summary

• 2966c05 Change Linux variant for Rocket CPU

File Changes

(1 file)

• M README.md (2)

Patch Links:

https://github.com/litex-hub/linux-on-litex-rocket/pull/32.patchhttps://github.com/litex-hub/linux-on-litex-rocket/pull/32.diff

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.*Message ID: @.***>

pcotret commented 1 year ago

Thanks for the information, I'll check it tomorrow. A single-core Rocket should work as well even if it's slow.

gsomlo commented 1 year ago

On Mon, May 22, 2023 at 03:45:48PM -0700, Pascal Cotret wrote:

Oops, my bad. I'll check tomorrow.

No worries. The entire README document for linux-on-litex-rocket needs a major update, to reflect the switch to opensbi and the ability to boot a "real" os distro, like fedora. I keep hoping I'll have some cycles to get rid of all the .dts files (by generating them with json2dts directly in upstream litex), and spend time rewriting the README after that's also taken care of... :)

GTwhy commented 1 year ago

On Mon, May 22, 2023 at 03:45:48PM -0700, Pascal Cotret wrote: Oops, my bad. I'll check tomorrow. No worries. The entire README document for linux-on-litex-rocket needs a major update, to reflect the switch to opensbi and the ability to boot a "real" os distro, like fedora. I keep hoping I'll have some cycles to get rid of all the .dts files (by generating them with json2dts directly in upstream litex), and spend time rewriting the README after that's also taken care of... :)

Hi, thank you for developing such a great project! I am looking forward to the updates you have described!