[meta-xilinx] AMP using Yocto meta-xilinx
Edward Wingate
edwingate8 at gmail.com
Fri Nov 21 13:40:39 PST 2014
ug978 AMP guide also says to use petalinux-config to set the kernel
base address value to be 0x10000000. I believe in the Yocto workflow,
I would have to configure u-boot to load the kernel to 0x10000000.
Can anyone confirm doing this would be the equivalent?
Thanks,
Edward
On Fri, Nov 21, 2014 at 11:03 AM, Edward Wingate <edwingate8 at gmail.com> wrote:
> Joe, Elvis,
>
> I just found this documentation which probably has what I'm looking for:
> http://www.yoctoproject.org/docs/1.7/dev-manual/dev-manual.html#configuring-the-kernel
>
> And it does mention your bitbake menuconfig commands, so I will give
> it a try. Thanks!
>
> Edward
>
>
>
> On Fri, Nov 21, 2014 at 10:57 AM, Joe MacDonald
> <Joe_MacDonald at mentor.com> wrote:
>> Hey Edward,
>>
>> [Re: [meta-xilinx] AMP using Yocto meta-xilinx] On 14.11.21 (Fri 10:46) Edward Wingate wrote:
>>
>>> Hi Joe,
>>>
>>> Thanks for your reply. I should have clarified, I am trying to do
>>> this with Yocto, not Petalinux. I saw those menu options in the ug978
>>> document, but I am under the impression that Yocto doesn't have that
>>> GUI to configure kernel options (please let me know if I'm wrong).
>>> Instead, the kernel config items are specified in a text file that I
>>> think is at meta-xilinx/conf/machine/boards/common/linux/zynq/defconfig_3.14.cfg.
>>> I am looking for the text file equivalents of those menu options.
>>
>> You can create your own kernel config fragments in your own layer, of
>> course, so you don't need to modify the defconfig, but I think maybe
>> there was a bit of confusion about my notation. I was just providing
>> directions assuming you had done something like this:
>>
>> % bitbake -c menuconfig virtual/kernel
>>
>> or
>>
>> % bitbake -c menuconfig linux-xlnx
>>
>> I definitely wasn't talking about Petalinux, I've only built it a couple
>> of times myself. All of those options are available in the linux-xlnx
>> kernel (the one referenced in SRC_URI from
>> meta-xilinx/recipes-kernel/linux/linux-xlnx.inc) so you should be good.
>> If you set those in your build you can try them out, then maybe use the
>> kernel config fragment creation tool (the name escapes me right now
>> since I almost never use it myself) to automatically generate just the
>> piece you need.
>>
>> Hope that helps.
>> -J.
>>
>>>
>>> Thanks,
>>> Edward
>>>
>>> On Fri, Nov 21, 2014 at 10:26 AM, Joe MacDonald
>>> <Joe_MacDonald at mentor.com> wrote:
>>> >
>>> > Hi Edward,
>>> >
>>> > I'm in no way an expert, I just fritter around with meta-xilinx from
>>> > time to time, but I can probably help with these. They're all kernel
>>> > configuration options, actually.
>>> >
>>> > [[meta-xilinx] AMP using Yocto meta-xilinx] On 14.11.21 (Fri 10:03) Edward Wingate wrote:
>>> >
>>> > > I'm trying to configure Yocto Linux with meta-xilinx layer to do AMP on a
>>> > > zedboard.
>>> > > I'm following the ug978 AMP guide and trying to configure the kernel similarly:
>>> > >
>>> > > 1. Enable loadable module support
>>> > > 2. Select High Memory Support
>>> > > 3. Select 2G/2G User/Kernel memory split
>>> > > 4. Enable userspace firmware loading support
>>> > > 5. Enable rpmsg driver
>>> > > 6. Enable remoteproc driver
>>> > >
>>> > > I am looking for these options in meta-xilinx/conf/machine/boards/common/linux/
>>> > > zynq/defconfig_3.14.cfg. Is this the correct place?
>>> > >
>>> > > For #1, do these options accomplish loadable module support?
>>> > > CONFIG_MODULES=y
>>> > > CONFIG_MODULE_UNLOAD=y
>>> > > CONFIG_MODULE_FORCE_UNLOAD=y
>>> > >
>>> > > For #2, CONFIG_HIGHMEM=y
>>> > >
>>> > > Can someone help me with #3-5? I don't know what options corresponds with
>>> > > those, or if that is even the right file to look for them.
>>> >
>>> > #3 is:
>>> >
>>> > Kernel Features --->
>>> > Memory split (3G/1G user/kernel split) --->
>>> > (X) 2G/2G user/kernel split
>>> >
>>> > and #4 is:
>>> >
>>> > Device Drivers --->
>>> > Generic Driver Options --->
>>> > -*- Userspace firmware loading support
>>> >
>>> > > For #6, how would I get the zynq remoteproc driver into the kernel using Yocto
>>> > > and meta-xilinx? I'm assuming #1-5 are standard kernel configurations, but #6
>>> > > is zynq specific and wouldn't be a standard kernel config item.
>>> >
>>> > #5 and #6 are options so long as you're building linux-xlnx of some form
>>> > as your virtual/kernel:
>>> >
>>> > Device Drivers --->
>>> > Remoteproc drivers --->
>>> > < > Support ZYNQ remoteproc
>>> > Rpmsg drivers --->
>>> > < > rpmsg user driver (for example...)
>>> >
>>> > >
>>> > > Thank you for any help.
>>> > >
>>> > > Edward
>>> >
>>> > --
>>> > -Joe MacDonald.
>>> > :wq
>>
>> --
>> -Joe MacDonald.
>> :wq
More information about the meta-xilinx
mailing list