- 博客(14)
- 资源 (11)
- 收藏
- 关注
原创 全志of_get_named_gpio_flags参数不同
struct gpio_config config;10431044 rst_pin = of_get_named_gpio_flags(np, "reset-gpio", 0, (enum of_gpio_flags *)&config);1045 if (!gpio_is_valid(rst_pin)) {1046 printk("can rst_pin: %d is invalid\n", rst_pin); return -ENODEV;...
2022-10-25 09:19:48 1560 1
转载 make collect2: ld terminated with signal 9 错误解决办法
make collect2: ld terminated with signal 9 错误解决办法 - echo579 - 博客园原因: signal 9 错误是由于交换区空间不足导致,扩展交换区大小即可 解决方法搬运自Linux下增加交换分区的大小 – 运维之路 增加swap大小的方法有两种,一种是已经分过swap交换分区,不过分配不合理,所以可以通过增加swap文件来增加交换分区的大小;另一种方法是通过增加swap分区大小来增加swap的大小。方法一、通过swap文
2021-12-06 22:12:51 3125
原创 linux创建proc节点
staticssize_tes8323_proc_write(structfile*file,constchar__user*buffer,size_tlen,loff_t*data){char*cookie_pot;char*p;intreg;intvalue;cookie_pot=(char*)vmalloc(len);if(!cookie_pot)...
2020-09-22 21:05:10 257
原创 pthread_cond_broadcast&pthread_cond_signal使用
#include <stdio.h>#include <pthread.h>static pthread_cond_t cond;static pthread_mutex_t mutex1;static pthread_mutex_t mutex2;void *thread1_entry(void *arg){ while(1) { pthread_mutex_lock(&mutex1); .
2020-05-16 09:36:56 470
转载 linux动态调试
目前在kernel驱动代码中,都不再建议直接使用printk直接添加打印信息,而是使用dev_info,dev_dbg,dev_err之类的函数代替,虽然这些dev_xxx函数的本质还是使用printk打印的,但是相比起printk:支持打印模块信息、dev信息 支持动态调试(dynamic debug)方式下面简述下这几个dev_xxx函数的基本使用规则,以及动态调试使用方式。dev...
2019-12-17 17:58:00 467
转载 repo下的本地开发流程
repo下的本地开发流程单分支开发: 1 本地新建工作目录并初始化repo库: repo init; 2 下载代码(只取服务器当前分支): repo sync -c; 3 创建本地分支: repo start localDevelop --all; 4 基于localDevelop分支进行代码修改,修改中可能需要建立私有分支,但统一使用localDevelop分支提交;...
2019-11-06 20:43:51 419
原创 How to build U-Boot and Kernel in standalone environment
To build U-Boot and Kernel in a standalone environment, perform the following steps:First, generate a development SDK, which includes the tools, toolchain, and small rootfs to compile against to put ...
2019-08-30 16:52:58 299
原创 yocto 问题Files/directories were installed but not shipped in any package
为了把wifi的固件放进系统中出现以下错误:ERROR: firmware-imx-1_5.4-r0 do_package: QA Issue: firmware-imx: Files/directories were installed but not shipped in any package: /lib/firmware/bcm/bcmdhd.ko /lib/firmware/...
2019-08-30 16:50:57 8255 2
转载 Ubuntu14.04(64位)下gcc-linaro-arm-linux-gnueabihf交叉编译环境搭建
1. 下载 gcc-linaro-arm-linux-gnueabihf-4.9.tar.gz下载地址参考:http://blog.csdn.net/lg1259156776/article/details/522813232. 解压,并放置在自己需要的文件夹内 1 sudo tar –zxvf gcc-linaro-arm-linux-gnueabi...
2019-07-18 20:12:17 885
原创 ntfs-3g 移植
ntfs-3g是从https://www.tuxera.com/community/open-source-ntfs-3g/ 下载的ntfs-3g_ntfsprogs-2017.3.23 工具链 :gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz 从linaro网站下载 ./configu...
2018-10-29 11:16:06 696
原创 docker使用小记
参照官网上(https://docs.docker.com/install/linux/docker-ce/ubuntu/)安装时,有些包不能update, 后来参照阿里云的安装的https://help.aliyun.com/document_detail/60742.html# step 1: 安装必要的一些系统工具 sudo apt-get update sudo apt-get...
2018-10-18 09:28:14 259
原创 android 源码下载失败
repo init 时出现Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle错误,由于google的网址不能访问,可以使用清华的这个镜像repo init -u https://aosp.tuna.tsinghua.edu.cn/mirror/manifest --mirror或者export REPO_...
2018-10-12 18:09:54 346
原创 imx6 pcie link失败
最近在imx6上调pcie, link一直不成功,pcie的ref_clk是hcsl电平,而imx6的是lvds,需要做电平转换从参考设计上找到以下电路更改后,就可以了https://blog.csdn.net/hgzty/article/details/6562288https://blog.csdn.net/qq_30496755/article/details/80154...
2018-10-11 09:25:23 2414 1
原创 git patch
1使用git format-patch生成所需要的patch:当前分支所有超前master的提交:git format-patch -M master某次提交以后的所有patch:git format-patch 4e16? ? ? ? ? ? ? ??--4e16指的是commit名从根到指定提交的所有patch:git format-patch? ? ? ? ? ? ? ? ? ? ? ? ?...
2018-06-22 09:59:59 702
百度CarLife车机手机互联方案接入详细指南V2.1.1.pdf
2020-05-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人