Skip to content

dockerized script to prepare a hypriot disk image for qemu emulator

License

Notifications You must be signed in to change notification settings

duquesnay/prepare-hypriot-qemu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

prepare-hypriot-emu

Ubuntu script to prepare a hypriot disk image for running under qemu

  • include enlargement of image and adjustment of filesystem
  • using only raw ubuntu tools to keep dependencies minimal
  • Dockerfile nicely provided if you are on non Ubuntu system, but must use --privileged=true

Tested on hypriot v1.1.3 public image

Parameters are

  1. -i IMG - path in docker (so you may need to mount image folder somewhere within docker container)
  2. -s size - in human readable form (1M, 8G, etc)
  3. -s hostname
docker run --privileged=true -v $(pwd)/images:/usr/rpi/images duquesnay/prepare-hypriot-emu -i images/hypriotos-rpi-v1.1.3.img -s 8G -h hostname

Then run it with qemu, something like

APPEND_ARGS="root=/dev/sda2 panic=1 rw loglevel=8 console=ttyAMA0,115200"
qemu-system-arm   -cpu arm1176   -m 256   -M versatilepb \
	-no-reboot   -serial stdio   \
	-append "${APPEND_ARGS}" \
	-kernel kernel/kernel-qemu-4.4.34-jessie \
	-net nic -net user,restrict=off  \
	-drive file=$(pwd)/images/hypriotos-rpi-v1.1.3.img,index=0,media=disk,format=raw

(here : command for MacOS; require downloading proper kernel for your distrib like kernel-qemu-4.4.34-jessie in this case; network access unrestricted... tune to your own needs)

About

dockerized script to prepare a hypriot disk image for qemu emulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages