Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SBI for VisionFive 1+2 (JH71x0) #694

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from
Draft

Commits on Oct 17, 2023

  1. arch/riscv64: WIP: debug and rework SBI

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    b0eba53 View commit details
    Browse the repository at this point in the history
  2. arch/riscv64/sbi: WIP: adjust medeleg to OpenSBI's

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    15889c7 View commit details
    Browse the repository at this point in the history
  3. sbi

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    d7ff7c2 View commit details
    Browse the repository at this point in the history
  4. xtask/nezha: increase compressed payload size

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    8ca5ad1 View commit details
    Browse the repository at this point in the history
  5. Add lib/{compression,log} to Cargo workspace

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    112df95 View commit details
    Browse the repository at this point in the history
  6. sunxi/nezha: WIP: rework

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c2b18e1 View commit details
    Browse the repository at this point in the history
  7. Bump lzss, rework lib/compression

    Use lib/log print macros instead of writer. We no longer need the write
    since the log library works splendid.
    
    Export the lzss type so xtask reuses it, ensuring consistency.
    
    Annotate the function as unsafe, leaving safety notes.
    
    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    fcffca0 View commit details
    Browse the repository at this point in the history
  8. sunxi/nezha: SBI rework

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    d939adf View commit details
    Browse the repository at this point in the history
  9. WIP: starfive/visionfive1: sbi

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    edcaa1e View commit details
    Browse the repository at this point in the history
  10. starfive/visionfive2: add lib crate

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    1ea5939 View commit details
    Browse the repository at this point in the history
  11. starfive/visionfive2: WIP: Makefile

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    1b5fb01 View commit details
    Browse the repository at this point in the history
  12. WIP: starfive/visionfive2: main + sbi

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    936ccdb View commit details
    Browse the repository at this point in the history
  13. WIP: SBI fixups, rfence, JH7110

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    99219d6 View commit details
    Browse the repository at this point in the history
  14. omit debug prints, load Linux directly instead of additional copy to …

    …DRAM
    
    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    65e1a27 View commit details
    Browse the repository at this point in the history
  15. switch to DRAM base 0x4000_0000, add HART0 shenanigans, split up helpers

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    71d2626 View commit details
    Browse the repository at this point in the history
  16. WIP: TIMER INTERRUPTS ON U74 AAAAH

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c8709f8 View commit details
    Browse the repository at this point in the history
  17. WIP

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    6ea1072 View commit details
    Browse the repository at this point in the history
  18. WOAH!

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c4be435 View commit details
    Browse the repository at this point in the history
  19. WIP

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    0a0b57d View commit details
    Browse the repository at this point in the history
  20. xtask: FIXUP for compression lib

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    194b834 View commit details
    Browse the repository at this point in the history
  21. VF2 SBI: back to loading kernel at 0x40200000

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    52a87e6 View commit details
    Browse the repository at this point in the history
  22. VF2: DEBUG in Linux

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    76b4d56 View commit details
    Browse the repository at this point in the history
  23. WIP: page fault

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    b93aacd View commit details
    Browse the repository at this point in the history
  24. DEBUG

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    b44e23d View commit details
    Browse the repository at this point in the history
  25. Fix up VisionFive 2 xtask build setup

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    142d3f1 View commit details
    Browse the repository at this point in the history
  26. FIXUP

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    fe78be6 View commit details
    Browse the repository at this point in the history
  27. debug less

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    d895b61 View commit details
    Browse the repository at this point in the history
  28. starfive/visionfive2: allow passing custom Linux dir and DTB in make bt0

    Heck do I know about make... and its many kinds of variables...
    
    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    0f84233 View commit details
    Browse the repository at this point in the history
  29. arch/riscv/sbi: fixup

    document OpenSBI and Linux alignment handling
    
    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    21b517f View commit details
    Browse the repository at this point in the history
  30. WIP: VF2 SBI

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    dd4b990 View commit details
    Browse the repository at this point in the history
  31. WIP QEMU RISC-V

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    b852a1b View commit details
    Browse the repository at this point in the history
  32. format

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    d74f2f3 View commit details
    Browse the repository at this point in the history
  33. WIP: PMP, load base

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    323083b View commit details
    Browse the repository at this point in the history
  34. cleanip

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    5f9155a View commit details
    Browse the repository at this point in the history
  35. do NOT handle misaligned access

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    64d256a View commit details
    Browse the repository at this point in the history
  36. DO NOT MERGE: temporary script to run on VF2 :)

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c2366e0 View commit details
    Browse the repository at this point in the history
  37. VisionFive2: add instructions for running a Linux kernel

    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    2fdf5e1 View commit details
    Browse the repository at this point in the history
  38. Set resolver to 2 in Cargo.toml aka the manifest

    We got warnings on the resolver defaulting to 1 for virtual workspaces.
    
    Signed-off-by: Daniel Maslowski <info@orangecms.org>
    orangecms committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    448a7d7 View commit details
    Browse the repository at this point in the history