Sunday, February 4, 2018

Install Raspbery pi On PC


in this article, we will share how to run raspbeian os or raspberry pi os on windows using qemu virtual machine.

PREPARE
  1. QEMU
  2. Compatible Kernel
  3. Raspbian
  4. Windows 10
  5. Keyboard
  6. 7Zip
DOWNLOAD QEMU


Picture of Download QEMU
  1. Go to http://qemu.weilnetz.de/w32/
  2. Select the 32-bit folder.
  3. Click on the version with the most recent modify date.
  4. When it downloads, use 7zip to extract it’s contents into a folder.

Download Raspberry Kernel for Qemu 

Picture of Download the Kernel
  1. Go to https://github.com/dhruvvyas90/qemu-rpi-kernel
  2. Select the most recent file.
  3. Click on the “Download” at the left of “History”
  4. After it downloads, place the file inside the folder where you extracted the QEMU.


Download Raspbian Image

Picture of Download Raspbian
  1. Go to http://downloads.raspberrypi.org/
  2. Click on “Downloads” Select “Raspbian”
  3. Download the Pixel desktop version.
  4. After it downloads, extract the contents on the same folder where you extracted QEMU.

Config the Emulator

Picture of Set Up the Emulator
  1. Get inside the folder where you extracted Raspbian, QEMU and placed the Kernel.
  2. Create a new text file and name it “start.bat”
  3. Right click on it and press “Edit”
  4. Type in qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append “root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash” -drive “file=2017-03-02-raspbian-jessie.img,index=0,media=disk,format=raw” -redir tcp:2222::22
  5. Save the file and close it.
  6. Type “cmd” on the address bar to start up the command prompt.
  7. In the command prompt, type “start.bat”
  8. wait until raspberian ready, after done, type in;
  9. sudo nano /etc/udev/rules.d/90-qemu.rulesKERNEL==”sda”, SYMLINK+=”mmcblk0″
    KERNEL==”sda?”, SYMLINK+=”mmcblk0p%n”
    KERNEL==”sda2″, SYMLINK+=”root”
  10. Press “Ctrl X” “Y” “Enter”
  11. Close the emulator.
  12. Go to the “start.bat” file.
  13. Delete the line “init=/bin/bash””
  14. Save and close the file.
  15. In the cmd, type in “qemu-img.exe resize 2017-03-02-raspbian-jessie.img +4G”
  16. Press “Enter”
  17. A small error will appear, but the resizing will take effect.
  18. Type in “start.bat”
  19. Press “Enter”

First, I’d like to thank you for visiting my site and taking a moment to read my blog post, title : Install Raspbery pi On PC. I hope I can provide some useful information here that will help you solve some problem you may be having with your raspberry or linux operating system.
Let me also extend an open invitation to any of you to send me your questions or comments about your house and any problems that you may be having.
Again, thank you for spending some time at my site and in my blog. I hope you come to visit again soon!
remember to add my google plus id : Gudang Skripsi Teknik Informatika

Related Posts

Install Raspbery pi On PC
4/ 5
Oleh