This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building upstream RISC-V GCC+binutils+newlib: the quick and dirty way | |
September 5, 2017 | |
There are a number of available options for building a RISC-V GCC toolchain. You might use the build system from the riscv/riscv-tools repository, or investigate toolchain generators such as crosstool-ng. However in the case of riscv-tools, it’s not always clear how this corresponds to the code in the relevant upstream projects. When investigating a potential bug, you often just want to build the latest upstream code with as little fuss as possible. For distribution purposes you’d probably want to perform a proper multi-stage build, but for a quick test you might find the following recipe useful: | |
git clone --depth=1 git://gcc.gnu.org/git/gcc.git gcc | |
git clone --depth=1 git://sourceware.org/git/binutils-gdb.git | |
git clone --depth=1 git://sourceware.org/git/newlib-cygwin.git | |
mkdir combined | |
cd combined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HDMI_RESOLUTION=5 #720p | |
cd /sys/kernel/debug/dispdbg | |
echo disp0 > name; echo switch1 > command; echo 4 $HDMI_RESOLUTION 0 0 0x4 0x101 0 0 0 8 > param; echo 1 > start; | |
OlderNewer