-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit changes the linux source for VexRiscv and mor1kx to litex-hub/linux. Since this is the same repository as used by linux-on-litex-vexriscv and all the LiteX drivers are included, there is no more need for additional BUILD_BUILDROOT option. This also updates rootfs images for both architectures and adds buildroot configs used to generate them.
- Loading branch information
1 parent
2a8af0b
commit ba0c497
Showing
6 changed files
with
184 additions
and
120 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Steps to rebuild a rootfs image using buildroot: | ||
|
||
(1) clone buildroot: | ||
|
||
git clone https://github.com/buildroot/buildroot | ||
cd buildroot | ||
|
||
(2) configure | ||
|
||
cp ../buildroot_mor1kx.config .config | ||
# or cp ../buildroot_vexriscv.config .config | ||
make olddefconfig | ||
make | ||
|
||
(3) the resulting image is in output/images |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Target options | ||
# | ||
BR2_or1k=y | ||
|
||
# GCC | ||
BR2_GCC_VERSION_8_X=y | ||
BR2_GCC_VERSION="8.3.0" | ||
|
||
# System | ||
BR2_TARGET_GENERIC_GETTY=y | ||
BR2_TARGET_GENERIC_GETTY_PORT="console" | ||
|
||
# Filesystem | ||
BR2_TARGET_ROOTFS_CPIO=y | ||
|
||
# Kernel headers | ||
BR2_KERNEL_HEADERS_VERSION=y | ||
BR2_DEFAULT_KERNEL_VERSION="5.0.13" | ||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y | ||
|
||
# Rootfs overlay | ||
BR2_ROOTFS_OVERLAY="../rootfs_overlay" | ||
|
||
# Extra packages | ||
#BR2_PACKAGE_DHRYSTONE=y | ||
#BR2_PACKAGE_MICROPYTHON=y | ||
#BR2_PACKAGE_SPIDEV_TEST=y | ||
#BR2_PACKAGE_MTD=y | ||
#BR2_PACKAGE_MTD_JFFS_UTILS=y | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Target options | ||
# | ||
BR2_riscv=y | ||
BR2_RISCV_32=y | ||
|
||
# | ||
# Instruction Set Extensions | ||
# | ||
BR2_riscv_custom=y | ||
BR2_RISCV_ISA_CUSTOM_RVM=y | ||
BR2_RISCV_ISA_CUSTOM_RVA=y | ||
BR2_RISCV_ISA_CUSTOM_RVC=n | ||
BR2_RISCV_ABI_ILP32=y | ||
|
||
# GCC | ||
BR2_GCC_VERSION_8_X=y | ||
BR2_GCC_VERSION="8.3.0" | ||
|
||
# System | ||
BR2_TARGET_GENERIC_GETTY=y | ||
BR2_TARGET_GENERIC_GETTY_PORT="console" | ||
|
||
# Filesystem | ||
BR2_TARGET_ROOTFS_CPIO=y | ||
|
||
# Kernel headers | ||
BR2_KERNEL_HEADERS_VERSION=y | ||
BR2_DEFAULT_KERNEL_VERSION="5.0.13" | ||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y | ||
|
||
# Rootfs overlay | ||
BR2_ROOTFS_OVERLAY="../rootfs_overlay" | ||
|
||
# Extra packages | ||
#BR2_PACKAGE_DHRYSTONE=y | ||
#BR2_PACKAGE_MICROPYTHON=y | ||
#BR2_PACKAGE_SPIDEV_TEST=y | ||
#BR2_PACKAGE_MTD=y | ||
#BR2_PACKAGE_MTD_JFFS_UTILS=y | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export PATH="/bin:/sbin:/usr/bin:/usr/sbin" | ||
|
||
if [ "$PS1" ]; then | ||
if [ "`id -u`" -eq 0 ]; then | ||
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\# ' | ||
else | ||
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | ||
fi | ||
fi | ||
|
||
export PAGER='/bin/more' | ||
export EDITOR='/bin/vi' | ||
|
||
# Source configuration files from /etc/profile.d | ||
for i in /etc/profile.d/*.sh ; do | ||
if [ -r "$i" ]; then | ||
. $i | ||
fi | ||
done | ||
unset i |
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