cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
liwenz
Explorer
Explorer
478 Views
Registered: ‎10-09-2017

how to set petalinux2018 not stop cpu1 running

I have a zynq 7010 board with 512M ddr3.

I want to cpu0 run petalinux 2018.2 and cpu1 bare-metal.(0x1e00_0000)

If two bare-metal, they run well on my sd.

With sdk 2018.2 create the BOOT.BIN which include fsbl.elf, system.bit,u-boot.elf,cpu1led. the cpu1led run at first. After petalinux run, it stops.

2020-07-10 13_42_40-Create Boot Image.png

I start the cpu1led at fsbl.elf.

In petalinux,I reserve the memory as follow :

/include/ "system-conf.dtsi"
/ {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;

reserved: buffer@0x1e000000 {
no-map;
reg = <0x1e000000 0x00400000>;
};
};

reserved-driver@0 {
compatible = "xlnx,reserved-memory";
memory-region = <&reserved>;
};
};

Or, should I config petalinux as smp, one cpu?

 

0 Kudos
2 Replies
liwenz
Explorer
Explorer
445 Views
Registered: ‎10-09-2017

I change the dtsi as:

/include/ "system-conf.dtsi"
/ {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;

reserved: buffer@0x1e000000 {
no-map;
reg = <0x1e000000 0x00400000>;
};
};

reserved-driver@0 {
compatible = "xlnx,reserved-memory";
memory-region = <&reserved>;
};
};
maxcpus=1;

petalinux-build shows error:

ERROR: device-tree-xilinx+gitAUTOINC+f38738e568-r0 do_compile: Function failed: do_compile (log file is located at /home/liwenz/alinx/cnc7a/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+f38738e568-r0/temp/log.do_compile.81717)
ERROR: Logfile of failure stored in: /home/liwenz/alinx/cnc7a/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+f38738e568-r0/temp/log.do_compile.81717
Log data follows:
| DEBUG: Executing shell function do_compile
| Error: /home/liwenz/alinx/cnc7a/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+f38738e568-r0/system-user.dtsi:19.1-8 syntax error
| FATAL ERROR: Unable to parse input tree
| WARNING: /home/liwenz/alinx/cnc7a/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+f38738e568-r0/temp/run.do_compile.81717:1 exit 1 from 'dtc -I dts -O dtb -R 8 -p 0x1000 -b 0 -i /home/liwenz/alinx/cnc7a/build/../components/plnx_workspace/device-tree/device-tree -i /home/liwenz/alinx/cnc7a/build/tmp/work-shared/plnx-zynq7/kernel-source/include -i /home/liwenz/alinx/cnc7a/build/tmp/work-shared/plnx-zynq7/kernel-source/include -i /home/liwenz/alinx/cnc7a/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+f38738e568-r0 -o ${DTS_NAME}.dtb `basename ${DTS_FILE}`.pp'
| ERROR: Function failed: do_compile (log file is located at /home/liwenz/alinx/cnc7a/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+f38738e568-r0/temp/log.do_compile.81717)
ERROR: Task (/home/liwenz/petalinux/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3004 tasks of which 2993 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/liwenz/petalinux/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project

0 Kudos
jovitac
Moderator
Moderator
360 Views
Registered: ‎05-10-2017

You have a syntax error in your system-user.dtsi. Check line 19 as indicated by the error? My guess is the maxcpus entry that you have added which not part of any node

| Error: /home/liwenz/alinx/cnc7a/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+f38738e568-r0/system-user.dtsi:19.1-8 syntax error

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos