Wind River Support Network

HomeDefectsLIN6-7116
Fixed

LIN6-7116 : p2041rdb.dtb: Ability to specify /memreserve/ should be at board level

Created: Apr 15, 2014    Updated: Dec 3, 2018
Resolved Date: May 21, 2014
Found In Version: 6.0.0.5
Fix Version: 6.0.0.7
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP

Description

The "/include/ "fsl/p2041si-pre.dtsi"  has  /dts-v1/; 
Hence we could not define /memreserve/ inside p2041rdb.dts as it does contains  "/include/ "fsl/p2041si-pre.dtsi" which takes precedence on p2041rdb.dts: 

  
The rule is  that the custom setting should be between /dts-v1/; and other includes .
They way the p2041rdb.dts file is organized for freescale is wrong
 
The p2041rdb.dts has 
 
/include/ "fsl/p2041si-pre.dtsi"  
 
/ {
model = "fsl,P2041RDB";
compatible = "fsl,P2041RDB";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&mpic>;
 
--> The ability to specify the memreserve should be at board level 

Workaround

- Add memreserve in p2041si-pre.dtsi. 

Steps to Reproduce

1. configure project for p2041 target:
-	configure --with-ccache-size=10G --with-ccache-dir=/opt/tmp/ccache --enable-parallel-pkgbuilds=4 --enable-jobs=4 --enable-ccache=yes --with-sstate-dir=/opt/tmp/sstate --enable-board=fsl-e500mc --enable-kernel=standard --enable-rootfs=glibc_std --enable-reconfig --enable-rm-oldimgs=yes --with-template=feature/initramfs --with-rcpl-version=0005
 2. modify 
./bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver/3.10-r0/linux/arch/powerpc/boot/dts/p2041rdb.dts
to reserve RAM memory by adding at the top of p2041rdb.dts :

/memreserve/     0x40000000 0x04000000; /* for fxbcm driver */

3. The compilation for fsl-e500mc kernel should fail with syntax error.

---
 DTC     arch/powerpc/boot/p2041rdb.dtb
| FATAL ERROR: Unable to parse input tree
| Error: /opt/WR_Projects/wrl-6/workspace_p2041/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver/3.10-r0/linux/arch/powerpc/boot/dts/p2041rdb.dts:35.1-13 syntax error
| make[3]: *** [arch/powerpc/boot/p2041rdb.dtb] Error 1
| make[2]: *** [p2041rdb.dtb] Error 2
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /opt/WR_Projects/wrl-6/workspace_p2041/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver/3.10-r0/temp/do_install/run.do_install.2313:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_install (log file is located at /opt/WR_Projects/wrl-6/workspace_p2041/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver/3.10-r0/temp/do_install/
---

Other Downloads


Live chat
Online