Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Required parameters:
* mips
* mipsel
* ppc32
* ppc32_mac
* ppc64
* ppc64le
* riscv
Expand Down
22 changes: 15 additions & 7 deletions boot-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function parse_parameters() {
-a | --arch | --architecture)
shift
case ${1} in
arm | arm32_v5 | arm32_v6 | arm32_v7 | arm64 | arm64be | m68k | mips | mipsel | ppc32 | ppc64 | ppc64le | riscv | s390 | x86 | x86_64) ARCH=${1} ;;
arm | arm32_v5 | arm32_v6 | arm32_v7 | arm64 | arm64be | m68k | mips | mipsel | ppc32 | ppc32_mac | ppc64 | ppc64le | riscv | s390 | x86 | x86_64) ARCH=${1} ;;
*) die "Invalid --arch value '${1}'" ;;
esac
;;
Expand Down Expand Up @@ -115,6 +115,8 @@ function sanity_check() {
function setup_qemu_args() {
# All arm32_* options share the same rootfs, under images/arm
[[ ${ARCH} =~ arm32 ]] && ARCH_RTFS_DIR=arm
# All ppc32_* options share the same rootfs, under images/ppc32
[[ ${ARCH} =~ ppc32 ]] && ARCH_RTFS_DIR=ppc32

IMAGES_DIR=${BASE}/images/${ARCH_RTFS_DIR:-${ARCH}}
if ${DEBIAN}; then
Expand Down Expand Up @@ -225,14 +227,20 @@ function setup_qemu_args() {
ARCH=mips
;;

ppc32)
ppc32 | ppc32_mac)
case ${ARCH} in
ppc32)
KIMAGE=uImage
QEMU_ARCH_ARGS=(-machine bamboo)
;;
ppc32_mac)
KIMAGE=vmlinux
QEMU_ARCH_ARGS=(-machine mac99)
;;
esac
ARCH=powerpc
KIMAGE=uImage
APPEND_STRING+="console=ttyS0 "
QEMU_ARCH_ARGS=(
-machine bamboo
-no-reboot
)
QEMU_ARCH_ARGS+=(-no-reboot)
QEMU_RAM=128m
QEMU=(qemu-system-ppc)
;;
Expand Down