Tuesday, March 6, 2012

Back to work, testing Thin Client on QEMU (Windows) Part1

Waiting for the Raspberri Pi board (we have to wait LOT of time, maybe another month or so...) we can emulate ARM CPU in QEMU to test some pakage we will need in the future to create our full feature Raspberry Pi Thin Client.
Let's start from Official Debian image downloadable from Raspberry Pi download page.
After the download is complete, extract the debian6-17-02-2012.img image from the .zip
Now we need to download a tool called windows dd from the official site)
extract dd.exe inside the dd-0.6beta3.zip in the same folder where you put debian6-17-02-2012.img image file.
Now go in command prompt go to the img+dd folder and run this command:
dd.exe if=debian6-17-02-2012.img of=rootfs_debian6_rpi.ext4 skip=157696 count=3256320
this will extract the root file system of the image file, our Debian SO to run under QEMU
Now we have to prepare the QEMU emulator for Raspberry Pi board:
1) Download zImage_3.1.9 (the compiled kernel image 3.1.9 for Raspberry Pi) here or here and copy it in the same folder of dd.exe and debian6-17-02-2012.img image file
2) Download QEMU 0.15.1 (just this version, the other have some problem with networking) for Windows here from the official site and extract all the file inside the Qemu-0.15.1-windows-Medium folder in the same folder of dd.exe and debian6-17-02-2012.img image file
Now you will see:

now we have to start our Debian SO ARM in QEMU:
go to the command prompt and write:
qemu-system-arm -M versatilepb -cpu arm1136 -m 256 -hda rootfs_debian6_rpi.ext4 -kernel zImage_3.1.9 -append "root=/dev/sda"
just wait for the boot...

now at the prompt you have to use as user:pi password:suse
let's modify a bit the screen resolution, by defaul is only 640x480...
pi@raspberrypi:~$ sudo vi /etc/X11/xorg.conf
insert into xorg.conf file (doesn't exist) those lines:
Section "Screen"
Identifier "Default Screen"
DefaultDepth 16
SubSection "Display"
# Viewport 0 0
Depth 16
Modes "800×600"

Then change the runlevel to autostart x:
pi@raspberrypi:~$ sudo vi /etc/inittab
change the line from
#The default runlevel.


now reboot & waiting for system restart
pi@raspberrypi:~$ sudo reboot

as before use pi/suse as user/password

Next part is coming soon, we will install and configure Citrix Receiver, VMWare View and RDP

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.