摘要: http://cjrong.github.io/ 阅读全文
posted @ 2015-02-01 13:29 左懒 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 在linux中,如果映像文件(.img)含有分区表的话,那么用losetup这个程序来加载文件系统就有点力不从心了。因为losetup只能加载无分区的文件系统映像文件。不过有一个好东西配合losetup却可以来挂载带有分区表的映像文件。这就是kpartx了。废话不多说,进入正题(其中X和Y要看你的挂接的情况而看了):#先创建一个1G大小的映像文件来做实验dd bs=4096 if=/dev/zero of=~/hd.img count=262144#将映像文件挂接到loopX中去losetup /dev/loopX ~/hd.img #对loopX进行分区fdisk /dev/loopX#我这 阅读全文
posted @ 2013-09-20 01:10 左懒 阅读(15740) 评论(0) 推荐(0) 编辑
摘要: 在编译linux内核的时候使用make menuconfig 可能出现下面的错误*** Unable to find the ncurses libraries or the*** required header files.*** ‘make menuconfig’ requires the ncurses libraries.****** Install ncurses (ncurses-devel) and try again.原因是因为缺少了ncurses库的支持,这个库是字符终端下屏幕控制的基本库。解决方式是安装它。debian衍生系的系统可以使用下面的指令来安装它:sudo apt 阅读全文
posted @ 2013-09-14 15:33 左懒 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1、修改 /etc/init.d/networking 配置文件在(a)代码的后面添加上(b)这段代码(a)case "$1" in start)(b)ifconfig eth0 hw ether c0:b0:a9:4d:59:5e #MAC地址可改2、修改 /etc/network/interfaces 配置文件在iface eth0 inet dhcp 后面添加上hwaddress ether c0:b0:a9:4d:59:5e做完上面的修改后保存重启即可。 阅读全文
posted @ 2013-09-10 16:02 左懒 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 折腾半天linux下的putty,最后搞得实在没办法,放弃putty改用minicom1. 先安装minicomsudo apt-get install minicom2.配置comminicom -s完成~可以开始折腾cubie了 阅读全文
posted @ 2013-09-08 00:25 左懒 阅读(225) 评论(0) 推荐(0) 编辑