Difference between revisions of "QEMU: emulasi arm"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://gist.github.com/Liryna/10710751 ==Install== Install untuk armel & armhf sudo su apt -y update apt -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cro...")
 
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
  sudo su
 
  sudo su
 
  apt -y update
 
  apt -y update
  apt -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-arm-static
+
  apt -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static qemu
  
 +
Cek
  
 +
qemu-system-arm -cpu help
 +
qemu-system-arm -machine help
 +
qemu-system-arm -M help
  
 +
 +
==Create==
 +
 +
sudo su
 +
mkdir /usr/local/src/arm-test
 +
cd /usr/local/src/arm-test
 +
qemu-img create -f raw armdisk.img 8G
 +
 +
 +
 +
qemu-system-arm -m 1024M -sd armdisk.img \
 +
                -M virt -cpu max \
 +
                -kernel kali-linux-2020.3a-rpi3-nexmon.img -initrd initrd.gz \
 +
                -append "root=/dev/ram"  -no-reboot
 +
 +
qemu-system-arm -m 1024M -sd kali-linux-2020.3a-rpi3-nexmon.img \
 +
                -M virt -cpu max \
 +
                -no-reboot
  
  

Latest revision as of 16:37, 15 September 2020

Sumber: https://gist.github.com/Liryna/10710751


Install

Install untuk armel & armhf

sudo su
apt -y update
apt -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static qemu

Cek

qemu-system-arm -cpu help
qemu-system-arm -machine help
qemu-system-arm -M help


Create

sudo su
mkdir /usr/local/src/arm-test
cd /usr/local/src/arm-test
qemu-img create -f raw armdisk.img 8G


qemu-system-arm -m 1024M -sd armdisk.img \
                -M virt -cpu max \
                -kernel kali-linux-2020.3a-rpi3-nexmon.img -initrd initrd.gz \
                -append "root=/dev/ram"  -no-reboot
qemu-system-arm -m 1024M -sd kali-linux-2020.3a-rpi3-nexmon.img \
                -M virt -cpu max \
                -no-reboot



Referensi

Pranala Menarik