mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-29 12:35:53 +01:00
Qemu portable.
This commit is contained in:
parent
85716960f9
commit
d2f3714171
@ -2,6 +2,8 @@
|
||||
SCRIPT_ABS_FILENAME=`LC_ALL=en_US.ISO8859-1 perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"`
|
||||
SCRIPT_DIR=`dirname "$SCRIPT_ABS_FILENAME"`
|
||||
|
||||
#SCRIPT_DIR="$(pwd)" # copy in terminal to be able to copy and paste command from this file
|
||||
|
||||
OSTYPE=`uname -s`
|
||||
echo $OSTYPE
|
||||
|
||||
@ -35,9 +37,9 @@ then
|
||||
then
|
||||
killall qemu-system-x86_64
|
||||
fi
|
||||
> "$SCRIPT_DIR"/serial0_qemu_out.log # empty file without erasing it. Useful for editor for refreshing and reloading.
|
||||
> ./serial0_qemu_out.log # empty file without erasing it. Useful for editor for refreshing and reloading.
|
||||
|
||||
hdiutil attach "$SCRIPT_DIR"/disk_image_gpt.img || exit 1
|
||||
hdiutil attach ./disk_image_gpt.img || exit 1
|
||||
|
||||
shopt -s nocasematch
|
||||
|
||||
@ -56,19 +58,20 @@ then
|
||||
|
||||
diskutil eject /Volumes/QEMU_EFI || exit 1
|
||||
|
||||
/usr/local/bin/qemu-system-x86_64 \
|
||||
-L "$SCRIPT_DIR" \
|
||||
./qemu_portable/qemu-system-x86_64 \
|
||||
-L qemu_portable \
|
||||
-m 2048 \
|
||||
-cpu core2duo \
|
||||
-bios bios.bin \
|
||||
-bios bios.bin-1.13.0 \
|
||||
-machine q35 \
|
||||
-device VGA,vgamem_mb=64,edid=on,xres=1024,yres=768 \
|
||||
-device ahci,id=ahi \
|
||||
-drive format=raw,id=hda,file="$SCRIPT_DIR"/disk_image_gpt.img \
|
||||
-drive format=raw,id=hda,file=./disk_image_gpt.img \
|
||||
-usb \
|
||||
-device usb-mouse,bus=usb-bus.0,port=2 \
|
||||
-device usb-kbd,bus=usb-bus.0,port=1 \
|
||||
-serial file:"$SCRIPT_DIR"/serial0_qemu_out.log \
|
||||
-serial file:./serial0_qemu_out.log \
|
||||
-nic none \
|
||||
-gdb tcp::9000 &
|
||||
[[ $? -eq 0 ]] || exit 1
|
||||
|
||||
@ -77,8 +80,8 @@ then
|
||||
image_base_str="Clover : Image base = "
|
||||
|
||||
getImageBase() {
|
||||
[ -f "$SCRIPT_DIR"/serial0_qemu_out.log ] || return 1
|
||||
grep "$image_base_str" "$SCRIPT_DIR"/serial0_qemu_out.log
|
||||
[ -f ./serial0_qemu_out.log ] || return 1
|
||||
grep "$image_base_str" ./serial0_qemu_out.log
|
||||
return $?
|
||||
}
|
||||
|
||||
@ -91,11 +94,11 @@ then
|
||||
|
||||
if [ $count -ge $timeout ]
|
||||
then
|
||||
echo Cannot find "\"Clover : Image base = \"" in "$SCRIPT_DIR"/serial0_qemu_out.log after $timeout seconds
|
||||
echo Cannot find "\"Clover : Image base = \"" in ./serial0_qemu_out.log after $timeout seconds
|
||||
exit 1
|
||||
fi
|
||||
|
||||
adr="$(grep "$image_base_str" "$SCRIPT_DIR"/serial0_qemu_out.log | awk '{printf "0x%x",$8/NR}')"
|
||||
adr="$(grep "$image_base_str" ./serial0_qemu_out.log | awk '{printf "0x%x",$8/NR}')"
|
||||
echo adr="$adr"
|
||||
|
||||
|
||||
|
BIN
Qemu/qemu_portable/efi-e1000e.rom
Normal file
BIN
Qemu/qemu_portable/efi-e1000e.rom
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/kvmvapic.bin
Normal file
BIN
Qemu/qemu_portable/kvmvapic.bin
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libcrypto.1.1.dylib
Normal file
BIN
Qemu/qemu_portable/libcrypto.1.1.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libffi.6.dylib
Normal file
BIN
Qemu/qemu_portable/libffi.6.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libglib-2.0.0.dylib
Normal file
BIN
Qemu/qemu_portable/libglib-2.0.0.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libgmp.10.dylib
Normal file
BIN
Qemu/qemu_portable/libgmp.10.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libgnutls.30.dylib
Normal file
BIN
Qemu/qemu_portable/libgnutls.30.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libgthread-2.0.0.dylib
Normal file
BIN
Qemu/qemu_portable/libgthread-2.0.0.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libhogweed.4.dylib
Normal file
BIN
Qemu/qemu_portable/libhogweed.4.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libidn2.0.dylib
Normal file
BIN
Qemu/qemu_portable/libidn2.0.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libintl.8.dylib
Normal file
BIN
Qemu/qemu_portable/libintl.8.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libjpeg.9.dylib
Normal file
BIN
Qemu/qemu_portable/libjpeg.9.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/liblzo2.2.dylib
Normal file
BIN
Qemu/qemu_portable/liblzo2.2.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libncursesw.6.dylib
Normal file
BIN
Qemu/qemu_portable/libncursesw.6.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libnettle.6.5.dylib
Normal file
BIN
Qemu/qemu_portable/libnettle.6.5.dylib
Normal file
Binary file not shown.
1
Qemu/qemu_portable/libnettle.6.dylib
Symbolic link
1
Qemu/qemu_portable/libnettle.6.dylib
Symbolic link
@ -0,0 +1 @@
|
||||
libnettle.6.5.dylib
|
BIN
Qemu/qemu_portable/libp11-kit.0.dylib
Normal file
BIN
Qemu/qemu_portable/libp11-kit.0.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libpcre.1.dylib
Normal file
BIN
Qemu/qemu_portable/libpcre.1.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libpixman-1.0.dylib
Normal file
BIN
Qemu/qemu_portable/libpixman-1.0.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libpng16.16.dylib
Normal file
BIN
Qemu/qemu_portable/libpng16.16.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libssh.4.8.4.dylib
Normal file
BIN
Qemu/qemu_portable/libssh.4.8.4.dylib
Normal file
Binary file not shown.
1
Qemu/qemu_portable/libssh.4.dylib
Symbolic link
1
Qemu/qemu_portable/libssh.4.dylib
Symbolic link
@ -0,0 +1 @@
|
||||
libssh.4.8.4.dylib
|
BIN
Qemu/qemu_portable/libtasn1.6.dylib
Normal file
BIN
Qemu/qemu_portable/libtasn1.6.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libunistring.2.dylib
Normal file
BIN
Qemu/qemu_portable/libunistring.2.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libusb-1.0.0.dylib
Normal file
BIN
Qemu/qemu_portable/libusb-1.0.0.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/libvdeplug.3.dylib
Normal file
BIN
Qemu/qemu_portable/libvdeplug.3.dylib
Normal file
Binary file not shown.
BIN
Qemu/qemu_portable/qemu-system-x86_64
Executable file
BIN
Qemu/qemu_portable/qemu-system-x86_64
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user