IGN-ARM Memakai QEMU: Perbedaan revisi
Dari IGNwiki
(→Qemu A15 RAM 5GB) |
(→Pasang firmware untuk A9) |
||
(3 revisi antara oleh pengguna yang sama tidak ditampilkan) | |||
Baris 23: | Baris 23: | ||
[ign-desktop] # | [ign-desktop] # | ||
− | yum install . | + | yum -y install u-boot.git-arm |
− | + | ||
=== Jalankan Qemu A9 === | === Jalankan Qemu A9 === | ||
Baris 41: | Baris 40: | ||
=== Salin berkas /boot === | === Salin berkas /boot === | ||
− | Berkas IGN-ARM | + | 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] $ | [ign-desktop] $ | ||
cd /home/igos/arm/ | cd /home/igos/arm/ | ||
− | virt-copy-out -a IGN-ARM | + | virt-copy-out -a IGN-ARM-1.0-mini-armhfp-sda.raw /boot . |
=== Qemu A15 RAM 2GB === | === Qemu A15 RAM 2GB === | ||
Baris 53: | Baris 52: | ||
qemu-system-arm -machine vexpress-a15 -m 2048 -nographic -net nic -net user \ | 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" \ | -append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \ | ||
− | -kernel /home/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl \ | + | -kernel /home/igos/arm/boot/vmlinuz-3.19.1-201.fc21.armv7hl \ |
− | -initrd /home/arm/boot/initramfs-3.19.1-201.fc21.armv7hl.img \ | + | -initrd /home/igos/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 \ | + | -dtb /home/igos/arm/boot/dtb-3.19.1-201.fc21.armv7hl/vexpress-v2p-ca15_a7.dtb \ |
− | -sd /home/arm/IGN-ARM | + | -sd /home/igos/arm/IGN-ARM-1.0-mini-armhfp-sda.raw |
=== Qemu A15 RAM 5GB === | === Qemu A15 RAM 5GB === | ||
Baris 75: | Baris 74: | ||
[ign-desktop] $ | [ign-desktop] $ | ||
cd /home/igos/arm | cd /home/igos/arm | ||
− | virt-copy-out .. | + | sudo mv boot boot-lama |
+ | virt-copy-out -a IGN-ARM-1.0-mini-armhfp-sda.raw /boot . | ||
=== Jalankan Qemu === | === Jalankan Qemu === | ||
Baris 85: | Baris 85: | ||
-initrd /home/igos/arm/boot/initramfs-3.19.1-201.fc21.armv7hl+lpae.img \ | -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 \ | -dtb /home/igos/arm/boot/dtb-3.19.1-201.fc21.armv7hl+lpae/vexpress-v2p-ca15_a7.dtb \ | ||
− | -sd /home/igos/arm/IGN-ARM | + | -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