Cubox i nfs root

This forum is for supported devices using an ARMv7 Freescale SoC.

Cubox i nfs root

Postby andre77 » Sat Sep 19, 2015 11:25 pm

Hi, someone can explain me how can i modify the uenv.txt file for boot from an nfs root file system?
andre77
 
Posts: 12
Joined: Wed Jan 21, 2015 8:58 am

Re: Cubox i nfs root

Postby moonman » Sun Sep 20, 2015 2:41 am

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Cubox i nfs root

Postby andre77 » Sun Sep 20, 2015 8:05 am

I moonman, thanks for reply, I tested the method read from your link.
I have made an uEnv.txt file like this:
$this->bbcode_second_pass_code('', '
serverip=10.0.0.200
ipaddr=10.0.0.7
ip_dyn=
get_cmd=tftp
zImage=zImage
bootfile=zImage
rootpath=/cuboxroot/boot
storagepath=/cuboxroot
nfsopts=proto=tcp,hard,timeo=70,retrans=3
videoopts=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=16 dmfc=3
netargs=setenv bootargs "ip=dhcp boot=NFS=${serverip}:${rootpath},${nfsopts} \
disk=NFS=${serverip}:${storagepath},${nfsopts} video=${videoopts} quiet"
')

then i have logged into the cubox via serial usb and then power it.
the output from cubox is this:

$this->bbcode_second_pass_code('', '
U-Boot SPL 2013.10-rc4 (Aug 28 2015 - 06:20:08)
Boot Device: SD1
spl: error reading image u-boot.img, err - -1
Load image from RAW...


U-Boot 2013.10-rc4 (Aug 28 2015 - 06:20:08)

CPU: Freescale i.MX6Q rev1.5 at 792 MHz
Reset cause: POR
Board: MX6-CuBox-i
DRAM: 2 GiB
MMC: FSL_SDHC: 0
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: FEC [PRIME]
Hit any key to stop autoboot: 0
mmc0 is current device
** File not found /boot.scr **
478 bytes read in 28 ms (16.6 KiB/s)
Importing environment from mmc0 ...
Booting from net ...
Using FEC device
TFTP from server 10.0.0.200; our IP address is 10.0.0.7
Filename 'zImage'.
Load address: 0x10800000
Loading: ##################################################
4.3 MiB/s
done
Bytes transferred = 6240648 (5f3988 hex)
Using FEC device
TFTP from server 10.0.0.200; our IP address is 10.0.0.7
Filename 'imx6q-cubox-i.dtb'.
Load address: 0x18000000
Loading: ###################################################
2.9 MiB/s
done
Bytes transferred = 33907 (8473 hex)
Loaded imx6q-cubox-i.dtb
Booting zImage
Kernel image @ 0x10800000 [ 0x000000 - 0x5f3988 ]
## Flattened Device Tree blob at 18000000
Booting using the fdt blob at 0x18000000
Using Device Tree in place at 18000000, end 1800b472

Starting kernel ...

')

and the boot process stay blocked at the starting kernel line
andre77
 
Posts: 12
Joined: Wed Jan 21, 2015 8:58 am

Re: Cubox i nfs root

Postby moonman » Wed Sep 23, 2015 4:27 am

remove 'quite' to see what's up.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am


Return to Freescale

Who is online

Users browsing this forum: No registered users and 9 guests