appsdownload
appsdownload

Reputation: 861

how transfer files from windows machine to qemu (raspberry pi emulator)?

I'm using qemu as my raspberry pi emulator.

I use IDE for writing my codes in windows and I am having a hard time in transferring files every time from my windows to qemu.

I tried using winscp, but it did not allow me to connect using default credentials.

Is there anything I need to do or configure to use winscp for transferring files directly??

Upvotes: 3

Views: 10656

Answers (2)

Bashid
Bashid

Reputation: 510

Another handy way: :)

  1. Mount .img file in your host (Use Disk Image Mounter in Linux , Don't forget to mount it in non read-only mode)
  2. Add your file to this img file (Don't add it in boot partition)
  3. Umount the img
  4. Load .img file in qemu and find your file in proper path

Upvotes: 0

KingAmir
KingAmir

Reputation: 31

  1. Go to https://azeria-labs.com/emulate-raspberry-pi-with-qemu/

  2. $ qemu-system-arm -kernel ~/qemu_vms/<your-kernel-qemu> -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda ~/qemu_vms/<your-jessie-image.img> -redir tcp:5022::22 -no-reboot

  3. scp -P 5022<file_to_transfer> [email protected]:~

Upvotes: 2

Related Questions