Mounting rootfs over NFS not happening in s32g274ardb2 board- bsp28

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

Mounting rootfs over NFS not happening in s32g274ardb2 board- bsp28

1,137 Views
Jeyaseelan
Contributor I

Hi All,

I am trying to boot the s32g274ardb2 board through "nfsboot" option from u-boot. I see the kernel & dtb files are loaded through tftp  and booted properly  until kernel stops at the time of NFS mount. Have exported the nfs folder by running "sudo systemctl restart nfs-kernel-server" and rootfs (fsl-image-auto-s32g274ardb2.tar.gz) image is kept at the exported location  /tftpboot/rfs. Find below the nfs boot args and the kernel log where it stops.

Bootargs

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

Kernel log where it stops

[ 2.029921] 001: mmcblk0: p1 p2
[ 2.040922] 000: phy-s32gen1-serdes 44180000.serdes: Unstable RX detected on XPCS1
[ 2.040943] 000: phy-s32gen1-serdes 44180000.serdes: Unstable RX detected on XPCS0
[ 2.050772] 000: s32gen1-rtc 40060000.rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[ 2.130918] 001: s32cc-dwmac 4033c000.ethernet eth0: PHY [stmmac-0:01] driver [Micrel KSZ9031 Gigabit PHY]
[ 2.143433] 001: s32cc-dwmac 4033c000.ethernet eth0: Enabling Safety Features
[ 2.143456] 001: s32cc-dwmac 4033c000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 2.143679] 001: s32cc-dwmac 4033c000.ethernet eth0: registered PTP clock
[ 2.143694] 001: s32cc-dwmac 4033c000.ethernet eth0: configuring for phy/rgmii link mode
[ 2.146496] 001: 8021q: adding VLAN 0 to HW filter on device eth0
[ 6.235474] 001: s32cc-dwmac 4033c000.ethernet: Set RX/TX clock to 125M
[ 6.235505] 001: s32cc-dwmac 4033c000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 6.238939] 000: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6.258935] 000: IP-Config: Complete:
[ 6.258938] 000: device=eth0, hwaddr=5e:78:c4:9d:a5:f7, ipaddr=192.168.3.1, mask=255.255.255.0, gw=255.255.255.255
[ 6.258952] 000: bootserver=192.168.3.0, rootserver=192.168.3.0, rootpath=

rootpath= shows empty and no further logs after this.

In kernel config file all NFS related options are selected.

What could be the reason and how to resolve this NFS mounting issue?

With regards,

Jeyaseelan

 

 

Tags (2)
0 Kudos
Reply
0 Replies