随笔分类 -  linux

摘要:dmesg -n 1 就只打印error信息了 ​ dmesg -n 8 就算是debug的也会打印出来 阅读全文
posted @ 2020-06-29 16:24 蒲城小农 阅读(496) 评论(0) 推荐(0)
摘要:g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report 问题原因是因为内存不足 使用交换分区来解决: sudo dd if=/dev/zero of=/swapfile bs=64M 阅读全文
posted @ 2020-05-26 22:41 蒲城小农 阅读(1926) 评论(0) 推荐(0)
摘要:loading out-of-tree module taints kernel 是因为驱动代码获取设备树资源的时候出错了, 我们通过查看驱动代码获取设备树资源的代码是否有问题 阅读全文
posted @ 2020-05-14 09:45 蒲城小农 阅读(3803) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/Zhu_Zhu_2009/article/details/84884108 阅读全文
posted @ 2020-05-13 17:16 蒲城小农 阅读(150) 评论(0) 推荐(0)
摘要:在改掉所有的warning时老报一个implicit declaration of function 的警告错误,上网查了下原因,原来有两种情况会产生这种情况 1 没有把函数所在的c文件生成.o目标文件2 在函数所在的c文件中定义了,但是没有在与之相关联的.h文件中声明 转:http://blog. 阅读全文
posted @ 2020-05-09 23:01 蒲城小农 阅读(2844) 评论(0) 推荐(0)
摘要:在执行insmod是出现了以下错误log dtsled: version magic '4.14.75-ltsi SMP preempt mod_unload aarch64' should be '4.14.75-ltsi-yocto-standard SMP preempt mod_unload 阅读全文
posted @ 2020-04-29 15:36 蒲城小农 阅读(8903) 评论(0) 推荐(0)
摘要:在编译kernel前先进行工具链设置 source /opt/poky/2.4.3/environment-setup-aarch64-poky-linux 然后make的时候发生了错误 错误提示:aarch64-poky-linux-ld: unrecognized option '-Wl,-O1 阅读全文
posted @ 2020-04-24 14:09 蒲城小农 阅读(2609) 评论(0) 推荐(1)
摘要:cleanboot 干净启动,设备会删除所有软件,所有设置,恢复到出厂状态。warmboot 在不中断电源的情况下重启系统,这是一次热启动。热启动通常是由操作系统完成的,不会启动计算机的自我测试程序 reboot。部分未保存的软件会丢失数据。设备会清除一部分内存,存储不会被清除。coldboot,当 阅读全文
posted @ 2020-04-20 09:57 蒲城小农 阅读(5071) 评论(0) 推荐(0)
摘要:在内核编译选项中,将以下两个option选定为y,然后重新编译。Bus support -->[] PCI Express Port Bus support[] Root Port Advanced Error Reporting support 主要原因是鼠标和键盘的属于PCI总线,需要将该接口编 阅读全文
posted @ 2020-04-17 15:46 蒲城小农 阅读(874) 评论(0) 推荐(0)
摘要:修改build-dir/conf/local.conf配置文件BB_NUMBER_THREADS ='8' (修改编译线程的数量,改为多线程)PARALLEL_MAKE ='-j 8'(修改cpu核的数量,根据实际情况修改,不宜超过电脑cpu核数量) bitbake命令单独编译u-boot:$ bi 阅读全文
posted @ 2020-04-17 14:39 蒲城小农 阅读(3241) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/hel12he/article/details/9465941 阅读全文
posted @ 2020-04-17 14:37 蒲城小农 阅读(327) 评论(0) 推荐(0)
摘要:#define EPERM 1 /* Operation not permitted /#define ENOENT 2 / No such file or directory /#define ESRCH 3 / No such process /#define EINTR 4 / Interru 阅读全文
posted @ 2020-04-17 14:30 蒲城小农 阅读(515) 评论(0) 推荐(0)
摘要:Linux中主要有哪几种内核锁? Linux中的用户模式和内核模式是什么含意? 怎样申请大块内核内存? 用户进程间通信主要哪几种方式? 通过伙伴系统申请内核内存的函数有哪些? 通过slab分配器申请内核内存的函数有? Linux的内核空间和用户空间是如何划分的(以32位系统为例)? vmalloc( 阅读全文
posted @ 2020-04-17 14:26 蒲城小农 阅读(1341) 评论(1) 推荐(0)
摘要:GENMASK_ULL(39, 21) 这行执行后的值等于0x000000ffffe00000,简单说就是将39和21 之间的bit置为1.对应的GENMASK 是产生32 bit的mask源码如下:#define GENMASK(h, l) (((~0UL) << (l)) & (~0UL >> 阅读全文
posted @ 2020-04-17 14:25 蒲城小农 阅读(1561) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/were0415/article/details/54095899 阅读全文
posted @ 2020-04-17 14:22 蒲城小农 阅读(293) 评论(0) 推荐(0)