关于OKMX6Q-C开发板u-boot的nfs配置问题
我按照飞凌嵌入式linux操作手册设置好了nfs环境,重新编译和下载了u-boot和uImage,u-boot能成功运行。也能引导uImage,但是出现以下错误:U-Boot 2009.08 (Nov 21 2017 - 03:27:32)
CPU: Freescale i.MX6 family TO1.5 at 792 MHz
Temperature: 44 C, calibration data 0x5bc52d69
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 264000000Hz
emi_slow clock: 132000000Hz
ddr clock : 528000000Hz
usdhc1 clock: 198000000Hz
usdhc2 clock: 198000000Hz
usdhc3 clock: 198000000Hz
usdhc4 clock: 198000000Hz
nfc clock : 24000000Hz
Board: i.MX6Q-SABRESD: unknown-board Board: 0x63015
Boot Device: MMC
I2C: ready
DRAM: 1 GB
MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3
In: serial
Out: serial
Err: serial
config_ipu_di_clk: freq = 108000000.
wait for pll5 lock.
config_ipu_di_clk: set pll5 clock to 216000000Hz.
Found PFUZE100! deviceid=10,revid=21
Net: got MAC address from IIM: 00:00:00:00:00:00
FEC0
WatchDog is disabled
Hit any key to stop autoboot:0
mmc3(part 0) is current device
MMC read: dev # 3, block # 2048, count 10496 ... 10496 blocks read: OK
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Linux-3.0.35-2666-gbdde708
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3992748 Bytes =3.8 MB
Load Address: 10008000
Entry Point:10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.35-2666-gbdde708 (root@ubuntu) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #1 SMP PREEMPT Tue Nov 21 03:48:39 PST 2017
CPU: ARMv7 Processor revision 10 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board
Memory policy: ECC disabled, Data cache writealloc
CPU identified as i.MX6Q, unknown revision
On node 0 totalpages: 196608
free_area_init_node: node 0, pgdat 80b074a0, node_mem_map 8b800000
DMA zone: 368 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 46736 pages, LIFO batch:15
Normal zone: 1680 pages used for memmap
Normal zone: 147824 pages, LIFO batch:31
PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768
pcpu-alloc: s5440 r8192 d15040 u32768 alloc=8*4096
pcpu-alloc: 0 1 2 3
Built 1 zonelists in Zone order, mobility grouping on.Total pages: 194560
Kernel command line: root=/dev/nfs ip=10.20.1.68 nfsroot=10.20.1.69:/nfs_rootfs,v3,tcp
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 512MB 256MB = 768MB total
Memory: 765676k/765676k available, 282900k reserved, 0K highmem
Virtual kernel memory layout:
vector: 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap: 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xf4600000 - 0xffe00000 ( 184 MB)
vmalloc : 0xc0800000 - 0xf2000000 ( 792 MB)
lowmem: 0x80000000 - 0xc0000000 (1024 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 (14 MB)
.init : 0x80008000 - 0x8003c000 ( 208 kB)
.text : 0x8003c000 - 0x80aa5e80 (10664 kB)
.data : 0x80aa6000 - 0x80b085c0 ( 394 kB)
.bss : 0x80b085e4 - 0x80b5737c ( 316 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:624
MXC GPIO hardware
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
arm_max_freq=800MHz
MXC_Early serial console at MMIO 0x2020000 (options '115200')
bootconsole enabled
Console: colour dummy device 80x30
console enabled, bootconsole disabled
MX6Q SABRESD U-Boot >
MX6Q SABRESD U-Boot > printenv
bootdelay=3
baudrate=115200
netmask=255.255.255.0
loadaddr=0x10800000
netdev=eth0
ldb_mode=ldb=sin0
mxcfb0=video=mxcfb0:dev=lcd,AT070-WVGA,if=RGB24,bpp=32
mxcfb1=video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32
fec_mac=1E:ED:19:27:1A:B3
codec_name=audio_codec=wm8960-24M
ethprime=FEC0
splashimage=0x30000000
splashpos=m,m
wdtenable=disable
lvds_num=1
fastboot_dev=mmc3
ethact=FEC0
ethaddr=00:E0:0C:66:88:99
ipaddr=10.20.1.68
serverip=10.20.1.69
system=linux
kernel=uImage
uboot=u-boot.bin
nfsroot=/nfs_rootfs
bootargs_nfs=setenv bootargs root=/dev/nfs ip=10.20.1.68 nfsroot=10.20.1.69:/nfs_rootfs,v3,tcp
bootcmd=run bootcmd_net
bootargs_mmc=setenv bootargs ip=none root=/dev/mmcblk0p1 rootwait
bootcmd_mmc=run bootargs_base bootargs_mmc
bootcmd_net=run bootargs_base bootargs_nfs; mmc dev 3; mmc read ${loadaddr} 0x800 0x2900; bootm
rd_loadaddr=(0x1300000)
bootargs_base=setenv bootargs console=tty0,115200 video=mxcfb0:dev=lcd,AT070-WVGA,if=RGB24,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb2:off
stdin=serial
stdout=serial
stderr=serial
Environment size: 1068/8188 bytes
MX6Q SABRESD U-Boot > 以上是我的u-boot配置,请问,贵司有关于nfs配置的资料吗?我以上的配置错误在什么地方?怎样重置和擦除u-boot的环境变量?
本帖最后由 飞凌-chongzi 于 2017-11-23 09:15 编辑
您好:
我看了一下您的配置,看不出有什么问题,如下是我们手册的设置命令,您可以再重新设置一下:
setenv ethaddr 00:E0:0C:BC:E5:60 #设置网卡mac地址
setenv ipaddr 192.168.2.85 #设置开发板IP地址
setenv serverip 192.168.2.51 #设置tftp服务IP地址
setenv bootcmd run bootcmd_net #设置启动参数
注意下面的这些是一行环境变量
setenv bootargs_nfs setenv bootargs console=ttymxc0,115200
video=mxcfb0:dev=hdmi,1920x1080@60,if=RGB24,bpp=32
video=mxcfb1:dev=hdmi,1920x1080@60,if=RGB24,bpp=32 ldb=sin0 audio_codec=wm8960-24M
video=mxcfb2:off calibrate=Y root=/dev/nfs ip=192.168.2.85:192.168.2.1:255.255.255.0
nfsroot=192.168.2.51:/nfs_rootfs,v3,tcp
另外,如果您想重置环境变量的话,没有好的办法,重新烧写吧
飞凌-chongzi 发表于 2017-11-23 09:14
您好:
我看了一下您的配置,看不出有什么问题,如下是我们手册的设置命令,您可以再重新设置一下:
...
您好!非常感谢您的支持!我使用u-boot自带的destroyenv命令,能清除掉我设置的环境变量,恢复为默认值。
页:
[1]