oreboot on VisionFive 2 001: First Steps
2 min read
6 months ago
Published on Apr 22, 2024
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Step-by-Step Tutorial: Getting Started with oreboot on VisionFive 2
-
Introduction to VisionFive 2 Development Board:
- The VisionFive 2 is the second development board from the company StarFive.
- The board features dip switches for bootloader mode selection.
- The SoC on the board is the jh7110.
-
Exploring Documentation and Setup:
- Start by familiarizing yourself with the available documentation for the VisionFive 2.
- Set up the board with a USB serial converter for power supply.
- Understand the GPIO pins and their functionalities.
-
Custom Firmware Installation:
- Learn how to create an SD card image for custom firmware installation.
- Set up the GPIO pins for specific functions like LED control.
-
Developing a UR Driver:
- Write a UR driver for the VisionFive 2 board.
- Utilize the GPIO pins for simple timer operations.
-
Exploring System Control Registers:
- Understand the system control registers for configuring clock multiplexers and CPU core clocks.
- Explore the memory map for different peripherals on the board.
-
Implementing oreboot Functionality:
- Set up the logger functionality for oreboot using the embedded-hal crate.
- Initialize the logger and start printing debug messages.
-
Troubleshooting and Debugging:
- Test the logger functionality by printing test messages.
- Troubleshoot any issues with printing macros or logger initialization.
-
Finalizing the Setup:
- Verify the logger functionality and ensure that debug messages are displayed correctly.
- Make adjustments to the code as needed for proper logging and debugging.
-
Conclusion:
- Wrap up the setup and testing process for oreboot on the VisionFive 2 board.
- Ensure that the logger is functioning correctly for future development tasks.
By following these steps, you can begin your journey with oreboot on the VisionFive 2 development board and start exploring its capabilities.