s32g2 QNX PFE driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32g2 QNX PFE driver

1,659 Views
miles_yang
Contributor I

Hi Teams,

software information:
PFE QNX driver version: 1.8.0
PFE FW version: 1.11.0
QNX SDP version: 7.1.0
Uboot ATF BSP39.0
When I made these changes:

struct udevice *dev = NULL;

const struct eth_ops* opsptr;

char cmd[128];

/* Enable GMAC eqos eth */

ret = uclass_get_device_by_name(UCLASS_ETH, "ethernet@4033c000", &dev);

opsptr = DM_DRIVER_GET(eth_eqos)->ops;

ret = opsptr->start(dev);

/* Enable PFE driver */

uclass_get_device_by_name(UCLASS_MISC, "pfeng-base", &dev);

DM_DRIVER_GET(pfeng)->probe(dev);

uclass_get_device_by_name(UCLASS_ETH, "pfe2", &dev);

opsptr = DM_DRIVER_GET(pfeng_netif)->ops;

opsptr->start(dev);

uclass_get_device_by_name(UCLASS_ETH,"pfe1",&dev);

opsptr = DM_DRIVER_GET(pfeng_netif)->ops;

opsptr->start(dev);

uclass_get_device_by_name(UCLASS_ETH,"pfe0",&dev);

opsptr = DM_DRIVER_GET(pfeng_netif)->ops;

opsptr->start(dev);

snprintf(cmd, sizeof(cmd), "scmi_clk gate protocol@14 pfe_ts 1");

run_command(cmd, 0);

snprintf(cmd, sizeof(cmd), "scmi_clk gate protocol@14 ftm 1");

run_command(cmd, 0);
And use these commands to start the QNX system
setenv boot_qnx_atf 'mmc dev 0; fatload mmc 0:1 0x83e00000 s32g274a-rdb2.dtb; run atf_fdt_0to3; run
release_cpus; fatload mmc 0:1 0x80080000 ifs-s32g274a-rdb.ui; bootm 0x80080000 - 0x83E00000'
setenv atf_fdt_0to3 'fdt addr 0x83e00000; fdt resize; fdt set /cpus/cpu@1 cpu-release-addr <0x0
0xa0000010>; fdt set /cpus/cpu@100 cpu-release-addr <0x0 0xa0000010>; fdt set /cpus/cpu@101
cpu-release-addr <0x0 0xa0000010>;'
setenv release_cpus 'run cpu_trap; mp 1 release 0xa0000000; mp 2 release 0xa0000000; mp 3 release
0xa0000000;'
setenv cpu_trap 'dcache off; mw.l 0xa0000000 0xd503205f; mw.l 0xa0000004 0x58000060; mw.l 0xa0000008
0xb4ffffc0; mw.l 0xa000000C 0xd61f0000; mw.q 0xa0000010 0x00000000; dcache on;'
setenv bootcmd 'run boot_qnx_atf'
setenv hwconfig "serdes0:mode=pcie,clock=ext;pcie0:mode=rc;serdes1:mode=xpcs0&xpcs1,
clock=ext,fmhz=125;xpcs1_0:speed=2G5;xpcs1_1:speed=1G"
setenv skip_scmi_reset_agent '1'
saveenv
System will startup failed,

Starting kernel ...

clk pfe1_tx_sgmii already disabled
clk pfe1_rx_sgmii already disabled

Found PFE version 0x50300 (S32G2)

Found PFE version 0x50300 (S32G2)
pfe2 Waiting for PHY auto negotiation to complete......... TIMEOUT !
## Setting pfe_ts clock ...
## Setting ftm0_sys clock ...
## Setting ftm0_ext clock ...
## Setting ftm1_sys clock ...
## Setting ftm1_ext clock ...
Board: NXP S32G274A RDB2 Revision E
Error bringing up core 1 with error 0

The startup log has been uploaded to the attachment.

Best Regards
Miles

0 Kudos
Reply
3 Replies

1,647 Views
Joey_z
NXP Employee
NXP Employee

Hi,miles_yang

Thank you for contacting us.

Could you share more information with me?

1.are you using the customer board or our development board RDB2/RDB3?

2.Do you only use the PFE application on the A core?

BR

Joey

0 Kudos
Reply

