安装根文件系统和制作文件系统的命令,全部的命令和其功能如下:
make deploy-rootfs
安装根文件系统
make deploy-rootfs只是install最小文件系统 , 其余的还要执行make
在subsystem下make是将.sh .xml等配置文件安装到/goke/rootfs_uClibc系统里。
在linux/kernel/drv下执行make是将驱动安装到/goke/rootfs_uClibc系统里。
在application下执行make是将执行文件安装到/goke/rootfs_uClibc系统里。
/usr/local/bin/init.sh文件,需要两次在SDK根目录下执行make,才能生成
还有.bin文件
错误log:
[CTLSERVER ERR] FILE: src/image.c, LINE: 284: gadi_isp_load_param() failed! ret = -8015
是因为:
ar0130.bin bg0701.bin color_reg.bin jxh42.bin ov2710.bin sc1035.bin
ar0330.bin color_matrix.bin imx122.bin lens_shading.bin ov9715.bin sc1045.bin
color_reg.bin jxh42.bin color_matrix.bin lens_shading.bin imx122.bin
1.进入uboot
上电后,按 Enter 键进入uboot
2.设置 uboot 参数
setenv gatewayip 192.168.1.1//路由
setenv ipaddr 192.168.1.213 //设置开发板IP
setenv serverip 192.168.1.185 //虚拟机IP
setenv netmask 255.255.255.0
setenv loadaddr 0xC1000000 //内核 zImage 写入地址
setenv nfsserver 192.168.1.185 //TFTP地址,下载内核时,另设置为PC地址
setenv bootargs 'console=ttySGK0 root=/dev/nfs rw nfsroot=192.168.1.185:/opt/goke/rootfs_uClibc ip=192.168.1.213::192.168.1.1:255.255.255.0:goke:eth0:off init=/linuxrc mem=46m phytype=1'//关键参数设置
setenv bootcmd 'tftp ${loadaddr} zImage; bootm' //我未执行此句去设置 bootcmd
设置完成后,打印看一下配置:
GK7101 # printenv
[PROCESS_SEPARATORS] printenv
arm_freq=0x01203201
baudrate=115200
bootargs=console=ttySGK0 root=/dev/nfs rw nfsroot=192.168.1.185:/opt/goke/rootfs_uClibc ip=192.168.1.213::192.168.1.1:255.255.255.0:goke:eth0:off init=/linuxrc mem=46m phytype=1
bootcmd=sf probe;sf read c1000000 40000 400000;bootm c1000000
bootdelay=1
bootfile=zImage_rb_imx222
consoledev=ttySGK0
ethact=gk7101
ethaddr=3C:97:0E:22:E1:14
fileaddr=C1600000
filesize=200000
gatewayip=192.168.1.1
hostname="gk7101"
ipaddr=192.168.1.123
loadaddr=0xC1000000
netdev=eth0
netmask=255.255.255.0
nfsserver=192.168.1.185
phytype=1
rootfstype=ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs
rootpath=/opt/work
serverip=192.168.1.185
sfboot=sf probe 0 0;sf read ${loadaddr} 0x000E0000 0x150000;sf read 0xc2000000 0x230000 0x400000; bootm
sfkernel=0x40000
stderr=serial
stdin=serial
stdout=serial
tftpboot=setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:${rootpath},proto=tcp,nfsvers=3,nolock ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev} mac=${ethaddr} phytype=${phytype} console=${consoledev},${baudrate} mem=46M;tftpboot ${bootfile};bootm
Environment size: 1145/65532 bytes
GK7101 # save
GK7101 # reset
total 8
drwxr-xr-x 2 default default 4096 May 31 2015 default
drwxr-xr-x 2 root root 4096 Oct 29 2015 vm_test