-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
187 changed files
with
2,541 additions
and
743 deletions.
There are no files selected for viewing
Binary file removed
BIN
-721 KB
ARM & Linux 基础学习记录/【1 ARM & Linux 主线剧情系列文章】/主线剧情-番外02-设备树详解/操作设备树的函数-内核函数.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
uboot kernel roorfs 看买的放 2T 硬盘的 清华远见的视频 | ||
uboot kernel roorfs 看原子的移植,野火 | ||
|
||
【04】为linux内核移植,先比较全面的说一下文件夹都是什么用,有哪些要改 | ||
|
||
git clone https://source.codeaurora.org/external/imx/linux-imx | ||
cd linux-imx | ||
git checkout imx_5.4.70_2.3.0 | ||
git branch -vv | ||
|
||
i.MX_Porting_Guide | ||
i.MX_Linux_Users_Guide | ||
米尔的文章 | ||
野火文档 P502 | ||
原子文档 P | ||
第三十五章 Linux 内核顶层 Makefile 详解 | ||
|
||
https://howiexue.blog.csdn.net/article/details/76696631 | ||
|
||
https://zhuanlan.zhihu.com/p/378149586 | ||
|
||
参考100ask的BSP移植文档 | ||
https://www.freesion.com/article/2426374191/ | ||
|
||
【05】为Buildroot 构建文件系统 | ||
|
||
可以先学busybox 构建最精简的文件系统,也比较简单,从这个开始,再看buildroot | ||
|
||
参考100ask的BSP移植文档,从0适配 buildroot | ||
http://wiki.100ask.org/Buildroot | ||
野火文档 P519~P536~、P1921,下载 官方文档,原子文档 | ||
看一看 100ask imxull 的 buildroot 的配置,uboot linux 的路径配置等待 | ||
如何Buildroot解决 将 最终的 flash.bin 编译出,而不是只用 uboot 编译出的: | ||
1、buildroot 可以设置 | ||
2、修改uboot的Makefile,make后直接合成flash.bin并改名为buildroot可以识别的uboot.bin之类的 | ||
|
||
【06】为ubuntu的移植 | ||
参考米尔 L4 里面的文章 | ||
野火 P1891 制作带桌面的 ubuntu16 根文件系统 | ||
|
||
【07-08】Linux 驱动/应用开发 | ||
|
||
|
||
野火: | ||
NFS 记到【02】 | ||
P341 proc | ||
P343 sys 目录 | ||
P347 win 的文件操作 | ||
P353 linxu 的文件操作 | ||
P358头文件 到P475 外设应用编写 P481进程 | ||
还有设备树的使用等等 | ||
应用编程很多 | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://zhuanlan.zhihu.com/p/486955226 |
88 changes: 88 additions & 0 deletions
88
【Linux 应用开发】/1-输入设备框架读取input_event/例子_100ask/01_get_input_info.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
|
||
#include <linux/input.h> | ||
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
#include <fcntl.h> | ||
#include <sys/ioctl.h> | ||
#include <stdio.h> | ||
|
||
|
||
/* ./01_get_input_info /dev/input/event0 */ | ||
int main(int argc, char **argv) | ||
{ | ||
int fd; | ||
int err; | ||
int len; | ||
int i; | ||
unsigned char byte; | ||
int bit; | ||
struct input_id id; | ||
unsigned int evbit[2]; | ||
char *ev_names[] = { | ||
"EV_SYN ", | ||
"EV_KEY ", | ||
"EV_REL ", | ||
"EV_ABS ", | ||
"EV_MSC ", | ||
"EV_SW ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"NULL ", | ||
"EV_LED ", | ||
"EV_SND ", | ||
"NULL ", | ||
"EV_REP ", | ||
"EV_FF ", | ||
"EV_PWR ", | ||
}; | ||
|
||
if (argc != 2) | ||
{ | ||
printf("Usage: %s <dev>\n", argv[0]); | ||
return -1; | ||
} | ||
|
||
fd = open(argv[1], O_RDWR); | ||
if (fd < 0) | ||
{ | ||
printf("open %s err\n", argv[1]); | ||
return -1; | ||
} | ||
|
||
err = ioctl(fd, EVIOCGID, &id); | ||
if (err == 0) | ||
{ | ||
printf("bustype = 0x%x\n", id.bustype ); | ||
printf("vendor = 0x%x\n", id.vendor ); | ||
printf("product = 0x%x\n", id.product ); | ||
printf("version = 0x%x\n", id.version ); | ||
} | ||
|
||
len = ioctl(fd, EVIOCGBIT(0, sizeof(evbit)), &evbit); | ||
if (len > 0 && len <= sizeof(evbit)) | ||
{ | ||
printf("support ev type: "); | ||
for (i = 0; i < len; i++) | ||
{ | ||
byte = ((unsigned char *)evbit)[i]; | ||
for (bit = 0; bit < 8; bit++) | ||
{ | ||
if (byte & (1<<bit)) { | ||
printf("%s ", ev_names[i*8 + bit]); | ||
} | ||
} | ||
} | ||
printf("\n"); | ||
} | ||
|
||
return 0; | ||
} | ||
|
Oops, something went wrong.