We can also configure other stuff, such as the locales. There, we select the "Desktop Log in as user 'pi' at the graphical desktop" option. The most important configuration is the "Enable Boot to Desktop/Scratch" option. When the update is done, we type: sudo raspi-config This will also take a while, both to download and to install the updates. Leave it alone, and in a few minutes it will proceed with the boot.Īfter we log in as the "pi" user, we do a full update with: sudo apt-get update & sudo apt-get dist-upgrade -y This is the resize command, and it will take some time. The Raspberry Pi emulation will shutdown again. The configuration tool will momentarily close, and in a couple of seconds it will queue up the /root partition to expand and cover all the 10GB of the space on the next reboot.Īgain, we press tab to select "Finish". We select the first option, "Expand Filesystem". This will get us back to the configuration tool. Once inside, we type two consecutive orders: sudo ln -snf mmcblk0p2 /dev/root Remember, when we type our password on Linux, nothing will show by default, not stars or dots or anything. The default credentials are: username: pi This time, after the boot sequence, the system will ask us to login. We start it again, double-clicking the "Start" batch file. We press "Tab" on the keyboard to select "Finish".Īs the user, we type the command: sudo reboot This time, the "exit" command will lead to a reboot, that will get us to the Raspberry Pi Software Configuration Tool. This time, however, we write the quotes " with shift+2, because the Raspberry Pi emulation currently has an English UK keyboard layout. We have to create again the file we previously made, with nano /etc/udev/rules.d/lesĪgain, we type: KERNEL="sda", SYMLINK+="mmcblk0" It will take a while to load, and it will produce some errors. Be carefull not to delete the quotes.Īfter that, we save the batch file, and double-click to open it. Inside, the only thing we change is to delete the init=/bin/bash option near the end of the command, including the preceding blank space. Now, we 're nearly ready to run the Raspberry Pi emulation for Windows.įist, we need to edit the batch file we created earlier. Then we exit the Raspberry Pi emulation with "exit". We exit with ctrl+X and make sure to save the file (get the "Wrote 3 lines" message). Inside, we type exactly the following three lines: KERNEL="sda", SYMLINK+="mmcblk0" Next, we create a new file, with the command: nano /etc/udev/rules.d/les If we did it correctly, we will get a "Wrote 1 line" message. and then press y for "Yes", to save the changes, and Enter, to overwrite the file. We just need to add a hashtag "#" at the beginning of the single line. The above order will open the ld.so.preload file in the nano text editor. This is a Linux command prompt, and as such, it is case-sensitive. The emulator will load to a command prompt. Configure the Raspberry Pi emulation for QEMU We double-click this file to start the Raspberry Pi emulation. If we did it correctly, we will have a Windows Batch File within QEMU. bat extension and that we have selected the "All files" option. We make sure we save it inside the QEMU folder, with a. We make perfectly sure that the final part of the command is identical to the filename of the Raspbian disk image. This is a bug of QEMU when doing ARM emulation. Unfortunately, we can't allocate more RAM, or the emulation won't boot at all. You might have noticed that the -m 256 part of the command will allocate 256MB of RAM for the Raspberry Pi emulation. qemu-system-arm.exe -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" -hda -raspbian-wheezy.img Ignore the text-wrap, it's all in one line. We open notepad, or any other plain text editor. And it's easier if we create a batch file instead. We need to type long commands to start it up. QEMU doesn't have a sexy user interface like VirtualBox and VMware. Running the command will produce a Warning, but if we get the "Image resized" message, everything went well. The +10G parameter will add 10 Gigabytes to the image, which should be more than enough. Note that we need to use the exact filename of the image file, with the ".img" extension. To resize the Raspbian image, we run the command: qemu-img.exe resize -raspbian-wheezy.img +10G If we created it on the desktop, we navigate with: cd %userprofile%\Desktop\QEMU On the command prompt, we navigate to the QEMU folder. We do a Windows search for cmd and open the command prompt. So, it's a good idea to resize the image and give it a couple more Gigabytes. The Raspbian image we downloaded will contain the complete Raspberry Pi emulation, and any programs we will install. Inside the QEMU folder, it's important to note the exact filename of the disk Image file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |