LS1028ARDB ping from uboot fail

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

LS1028ARDB ping from uboot fail

Jump to solution
2,155 Views
franciscojavie9
Contributor II

Hello,

I am trying to simply ping the board itself, but it does not work. I have tried cable to the five switches that the board has and it does not work. However, if I load the linux kernel, the ping works. So I am thinking about the uboot configuration. Could you help me?

I enclose the uboot load and pri logs:

U-Boot 2018.03-00139-ge124969f47-dirty (Dec 20 2018 - 15:22:43 +0530)

SoC: LS1028AE Rev1.0 (0x870b0010)
Clock Configuration:
CPU0(A72):1300 MHz CPU1(A72):1300 MHz
Bus: 400 MHz DDR: 1600 MT/s
Reset Configuration Word (RCW):
00000000: 34004010 00000030 00000000 00000000
00000010: 00000000 008f0000 0030c000 00000000
00000020: 006031a0 00002580 00000000 00003296
00000030: 00000000 00000010 00000000 00000000
00000040: 00000000 00000000 00000000 00000000
00000050: 00000000 00000000 00000000 00000000
00000060: 00000000 00000000 20067054 00000000
00000070: bb580000 00000000
Model: NXP Layerscape 1028a RDB Board
Board: LS1028AE Rev1.0-RDB, Version: C, boot from NOR
FPGA: v6 (RELEASED: RDB_2018_1206_2148)
SERDES1 Reference : Clock1 = 100.00MHz Clock2 = 100.00MHz
I2C: ready
DRAM: Initializing DDR....
Detected UDIMM Fixed DDR on board
3.9 GiB
DDR 3.9 GiB (DDR4, 32-bit, CL=11, ECC on)
PPA Firmware: Version LSDK-18.09
Using SERDES1 Protocol: 47960 (0xbb58)
PCIe0: pcie@3400000 Root Complex: no link
PCIe1: pcie@3500000 Root Complex: no link
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from SPI Flash... SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 2 GiB
OK
In: serial
Out: serial
Err: serial
Net: eth0: enetc#0 [PRIME], eth1: enetc#1, eth2: enetc#2, eth3: netc_mdio
MDIO MUX: no MDIO MUX node
Hit any key to stop autoboot: 0

 

=> pri
arch=arm
baudrate=115200
board=ls1028a
board_name=ls1028a
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; env exists secureboot && load ${devtype} ${devnum}:${distro_bootpart} ${scripthdraddr} ${prefix}${boot_script_hdr} && esbc_validate ${scripthdraddr};source ${scriptaddr}
boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_script_hdr=hdr_ls1028ardb_bs.out
boot_scripts=ls1028ardb_boot.scr
boot_targets=mmc0 usb0
bootargs=console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256 video=1920x1080-32@60 cma=256M
bootcmd=run sd_bootcmd; run emmc_bootcmd
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=0
console=ttyS0,115200
cpu=armv8
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
emmc_bootcmd=echo Trying load from EMMC ..;sf probe && sf read $load_addr 0x900000 0x20000; hdp load $load_addr 0x2000; mmcinfo; mmc dev 1; mmc read $load_addr $kernel_addr_sd $kernel_size_sd && bootm $load_addr
eth1addr=00:04:9f:06:ab:90
eth2addr=00:04:9f:06:ab:86
eth3addr=00:04:9f:06:ab:87
eth4addr=00:04:9f:06:ab:88
eth5addr=00:04:9f:06:ab:89
ethact=enetc#0
ethaddr=00:04:9f:06:ab:85
ethprime=eth0
fdt_addr=0x00f00000
fdt_addr_r=0x90000000
fdt_high=0xffffffffffffffff
fdtcontroladdr=fbb38a80
fdtheader_addr_r=0x80100000
gateway=10.0.0.0
hwconfig=fsl_ddr:bank_intlv=auto
initrd_high=0xffffffffffffffff
ipaddr=10.0.0.2
kernel_addr=0x01000000
kernel_addr_r=0x81000000
kernel_addr_sd=0x8000
kernel_load=0xa0000000
kernel_size=0x2E00000
kernel_size_sd=0x19000
kernel_start=0x1000000
kernelhdr_addr_sd=0x4000
kernelhdr_size_sd=0x10
kernelheader_addr_r=0x80200000
kernelheader_size=0x40000
kernelheader_start=0x800000
load_addr=0xa0000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
netmask=255.255.255.0
qspi_bootcmd=echo Trying load from flexspi..;sf probe && sf read $load_addr 0x900000 0x20000; hdp load $load_addr 0x2000; sf read $load_addr $kernel_start $kernel_size;bootm $load_addr
ramdisk_addr=0x800000
ramdisk_addr_r=0xa0000000
ramdisk_size=0x2000000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x80000000
scripthdraddr=0x80080000
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
sd_bootcmd=echo Trying load from SD ..;sf probe && sf read $load_addr 0x900000 0x20000; hdp load $load_addr 0x2000; mmcinfo; mmc read $load_addr $kernel_addr_sd $kernel_size_sd && bootm $load_addr
serverip=10.0.0.1
soc=fsl-layerscape
uImage=vxWorks.bin
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
vendor=freescale

 

 

