Re: Uboot NetBoot IMX8


Hi Nicolas,


Extracting as root did the trick, I was extracting using the desktop extracter before.

I didnt end up adding fsid=root option because that caused it not to mount at all for some reason.


From: yocto@... <yocto@...> on behalf of Nicolas Jeker <n.jeker@...>
Sent: Wednesday, March 11, 2020, 1:43 AM
To: yocto@...
Subject: Re: [yocto] Uboot NetBoot IMX8

On Wed, 2020-03-11 at 00:39 +0000, Trevor wrote:
> > Mar 11 00:21:16 b2qt-b9-imx8mq mount[2611]: mount: only root can
> > use "--types" option (effective UID is 1000)
> The mount error seems prevalent across all the errors.  somehow UID
> is 1000 when it should be 0 during boot?

By googling the error message I found a thread where somebody has the
same question, but I wouldn't recommend following the advice there
(running the yocto build as root). How do you extract the root
filesystem to your NFS directory? Maybe something is wrong there and
the files get extracted with UID 1000 as owner. For reference, I use
this command which seems to work fine:

sudo tar --strip-components=1 -C /srv/nfs/rootfs -xf images/apalis-

Also check that there are no setuid/setgid bits set.

> On the Host side, here are the /etc/exports options for NFS:
>  *(rw,sync,insecure,no_subtree_check,no_root_squash)

I'm using pretty much the same NFS options, the only difference I could
spot is an additional 'fsid=root' in my exports which is NFSv4

Join to automatically receive all group messages.