[PATCH 12/12] arm: boards: add virt board

Raphaël Poggi poggi.raph at gmail.com
Tue Jun 7 06:16:44 PDT 2016


2016-06-07 14:59 GMT+02:00 Antony Pavlov <antonynpavlov at gmail.com>:
> On Tue, 7 Jun 2016 13:53:49 +0200
> Raphaël Poggi <poggi.raph at gmail.com> wrote:
>
>> 2016-06-07 13:00 GMT+02:00 Antony Pavlov <antonynpavlov at gmail.com>:
>> > On Thu,  2 Jun 2016 10:06:58 +0200
>> > Raphael Poggi <poggi.raph at gmail.com> wrote:
>> >
>> >> Add qemu virt board which emulates arm64 board.
>> >>
>> >> Signed-off-by: Raphael Poggi <poggi.raph at gmail.com>
>> >> ---
>> >>  arch/arm/Kconfig                           |  9 ++++
>> >>  arch/arm/boards/Makefile                   |  1 +
>> >>  arch/arm/boards/virt/Kconfig               |  8 ++++
>> >
>> > Can we use a more descriptive 'qemu-virt' name for this machine/board instead of 'virt'?
>>
>> Qemu virt machine support armv7 and armv8 cpu, maybe we can use the
>> name "mach-qemu" for the machine and "qemu-virt64" for the board.
>>
>> With this approach we use a generic name for the machine (since qemu
>> virt machine support armv7/armv8, we do not need to distinguish
>> between arm/arm64),
>> and made the distinction arm/arm64 only in board name.
>>
>> This also lets the possibility, for someone who wants to add support
>> for qemu virt arm32 board, to not create another machine folder.
>>
>> What do you think about that ?
>
> So you are proposing to introduce these directories:
>
>   arch/arm/boards/qemu-virt64/
>   arch/arm/mach-qemu/

Yes, exactly.

>
> I propose to use 'arch/arm/mach-qemu-virt' for machine dir,
> because qemu supports several arm-based machines, not only the virt machine.
>
> On the other hand the 'mach-qemu-virt' name is too long
> and 'mach-qemu' may be is a better solution.

"mach-qemu-virt" seems too long.

Another proposition:  we can choose "mach-qemu", and to distinguish
qemu machine use the same way as mach-at91, ie:

arch/arm/mach-qemu/
  --> virt_devices.c
  --> virt_lowlevel.c
  --> etc...

This also implies to add some Kconfig entries to handle the multiple
qemu machines.

>
>
>> >
>> >>  arch/arm/boards/virt/Makefile              |  1 +
>> >>  arch/arm/boards/virt/env/bin/_update       | 36 ++++++++++++++++
>> >>  arch/arm/boards/virt/env/bin/boot          | 38 +++++++++++++++++
>> >
>> > ... skipped ...
>> >
>> > --
>> > Best regards,
>> >   Antony Pavlov
>> >
>> > _______________________________________________
>> > barebox mailing list
>> > barebox at lists.infradead.org
>> > http://lists.infradead.org/mailman/listinfo/barebox
>
>
> --
> --
> Best regards,
>   Antony Pavlov
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



More information about the barebox mailing list