Thanks in advance,

Best Regards

0 Kudos
Reply
1 Solution
2,119 Views
franciscojavie9
Contributor II

Hi,

I solved the problem. Apparently my Windows 10 firewall was blocking ping responses. I added a new rule to enable responses to "ping" conections.

I used command console as administrator user and wrote the following:

netsh advfirewall firewall add rule name="IPv4" protocol=icmpv4:8,any dir=in action=allow

With this rule now it works ping from LS1028ARDB.

Thanks for your help.

Kind Regards.

View solution in original post

0 Kudos
Reply
6 Replies
2,151 Views
ufedor
NXP Employee
NXP Employee

> I am trying to simply ping the board itself

What exactly you have done?

0 Kudos
Reply
2,148 Views
franciscojavie9
Contributor II

Just ping to address 10.0.0.2 (local address from target).

And it says:

=> ping 10.0.0.2
Using enetc#0 device

ARP Retry count exceeded; starting again
ping failed; host 10.0.0.2 is not alive

I have tried to connect the cable in other ethernet switches and also tried in other eth devices. I attach mdio list:

=> mdio list
enetc#0:
enetc#1:
enetc#2:
netc_mdio:
sw:

 

0 Kudos
Reply
2,139 Views
ufedor
NXP Employee
NXP Employee

Why ping 10.0.0.2 is attempted?

10.0.0.2 is IP address of the RDB board itself.

Your serverip is specified as 10.0.0.1.

 

0 Kudos
Reply
2,135 Views
franciscojavie9
Contributor II

Your are right, but i thoght that local ping worked in Uboot.I have also tried to ping the serverip(which is my goal), but same result.

The curiosity is that with eth1 it doesnt link up. For the others: eth0 and eth2 (and trying cable with all ethernet swithches) it just says that host is not alive

=> ping 10.0.0.1
enetc[1]: ERROR: failed to reset
RGMII didn't link up, giving up.
Using enetc#1 device

 

0 Kudos
Reply
2,126 Views
ufedor
NXP Employee
NXP Employee

When U-Boot is running the only available Ethernet is enetc#0 (SGMII) because RGMII is not exposed externally on the LS1028ARDB and U-Boot does not initialize the switch.

Please confirm that 10.0.0.1 could be pinged by any other device connected instead of the RDB board.

0 Kudos
Reply
2,120 Views
franciscojavie9
Contributor II

Hi,

I solved the problem. Apparently my Windows 10 firewall was blocking ping responses. I added a new rule to enable responses to "ping" conections.

I used command console as administrator user and wrote the following:

netsh advfirewall firewall add rule name="IPv4" protocol=icmpv4:8,any dir=in action=allow

With this rule now it works ping from LS1028ARDB.

Thanks for your help.

Kind Regards.

0 Kudos
Reply