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

boot-utils: Add support for m68k #45

Merged
merged 2 commits into from May 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.txt
Expand Up @@ -10,6 +10,7 @@ Required parameters:
* arm32_v7
* arm64
* arm64be
* m68k
* mips
* mipsel
* ppc32
Expand Down
13 changes: 12 additions & 1 deletion boot-qemu.sh
Expand Up @@ -39,7 +39,7 @@ function parse_parameters() {
-a | --arch | --architecture)
shift
case ${1} in
arm32_v5 | arm32_v6 | arm32_v7 | arm64 | arm64be | mips | mipsel | ppc32 | ppc64 | ppc64le | riscv | s390 | x86 | x86_64) ARCH=${1} ;;
arm32_v5 | arm32_v6 | arm32_v7 | arm64 | arm64be | m68k | mips | mipsel | ppc32 | ppc64 | ppc64le | riscv | s390 | x86 | x86_64) ARCH=${1} ;;
*) die "Invalid --arch value '${1}'" ;;
esac
;;
Expand Down Expand Up @@ -187,6 +187,17 @@ function setup_qemu_args() {
QEMU=(qemu-system-aarch64)
;;

m68k)
APPEND_STRING+="console=ttyS0,115200 "
KIMAGE=vmlinux
QEMU_ARCH_ARGS=(
-cpu m68040
-M q800
-no-reboot
)
QEMU=(qemu-system-m68k)
;;

mips | mipsel)
KIMAGE=vmlinux
QEMU_ARCH_ARGS=(
Expand Down
8 changes: 8 additions & 0 deletions buildroot/m68k.config
@@ -0,0 +1,8 @@
BR2_m68k=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_M68K_68XXX_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_OVERLAY="../overlay-reboot"
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
2 changes: 1 addition & 1 deletion buildroot/rebuild.sh
Expand Up @@ -32,7 +32,7 @@ CONFIGS=()
while ((${#})); do
case ${1} in
all) for CONFIG in *.config; do CONFIGS+=("../${CONFIG}"); done ;;
arm64 | arm64be | arm | mips | mipsel | ppc32 | ppc64 | ppc64le | riscv | s390 | x86 | x86_64) CONFIGS+=("../${1}.config") ;;
arm64 | arm64be | arm | m68k | mips | mipsel | ppc32 | ppc64 | ppc64le | riscv | s390 | x86 | x86_64) CONFIGS+=("../${1}.config") ;;
*) die "Unknown parameter '${1}', exiting!" ;;
esac
shift
Expand Down
Binary file added images/m68k/rootfs.cpio.zst
Binary file not shown.