graugans / meta-udoo

:heartpulse: openembedded meta layer for the UDOO boards
MIT License
31 stars 18 forks source link

[RFC] Enable ROOT_NFS and PXE for morty branch udooneo builds #37

Closed drewmoseley closed 7 years ago

drewmoseley commented 7 years ago

@graugans I have been playing with a UDOO Neo board recently and enabled a few extra features in my local configuration. Please take a look in case you want them in your branch.

drewmoseley commented 7 years ago

Also, is this GITHUB PR the preferred mechanism for submitting changes or would you rather use email?

In case you are interested, I also have a working pyro and master branch here: https://github.com/drewmoseley/meta-udoo/tree/wip-master

modjo756 commented 7 years ago

Nice work ! It will be great if you can make a little tutorial to boot from network.

drewmoseley commented 7 years ago

@modjo756 I added a new commit with a README.md for enabling network boot. That's always tricky to document because every setup is different but I at least have a similar PXE setup on multiple boards so it's getting easier now.

graugans commented 7 years ago

Sorry, for the late reply. I was in vacation. I'll take a look into this. I do prefer github pull requests because it is easier.

modjo756 commented 6 years ago

Today i'm trying to boot neo from tftp with pxe, followed your tutorial but i have some issues, first with wic there is no udoo-image-full-cmdline-udooneo.tar.bz2 available in /temp/deploy ! Just an image with .wic.bz2 that i don't know how to decompress it. Otherwise i have created the tftp server on my host pc but the PXE file need to be in pxelinux.cfg folder otherwise you have an error that indicates that it can't find the files. For the rootfs, i copied the files from /myYocotoFolder/neoBuild/tmp/work/udooneo-poky-linux-gnueabi/udoo-image-qt5/1.0-r0/rootfs/ to /tftpboot. The card find the tftp start booting but i have this error : [ 1.435280] regulator-dummy: disabling [ 1.439680] snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 2017-07-24 08:09:32 UTC (1500883772) [ 1.449898] imx_thermal tempmon.11: Extended Commercial CPU temperature grade [ 1.457123] imx_thermal tempmon.11: max:105C crit:100C passive:95C [ 1.554601] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1) [ 5.554744] libphy: 2188000.ethernet:00 - Link is Up - 100/Full [ 5.583640] Sending DHCP requests . z-5 [ 5.634490] IP-Config: Complete: [ 5.637953] device=eth0, hwaddr=00:c0:08:8c:0f:79, ipaddr=172.22.XX.XX, mask=255.255.0.0, gw=172.22.1.3 [ 5.648072] host=172.22.XX.XX, domain=XXXXXX.local, nis-domain=(none) [ 5.655335] bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath= [ 5.661402] nameserver0=172.22.XX.XX[ 5.665858] clk: Not disabling unused clocks [ 5.670264] ALSA device list: [ 5.673345] No soundcards found. [ 5.677850] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)

drewmoseley commented 6 years ago

@modjo756 adding the tar.bz2 file can be done by adding the following to your local.conf file

IMAGE_FSTYPES += " .tar.bz2"

(note there is a space after the first quote character)

The location of the PXE file is going to be dependent on your host TFTP server configuration. Sounds like you have at least that much working.

I have no idea what may be causing the mount error; I suspect it's something to do with your kernel command line settings. I suggest you get the tar.bz2 FSTYPE first and deploy that to your server and then see what the real issue is. A full bootlog will be helpful in troubleshooting.

drewmoseley commented 6 years ago

I added a README update regarding the IMAGE_FSTYPES variable in my wip-morty branch: https://github.com/drewmoseley/meta-udoo/tree/wip-morty

Once we get your situation figured out, I'll submit a PR to update everything.

modjo756 commented 6 years ago

Thanks i will try and let you know

modjo756 commented 6 years ago

Same error with tar.bz2, see the boot log under :

U-Boot 2016.07+fslc+ge6b4241 (Jul 24 2017 - 09:54:35 +0200)

