UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor _bj_
Visitor
1,892 Views
Registered: ‎10-04-2016

Zynq - Kernel 4.9 - remoteproc freezes system

Platform: Zynq

Board: Z-turn (7z020 with 1 GiB of Memory)

 

I want to Update Kernel from 4.4 to 4.9 and tried to get remoteproc working. With the latest sources the remoteproc driver gets all needed informations about the carveout and vdev devices from the ressource table inside the baremetal application. We do not need any vdev devices so we remove these entries from the ressource table. Also our baremetal application needs to be at address 0x30000000, what is written in the carveout. (linker script also corrected)

 

So the problem is when probing the module the system is going to freeze and have to be hard resetted. Further investigations are that the zynq_cpun_start function cause this problem. Looking into memory there is no application at this address after probing.

 

So where is my problem? Also all examples from OpenAMP fail booting. All these Applications were working with 4.4.0 and the OpenAMP Application worked in 4.6.0 (the other not because vdev was really not optional at this version).

 

Resource Table:

 

/* Resource table entries */
#define ELF_START                   0x30000000
#define ELF_SIZE                    0x08000000

#define NUM_TABLE_ENTRIES           1
#define CARVEOUT_SRC_OFFSETS        offsetof(struct remote_resource_table, elf_cout),
#define CARVEOUT_SRC                { RSC_CARVEOUT, ELF_START, ELF_START, ELF_SIZE, 0, 0, "ELF_COUT", },


const struct remote_resource_table __resource resources =
{
	/* Version */
	1,

	/* NUmber of table entries */
	NUM_TABLE_ENTRIES,
	/* reserved fields */
	{ 0, 0,},

	/* Offsets of rsc entries */
	{
		CARVEOUT_SRC_OFFSETS
	},

	/* End of ELF file */
	CARVEOUT_SRC
};

Any ideas?

0 Kudos
2 Replies
Contributor
Contributor
639 Views
Registered: ‎01-18-2018

Re: Zynq - Kernel 4.9 - remoteproc freezes system

Hi @_bj_

Did you find a viable solution to that?

Same Linux configuration, just starting the CPU1 at 0x3e000000. The CPU starts but CPU0 request to "stop" fails.

L

0 Kudos
Visitor _bj_
Visitor
634 Views
Registered: ‎10-04-2016

Re: Zynq - Kernel 4.9 - remoteproc freezes system

I'm sorry no, we stayed with the 4.4 Kernel which works fine.

0 Kudos