Hi Duc Anh,

I'm not sure the setup laid out in the tutorial would work for arm
system as we only tested it on x86 arch. However, I believe there are
forks of packer that would work with arm arch
(https://www.packer.io/community-tools), and there are also tutorials
for using packer to build disk images for arm devices, such as
Raspberry Pi.

arm also provides documentation of building Linux kernels
(https://www.gem5.org/documentation/general_docs/fullsystem/building_arm_kernel)
as well as offers built disk images/Linux
kernels(https://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries).

Regards,
Hoa Nguyen

On 3/17/21, Đức Anh via gem5-users <gem5-users@gem5.org> wrote:
> Dear all,
>
> I am building an ARM64 disk image by Packer. However, I ran into the
> following error
>
> 2021/03/17 17:11:44 packer-builder-qemu plugin: Qemu stderr: WARNING: Image
>> format was not specified for '/tmp/packer554386766' and probing guessed
>> raw.
>> 2021/03/17 17:11:44 packer-builder-qemu plugin: Qemu stderr:
>>  Automatically detecting the format is dangerous for raw images, write
>> operations on block 0 will be restricted.
>> 2021/03/17 17:11:44 packer-builder-qemu plugin: Qemu stderr:
>>  Specify the 'raw' format explicitly to remove the restrictions.
>> 2021/03/17 17:11:44 packer-builder-qemu plugin: Qemu stderr:
>> qemu-system-aarch64: -drive
>> file=/home/dauto98/Repositories/gem5/configs/thesis/arm/disks/packer_cache/d60fab3d2cbda6b0379a55b2ab92292fe6342d41.iso,index=0,media=cdrom:
>> drive with bus=0, unit=0 (index=0) exists
>> 2021/03/17 17:11:44 packer-builder-qemu plugin: failed to unlock port
>> lockfile: close tcp 127.0.0.1:5945: use of closed network connection
>> 2021/03/17 17:11:44 packer-builder-qemu plugin: failed to unlock port
>> lockfile: close tcp 127.0.0.1:4188: use of closed network connection
>
>
> I am using ubuntu-18.04.2-server-arm64, QEMU emulator version 2.11.1(Debian
> 1:2.11+dfsg-1ubuntu7.36) to build the image. The preseed.cfg and
> serial-getty@.service file are the same as the one on this
> <https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html#creating-a-disk-image>
> tutorial
>
> I attach the packer json config file in the email, please have a look.
>
> How can I remove this error and build an image for ARM system?
>
> Best regards,
> Duc Anh
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to