CPU:   Freescale i.MX6SX rev1.2 at 792 MHz
Reset cause: POR
Board: UDOO Neo Full
I2C:   ready
DRAM:  1 GiB
PMIC:  PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   using phy at 0
FEC0 [PRIME]
Hit any key to stop autoboot:  0 
=> setenv autoload no
=> setenv serverip 172.22.XX.XX
=> dhcp
BOOTP broadcast 1
DHCP client bound to address 172.22.XX.XX (3 ms)
=> pxe get
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-00-c0-08-8c-0f-79
Using FEC0 device
TFTP from server 172.22.XX.XX; our IP address is 172.22.XX.XX
Filename 'pxelinux.cfg/01-00-c0-08-8c-0f-79'.
Load address: 0x100000
Loading: #
     188.5 KiB/s
done
Bytes transferred = 387 (183 hex)
Config file found
=> pxe boot
PXE Menu
1:  Yocto Build
Enter choice: 1
1:  Yocto Build
missing environment variable: bootfile
Retrieving file: zImage-udooneo.bin
Using FEC0 device
TFTP from server 172.22.22.22; our IP address is 172.22.22.23
Filename 'zImage-udooneo.bin'.
Load address: 0x82000000
Loading: #################################################################
     #################################################################
     #################################################################
     #################################################################
     #########################
     2.9 MiB/s
done
Bytes transferred = 4171184 (3fa5b0 hex)
append: root=/dev/nfs rw nfsroot=172.22.22.22:/tftpboot/rootfs/ ip=dhcp console=/dev/tty0 console=ttymxc0,115200 rootwait uart_from_osc clk_ignore_unused cpuidle.off=1 consoleblank=0
missing environment variable: bootfile
Retrieving file: zImage-imx6sx-udoo-neo-full.dtb
Using FEC0 device
TFTP from server 172.22.22.22; our IP address is 172.22.22.23
Filename 'zImage-imx6sx-udoo-neo-full.dtb'.
Load address: 0x83000000
Loading: ###
     2.6 MiB/s
