Add build, deploy and test sources
This commit is contained in:
1 parent
b962581812
commit
3d1a08f230
259 files changed
+15273
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# Отладка KRD-переходника: грузим его напрямую как BOOTIA32.EFI.
|
||||
set -e
|
||||
IMG=/root/xor32.img
|
||||
LOOP=$(losetup -f --show -P "$IMG"); sleep 1
|
||||
mount "${LOOP}p1" /mnt/x32p1
|
||||
cp -f /path/to/pf/KRD/images/krd32.efi /mnt/x32p1/EFI/BOOT/BOOTIA32.EFI
|
||||
sync
|
||||
ls -l /mnt/x32p1/efi/Paravis/KRD/live/
|
||||
umount /mnt/x32p1; losetup -d "$LOOP"
|
||||
|
||||
rm -f /tmp/k32.ppm /tmp/km32.sock
|
||||
qemu-system-i386 -m 1024 -machine q35 \
|
||||
-drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF32_CODE_4M.fd \
|
||||
-drive if=pflash,format=raw,file=/root/OVMF32_VARS.fd \
|
||||
-drive file="$IMG",format=raw,if=ide \
|
||||
-display none -vga std -monitor unix:/tmp/km32.sock,server,nowait -daemonize
|
||||
sleep 15
|
||||
python3 - <<'EOF'
|
||||
import socket, time
|
||||
s=socket.socket(socket.AF_UNIX); s.connect('/tmp/km32.sock'); time.sleep(0.3)
|
||||
s.recv(65536); s.sendall(b'screendump /tmp/k32.ppm\n'); time.sleep(1.5)
|
||||
try: s.recv(65536)
|
||||
except Exception: pass
|
||||
s.sendall(b'quit\n')
|
||||
EOF
|
||||
sleep 2
|
||||
pkill -f 'qemu-system-i386.*xor32.img' 2>/dev/null || true
|
||||
ls -l /tmp/k32.ppm
|
||||
Reference in new issue
Block a user