Automate testing image with qemu #165

Open
opened 2020-05-20 08:35:01 +02:00 by austin987 · 4 comments
austin987 commented 2020-05-20 08:35:01 +02:00 (Migrated from github.com)

Now that https://github.com/SolidHal/PrawnOS/pull/161 is merged, builds are automated with github actions. This is a followup to #150

However, the image itself isn't actually tested (other than building). Ideally, we'd use qemu (maybe in conjunction with expect https://linux.die.net/man/1/expect) to attempt to boot/install the image.

I'm familiar with qemu, but never used it for arm stuff, so will take some research. Anyway, opening the bug to keep track of it.

Now that https://github.com/SolidHal/PrawnOS/pull/161 is merged, builds are automated with github actions. This is a followup to #150 However, the image itself isn't actually tested (other than building). Ideally, we'd use qemu (maybe in conjunction with `expect` https://linux.die.net/man/1/expect) to attempt to boot/install the image. I'm familiar with qemu, but never used it for arm stuff, so will take some research. Anyway, opening the bug to keep track of it.
austin987 commented 2020-05-20 08:35:31 +02:00 (Migrated from github.com)

Feel free to assign this to me if you'd like, I don't have permission for that.

Feel free to assign this to me if you'd like, I don't have permission for that.
SolidEva commented 2020-05-23 01:41:48 +02:00 (Migrated from github.com)

Thanks for taking this on @austin987!

Thanks for taking this on @austin987!
austin987 commented 2020-05-23 12:23:43 +02:00 (Migrated from github.com)
Some notes for myself or anyone interested: https://stackoverflow.com/questions/37079990/is-any-arm-platform-emulation-in-qemu-functional-enough-to-run-arm-v7-code-in-mu https://gist.github.com/luk6xff/9f8d2520530a823944355e59343eadc1 https://blog.3mdeb.com/2014/2014-08-07-coreboot-for-qemu-armv7-vexpress-a9-emulated-mainboard/
austin987 commented 2020-06-05 13:07:12 +02:00 (Migrated from github.com)

https://github.com/lukechilds/dockerpi has a dockerfile that runs a armv6 image inside of qemu.

It supports armv7 as well, but apparently networking doesn't work yet :( https://github.com/lukechilds/dockerpi/pull/4. Though in a quick test, networking doesn't work for me in armv6 mode either.

Anyway, still useful.

https://github.com/lukechilds/dockerpi has a dockerfile that runs a armv6 image inside of qemu. It supports armv7 as well, but apparently networking doesn't work yet :( https://github.com/lukechilds/dockerpi/pull/4. Though in a quick test, networking doesn't work for me in armv6 mode either. Anyway, still useful.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ev4/PrawnOS#165
No description provided.