Forums - NFS support for RB5 kernel?

7 posts / 0 new
Last post
NFS support for RB5 kernel?
da.teng
Join Date: 20 Jun 21
Posts: 16
Posted: Sun, 2021-06-20 08:15

I'm using Thundercomm's sdkmanager to flash image onto the RB5 board. For the image I flash, it has very limited kernel modules included. It doesn't even have nfs included. I wonder what's the recommended way (no so complicated) to generate bootable image for RB5, that has a more kernel modules supported?

  • Up0
  • Down0
kevin.dai
Join Date: 21 Oct 20
Posts: 137
Posted: Mon, 2021-06-21 13:25

 Currently the sdkmanger can flash prebiuilt kenel image to device .If you want to configure and build kernel image, you should have source code, and reconfigure kenrel and build it.  I wonder if you have source code paackage? 

  • Up0
  • Down0
da.teng
Join Date: 20 Jun 21
Posts: 16
Posted: Fri, 2021-06-25 14:06

I downloaded code from chipcode and code aurora forum and following

  QRB5165.LE.1.0 LEPDK QUICK START GUIDE

   Apr 15, 2021

  Rev A
80-27572-3
PDF

to build a Linux image.

Is this the right process, am I following the right documentation? Also, I'm using version

QRB5165.LE.1.0 AMSS OEM

to build the image. I also see other versions as well on the website. Is this the right version to use?

 

  • Up0
  • Down0
kevin.dai
Join Date: 21 Oct 20
Posts: 137
Posted: Tue, 2021-06-29 12:12

Hi da.teng

I think you should follow up releasenote and get software package from Thundercomm, then configure your Kenrel and build kernel  to support NFS.  Please check Thundercomm server support ( [email protected]for your permission to download software package.

Thanks

Kevin

 

 

  • Up0
  • Down0
da.teng
Join Date: 20 Jun 21
Posts: 16
Posted: Sat, 2021-07-03 10:14

I was able to get source code for LE image and build successfully. The image was able to flash and boot. I tried to enable nfs on the board by setting

DISTRO_FEATURES_append = " nfs"

EXTRA_IMAGE_FEATURES += "nfs-client"

After that, I was able to boot the image and find mount.nfs was on the filesystem. However, when I actually mount something from other device on the network it complains:

mount.nfs: No such device

And when I do modprobe nfs it says 

modprobe: FATAL: Module nfs not found in directory /lib/modules/4.19.157-perf

And here is the message I got from dmesg | grep nfs

[    7.323526] systemd[597]: proc-fs-nfsd.mount: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[    7.326328] request_module fs-nfsd succeeded, but still no fs?
[    7.337908] systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited, status=32/n/a
[    7.338655] systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.
[    7.346027] systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result 'dependency'.
[    7.346754] systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
[    7.454332] systemd[649]: proc-fs-nfsd.mount: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[    7.459122] systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited, status=32/n/a
[    7.460157] systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.
[    8.235626] systemd[726]: proc-fs-nfsd.mount: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[    8.241962] systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited, status=32/n/a
[    8.243164] systemd[1]: proc-fs-nfsd.mount: Failed with result 'exit-code'.

 

Any idea how to actually enable NFS on the image?

  • Up0
  • Down0
da.teng
Join Date: 20 Jun 21
Posts: 16
Posted: Mon, 2021-07-05 09:35

Just got NFS to work on the device. I guess the key here is to enable Kernel support by adding the necessary config items. I did it through changing recipe-kernel under meta-qti-bsp. I added the following two config items:

CONFIG_NFS_FS=y

CONFIG_NFSD=y

Then you still have to add the necessary package (nfs-utils) through yocto.

After that, the kernel has build error with with NFS enabled. You need the following changes in the kernel source code to pass the compilation:

fs/nfs/read.c

--- readpage_async_filler(filler_t * data, struct page *page)

+++ readpage_async_filler(void *data, struct page *page)

Then flashing the images on the board should enable NFS on the board.

  • Up0
  • Down0
kevin.dai
Join Date: 21 Oct 20
Posts: 137
Posted: Tue, 2021-07-06 14:54

Great! You got it

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.