done
Bytes transferred = 44003 (abe3 hex)
Kernel image @ 0x82000000 [ 0x000000 - 0x3fa5b0 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300dbe2

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.56_1.0.x-udoo+gc460cad (mls@KDE-Z400) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Mon Jul 24 13:30:45 CEST 2017
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: UDOO Neo Full
[    0.000000] cma: CMA: reserved 320 MiB at ac000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 8 pages/cpu @ab739000 s8256 r8192 d16320 u32768
[    0.000000] Kernel command line: root=/dev/nfs rw nfsroot=172.22.22.22:/tftpboot/rootfs/ ip=dhcp console=/dev/tty0 console=ttymxc0,115200 rootwait uart_from_osc clk_ignore_unused cpuidle.off=1 consoleblank=0
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x80a1eff4   (10332 kB)
[    0.000000]       .init : 0x80a1f000 - 0x80a5d040   ( 249 kB)
[    0.000000]       .data : 0x80a5e000 - 0x80aa5160   ( 285 kB)
[    0.000000]        .bss : 0x80aa516c - 0x80b0563c   ( 386 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32430000, Cache size: 256 kB
[    0.000000] Switching to timer-based delay loop
[    0.000008] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
[    0.000810] clocksource_of_init: no matching clocksources found
[    0.000965] Console: colour dummy device 80x30
[    0.000986] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.001001] pid_max: default: 32768 minimum: 301
[    0.001120] Security Framework initialized
[    0.001184] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001201] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.009278] Initializing cgroup subsys devices
[    0.009298] Initializing cgroup subsys freezer
[    0.009343] CPU: Testing write buffer coherency: ok
[    0.009612] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.009657] Setting up static identity map for 0x80497578 - 0x804975d0
[    0.040350] Brought up 1 CPUs
[    0.040365] SMP: Total of 1 processors activated (6.00 BogoMIPS).
[    0.040375] CPU: All CPU(s) started in SVC mode.
[    0.040932] devtmpfs: initialized
[    0.044907] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.045217] pinctrl core: initialized pinctrl subsystem
[    0.045575] regulator-dummy: no parameters
[    0.063869] NET: Registered protocol family 16
[    0.072038] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.072746] Use WDOG1 as reset source
[    0.081660] syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
[    0.081963] vdd1p1: 800 <--> 1375 mV at 1100 mV 
[    0.082346] vdd3p0: 2800 <--> 3150 mV at 3000 mV 
[    0.082697] vdd2p5: 2100 <--> 2875 mV at 2500 mV 
[    0.083074] cpu: 725 <--> 1450 mV at 1150 mV 
[    0.083448] vddpcie-phy: 725 <--> 1450 mV at 1100 mV 
[    0.083814] vddsoc: 725 <--> 1450 mV at 1175 mV 
[    0.086084] syscon 20e4000.iomuxc-gpr: regmap [mem 0x020e4000-0x020e7fff] registered
[    0.088628] syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered
[    0.089037] syscon 21ac000.romcp: regmap [mem 0x021ac000-0x021affff] registered
[    0.094135] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.094148] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.095380] imx6sx-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.096282] 20dc000.gpc supply pu not found, using dummy regulator
[    0.097058] MU is ready for cross core communication!
[    0.101243] bio: create slab <bio-0> at 0
[    0.103654] mxs-dma 1804000.dma-apbh: initialized
[    0.104394] vref-3v3: 3300 mV 
[    0.104655] PSU-5V0: 5000 mV 
[    0.104955] usb_otg1_vbus: 5000 mV 
[    0.105292] usb_otg2_vbus: 5000 mV 
[    0.105549] wlan-en-regulator: 1800 mV 
[    0.106402] SCSI subsystem initialized
[    0.106712] usbphy_nop1.12 supply vcc not found, using dummy regulator
[    0.108049] i2c i2c-0: IMX I2C adapter registered
[    0.109770] i2c i2c-1: IMX I2C adapter registered
[    0.111039] i2c i2c-3: IMX I2C adapter registered
[    0.111171] Linux video capture interface: v2.00
[    0.111240] pps_core: LinuxPPS API ver. 1 registered
[    0.111250] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.111288] PTP clock support registered
[    0.111860] Advanced Linux Sound Architecture Driver Initialized.
[    0.112689] Loading modules backported from Linux version v4.1.7-0-g0c5c1f1
[    0.112700] Backport integrated by backports.git v4.1.1-1-0-g8286954
[    0.112894] Switched to clocksource mxc_timer1
[    0.123621] NET: Registered protocol family 2
[    0.124452] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.124538] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.124667] TCP: Hash tables configured (established 8192 bind 8192)
[    0.124740] TCP: reno registered
[    0.124760] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.124802] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.125057] NET: Registered protocol family 1
[    0.125403] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    0.127027] Bus freq driver module loaded
[    0.127834] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.135177] VFS: Disk quotas dquot_6.5.2
[    0.137348] msgmni has been set to 2006
[    0.141430] io scheduler noop registered
[    0.141444] io scheduler deadline registered
[    0.141486] io scheduler cfq registered (default)
[    0.141994] imx-weim 21b8000.weim: Driver registered.
[    0.144305] MIPI DSI driver module loaded
[    0.148597] imx-sdma 20ec000.sdma: no iram assigned, using external mem
[    0.148797] imx-sdma 20ec000.sdma: no event needs to be remapped
[    0.148981] imx-sdma 20ec000.sdma: loaded firmware 3.1
[    0.151958] imx-sdma 20ec000.sdma: initialized
[    0.153609] pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
[    0.154161] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[    0.154174] pfuze100-regulator 0-0008: pfuze3000 found.
[    0.155573] SW1A: 700 <--> 1475 mV at 1350 mV 
[    0.156866] SW1B: 700 <--> 1475 mV at 1350 mV 
[    0.157610] SW2: 1500 <--> 1850 mV at 1800 mV 
[    0.158341] SW3: 900 <--> 1650 mV at 1350 mV 
[    0.159097] SWBST: 5000 <--> 5150 mV at 5000 mV 
[    0.159831] VSNVS: 1000 <--> 3000 mV at 3000 mV 
[    0.160027] VREFDDR: 750 mV 
[    0.160757] VLDO1: 1800 <--> 3300 mV at 1800 mV 
[    0.161480] VLDO2: 800 <--> 1550 mV at 1500 mV 
[    0.162227] VCCSD: 2850 <--> 3300 mV at 3150 mV 
[    0.163175] V33: 2850 <--> 3300 mV at 3150 mV 
[    0.163954] VLDO3: 1800 <--> 3300 mV at 1800 mV 
[    0.165108] VLDO4: 1800 <--> 3300 mV at 1800 mV 
[    0.167404] Serial: IMX driver
[    0.167744] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 1500000) is a IMX
[    0.877932] console [ttymxc0] enabled
[    0.882464] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 60, base_baud = 1500000) is a IMX
[    0.891684] 22a0000.serial: ttymxc5 at MMIO 0x22a0000 (irq = 49, base_baud = 1500000) is a IMX
[    0.900730] serial: Freescale lpuart driver
[    0.906620] imx sema4 driver is registered.
[    0.911043] IMX MCC TTY driver module loaded
[    0.915432] [drm] Initialized drm 1.1.0 20060810
[    0.920516] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[    0.930922] loop: module loaded
[    0.937454] spi_imx 200c000.ecspi: probed
[    0.942836] 2188000.ethernet supply phy not found, using dummy regulator
[    0.983358] pps pps0: new PPS source ptp0
[    0.991994] libphy: fec_enet_mii_bus: probed
[    0.997031] fec 2188000.ethernet eth0: registered PHC device 0
[    1.003472] mousedev: PS/2 mouse device common for all mice
[    1.009965] input: 20cc000.snvs-pwrkey as /devices/soc0/soc.0/2000000.aips-bus/20cc000.snvs-pwrkey/input/input0
[    1.020450] snvs_pwrkey 20cc000.snvs-pwrkey: i.MX snvs powerkey probed
[    1.028283] snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
[    1.036788] i2c /dev entries driver
[    1.040977] IR NEC protocol handler initialized
[    1.045604] IR RC5(x) protocol handler initialized
[    1.050407] IR RC6 protocol handler initialized
[    1.054967] IR JVC protocol handler initialized
[    1.059506] IR Sony protocol handler initialized
[    1.064149] IR RC5 (streamzap) protocol handler initialized
[    1.069728] IR SANYO protocol handler initialized
[    1.074453] IR MCE Keyboard/mouse protocol handler initialized
[    1.082402] imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
[    1.090976] sdhci: Secure Digital Host Controller Interface driver
[    1.097203] sdhci: Copyright(c) Pierre Ossman
[    1.101569] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.108347] mmc0: no vqmmc regulator found
[    1.112467] mmc0: no vmmc regulator found
[    1.152920] mmc0: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    1.162684] sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on normal mode
[    1.176365] mmc2: no vqmmc regulator found
[    1.220674] mmc0: host does not support reading read-only switch. assuming write-enable.
[    1.234871] mmc0: new high speed SDHC card at address 0007
[    1.240841] mmcblk0: mmc0:0007 SD16G 14.5 GiB 
[    1.246677]  mmcblk0: p1
[    1.302912] mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    1.323736] sdhci-esdhc-imx 2198000.usdhc: card claims to support voltages below defined range
[    1.335550] fsl-asrc 2034000.asrc: driver registered
[    1.343472] Netfilter messages via NETLINK v0.30.
[    1.348262] nfnl_acct: registering with nfnetlink.
[    1.353171] nf_conntrack version 0.5.0 (16054 buckets, 64216 max)
[    1.360204] TCP: cubic registered
[    1.363639] NET: Registered protocol family 17
[    1.368204] Key type dns_resolver registered
[    1.373440] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[    1.392247] mmc2: queuing unknown CIS tuple 0x91 (3 bytes)
[    1.397802] failed to register cpuidle driver
[    1.402171] ThumbEE CPU extension supported.
[    1.407649] mmc2: new high speed SDIO card at address 0001
[    1.414222] VLDO2: disabling
[    1.417873] SWBST: disabling
[    1.420770] usb_otg2_vbus: disabling
[    1.424414] usb_otg1_vbus: disabling
[    1.428000] PSU-5V0: disabling
[    1.431066] vddpcie-phy: disabling
[    1.434530] regulator-dummy: disabling
[    1.438924] snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
[    1.448369] imx_thermal tempmon.11: Extended Commercial CPU temperature grade
[    1.455592] imx_thermal tempmon.11: max:105C crit:100C passive:95C
[    1.554020] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1)
[    5.554166] libphy: 2188000.ethernet:00 - Link is Up - 100/Full
[    5.583055] Sending DHCP requests ., OK
[    5.633879] IP-Config: Complete:
[    5.637206]      device=eth0, hwaddr=00:c0:08:8c:0f:79, ipaddr=172.22.XX.XX, mask=255.255.0.0, gw=172.22.1.3
[    5.647324]      host=172.22.XX.XX, domain=XXXXX.local, nis-domain=(none)
[    5.654586]      bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
[    5.660654]      nameserver0=172.22.XX.XX[    5.665106] clk: Not disabling unused clocks
[    5.669511] ALSA device list:
[    5.672600]   No soundcards found.
[    5.677108] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)
drewmoseley commented 6 years ago

