On 15 July 2017 at 05:39, Bruce Ashfield <bruce.ashfi...@windriver.com> wrote:
> On 2017-07-13 1:56 PM, Nathan Rossi wrote:
>>
>> On 13 July 2017 at 05:22, Bruce Ashfield <bruce.ashfi...@windriver.com>
>> wrote:
>>>
>>> On 2017-07-04 11:29 AM, Nathan Rossi wrote:
>>>>
>>>>
>>>> Create configs for the qemumicroblazeeb machine. This includes both
>>>> -standard and -tiny configs.
>>>>
>>>> Signed-off-by: Nathan Rossi <nat...@nathanrossi.com>
>>>> ---
>>>>    bsp/qemumicroblaze/qemumicroblazeeb-standard.scc | 15 +++++++++++++++
>>>>    bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc     | 12 ++++++++++++
>>>>    bsp/qemumicroblaze/qemumicroblazeeb.cfg          | 15 +++++++++++++++
>>>>    3 files changed, 42 insertions(+)
>>>>    create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
>>>>    create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
>>>>    create mode 100644 bsp/qemumicroblaze/qemumicroblazeeb.cfg
>>>>
>>>> diff --git a/bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
>>>> b/bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
>>>> new file mode 100644
>>>> index 0000000000..ae93b49a11
>>>> --- /dev/null
>>>> +++ b/bsp/qemumicroblaze/qemumicroblazeeb-standard.scc
>>>> @@ -0,0 +1,15 @@
>>>> +define KMACHINE qemumicroblazeeb
>>>> +define KTYPE standard
>>>> +define KARCH microblaze
>>>> +
>>>> +include ktypes/standard/standard.scc
>>>> +
>>>> +include arch/microblaze/microblaze.scc
>>>> +kconf hardware qemumicroblazeeb.cfg
>>>> +
>>>> +include bsp/xilinx/soc/drivers-softip.scc
>>>> +include bsp/xilinx/board-common.scc
>>>> +
>>>> +# default policy for standard kernels
>>>> +include features/latencytop/latencytop.scc
>>>> +include features/profiling/profiling.scc
>>>> diff --git a/bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
>>>> b/bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
>>>> new file mode 100644
>>>> index 0000000000..2d1bb74132
>>>> --- /dev/null
>>>> +++ b/bsp/qemumicroblaze/qemumicroblazeeb-tiny.scc
>>>> @@ -0,0 +1,12 @@
>>>> +define KMACHINE qemumicroblazeeb
>>>> +define KTYPE tiny
>>>> +define KARCH microblaze
>>>> +
>>>> +include ktypes/tiny/tiny.scc
>>>> +
>>>> +include arch/microblaze/microblaze.scc
>>>> +kconf hardware qemumicroblazeeb.cfg
>>>> +
>>>> +include bsp/xilinx/soc/drivers-softip.scc
>>>> +include bsp/xilinx/board-common.scc
>>>> +
>>>> diff --git a/bsp/qemumicroblaze/qemumicroblazeeb.cfg
>>>> b/bsp/qemumicroblaze/qemumicroblazeeb.cfg
>>>> new file mode 100644
>>>> index 0000000000..0f635c1652
>>>> --- /dev/null
>>>> +++ b/bsp/qemumicroblaze/qemumicroblazeeb.cfg
>>>> @@ -0,0 +1,15 @@
>>>> +
>>>> +CONFIG_XILINX_MICROBLAZE0_FAMILY="spartan3"
>>>
>>>
>>>
>>> Out curiosity, is it this config that actually dictates
>>> the endianess ?
>>
>>
>> This config just populates the fpga family. It does control some
>> instruction flags for very old microblaze cpu versions [0]. But
>> otherwise just embeds a string that can be read at run time.
>>
>>>
>>> I ask, because I didn't see anything else obvious that would
>>> trigger this to build BE.
>>
>>
>> There is no kernel config to switch endianess, it is defined by the
>> toolchain used. You can see how the arch picks based on compiler
>> defines e.g. [1], [2].
>
>
> Aha. So the naming convention of 'eb' isn't significant from the
> point of view of endianess.

Yep the "eb" naming is just to make it clear that it is big endian, as
previously (CPU v7 and earlier) MicroBlaze did not support little
endian. But since little endian support was added, it has been the
default (mainly due to the switch from CoreConnect-PLB buses/devices
to AMBA-AXI buses/devices).

>
> If so, what is the delta between the kernel configs of the el and
> eb machine ?

So the only delta between the machines is in the qemumicroblazee*.cfg
files. From a kernel config standpoint this is only cpu feature flags
for the compiler and the kernel base memory address. Everything else
for the targets is run-time configured via device trees (for the
qemumicroblaze machines the device trees are provided by QEMU).

Regards,
Nathan
-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to