Hello,
We are trying to configure the Pfe0 and Pfe1 with SGMII configuration in uboot, but it is not getting up with the SGMII configuration for 2 pfe's.
With this configuration, the pfe's are not getting enabled, could you please help us or any suggestions to setting up the sgmii for 2 pfe's.
Below ENV variables we are trying to set while booting process:
Hit any key to stop autoboot: 0
=> printenv
arch=arm
baudrate=115200
board=s32-gen1
board_name=s32-gen1
boot_fdt=try
boot_mtd=booti
bootargs=root=/dev/ram rw earlycon
bootcmd=pfeng stop; mmc dev ${mmcdev}; if mmc rescan; then if run loadimage; then run mmcboot; else run netboot; fi; else run netboot; fi
bootdelay=2
bootscript=echo Running bootscript from mmc ...; source
console=ttyLF0
cpu=armv8
eth1addr=00:01:be:be:ef:11
ethact=eth_pfeng
fdt_addr=0x83E00000
fdt_file=fsl-s32g274a-evb.dtb
fdt_high=0xa0000000
fdt_pcie0_spis_fixup=pcie_addr=40400000; run fdt_pcie_set_gic;
fdt_pcie1_spis_fixup=pcie_addr=44100000; run fdt_pcie_set_gic;
fdt_pcie_set_gic=fdt addr ${fdt_addr}; fdt resize; fdt get value gic_phandle /interrupt-controller@50800000 phandle; fdt set /pcie@${pcie_addr} msi-parent <${gic_phandle}>;
fdtcontroladdr=ffd25378
flashboot=echo Booting from flash...; run flashbootargs;sf probe 6:0;sf read ${loadaddr} ${kernel_flashaddr} ${kernel_maxsize};sf read ${fdt_addr} ${fdt_flashaddr} ${fdt_maxsize};sf read ${ramdisk_addr} ${ramdisk_flashaddr} ${ramdisk_maxsize};${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr};
flashbootargs=setenv bootargs console=${console},${baudrate} root=/dev/ram rw earlycon
nohz=off coherent_pool=64M ;setexpr uboot_flashaddr (0x0 + 0x0);setexpr kernel_flashaddr (0x0 + 0x1f0000);setenv kernel_maxsize 0xd00000;setexpr fdt_flashaddr (0x0 + 0xef0000);setenv fdt_maxsize 0x100000;setexpr ramdisk_flashaddr (0x0 + 0xff0000);setenv ramdisk_maxsize 0x2000000;
hwconfig=pcie0:mode=pcie,clock=ext;pcie1:mode=sgmii,clock=int,fmhz=125,xpcs_mode=both
image=Image
initrd_high=0xffffffff
ipaddr=10.0.0.100
jtagboot=echo Booting using jtag...; ${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr}
jtagsdboot=echo Booting loading Linux with ramdisk from SD...; run loadimage; run loadramdisk; run loadfdt;${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr}
loadaddr=0x80000000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file};
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
loadramdisk=fatload mmc ${mmcdev}:${mmcpart} ${ramdisk_addr} ${ramdisk}
loadtftpfdt=tftp ${fdt_addr} ${fdt_file};
loadtftpimage=tftp ${loadaddr} ${image};
loadtftpramdisk=tftp ${ramdisk_addr} ${ramdisk};
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} earlycon nohz=off coherent_pool=64M
mmcboot=echo Booting from mmc ...; run mmcargs; if run loadfdt; then ${boot_mtd} ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi;
mmcdev=0
mmcpart=1
mmcroot=/dev/mmcblk0p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp earlycon nohz=off coherent_pool=64M
netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then ${boot_mtd} ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then ${boot_mtd}; else echo WARN: Cannot load the DT; fi; fi; else ${boot_mtd}; fi;
netmask=255.255.255.0
nfsboot=echo Booting from net using tftp and nfs...; run nfsbootargs;run loadtftpimage; run loadtftpfdt;${boot_mtd} ${loadaddr} - ${fdt_addr};
nfsbootargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs rw ip=${ipaddr}:${serverip}::${netmask}::eth0:off nfsroot=${serverip}:/tftpboot/rfs,nolock,v3,tcp earlycon nohz=off coherent_pool=64M
pfe1addr=00:01:be:be:ef:22
pfe2addr=00:01:be:be:ef:33
pfeaddr=00:01:be:be:ef:11
pfeng_mode=enable,sgmii,sgmii,rgmii
pfengemac=both
ramdisk=rootfs.uimg
ramdisk_addr=0x84000000
s32cc_gmac_mode=enable
script=boot.scr
serverip=10.0.0.1
soc=s32
stderr=serial
stdin=serial
stdout=serial
update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmware_filename}; then setexpr fw_sz ${filesize} / 0x200; setexpr fw_sz ${fw_sz} + 1; mmc write ${loadaddr} 0x8 ${fw_sz}; fi; fi
update_sd_firmware_filename=u-boot.s32
vendor=freescale
Environment size: 4125/8188 bytes
-------------------------
thanks in advance....
Best Regards,
Shyamsunder
Hi,
Could you provide which platform (if any) are you using for this application? Also, which drivers (RTD/BSP) are you using on the S32G side (IDE if any)?
Please, let us know.