讯为开发板4个文件:u-boot-i-TOP-4412.bin
zImage (04_镜像_QT)
ramdisk-uboot.img (04_镜像_QT)
system.img (视频目录02——01搭建里面)
公司全能板:eMMC KLMAG 对应 16G
(scp) k4b4g,则内存
大小是 k4b4gx4=2G
搭建tftp服务器:
在ubnutu cd /var/tftpboot 有一个可执行文件test
开发板ping不通ubnutu怎么办?
1)关掉无线网卡,开启有线网卡
2)在同一个网段
开发板的secureCRT,退出**“Ctrl+c”** "shift+:"
tftp -g -l test -r test 192.168.1.118
下载后取的名字 要下载的文件
ubnutu的 /var/tftpboot 服务器目录
执行被禁止,chmod 777 修改权限
这种办法不好,如果对uboot很熟悉,可以上电自动将内核镜像,根文件系统下载进去,通过NFS挂载的办法,忘了
开发板里/bin rm -rf
搭建和测试NFS服务器调试程序
适用于小的文件系统,不适用Android和Qt
- sudo apt-get instal nfs-kernel-server
- sudo vi /etc/exports
补上一句话 /rootfs *(rw,sync,no_root_spuash)
3)视频说在/home/minilinux目录下system文件系统中放置文件系统
但自己的ubnutu 是在/rootfs
4)重启
5)挂载
sudo mount -t nfs 192.168.3.7:/rootfs 空格/mnt
localhost
linux@ubuntu:/rootfs$ sudo mount -t nfs localhost:/rootfs /mnt
配置内核挂载文件系统:
讯为内核源码解压后,有个"kernel",cp -r config_for_linux_scp .config
内核中服务器的地址就是ubnutu的地址
开发板的IP+ ubnutu的IP +网关的ip
进入make menuconfig
讯为内核中的一个选项:
root=/dev/nfs rw nfsroot=192.168.1.118:/home/minilinux/system
ip=192.168.1.230:192.168.1.118:192.168.1.1:255.255.255.0:iTOP:eth0:off
rootfstype=ext4 init=/linuxrc console=ttySAC2,115200
修改的
root=/dev/nfs rw nfsroot=192.168.1.118:/rootfs
ip=192.168.1.230:192.168.1.118:192.168.1.1:255.255.255.0:iTOP:eth0:off
rootfstype=ext4 init=/linuxrc console=ttySAC2,115200
编译内核在iTop4412_Kernel_3.0目录下:make zImage
会在arch/arm/boot/zImage 目录下生成。最后把内核镜像重新烧录到开发板上面