Hello. Excuse me ,but i cant write in german language.So here it is.!
I dont have
Raspberry and decide to run on Emu on my local linux system.
Here is fully working debian buster
raspberry + gbox + oscam + reader on ttyUSB0 !
Preparation
1.Download kernel,bootpart and image file | reconfigured with all |.
Code:
debian bootpart
https://mega.nz/#!QXQ1wYjb!4YCHQrpy5oCQRFkH-VP0fFxAS1z8Eh5ZR3HRK35Gqgk
image file for qemu
https://mega.nz/#!VWYjFYZD!bS1AVKLUt9oz1CRYn1knqR1MAVT6wp3P_NG0GSeBo84
2.Install Qemu
If you running GUI linux install from command line
Code:
sudo apt-get install qemu-kvm qemu virt-manager virt-viewer libvirt-bin
For server users recommend to install latest Qemu
Code:
wget https://download.qemu.org/qemu-4.1.0.tar.xz
tar xvJf qemu-4.1.0.tar.xz
cd qemu-4.1.0
./configure
make
3.USB reader link to qemu
Code:
# Check USB Reader in terminal
lsusb -v | grep 'idVendor\|idProduct'
# expample output ( notice this we will need later )
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0x6001 FT232 USB-Serial (UART) IC
4.Extract previously downloaded file to you Linux.
Lets say we use RASP3 folder in our system
example
Code:
ls -R
.:
GBX_RASP_Debian.img debian_bootpart
./debian_bootpart:
bcm2837-rpi-3-b.dtb cmdline.txt initrd.img-4.14.0-3-arm64 vmlinuz-4.14.0-3-arm64
5.Run
We previously check usb reader parameters and we need these 2 values in red to pass in vm.
idVendor
0x0403 Future Technology Devices International, Ltd
idProduct
0x6001 FT232 USB-Serial (UART) IC
fill these in final command line below .
-usb -device usb-host,vendorid=
0x0403,productid=
0x6001
in /RASP3 folder run command
Code:
qemu-system-aarch64 \
-kernel debian_bootpart/vmlinuz-4.14.0-3-arm64 \
-initrd debian_bootpart/initrd.img-4.14.0-3-arm64 \
-m 1024 -M virt \
-cpu cortex-a53 \
-nographic -serial mon:stdio -append 'console=ttyAMA0' \
-device ich9-usb-uhci3,id=uhci -device usb-ehci,id=ehci -device nec-usb-xhci,id=xhci \
-usb -device usb-host,vendorid=0x0403,productid=0x6001 \
-append "rw root=/dev/vda2 console=ttyAMA0 loglevel=8 rootwait fsck.repair=yes memtest=1" \
-drive file=GBX_RASP_Debian.img,format=raw,if=sd,id=hd-root \
-device virtio-blk-device,drive=hd-root \
-netdev user,id=net0,hostfwd=tcp::5022-:22,hostfwd=tcp::16002-:16002,hostfwd=tcp::22000-:22000 \
-device virtio-net-device,netdev=net0 \
-no-reboot
6.Done
We now have running
Raspberry in qemu vm !
Ports open in vm
ssh = 5022
oscam web = 16002
newcamd oscam = 22000
If you need to open other ports to vm just add them with hostfwd=tcp in previous command.
All config files are taken 1:1 from this post
Image kann auf micro SD Karte ab 16GB geschrieben werden. Zum schreiben des Image in Windows Win32DiskImager nutzen Enthalten im Image: - IPC (THX @Alex) - oscam 11539 /var/etc/ - osemu - gbox /var/keys/ - FTP - Samba - Webmin https://ubuntu_pi:10000 Passwörter: Edit: damit das Netzwerk...
www.digital-eliteboard.com
So you have to thanks to Osprey and all other involved to this project .
Regs !