1,577 Views
miles_yang
Contributor I
Hi Joey,
I am using the customer board, and the CPU is S32G274A.
Yes, currently only core A is running. The QNX system is started via Uboot. If the above modifications are not added, the QNX system can start normally. However, after adding the modifications in PFE-DRV_S32G_QNX_1.8.0_IntegrationManual.pdf, the startup fails.
please help check.Thanks.

Best Regards,
Miles
0 Kudos
Reply

1,530 Views
Joey_z
NXP Employee
NXP Employee

Hi,miles_yang

Thank you for your reply.

Do you want to config the PFE in U-boat stage? About the more information, you can try to refer to the 7.3 Ethernet Software support on S32G2 of S32G2_LinuxBSP_39.0_User_Manual.pdf.

BR

Joey

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2345022%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32g2%20QNX%20PFE%20driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2345022%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Teams%2C%3C%2FP%3E%3CP%3Esoftware%20information%3A%3CBR%20%2F%3EPFE%20QNX%20driver%20version%3A%201.8.0%3CBR%20%2F%3EPFE%20FW%20version%3A%201.11.0%3CBR%20%2F%3EQNX%20SDP%20version%3A%207.1.0%3CBR%20%2F%3EUboot%20ATF%20BSP39.0%3CBR%20%2F%3EWhen%20I%20made%20these%20changes%3A%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Estruct%20udevice%20*dev%20%3D%20NULL%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Econst%20struct%20eth_ops*%20opsptr%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Echar%20cmd%5B128%5D%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E%2F*%20Enable%20GMAC%20eqos%20eth%20*%2F%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eret%20%3D%20uclass_get_device_by_name(UCLASS_ETH%2C%20%22ethernet%404033c000%22%2C%20%26amp%3Bdev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eopsptr%20%3D%20DM_DRIVER_GET(eth_eqos)-%26gt%3Bops%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eret%20%3D%20opsptr-%26gt%3Bstart(dev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E%2F*%20Enable%20PFE%20driver%20*%2F%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Euclass_get_device_by_name(UCLASS_MISC%2C%20%22pfeng-base%22%2C%20%26amp%3Bdev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3EDM_DRIVER_GET(pfeng)-%26gt%3Bprobe(dev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Euclass_get_device_by_name(UCLASS_ETH%2C%20%22pfe2%22%2C%20%26amp%3Bdev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eopsptr%20%3D%20DM_DRIVER_GET(pfeng_netif)-%26gt%3Bops%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eopsptr-%26gt%3Bstart(dev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Euclass_get_device_by_name(UCLASS_ETH%2C%22pfe1%22%2C%26amp%3Bdev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eopsptr%20%3D%20DM_DRIVER_GET(pfeng_netif)-%26gt%3Bops%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eopsptr-%26gt%3Bstart(dev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Euclass_get_device_by_name(UCLASS_ETH%2C%22pfe0%22%2C%26amp%3Bdev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eopsptr%20%3D%20DM_DRIVER_GET(pfeng_netif)-%26gt%3Bops%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eopsptr-%26gt%3Bstart(dev)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esnprintf(cmd%2C%20sizeof(cmd)%2C%20%22scmi_clk%20gate%20protocol%4014%20pfe_ts%201%22)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Erun_command(cmd%2C%200)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esnprintf(cmd%2C%20sizeof(cmd)%2C%20%22scmi_clk%20gate%20protocol%4014%20ftm%201%22)%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Erun_command(cmd%2C%200)%3B%3C%2FFONT%3E%3CBR%20%2F%3EAnd%20use%20these%20commands%20to%20start%20the%20QNX%20system%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esetenv%20boot_qnx_atf%20'mmc%20dev%200%3B%20fatload%20mmc%200%3A1%200x83e00000%20s32g274a-rdb2.dtb%3B%20run%20atf_fdt_0to3%3B%20run%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Erelease_cpus%3B%20fatload%20mmc%200%3A1%200x80080000%20ifs-s32g274a-rdb.ui%3B%20bootm%200x80080000%20-%200x83E00000'%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esetenv%20atf_fdt_0to3%20'fdt%20addr%200x83e00000%3B%20fdt%20resize%3B%20fdt%20set%20%2Fcpus%2Fcpu%401%20cpu-release-addr%20%26lt%3B0x0%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E0xa0000010%26gt%3B%3B%20fdt%20set%20%2Fcpus%2Fcpu%40100%20cpu-release-addr%20%26lt%3B0x0%200xa0000010%26gt%3B%3B%20fdt%20set%20%2Fcpus%2Fcpu%40101%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Ecpu-release-addr%20%26lt%3B0x0%200xa0000010%26gt%3B%3B'%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esetenv%20release_cpus%20'run%20cpu_trap%3B%20mp%201%20release%200xa0000000%3B%20mp%202%20release%200xa0000000%3B%20mp%203%20release%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E0xa0000000%3B'%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esetenv%20cpu_trap%20'dcache%20off%3B%20mw.l%200xa0000000%200xd503205f%3B%20mw.l%200xa0000004%200x58000060%3B%20mw.l%200xa0000008%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E0xb4ffffc0%3B%20mw.l%200xa000000C%200xd61f0000%3B%20mw.q%200xa0000010%200x00000000%3B%20dcache%20on%3B'%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esetenv%20bootcmd%20'run%20boot_qnx_atf'%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esetenv%20hwconfig%20%22serdes0%3Amode%3Dpcie%2Cclock%3Dext%3Bpcie0%3Amode%3Drc%3Bserdes1%3Amode%3Dxpcs0%26amp%3Bxpcs1%2C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eclock%3Dext%2Cfmhz%3D125%3Bxpcs1_0%3Aspeed%3D2G5%3Bxpcs1_1%3Aspeed%3D1G%22%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esetenv%20skip_scmi_reset_agent%20'1'%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Esaveenv%3C%2FFONT%3E%3CBR%20%2F%3ESystem%20will%20startup%20failed%EF%BC%8C%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3EStarting%20kernel%20...%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eclk%20pfe1_tx_sgmii%20already%20disabled%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Eclk%20pfe1_rx_sgmii%20already%20disabled%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3EFound%20PFE%20version%200x50300%20(S32G2)%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3EFound%20PFE%20version%200x50300%20(S32G2)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3Epfe2%20Waiting%20for%20PHY%20auto%20negotiation%20to%20complete.........%20TIMEOUT%20!%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E%23%23%20Setting%20pfe_ts%20clock%20...%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E%23%23%20Setting%20ftm0_sys%20clock%20...%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E%23%23%20Setting%20ftm0_ext%20clock%20...%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E%23%23%20Setting%20ftm1_sys%20clock%20...%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3E%23%23%20Setting%20ftm1_ext%20clock%20...%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3EBoard%3A%20NXP%20S32G274A%20RDB2%20Revision%20E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%2300CCFF%22%3EError%20bringing%20up%20core%201%20with%20error%200%3C%2FFONT%3E%3C%2FP%3E%3CP%3EThe%20startup%20log%20has%20been%20uploaded%20to%20the%20attachment.%3C%2FP%3E%3CP%3EBest%20Regards%3CBR%20%2F%3EMiles%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2345054%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32g2%20QNX%20PFE%20driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2345054%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3Emiles_yang%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20contacting%20us.%3C%2FP%3E%0A%3CP%3ECould%20you%20share%20more%20information%20with%20me%3F%3C%2FP%3E%0A%3CP%3E1.are%20you%20using%20the%20customer%20board%20or%20our%20development%20board%20RDB2%2FRDB3%3F%3C%2FP%3E%0A%3CP%3E2.Do%20you%20only%20use%20the%20PFE%20application%20on%20the%20A%20core%3F%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2345861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32g2%20QNX%20PFE%20driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2345861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20Joey%2C%3CBR%20%2F%3EI%20am%20using%20the%20customer%20board%2C%20and%20the%20CPU%20is%20S32G274A.%3CBR%20%2F%3EYes%2C%20currently%20only%20core%20A%20is%20running.%20The%20QNX%20system%20is%20started%20via%20Uboot.%20If%20the%20above%20modifications%20are%20not%20added%2C%20the%20QNX%20system%20can%20start%20normally.%20However%2C%20after%20adding%20the%20modifications%20in%20PFE-DRV_S32G_QNX_1.8.0_IntegrationManual.pdf%2C%20the%20startup%20fails.%3CBR%20%2F%3Eplease%20help%20check.Thanks.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EMiles%3C%2FLINGO-BODY%3E