openwrt&lede编译笔记

poyu39:

大佬好,我也遇到 DTB maker 的问题,在网上有找到 0103-OWRTDTB.patch,但不知道咋用?

C语言(8)字母与数字转换

2301_77958281:

为什么输出的数字总是少了第一个

i2c_master_send()、i2c_master_recv()和i2c_transfer()

2004v2004:

lxh@lxh-VirtualBox:/usr/src/linux-headers-5.11.0-34-generic/include/linux$ grep i2c_transfer ./* -rn

./greybus/greybus_protocols.h:675:struct gb_i2c_transfer_op {

./greybus/greybus_protocols.h:681:struct gb_i2c_transfer_request {

./greybus/greybus_protocols.h:683: struct gb_i2c_transfer_op ops[]; /* op_count of these */

./greybus/greybus_protocols.h:685:struct gb_i2c_transfer_response {

./i2c.h:61:int i2c_transfer_buffer_flags(const struct i2c_client *client,

./i2c.h:75: return i2c_transfer_buffer_flags(client, buf, count, I2C_M_RD);

./i2c.h:90: return i2c_transfer_buffer_flags(client, buf, count,

./i2c.h:105: return i2c_transfer_buffer_flags(client, (char *)buf, count, 0);

./i2c.h:120: return i2c_transfer_buffer_flags(client, (char *)buf, count,

./i2c.h:126:int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);

./i2c.h:128:int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);

lxh@lxh-VirtualBox:/usr/src/linux-headers-5.11.0-34-generic/includ

i2c_master_send()、i2c_master_recv()和i2c_transfer()

2004v2004:

好的 ,谢谢了 ,确定已经引用#include

i2c_master_send()、i2c_master_recv()和i2c_transfer()

hahaha_1994:

[code=plain]

root@kun:/usr/src/linux-headers-4.15.0-163-generic/include/linux# uname -a

Linux kun 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

root@kun:/usr/src/linux-headers-4.15.0-163-generic/include/linux#

root@kun:/usr/src/linux-headers-4.15.0-163-generic/include/linux# grep i2c_transfer ./* -rn

./i2c.h:73:extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs,

./i2c.h:76:extern int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs,

root@kun:/usr/src/linux-headers-4.15.0-163-generic/include/linux#

[/code]

你是否引用了头文件#include

你可以在linux内核drivers/i2c/i2c-core-base.c文件中找到相关定义

清华镜像站v5.x内核下载地址:https://mirrors.tuna.tsinghua.edu.cn/kernel/v5.x/