How to increase default Yocto kernel memory

cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase default Yocto kernel memory

293 Views
imx7newbie
Contributor II

Hi,

I have connected PCIE interface of IMX7(ARM A7- Yocto-Linux) and KC705 FPGA EVAL board and both are set to Gen2, 1 Lane.

https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applicatio...

https://www.xilinx.com/support/documentation/boards_and_kits/kc705/ug810_KC705_Eval_Bd.pdf

When BARs size is set to 64 Megabytes(our requirement) in FPGA, IMX7 doesn’t support with standard Xilinx pcie driver and end up with following error:

root@imx7d-phyboard-zeta-001:/lib/modules# insmod /lib/modules/xpcie.ko
Base hw val 0
Base hw len 0
BAR0 of 0K
BAR0 of 0M
xpcie: Init: Could not remap memory.
insmod: ERROR: could not insert module /lib/modules/xpcie.ko: Operation not
permitted
root@imx7d-phyboard-zeta-001:/lib/modules#
but when BARs size is set to 4 Megabytes in FPGA, then IMX7 works. Is it due to limitation of IMX7 kernel memory size? I think default IMX7 kernel memory has to be increased by some means.

but I don't know how to increase default kernel memory size in Yocto. Is there any way for this? or there is another issue?

Relevant files are in attachment.

P.S. same Xilinx pcie driver in PC(Centos/Ubuntu) works for any setting.

Labels (1)
Tags (2)
0 Kudos
2 Replies

185 Views
jimmychan
NXP TechSupport
NXP TechSupport

what BSP are you using?

which board are you using?

0 Kudos

185 Views
imx7newbie
Contributor II

Hi,

here is the info:

Build Configuration:
BB_VERSION = "1.30.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx7d-phyboard-zeta-001"
DISTRO = "fsl-imx-x11"
DISTRO_VERSION = "4.1.15-2.0.1"
TUNE_FEATURES = "arm armv7ve vfp neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"
meta-oe
meta-multimedia = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm = "HEAD:be78894e4682f111575470fb23e51e6ba523508d"
meta-fsl-arm-extra = "HEAD:3dfb82fc7e703eae9891b3ffda0e9393701f2396"
meta-fsl-demos = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp
meta-sdk = "HEAD:90399d99af8a2660ebe50b49752e95b210239fd9"
meta-browser = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5 = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"
meta-phytec
meta-phytec-fsl = "HEAD:0b1de01225a2ec0debf71eb13be403baa9f4919f"
meta-xyzlayer
meta-testlayer
meta-hello-mod
meta-met
meta-drivervipa = "<unknown>:<unknown>"

0 Kudos