Sabtu, 07 Maret 2015

Virtual Raspbian on Qemu in Ubuntu Linux

1. emulator yang di gunakan adalah qemu.

    cara install dengan koneksi internet :

    #  apt-get install qemu-system-arm

2. download kernel qemu


3. sekarang cek file image, untu melihat partisinya

   # fdisk -l imagefile.img

Lihat contoh ouput commad :

                      Device Boot      Start         End      Blocks   Id  System
backupraspberry2014-8-4.img1            8192      122879       57344    c  W95 FAT32 (LBA)
backupraspberry2014-8-4.img2          122880     6471679     3174400   83  Linux

lihat partisi bagian 2 start 122880, di kali 512 jadi :

122880 x 512 = 62914560

4. mount partisi tersebut


# mount imagefile.img -o offset=62914560 /mnt

lalu edit file di  /mnt/etc/ld.so.preload :

# nano /mnt/etc/ld.so.preload

ganti baris ini :

/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
menjadi :

#/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so

lalu umound lagi dengan cara :
# umount imagefile.img  /mnt

5. lalu jalankan qemu
# qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda imagefile.img -redir tcp:5022::22

keterangan :
-kernel : kernel yang di gunakan
-m : memori RAM
-redir - port host 5022  port guest 22 p

6. setelah berhasil booting

# fsck /dev/sda2

di gunakan untu check dan repair linux file system karena tadi mengedit file ld.so.preload

7. reboot qemu

 shutdown -r now


Login : pi
Password : raspberry




Selasa, 17 Desember 2013

Ping Application

Hello, i was finishing my project..
this my first project in c++, i use visual c++. my application used to ping many ip destination, i use many process to this aplication if we ping many ip destination. here is..



if u need application dowload here
if u need source dowload here

place all application in folder C:\Pingtest, create manula Pingtest folder