IGN-ARM Memakai QEMU: Perbedaan revisi
Dari IGNwiki
(→Jalankan Qemu) |
(→Pasang firmware untuk A9) |
||
(5 revisi antara oleh pengguna yang sama tidak ditampilkan) | |||
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 -y install u-boot.git-arm | ||
+ | |||
+ | === 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 12: | Baris 34: | ||
-append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ | -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ | ||
-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 | ||
+ | |||
+ | |||
+ | == Qemu dengan A15 == | ||
+ | |||
+ | === Salin berkas /boot === | ||
+ | Berkas IGN-ARM-1.0-mini-armhfp-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-1.0-mini-armhfp-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/igos/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl \ | ||
+ | -initrd /home/igos/arm/boot/initramfs-3.19.1-201.fc21.armv7hl.img \ | ||
+ | -dtb /home/igos/arm/boot/dtb-3.19.1-201.fc21.armv7hl/vexpress-v2p-ca15_a7.dtb \ | ||
+ | -sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-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. | ||
+ | |||
+ | === Pasang kernel-lpae === | ||
+ | |||
+ | [ign-arm] # | ||
+ | yum install kernel-lpae | ||
+ | |||
+ | === Matikan IGN ARM === | ||
+ | |||
+ | [ign-arm] # | ||
+ | shutdown -h now | ||
+ | |||
+ | === Salin /boot === | ||
+ | |||
+ | [ign-desktop] $ | ||
+ | cd /home/igos/arm | ||
+ | sudo mv boot boot-lama | ||
+ | virt-copy-out -a IGN-ARM-1.0-mini-armhfp-sda.raw /boot . | ||
+ | |||
+ | === Jalankan Qemu === | ||
+ | [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/igos/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl+lpae \ | ||
+ | -initrd /home/igos/arm/boot/initramfs-3.19.1-201.fc21.armv7hl+lpae.img \ | ||
+ | -dtb /home/igos/arm/boot/dtb-3.19.1-201.fc21.armv7hl+lpae/vexpress-v2p-ca15_a7.dtb \ | ||
-sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-sda.raw | -sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-sda.raw | ||
== Selesai == | == Selesai == |
Revisi terkini pada 1 April 2015 15.00
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 -y install u-boot.git-arm
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-1.0-mini-armhfp-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-1.0-mini-armhfp-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/igos/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl \ -initrd /home/igos/arm/boot/initramfs-3.19.1-201.fc21.armv7hl.img \ -dtb /home/igos/arm/boot/dtb-3.19.1-201.fc21.armv7hl/vexpress-v2p-ca15_a7.dtb \ -sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-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.
Pasang kernel-lpae
[ign-arm] # yum install kernel-lpae
Matikan IGN ARM
[ign-arm] # shutdown -h now
Salin /boot
[ign-desktop] $ cd /home/igos/arm sudo mv boot boot-lama virt-copy-out -a IGN-ARM-1.0-mini-armhfp-sda.raw /boot .
Jalankan Qemu
[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/igos/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl+lpae \ -initrd /home/igos/arm/boot/initramfs-3.19.1-201.fc21.armv7hl+lpae.img \ -dtb /home/igos/arm/boot/dtb-3.19.1-201.fc21.armv7hl+lpae/vexpress-v2p-ca15_a7.dtb \ -sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-sda.raw