https://www.xda-developers.com/linux-risc-v-cores-raspberry-pi-pico-2-rp2350/ XDA Menu XDA logo Sign in now [ ] Close * + News & Deals [ ] Submenu o News o Deals + Reviews [ ] Submenu o Laptops o CPUs o Graphics cards o SSDs o Product Awards + Best Guides [ ] Submenu o Best Laptops o Best Chromebooks o Best CPUs o Best graphics cards + Tutorials [ ] Submenu o Windows o macOS o Linux o ChromeOS * Threads * + [ ] Topics Submenu o Acer o Apple o Dell o HP o Lenovo o Microsoft o Razer * Sign in * Newsletter [ ] * * * * * * * * Trending Copilot+ Snapdragon X Series Windows 11 2024 Update On this day Forums [ ] Close [ ] You can actually run Linux on the RISC-V cores of the Raspberry Pi Pico 2's RP2350 Single-Board Computers 4 By Jeff Butts Published 6 days ago Thread Your changes have been saved Email is sent Email has already been sent close Please verify your email address. Send confirmation email close You've reached your account maximum for followed topics. Manage Your List Follow Followed Follow with Notifications Follow Unfollow Share Facebook X LinkedIn Reddit Flipboard Copy link Email Link copied to clipboard Sign in to your XDA account RP2350 microcontroller SoC When the Raspberry Pi Pico 2 came out, it didn't take long for someone to figure out crazy uses for its RISC-V Hazard3 CPU cores. After all, folks figured out how to pull off amazing feats with the original Pico, like emulating the Macintosh 128K. The RISC-V CPU is more commonly used in application-class processors than microcontrollers, so one developer set to work installing Linux on the RISC-V cores. Here's how he pulled it off. While this project does get Linux running on the RISC-V cores of the RP2350 microcontroller, as you'll read below, usability is quite limited at the time of writing. A person holding a Raspberry Pi Pico Related A beginner's guide to programming the Raspberry Pi Pico The Raspberry Pi Pico is quite different from its brethren, both in appearance and functionality You'll need an alternative to the official Raspberry Pi Pico 2 The first hurdle developer Jesse Taube had to overcome was the memory requirement. For starters, the RP2350 microcontrollers lack a memory management unit (MMU), so Taube needed to use a Linux version that didn't require an MMU. Then there's the issue of memory itself. Although Raspberry Pi significantly increased the SRAM on the RP2350 compared to the RP2040, it's still not enough to run Linux. Fortunately, the RP2350 supports up to 16MB of pseudo-static RAM (PSRAM) and 16MB of off-chip flash storage. This means you'll need one of the alternatives to the official Raspberry Pi Pico 2, a microcontroller that expands on the memory available to the RP2350. One such development board is the SparkFun Pro Micro RP2350, which pairs the microcontroller with 16MB of flash memory and 8MB of PSRAM. Another option that should work here includes the Pimoroni Pico Plus 2 W. Building and installing Linux to your RP2350 RISC-V cores In addition to your RP2350 microcontroller, you'll need a few other software packages and libraries. * A compatible version of gcc and cmake. * The Raspberry Pi Pico C/C++ SDK. * Any other packages or libraries required on your platform for the RISC-V build environment. Once you have the RP2350 board you need and have set up your RISC-V build environment, you can follow these steps to install Linux on it. 1. Clone the pi-pico2-linux GitHub repository to your computer following the given instructions. 2. Follow the directions on the GitHub repository to download the most current buildroot environment and compile everything. Building the Linux repo to run on RP2350 RISC-V cores 3. Press and hold the BOOTSEL button on your RP2350 microcontroller, if required, as you plug it into your computer. press bootsel button pico 2 4. Run the final command to compile the psram-bootloader and flash Linux to the microcontroller. 5. Unplug your microcontroller and then plug it back in. If you have a shell open for your microcontroller, whether in Thonny, Visual Studio Code, or some other IDE, you'll see Linux boot up on the RP2350. Booting Linux using the RISC-V cores on an RP2350 microcontroller As Taube points out, the project assumes the Raspberry Pi C/C++ SDK is installed in a specific location. If it isn't installed in that location in your setup, you'll need to change the following environment variables to reflect the correct location. * PICO_SDK_PATH * PICO_TOOLCHAIN_PATH * pioasm_DIR * picotool_DIR Running Linux on the RISC-V cores of your RP2350 microcontroller As you can see from the example above, Linux can boot on the RP2350's RISC-V Hazard3 cores. However, there isn't much you can do with it until some pretty irksome bugs are worked out. The biggest one is with UART functionality. The current release will only allow entering a single character at a time, making it impossible to directly type commands in the shell. Taube and others have come up with workarounds, but each has its own drawbacks. In time, the development community may overcome these faults and make Linux more functional on the RP2350 in RISC-V mode. In the meantime, it's a sound proof of concept that will hopefully gain actual value and usefulness for future Pico projects. * Single-Board Computers * Raspberry Pi Your changes have been saved Email is sent Email has already been sent close Please verify your email address. Send confirmation email close You've reached your account maximum for followed topics. Manage Your List Follow Followed Follow with Notifications Follow Unfollow Readers like you help support XDA. When you make a purchase using links on our site, we may earn an affiliate commission. Read More. Close Thread Sign in to your XDA account We want to hear from you! Share your opinions in the thread below and remember to keep it respectful. Be the first to post Images Attachment(s) [ ] [ ] [ ] [ ] [ ] [ ] Please respect our community guidelines. No links, inappropriate language, or spam. Your comment has not been saved Send confirmation email This thread is open for discussion. Be the first to post your thoughts. * Terms * Privacy * Feedback Recommended Proxmox manager on a Pi Someone made a Raspberry Pi Proxmox VM manager, and you can too Raspberry Pi Proof that every Raspberry Pi board is a few components away from being something cool. 8 hours ago A person holding a Raspberry Pi 5 10 incredible Raspberry Pi Projects you can run inside Docker containers Raspberry Pi Forget about switching distros (and microSD cards) by self-hosting these fun projects using Docker 2 days ago raspberry pi pico 5 ways to program your Raspberry Pi Pico Raspberry Pi There are several ways to program a Raspberry Pi Pico, from basic command-line programming to using a complete IDE. 2 days ago A Raspberry Pi can't replace everything. 5 products my Raspberry Pi can't replace Raspberry Pi As varied as the uses are for a Raspberry Pi, it's not quite a ubiquitous PC. There are a few products my Raspberry Pi still can't replace. 8 Sep 27, 2024 A Raspberry Pi 5 5 devices you can connect to the PCIe slot on the Raspberry Pi 5 Single-Board Computers The PCIe interface lets you add some cool and wacky peripherals to your Raspberry Pi 5 4 days ago tasks-and-outlook 8 tips for tracking and prioritizing tasks with Microsoft To Do and Outlook Productivity & Creativity Tools These two tools can work together to make you your most productive. 1 2 days ago * Today's best deals CK721 Wireless 65% RGB Mechanical Gaming Keyboard Replace your tired keyboard with this compact Cooler Master model that's now just $35 15 hours ago person using Logitech G915 keyboard One of the best full-size mechanical keyboards you can buy is now at its lowest price ever 21 hours ago person using Samsung G95SC monitor Samsung's 49-inch OLED ultrawide gaming monitor blows the competition away and is now $720 off 2 days ago See More Trending Now An image of an enterprise grade network router. 4 reasons you should build your own pfSense router Wi-Fi router on top of a pile of dollar bills Building your own router? Avoid these 5 rookie mistakes Installing Microsoft Office 365 on Windows 11 SE Microsoft Roadmap Weekly: Powerful tools announced for Teams, Outlook, and Copilot XDA logo * Join Our Team * Our Audience * About Us * Press & Events * Contact Us * Follow Us * * * * * * Valnet Logo * Advertising * Careers * Terms * Privacy * Policies XDA is part of the Valnet Publishing Group Copyright (c) 2024 Valnet Inc.