摘要: ubuntu 12.04 lts 默认是不允许root登录的,在登录窗口只能看到普通用户和访客登录。以普通身份登陆Ubuntu后我们需要做一些修改,普通用户登录后,修改系统配置文件需要切换到超级用户模式,在终端窗口里面输入:sudo -s然后输入普通用户登陆的密码,回车即可进入 root用户权限模式... 阅读全文
posted @ 2015-10-19 16:10 苏博 阅读(1317) 评论(0) 推荐(0)
摘要: 1) Create a file called /etc/init/ttyS0.conf containing the following:# ttySAC0 - getty## This service maintains a getty on ttyS0 from the point the s... 阅读全文
posted @ 2015-10-16 09:41 苏博 阅读(1260) 评论(0) 推荐(0)
摘要: 要添加串口登录密码就需要修改 /etc/inittab 文件的配置 但是不同的开发板情况不一样,有的是没有这个文件的,BusyBox会检查/etc/inittab文件是否存在, 如果此文件不存在, BusyBox会使用缺省的inittab的配置。它主要会为系统重引导,系统挂起以及init重启动设置缺... 阅读全文
posted @ 2015-10-15 16:32 苏博 阅读(9675) 评论(0) 推荐(1)
摘要: smbmount //192.168.1.210/homes/dm8168 /opt/fedora/ -o username=psubo,password=psubo_smb 阅读全文
posted @ 2015-10-14 11:56 苏博 阅读(658) 评论(0) 推荐(0)
摘要: static struct fb_videomode ldb_modedb[] = {107107{108+ "LDB-SGA", 60, 800, 600, 25132,109+ 88, 40,110+ 23, 1,111+ 128, 4,112+ 0,113+ FB_VMODE_NONINTER... 阅读全文
posted @ 2015-10-12 14:19 苏博 阅读(513) 评论(0) 推荐(0)
摘要: #include /*标准输入输出定义*/#include /*标准函数库定义*/#include /*Unix标准函数定义*/#include /**/#include /**/#include ... 阅读全文
posted @ 2015-10-10 14:05 苏博 阅读(974) 评论(0) 推荐(0)
摘要: /** 说明:SPI通讯实现* 方式一: 同时发送与接收实现函数: SPI_Transfer()* 方式二:发送与接收分开来实现* SPI_Write() 只发送* SPI_Read() 只接收* 两种方式不同之处:方式一,在发的过程中也在接收,第二种方式,收与发单独进行* Created on: ... 阅读全文
posted @ 2015-09-30 09:35 苏博 阅读(6975) 评论(0) 推荐(1)
摘要: Adding Flexcan driver support on KernelOn kernel menuconfig, add the following items:[*] Networking support ---> CAN bus subsystem support ---> Raw ... 阅读全文
posted @ 2015-09-28 16:20 苏博 阅读(317) 评论(0) 推荐(0)
摘要: 1:配置管脚为SPI功能 在board-mx6q_sabresd.h的最后添加,复制被重定义 (以添加SPI2为例) [cpp] view plaincopy <span style="font-size:18px;"> MX6Q_PAD_EIM_CS0__ECSPI2_SCLK, MX6Q_PAD 阅读全文
posted @ 2015-09-25 10:14 苏博 阅读(1944) 评论(0) 推荐(0)
摘要: 经过前面的移植,u-boot已经有能力启动内核了,本文主要来看下如何通过之前移植的u-boot来启动内核。如果按照前面的文章完成了LTIB 的编译,那么,Linux的内核应该就会出现rpm/BUILD/目录下,接下来,我们就开始移植这个3.0.35版本的内核到TQIMX6Q。内核的编译为了简化内核编... 阅读全文
posted @ 2015-08-29 21:53 苏博 阅读(1584) 评论(0) 推荐(0)