@modjo756 I see two possibilities here:

  1. Your NFS path is somehow incorrect. Do you see any logging on your server regarding this connection? I know that having certain services running in a chroot jail sometimes requires adapting the path that the client actually connects to. Can you verify from another system that you are able to NFS mount the 172.22.22.22:/tftpboot/rootfs/ path?

  2. Your user-space network connection manager is dropping and trying to re-establish the connection. See for instance https://kernel.googlesource.com/pub/scm/network/connman/connman/+/ef0d26e6ef2b883193469f016117d8238c1c9658%5E!/. In my local config I manually pull that patch for the morty and pyro branches when building connman. In the master branch it no longer seems to be necessary. I add this in my personal layer as follows: https://github.com/drewmoseley/meta-dmoseley-local-config/tree/morty/meta-dmoseley-core/recipes-connectivity/connman

modjo756 commented 6 years ago

Thanks for your reply ! i will test tomorrow at work. I'm agree with you i suppose that i have a problem with nfs access (or connmam issue, for information i have blacklisted eth0 to use static ip with std interfaces...)

modjo756 commented 6 years ago

After a test this morning it seems that i have a problem to access to nfs server, on the server the config is (/etc/exports) :

/tftpboot/rootfs/ 172.22.*(rw,sync,no_subtree_check)

