risc-v

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
risc-v [2022/02/28 10:48] – [opensbi_1.0.bb [master branch]] rpjdayrisc-v [2022/03/01 14:09] (current) – [meta-riscv layer [abbreviated]] rpjday
Line 27: Line 27:
         * [[https://git.openembedded.org/openembedded-core/tree/meta/recipes-bsp/opensbi/opensbi_1.0.bb|opensbi_1.0.bb]]         * [[https://git.openembedded.org/openembedded-core/tree/meta/recipes-bsp/opensbi/opensbi_1.0.bb|opensbi_1.0.bb]]
         * [[https://git.openembedded.org/openembedded-core/tree/meta/recipes-bsp/opensbi/opensbi-payloads.inc|opensbi-payloads.inc]]         * [[https://git.openembedded.org/openembedded-core/tree/meta/recipes-bsp/opensbi/opensbi-payloads.inc|opensbi-payloads.inc]]
 +      * [[https://git.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot|u-boot/]]
 +        * [[https://git.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot/u-boot-common.inc|u-boot-common.inc]]
 +        * [[https://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot/u-boot.inc|u-boot.inc]]
 +        * [[https://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/u-boot/u-boot_2022.01.bb|u-boot_2022.01.bb]]
  
  
-== meta-riscv layer [abbreviated]+== meta-riscv layer [abbreviated, unnecessary for QEMU]
  
   * [[https://github.com/riscv/meta-riscv|meta-riscv/]]   * [[https://github.com/riscv/meta-riscv|meta-riscv/]]
Line 37: Line 41:
     * [[https://github.com/riscv/meta-riscv/tree/master/recipes-bsp/u-boot|U-Boot stuff]]     * [[https://github.com/riscv/meta-riscv/tree/master/recipes-bsp/u-boot|U-Boot stuff]]
     * [[https://github.com/riscv/meta-riscv/tree/master/recipes-kernel/|recipes-kernel/]]     * [[https://github.com/riscv/meta-riscv/tree/master/recipes-kernel/|recipes-kernel/]]
-      * [[https://github.com/riscv/meta-riscv/tree/master/recipes-kernel/firmware|firmware/]] 
       * [[https://github.com/riscv/meta-riscv/tree/master/recipes-kernel/linux|linux/]]       * [[https://github.com/riscv/meta-riscv/tree/master/recipes-kernel/linux|linux/]]
  
Line 88: Line 91:
 </code> </code>
  
-Why create a kernel containing-payload if you don't use it?+Why create a kernel containing-payload if you don't use it? Also, appears that the serial console is ''ttyS0'', and you can drop the ''console=hvc0 earlycon=sbi'' stuff, still works.
  
 == tmp/deploy/images/qemuriscv64 == tmp/deploy/images/qemuriscv64
Line 254: Line 257:
 </code> </code>
  
 +== On the running QEMU session
 +
 +<code>
 +root@qemuriscv64:/proc# gunzip -c /proc/config.gz | grep RISC
 +CONFIG_RISCV=y
 +CONFIG_RISCV_SBI=y
 +CONFIG_RISCV_ERRATA_ALTERNATIVE=y
 +CONFIG_RISCV_ISA_C=y
 +CONFIG_RISCV_BASE_PMU=y
 +CONFIG_RISCV_SBI_V01=y
 +# CONFIG_SERIAL_EARLYCON_RISCV_SBI is not set
 +# CONFIG_HVC_RISCV_SBI is not set
 +CONFIG_RISCV_TIMER=y
 +CONFIG_RISCV_INTC=y
 +</code>
 = opensbi = opensbi
  
Line 369: Line 387:
  
 == git/build/platform/generic/firmware == git/build/platform/generic/firmware
 +
 +With (default) kernel payload:
  
 <code> <code>
Line 377: Line 397:
 -rwxr-xr-x. 1 rpjday rpjday 24799752 Feb 27 05:28 fw_payload.bin -rwxr-xr-x. 1 rpjday rpjday 24799752 Feb 27 05:28 fw_payload.bin
 -rwxr-xr-x. 1 rpjday rpjday 23640912 Feb 27 05:28 fw_payload.elf -rwxr-xr-x. 1 rpjday rpjday 23640912 Feb 27 05:28 fw_payload.elf
 +</code>
 +
 +With ''u-boot.bin'' payload (note much smaller payload files):
 +
 +<code>
 +-rwxr-xr-x. 2 rpjday rpjday   96496 Mar  1 06:10 fw_dynamic.bin
 +-rwxr-xr-x. 2 rpjday rpjday  938520 Mar  1 06:10 fw_dynamic.elf
 +-rwxr-xr-x. 2 rpjday rpjday   96496 Mar  1 06:10 fw_jump.bin
 +-rwxr-xr-x. 2 rpjday rpjday  938104 Mar  1 06:10 fw_jump.elf
 +-rwxr-xr-x. 2 rpjday rpjday 2713192 Mar  1 06:10 fw_payload.bin
 +-rwxr-xr-x. 2 rpjday rpjday 1554336 Mar  1 06:10 fw_payload.elf
 </code> </code>
  
  • risc-v.1646045295.txt.gz
  • Last modified: 2022/02/28 10:48
  • by rpjday