IGN-ARM Memakai QEMU: Perbedaan revisi
Dari IGNwiki
(→Jalankan Qemu) |
|||
Baris 1: | Baris 1: | ||
+ | IGN-ARM Memakai QEMU dapat dijalankan dengan dua cara: | ||
+ | # Qemu dengan boot loader A9 -> Alokasi RAM maksimal 1GB | ||
+ | # Qemu dengan boot loader A15 -> Alokasi RAM mulai 512MB sampai di atas 4GB | ||
− | == | + | == Persyaratan == |
− | + | * IGOS Nusantara Desktop untuk menjalankan Qemu | |
+ | * Komputer sebaiknya memiliki RAM diatas 4GB, sebaiknya RAM >= 8GB | ||
− | == Jalankan Qemu == | + | == Pasang tool == |
+ | |||
+ | [ign-desktop] # | ||
+ | yum install -y qemu-system-arm | ||
+ | yum install -y libguestfs-tools | ||
+ | |||
+ | == Buat grup kvm == | ||
+ | [ign-desktop] # | ||
+ | usermod -aG kvm igos | ||
+ | newgrp kvm | ||
+ | |||
+ | == Qemu dengan A9 == | ||
+ | |||
+ | === Pasang firmware untuk A9 === | ||
+ | |||
+ | [ign-desktop] # | ||
+ | yum install ... | ||
+ | |||
+ | |||
+ | === Jalankan Qemu A9 === | ||
Jika memiliki RAM terbatas alokasikan 512 MB, sedangkan jika memiliki RAM besar alokasikan maksimal sebesar 1024 MB. | Jika memiliki RAM terbatas alokasikan 512 MB, sedangkan jika memiliki RAM besar alokasikan maksimal sebesar 1024 MB. | ||
− | $ | + | [ign-desktop] $ |
echo "Pakai A9 RAM maksimal hanya 1GB" | echo "Pakai A9 RAM maksimal hanya 1GB" | ||
qemu-system-arm -machine vexpress-a9 \ | qemu-system-arm -machine vexpress-a9 \ | ||
Baris 13: | Baris 36: | ||
-kernel /usr/share/u-boot.git/arm/vexpress-a9/u-boot \ | -kernel /usr/share/u-boot.git/arm/vexpress-a9/u-boot \ | ||
-sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-sda.raw | -sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-sda.raw | ||
+ | |||
+ | |||
+ | == Qemu dengan A15 == | ||
+ | |||
+ | === Salin berkas /boot === | ||
+ | Berkas IGN-ARM-mini-armhfp-1.0-sda.raw didalamnya ada direktori /boot. Direktori ini dapat disalin dengan memakai perintah virt-copy-out | ||
+ | |||
+ | [ign-desktop] $ | ||
+ | cd /home/igos/arm/ | ||
+ | virt-copy-out -a IGN-ARM-mini-armhfp-1.0-sda.raw /boot . | ||
+ | |||
+ | === Qemu A15 RAM 2GB === | ||
+ | |||
+ | [ign-desktop] $ | ||
+ | echo "Qemu A15 RAM 2GB" | ||
+ | qemu-system-arm -machine vexpress-a15 -m 2048 -nographic -net nic -net user \ | ||
+ | -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ | ||
+ | -kernel /home/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl \ | ||
+ | -initrd /home/arm/boot/initramfs-3.19.1-201.fc21.armv7hl.img \ | ||
+ | -dtb /home/arm/boot/dtb-3.19.1-201.fc21.armv7hl/vexpress-v2p-ca15_a7.dtb \ | ||
+ | -sd /home/arm/IGN-ARM-mini-armhfp-1.0-sda.raw | ||
+ | |||
+ | === Qemu A15 RAM 5GB === | ||
+ | Jika komputer host memiliki RAM berukuran besar misal 8GB sampai 16GB. Maka Qemu dapat diberikan alokasi RAM (misal) sebesar 5GB. | ||
+ | |||
+ | [ign-desktop] $ | ||
+ | echo "Qemu A15 RAM 5GB" | ||
+ | qemu-system-arm -machine vexpress-a15 -m 5120 -nographic -net nic -net user \ | ||
+ | -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ | ||
+ | -kernel /home/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl+lpae \ | ||
+ | -initrd /home/arm/boot/initramfs-3.19.1-201.fc21.armv7hl+lpae.img \ | ||
+ | -dtb /home/arm/boot/dtb-3.19.1-201.fc21.armv7hl+lpae/vexpress-v2p-ca15_a7.dtb \ | ||
+ | -sd /home/arm/IGN-ARM-mini-armhfp-1.0-sda.raw | ||
== Selesai == | == Selesai == |
Revisi per 27 Maret 2015 12.12
IGN-ARM Memakai QEMU dapat dijalankan dengan dua cara:
- Qemu dengan boot loader A9 -> Alokasi RAM maksimal 1GB
- Qemu dengan boot loader A15 -> Alokasi RAM mulai 512MB sampai di atas 4GB
Daftar isi
Persyaratan
- IGOS Nusantara Desktop untuk menjalankan Qemu
- Komputer sebaiknya memiliki RAM diatas 4GB, sebaiknya RAM >= 8GB
Pasang tool
[ign-desktop] # yum install -y qemu-system-arm yum install -y libguestfs-tools
Buat grup kvm
[ign-desktop] # usermod -aG kvm igos newgrp kvm
Qemu dengan A9
Pasang firmware untuk A9
[ign-desktop] # yum install ...
Jalankan Qemu A9
Jika memiliki RAM terbatas alokasikan 512 MB, sedangkan jika memiliki RAM besar alokasikan maksimal sebesar 1024 MB.
[ign-desktop] $ echo "Pakai A9 RAM maksimal hanya 1GB" qemu-system-arm -machine vexpress-a9 \ -m 1024 -nographic \ -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ -kernel /usr/share/u-boot.git/arm/vexpress-a9/u-boot \ -sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-sda.raw
Qemu dengan A15
Salin berkas /boot
Berkas IGN-ARM-mini-armhfp-1.0-sda.raw didalamnya ada direktori /boot. Direktori ini dapat disalin dengan memakai perintah virt-copy-out
[ign-desktop] $ cd /home/igos/arm/ virt-copy-out -a IGN-ARM-mini-armhfp-1.0-sda.raw /boot .
Qemu A15 RAM 2GB
[ign-desktop] $ echo "Qemu A15 RAM 2GB" qemu-system-arm -machine vexpress-a15 -m 2048 -nographic -net nic -net user \ -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ -kernel /home/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl \ -initrd /home/arm/boot/initramfs-3.19.1-201.fc21.armv7hl.img \ -dtb /home/arm/boot/dtb-3.19.1-201.fc21.armv7hl/vexpress-v2p-ca15_a7.dtb \ -sd /home/arm/IGN-ARM-mini-armhfp-1.0-sda.raw
Qemu A15 RAM 5GB
Jika komputer host memiliki RAM berukuran besar misal 8GB sampai 16GB. Maka Qemu dapat diberikan alokasi RAM (misal) sebesar 5GB.
[ign-desktop] $ echo "Qemu A15 RAM 5GB" qemu-system-arm -machine vexpress-a15 -m 5120 -nographic -net nic -net user \ -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ -kernel /home/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl+lpae \ -initrd /home/arm/boot/initramfs-3.19.1-201.fc21.armv7hl+lpae.img \ -dtb /home/arm/boot/dtb-3.19.1-201.fc21.armv7hl+lpae/vexpress-v2p-ca15_a7.dtb \ -sd /home/arm/IGN-ARM-mini-armhfp-1.0-sda.raw