摘要: 参考:https://blog.csdn.net/jklinux/article/details/72679950 阅读全文
posted @ 2018-05-31 17:19 edan 阅读(363) 评论(0) 推荐(0)
摘要: 参考博客:https://blog.csdn.net/jklinux/article/details/72675929 阅读全文
posted @ 2018-05-31 16:55 edan 阅读(291) 评论(0) 推荐(0)
摘要: 1.将sd卡通过优盘插在电脑上 2.fdisk /dev/sdb 3. m //帮助 d //删除分区 4. n //添加新的分区、 p //默认主分区 回车 +400M //第一个分区400M 。。。。。。。 5.退出fdisk模式 在root下执行下列命令对分区格式化 “mkfs.ex4 /de 阅读全文
posted @ 2018-05-31 13:27 edan 阅读(934) 评论(0) 推荐(0)
摘要: 可以自行在uboot中增加命令,扩充 命令的定义在uboot源码下的include中 命令写在cmd文件夹下,写好后要在Makefile中加入此文件的.o文件 然后在上一个文件夹下输入“make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-“命令 然后输入命令“ 阅读全文
posted @ 2018-05-29 13:45 edan 阅读(552) 评论(0) 推荐(0)
摘要: 1. 2. 阅读全文
posted @ 2018-05-24 18:23 edan 阅读(1234) 评论(0) 推荐(0)
摘要: 1.程序就是编译出来的镜像,处于执行状态的程序叫进程.一个程序可以执行多次,每次执行会产生一个进程. 2. 程序镜像里有分成很多个段: 段其实就是在程序镜像文件里从一个位置到另一个位置范围里存放某种数据,便于系统在加载程序生成进程时的处理. 我们最需要注意的段:.text .rodata .data 阅读全文
posted @ 2018-05-22 12:34 edan 阅读(313) 评论(0) 推荐(0)
摘要: epoll一共需要三步: //声明epoll类型的结构体,ev位要设置的变量,rev位返回时设置变量 1. 创建epoll机制 int epfd; struct epoll_event ev, rev[count]; epfd=epoll_create1(0)//参数为0或EPOLL_CLOEXEC 阅读全文
posted @ 2018-05-21 14:28 edan 阅读(181) 评论(0) 推荐(0)
摘要: 1 //main.cpp 2 #include "mywin.h" 3 #include "foodtype.h" 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 int main(int argc, char *argv[]) 11 { 12 QApplication... 阅读全文
posted @ 2018-05-19 14:43 edan 阅读(542) 评论(0) 推荐(0)
摘要: 挂载镜像文件 1、上传镜像文件到服务器(或电脑)的某一目录下 如:(/media/rpm_pack/rhel...iso) 2、root 用户下创建镜像文件挂载目录 mkdir /mnt/vcdrom 3、挂载镜像 mount -o loop -t iso9660 /media/rpm_pack/r 阅读全文
posted @ 2018-05-12 18:01 edan 阅读(330) 评论(0) 推荐(0)
摘要: 1.int a(100)// 对象构造 效率最高 a==100; 2.分配空间(new) ptr=malloc(sizeof(int))// 仅分配空间 ptr=new int; ptr=new int(5566)//new分配空间,还可以构造该对象 3.释放空间(delete) free(ptr) 阅读全文
posted @ 2018-05-08 18:21 edan 阅读(155) 评论(0) 推荐(0)