-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable CAN communication #2
Conversation
7595acf
to
ce5db24
Compare
PRの中にcommitが4つありますが、後半2つのcommitは、前半2つのcommitの修正なので、 |
zero/meta-mcp2517fd/recipes-devicetree/linux/linux-raspberrypi/scsat1-rpi/mcp2517fd-overlay.dts
Outdated
Show resolved
Hide resolved
ce5db24
to
fc3e74e
Compare
zero/meta-mcp2517fd/recipes-devicetree/linux/linux-raspberrypi/scsat1-rpi/mcp2517fd-overlay.dts
Outdated
Show resolved
Hide resolved
[質問] i.g) |
zero/meta-mcp2517fd/conf/layer.conf
Outdated
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
${LAYERDIR}/recipes-*/*/*.bbappend" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta-raspberrypiとかと同じ書き方にしていると思うけど、receipeが固定で決まっているなら、*を使わずに、個別に指定してもよいのでは?
recipes-devicetreeディレクトリはrecipetool appendsrcfileを用いて生成したので,ディレクトリ名・構造はデフォルトの命名規則なのかな?と思っていました
今回のMACHINE名はscsat1-rpiではなくraspberrypi0-2w-64なのでその部分は間違ってます... meta-raspberrypiのレシピを見ていたのですが,recipetool appendsrcfileでrecipe-devicetree下にlinuxというフォルダ単体が生成されているのは,レシピに複数の機能をもたせるためで,今回の場合は下記の様なファイル構造でも問題ないということであっていますか?(
|
大丈夫。 多くの Layer が 昔作った layer だと最終的に↓こうなったけど、最初はフラットで追加するたびにディレクトリ作っていった (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正が必要なのは依存関係だけかな。あとは趣味程度
zero/meta-mcp2517fd/recipes-devicetree/linux/linux-raspberrypi_%.bbappend
Outdated
Show resolved
Hide resolved
can controller (mcp2517fd) を認識するためのデバイス情報を追加 モジュールは未作成 Signed-off-by: KantaTamura <[email protected]>
mcp251xfd用のモジュールをインストールしている spi_bcm2835 : spi通信 can-dev : can通信 mcp251xfd : mcp2517fd用モジュール can-raw : 無いとエラー (address family not supported by protocol) Signed-off-by: KantaTamura <[email protected]>
fc3e74e
to
2b86919
Compare
LGTM |
変更内容
変更詳細
device-tree
作成した
mcp2517fd-overlay.dts
をカーネルのデバイスツリービルドフォルダに追加し,一緒にビルドするようにしたkernel-module
MCP2517FDを用いたCAN通信を行うための最小限のカーネルモジュールをインストールするようにした
address family not supported by protocol
と表示されるCAN通信を試す方法
root login
'local.conf'に次の内容を加える
install can-utils
doc/zero/build.md
の内容に加えて,meta-openembedded のmeta-oe
追加し,'local.conf' に次の内容を加える.candump & cangen
rootログイン後下記のコマンドを試す