Skip to content

Commit

Permalink
Add armv6l instructions to readme (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbast committed Oct 30, 2022
1 parent 3ac5480 commit 355c7cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ Anything qemu related:
"qemu_binary_destination_path": "/usr/bin/qemu-arm-static"
```

The arm instruction set (default=`armv7l` for qemu-arm-static) to be emulated can be defined via the `QEMU_CPU` variable. To switch to `armv6l` (check with `uname -m` as provission command) run packer e.g. via:
* `QEMU_CPU=arm1176 packer build ...`
* `docker run -e QEMU_CPU=arm1176 ...`

# Chroot provisioner
To execute command within chroot environment you should use chroot communicator:
```
Expand Down
3 changes: 2 additions & 1 deletion boards/raspberry-pi/raspbian.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
{
"type": "shell",
"inline": [
"touch /tmp/test"
"touch /tmp/test",
"uname -m"
]
}
]
Expand Down

0 comments on commit 355c7cf

Please sign in to comment.