File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/python3
2+ #
3+ # Kernel needs:
4+ # corenet32_smp_defconfig +
5+ # CONFIG_PPC_QEMU_E500=y
6+ # CONFIG_POWER_RESET_GPIO=y
7+ #
8+ # $ cd ~/src/linux
9+ # $ make
10+ # $ ~/src/ci-scripts/scripts/boot/qemu-e500mc
11+ #
12+ # Or:
13+ #
14+ # export VMLINUX_PATH=~/src/linux/vmlinux
15+ # export KERNEL_RELEASE_PATH=~/src/linux/include/config/kernel.release
16+ #
17+ # Optional:
18+ # export QEMU_SYSTEM_PPC=~/src/qemu/ppc-softmmu/qemu-system-ppc
19+ # export ROOT_DISK_PATH=~/some/directory
20+ #
21+ # Expects ROOT_DISK_PATH to contain:
22+ # ppc-rootfs.cpio.gz
23+
24+ import logging
25+ import os , sys
26+ sys .path .append (f'{ os .path .dirname (sys .argv [0 ])} /../../lib' )
27+
28+ from qemu import QemuConfig , qemu_main
29+ from utils import setup_logging
30+
31+
32+ def main ():
33+ setup_logging ()
34+
35+ qconf = QemuConfig ('ppce500' )
36+ qconf .configure_from_env ()
37+ qconf .configure_from_args (sys .argv [1 :])
38+ qconf .qemu_path = 'qemu-system-ppc'
39+ qconf .net_tests = False
40+ qconf .mem = '2G'
41+ qconf .smp = 1
42+ qconf .cpu = 'e500mc'
43+
44+ qconf .apply_defaults ()
45+
46+ return qemu_main (qconf )
47+
48+ sys .exit (0 if main () else 1 )
You can’t perform that action at this time.
0 commit comments