after i did this :

~$ sudo exportfs -a
~$ sudo service nfs-kernel-server start
~$ sudo exportfs -v
/tftpboot/rootfs  172.22.*(rw,wdelay,root_squash,no_subtree_check,sec=sys,rw,root_squash,no_all_squash)

on the client i tested to mount the nfs like this :

mount 172.22.22.22:/tftboot/rootfs

but i have this error

mount.nfs: access denied by server while mounting 172.22.22.22:/tftboot/rootfs
on host i have this in syslog 
Jul 25 09:59:16 KDE-Z400 rpc.mountd[1048]: refused mount request from 172.22.9.122 for /tftboot/rootfs (/): not exported
drewmoseley commented 6 years ago

It's possible that your NFS server is setup in a chroot jail on /tftpboot. I wonder if you change /etc/exports to

/rootfs/ 172.22.*(rw,sync,no_subtree_check)

if that will help. Otherwise you'll need to dig around through /etc/ and check file/directory permissions.

modjo756 commented 6 years ago

I tested with this conf :

/tftpboot/rootfs 172.22.*(rw,sync,no_subtree_check,no_root_squash)

now i can mount nfs form another client. But already same error during neo boot (i have remove connman from my image ...)

drewmoseley commented 6 years ago

The man page for exports doesn't explicitly state that you can use wildcards for IP addresses. Just a shot in the dark but what if you use:

/tftpboot/rootfs 172.22.0.0/16(rw,sync,no_subtree_check,no_root_squash)

The only other thing I can think of would be to remove the subnet restriction from your /etc/exports and see if that tells you anything:

/tftpboot/rootfs *(rw,sync,no_subtree_check,no_root_squash)
modjo756 commented 6 years ago

Tried with your config :

KDE-Z400:/media/mls/data/yocto-krogoth/neoBuild/tmp/deploy/images/udooneo$ sudo exportfs -v /tftpboot/rootfs world(rw,wdelay,no_root_squash,no_subtree_check,sec=sys,rw,no_root_squash,no_all_squash)

but already same problem ... perhaps a problem with NFS kernel support (i have add your patch ...) i don't know. For the moment i will continue to use sdcard for my tests ! Then, thanks a lot for your help !

graugans commented 6 years ago

@modjo756 maybe considering to run the NFS Server on another UDOO/Raspbery PI board with Yocto?

modjo756 commented 6 years ago

@graugans yes it will be a solution but for the moment i must finish another work ... i will try later