The Life of PI
This instructional will eventually show and describe all the various methods I have tried in bringing the PI 2 to Life.
Out of the box:
I already had a pi 2 but wanted the Keyboard, Power adapter, SD Card, Case and Wireless Dongle. So I ordered a second complete kit from Ebay. It came with everything I wanted and for a fair price ($73.00 USD).
After opening all the boxes and inspecting everything I then began on my journey to "The Life of PI".
Here our my steps to bringing the PI to life.
1) Inserted the SD card provided that was preloaded with NOOBS.
2) Attached the video cable (HDMI)
3) Inserted the USB dongle for the wireless keyboard.
4) Attached a network cable to the PI.
5) Connected power to the unit through the AC Adapter.
Within a few moments I was seeing the PI come to life.
The screen first asked me what I wanted to install. I chose Raspbian to start with.
Next it began the install procedure and before I knew it I was prompted with a screen to configure the PI.
First thing I changed was the default password, I would recomend this.
Next I changed the way the device boots. I wanted it to boot into the Desktop interface.
After that was done and I saved the changes the device then restarted.
I was then welcomed with a very nice looking desktop.
While the next step is not necessary I wanted to see, can I connect to CoolKidsRobots.com and join in on the ShoutBox. To my surprise I was able to do this with no problem and even sent out a few shouts to my friends.
Next steps to installing Qemu.
Qemu is a emulator for many various operatin systems.
The steps to installing Qemu I did not design or come up with I simple did the internet searching to find what I needed.
I am what you would call a NOOB to linux and the Raspberry PI.
First we need to update our firmware to the latest version. Open up LXTerminal if you are using Raspbian at the $ type the following in.
1) sudo apt-get update
2) Once it finishes and you are greeted with the $ do the next step.
3) sudo apt-get upgrade
4) Once the $ is displayed again we have to install it.
5) sudo apt-get install git zlib1g-dev libsdl1.2-dev
6) Once this finishes at you see the $ do the next step
7) mkdir raspidev (this will make the directory that we will use later)
8) Now type cd raspidev (to change to the directory we just created)
9) Now open up your web browser and go to the following link http://thoronir.net/raspi-dev/qemu-git.tar.bz2
10) Download the file to the directory we created, if you are unable to do this then just copy it from the folder where it downloaded to raspidev.
11) Next we are going to extract the file, in terminal at the $ type the next step in.
12) sudo tar -xvf qemu-git.tar.bz2
13) Now we need to change to that directory, type cd qemu at the $.
14) Now it time to configure qemu so once again at the $ type the next step in.
15) ./configure --target-list="i386-softmmu" --enable-sdl --prefix=/usr
16) Once this finishes and you see $ we need to type in the next step.
17) sudo make , This is going to take some time so be patient and get something to drink.
18) When this finishes you will see and error, we will now fix that error. At the $ type the next step in.
19) sudo nano /home/pi/raspidev/qemu/tcg/arm/tcg-target.c
20) Dont be alarmed at what you see or panic we can get through this.
21) Press CTRL+W to open the search box.
22) type: static void tcg and press enter.
23) Replace the text that it finds with the following, static inline void (You can use your arrow keys to move over or back)
24) Now press CTRL+X and it will ask you if you want to save the changes, press Y and then press enter.
25) Next we need to correct one more file so at the $ type the following.
26) sudo nano /home/pi/raspidev/qemu/tcg/i386/tcg-target.c
27) Press CTRL+W to open the search box.
28) type: static void tcg and press enter.
29) Replace the text that it finds with the following, static inline void (You can use your arrow keys to move over or back)
30) Now press CTRL+X and it will ask you if you want to save the changes, press Y and then press enter.
31) Type sudo make at the $ and if all goes well it will finish with no errors. If you get an error dont panic as even I a NOOB got a error the second time. Just go back through 19 thru 30 and verify that the changes you made were saved and that you changed the correct line.
32) Once it finishes and you are greeted with the $ again type the next step in.
33) sudo make install
34) You are finished installing Qemu, this is a good time to take a breal before moving on to installing ReactOS.
1) First thing we need to do is to download the ReactOS image, do this next step on your PI.
3) After you are finished downloading ReactOS, go to the directory where you downloaded it using file manager.
4) Extract the file.
5) Go to the following directory /ReactOS-0.3.15-QEMU/files
6) Find the file named ReactOS.vmdk and right click on it and select copy from the menu.
7) Go to /home/pi/raspidev/qemu and paste the file you just copied into that directory.
8) Now its time to run ReactOS for the first time.
9) Open up LXTerminal if it is not already.
10) at the $ type cd /home/pi/raspidev/qemu
11) Now type qemu ReactOS.vmdk -m 64 and with a little luck you will see ReactOS startup.
12) If you get an error the first time try it again
The -m stands for memory to allocate and then the amount 64mb I tried 64, 256 and 512. 64 and 256 work the best.
Let me know what your results are and if you find anything that needs corrected in my tutorial please leave a comment.