linux下ok6410驱动开发环境搭建基本教程
2015-07-25 10:06
771 查看
菜鸟, 一直在win下 + vmware开发学习, 甚是繁琐,机器卡, 所以在linux配置了环境。。需要配置的基本环境如下, 希望能坚持下去
nfs:
1.
sudo apt-get install nfs-kernel-server nfs-common portmap
2.
vim /etc/exports
添加如下行
/home/fanxzh/nfs_root *(rw,sync,no_root_squash)
3.
重启服务:
sudo /etc/init.d/nfs-kernel-server restart
sudo mount -t nfs 192.168.0.102:/home/fanxzh/server/nfs_root /mnt/nfs_root/ -o nolock //嵌入式开发一定要加-o nolock
umount -f /mnt/nfs
tftp:
1.
sudo apt-get install tftpd-hpa
sudo apt-get install tftp-hpa
2.
配置TFTP服务器:
sudo vim /etc/default/tftpd-hpa
3.
sudo service tftpd-hpa restart
4. 基本用法
tftp -g -r tftp.txt 192.168.0.102
tftp -p -l tftp1.txt 192.168.0.102
ftp配置
apt-get install vsftpd 安装
vi /etc/vsftpd.conf 配置
/etc/init.d/vsftpd restart 配置完后重启服务
linux下串口工具: minicom
tftp 烧写内核:
在uboot阶段狂按空格键,进入命令模式,设置主机ip和开发板ip,主机已安装tftp和nfs,加载内核
tftp 0xc0008000 zImage(image在主机tftp目录下)
bootm 0xc0008000 启动内核
nfs:
1.
sudo apt-get install nfs-kernel-server nfs-common portmap
2.
vim /etc/exports
添加如下行
/home/fanxzh/nfs_root *(rw,sync,no_root_squash)
3.
重启服务:
sudo /etc/init.d/nfs-kernel-server restart
sudo mount -t nfs 192.168.0.102:/home/fanxzh/server/nfs_root /mnt/nfs_root/ -o nolock //嵌入式开发一定要加-o nolock
umount -f /mnt/nfs
tftp:
1.
sudo apt-get install tftpd-hpa
sudo apt-get install tftp-hpa
2.
配置TFTP服务器:
sudo vim /etc/default/tftpd-hpa
3.
sudo service tftpd-hpa restart
4. 基本用法
tftp -g -r tftp.txt 192.168.0.102
tftp -p -l tftp1.txt 192.168.0.102
ftp配置
apt-get install vsftpd 安装
vi /etc/vsftpd.conf 配置
/etc/init.d/vsftpd restart 配置完后重启服务
linux下串口工具: minicom
tftp 烧写内核:
在uboot阶段狂按空格键,进入命令模式,设置主机ip和开发板ip,主机已安装tftp和nfs,加载内核
tftp 0xc0008000 zImage(image在主机tftp目录下)
bootm 0xc0008000 启动内核
相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- ubuntu下chrome无法同步问题解决
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- Ubuntu 12.04和Windows 7双系统安装图解
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)
- 看看我的Ubuntu Linux截图
- Ubuntu 12.04 LTS服务器版安装过程及使用图解
- Windows 7/8/8.1 硬盘安装 Ubuntu 14.04 实现双系统