ユーザ用ツール

サイト用ツール


サイドバー

Top

検索タグ

変更履歴

メニュー


hardware:raspberry_pi:infineon_kit_40w_amp_hat_zw

Infineon KIT_40W_AMP_HAT_ZW - Raspberry Pi Zero W 用クラスD 窒化ガリウムオーディオアンプ

MERUS™ audio amplifier HAT ZW class D audio amplifier for Raspberry Pi Zero W
世界初 100% 自己完結型 Raspberry Pi オーディオ HAT

Infineon KIT_40W_AMP_HAT_ZW 001
Infineon KIT_40W_AMP_HAT_ZW 002 Infineon KIT_40W_AMP_HAT_ZW 003 Infineon KIT_40W_AMP_HAT_ZW 004 Infineon KIT_40W_AMP_HAT_ZW 005 Infineon KIT_40W_AMP_HAT_ZW 006 Infineon KIT_40W_AMP_HAT_ZW 007 Infineon KIT_40W_AMP_HAT_ZW 008 Infineon KIT_40W_AMP_HAT_ZW 009 Infineon KIT_40W_AMP_HAT_ZW 010

KIT_40W_AMP_HAT_ZW - Infineon Technologies

Data Sheets - MA12070P
Application Notes - Evaluation kit KIT_40W_AMP_HAT_ZW
User Manual - Evaluation kit KIT_40W_AMP_HAT_ZW

いろいろ検証中でまとめてる最中ですが、ドライバはソースコードからビルドする必要はありません。
結論から言うと Raspberry Pi OS Kernel 5.4 より公式にドライバが取り込まれているため、最新 OS であれば HAT を装着するだけで認識します。

ソースコード: https://github.com/Infineon/merus-audio-amp-hat-zw

$ sudo apt-get install git bison flex libssl-dev gcc-arm-linux-gnueabihf make
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
注意、'gcc-arm-linux-gnueabihf' の代わりに 'gcc' を選択します
gcc はすでに最新バージョン (4:8.3.0-1+rpi2) です。
gcc は手動でインストールしたと設定されました。
git はすでに最新バージョン (1:2.20.1-2+deb10u3) です。
make はすでに最新バージョン (4.2.1-1.2) です。
make は手動でインストールしたと設定されました。
以下の追加パッケージがインストールされます:
  libbison-dev libfl-dev libsigsegv2 m4
提案パッケージ:
  bison-doc flex-doc libssl-doc m4-doc
以下のパッケージが新たにインストールされます:
  bison flex libbison-dev libfl-dev libsigsegv2 libssl-dev m4
アップグレード: 0 個、新規インストール: 7 個、削除: 0 個、保留: 0 個。
3,660 kB のアーカイブを取得する必要があります。
この操作後に追加で 10.3 MB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://archive.raspberrypi.org/debian buster/main armhf libssl-dev armhf 1.1.1d-0+deb10u4+rpt1 [1,583 kB]
取得:2 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf libsigsegv2 armhf 2.12-2 [32.3 kB]
取得:3 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf m4 armhf 1.4.18-2 [185 kB]
取得:4 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf flex armhf 2.6.4-6.2 [427 kB]
取得:5 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf libbison-dev armhf 2:3.3.2.dfsg-1 [500 kB]
取得:6 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf bison armhf 2:3.3.2.dfsg-1 [829 kB]
取得:7 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf libfl-dev armhf 2.6.4-6.2 [104 kB]
3,660 kB を 6秒 で取得しました (594 kB/s)
以前に未選択のパッケージ libsigsegv2:armhf を選択しています。
(データベースを読み込んでいます ... 現在 149532 個のファイルとディレクトリがインストールされています。)
.../0-libsigsegv2_2.12-2_armhf.deb を展開する準備をしています ...
libsigsegv2:armhf (2.12-2) を展開しています...
以前に未選択のパッケージ m4 を選択しています。
.../1-m4_1.4.18-2_armhf.deb を展開する準備をしています ...
m4 (1.4.18-2) を展開しています...
以前に未選択のパッケージ flex を選択しています。
.../2-flex_2.6.4-6.2_armhf.deb を展開する準備をしています ...
flex (2.6.4-6.2) を展開しています...
以前に未選択のパッケージ libbison-dev:armhf を選択しています。
.../3-libbison-dev_2%3a3.3.2.dfsg-1_armhf.deb を展開する準備をしています ...
libbison-dev:armhf (2:3.3.2.dfsg-1) を展開しています...
以前に未選択のパッケージ bison を選択しています。
.../4-bison_2%3a3.3.2.dfsg-1_armhf.deb を展開する準備をしています ...
bison (2:3.3.2.dfsg-1) を展開しています...
以前に未選択のパッケージ libfl-dev:armhf を選択しています。
.../5-libfl-dev_2.6.4-6.2_armhf.deb を展開する準備をしています ...
libfl-dev:armhf (2.6.4-6.2) を展開しています...
以前に未選択のパッケージ libssl-dev:armhf を選択しています。
.../6-libssl-dev_1.1.1d-0+deb10u4+rpt1_armhf.deb を展開する準備をしています ...
libssl-dev:armhf (1.1.1d-0+deb10u4+rpt1) を展開しています...
libbison-dev:armhf (2:3.3.2.dfsg-1) を設定しています ...
libsigsegv2:armhf (2.12-2) を設定しています ...
libssl-dev:armhf (1.1.1d-0+deb10u4+rpt1) を設定しています ...
m4 (1.4.18-2) を設定しています ...
bison (2:3.3.2.dfsg-1) を設定しています ...
update-alternatives: /usr/bin/yacc (yacc) を提供するために自動モードで /usr/bin/bison.yacc を使いま
す
flex (2.6.4-6.2) を設定しています ...
libfl-dev:armhf (2.6.4-6.2) を設定しています ...
libc-bin (2.28-10+rpi1) のトリガを処理しています ...
man-db (2.8.5-2) のトリガを処理しています ...
install-info (6.5.0.dfsg.1-4+b1) のトリガを処理しています ...

$ git clone https://github.com/raspberrypi/tools ~/tools
Cloning into '/home/pi/tools'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 25400 (delta 14), reused 13 (delta 6), pack-reused 25374
Receiving objects: 100% (25400/25400), 610.89 MiB | 629.00 KiB/s, done.
Resolving deltas: 100% (14895/14895), done.
Checking out files: 100% (19059/19059), done.

$ echo PATH=\$PATH:~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbianx64/bin >> ~/.bashrc
$ . ~/.bashrc

$ cd ~/
$ git clone --depth=1 https://github.com/raspberrypi/linux
Cloning into 'linux'...
remote: Enumerating objects: 70464, done.
remote: Counting objects: 100% (70464/70464), done.
remote: Compressing objects: 100% (67826/67826), done.
remote: Total 70464 (delta 5356), reused 13182 (delta 1820), pack-reused 0
Receiving objects: 100% (70464/70464), 187.70 MiB | 524.00 KiB/s, done.
Resolving deltas: 100% (5356/5356), done.
Checking connectivity: 70464, done.
Checking out files: 100% (66401/66401), done.

$ git clone https://github.com/Infineon/merus-audio-amp-hat-zw
Cloning into 'merus-audio-amp-hat-zw'...
remote: Enumerating objects: 296, done.
remote: Counting objects: 100% (296/296), done.
remote: Compressing objects: 100% (192/192), done.
remote: Total 61809 (delta 106), reused 249 (delta 62), pack-reused 61513
Receiving objects: 100% (61809/61809), 163.88 MiB | 508.00 KiB/s, done.
Resolving deltas: 100% (4870/4870), done.

$ cd ~/merus-audio-amp-hat-zw/merus_linux_audio_driver

$ make all
cp linux/sound/soc/codecs/ma120x0p.*  /home/pi/linux/sound/soc/codecs ;\
sed -i '/endmenu/d' /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "config SND_SOC_MA120X0P" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "  tristate \"Merus Audio Multilevel Class D amplifier\"" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "  depends on I2C" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "endmenu" >> /home/pi/linux/sound/soc/codecs/Kconfig
echo "snd-soc-ma120x0p-objs := ma120x0p.o" >> /home/pi/linux/sound/soc/codecs/Makefile ;\
echo "obj-\$(CONFIG_SND_SOC_MA120X0P)   += snd-soc-ma120x0p.o" >> /home/pi/linux/sound/soc/codecs/Makefile
cp linux/sound/soc/bcm/*.c /home/pi/linux/sound/soc/bcm ;\
echo "" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "config SND_BCM2708_SOC_MERUS_AMP" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  tristate \"Support for Merus Audio Multilevel Amp \"" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  select SND_SOC_MA120X0P" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  help" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "    Say Y or M if you want to add support for Merus Amp." >> /home/pi/linux/sound/soc/bcm/Kconfig
echo "snd-soc-merus-amp-objs := merus-amp.o" >> /home/pi/linux/sound/soc/bcm/Makefile ;\
echo "obj-\$(CONFIG_SND_BCM2708_SOC_MERUS_AMP) += snd-soc-merus-amp.o" >>  /home/pi/linux/sound/soc/bcm/Makefile
cp linux/arch/arm/boot/dts/overlays/*.dts /home/pi/linux/arch/arm/boot/dts/overlays ;\
sed -i '/justboom-digi.dtbo \\/ i\      merus-amp.dtbo \\' /home/pi/linux/arch/arm/boot/dts/overlays/Makefile
cd /home/pi/linux ;\
KERNEL=kernel ;\
time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig
/bin/sh: 3: time: not found
make: *** [makefile:53: crosscfg] エラー 12

$ sudo apt-get install time
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが新たにインストールされます:
  time
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
30.8 kB のアーカイブを取得する必要があります。
この操作後に追加で 81.9 kB のディスク容量が消費されます。
取得:1 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf time armhf 1.7-25.1 [30.8 kB]
30.8 kB を 2秒 で取得しました (15.9 kB/s)
以前に未選択のパッケージ time を選択しています。
(データベースを読み込んでいます ... 現在 149954 個のファイルとディレクトリがインストールされています。)
.../time_1.7-25.1_armhf.deb を展開する準備をしています ...
time (1.7-25.1) を展開しています...
time (1.7-25.1) を設定しています ...
install-info (6.5.0.dfsg.1-4+b1) のトリガを処理しています ...
man-db (2.8.5-2) のトリガを処理しています ...

$ make all
cp linux/sound/soc/codecs/ma120x0p.*  /home/pi/linux/sound/soc/codecs ;\
sed -i '/endmenu/d' /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "config SND_SOC_MA120X0P" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "  tristate \"Merus Audio Multilevel Class D amplifier\"" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "  depends on I2C" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "" >> /home/pi/linux/sound/soc/codecs/Kconfig ;\
echo "endmenu" >> /home/pi/linux/sound/soc/codecs/Kconfig
echo "snd-soc-ma120x0p-objs := ma120x0p.o" >> /home/pi/linux/sound/soc/codecs/Makefile ;\
echo "obj-\$(CONFIG_SND_SOC_MA120X0P)   += snd-soc-ma120x0p.o" >> /home/pi/linux/sound/soc/codecs/Makefile
cp linux/sound/soc/bcm/*.c /home/pi/linux/sound/soc/bcm ;\
echo "" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "config SND_BCM2708_SOC_MERUS_AMP" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  tristate \"Support for Merus Audio Multilevel Amp \"" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  select SND_SOC_MA120X0P" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "  help" >> /home/pi/linux/sound/soc/bcm/Kconfig ;\
echo "    Say Y or M if you want to add support for Merus Amp." >> /home/pi/linux/sound/soc/bcm/Kconfig
echo "snd-soc-merus-amp-objs := merus-amp.o" >> /home/pi/linux/sound/soc/bcm/Makefile ;\
echo "obj-\$(CONFIG_SND_BCM2708_SOC_MERUS_AMP) += snd-soc-merus-amp.o" >>  /home/pi/linux/sound/soc/bcm/Makefile
cp linux/arch/arm/boot/dts/overlays/*.dts /home/pi/linux/arch/arm/boot/dts/overlays ;\
sed -i '/justboom-digi.dtbo \\/ i\      merus-amp.dtbo \\' /home/pi/linux/arch/arm/boot/dts/overlays/Makefile
cd /home/pi/linux ;\
KERNEL=kernel ;\
time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig
make[1]: ディレクトリ '/home/pi/linux' に入ります
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: ディレクトリ '/home/pi/linux' から出ます
66.17user 6.97system 2:05.31elapsed 58%CPU (0avgtext+0avgdata 29952maxresident)k
98464inputs+3160outputs (208major+91087minor)pagefaults 0swaps
sed -i  '/# CONFIG_SND_BCM2708_SOC_MERUS_AMP is not set/ c\CONFIG_SND_BCM2708_SOC_MERUS_AMP=m' /home/pi/linux/.config ;\
sed -i '/# CONFIG_SND_SOC_MA120X0P is not set/ c\CONFIG_SND_SOC_MA120X0P=m' /home/pi/linux/.config
cd /home/pi/linux ;\
sudo rm -f arch/arm/boot/dts/overlays/merus-amp.dtbo
cp linux/arch/arm/boot/dts/overlays/merus-amp-overlay.dts /home/pi/linux/arch/arm/boot/dts/overlays ;\
cp linux/sound/soc/codecs/ma120x0p.*  /home/pi/linux/sound/soc/codecs ;\
cp linux/sound/soc/bcm/merus-amp.c /home/pi/linux/sound/soc/bcm ;\
cd /home/pi/linux ;\
KERNEL=kernel ;\
time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules dtbs zImage -j 6
make[1]: ディレクトリ '/home/pi/linux' に入ります
scripts/kconfig/conf  --syncconfig Kconfig
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
  WRAP    arch/arm/include/generated/uapi/asm/kvm_para.h
  WRAP    arch/arm/include/generated/uapi/asm/bitsperlong.h
  WRAP    arch/arm/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/arm/include/generated/uapi/asm/errno.h
  WRAP    arch/arm/include/generated/uapi/asm/ioctl.h
  WRAP    arch/arm/include/generated/uapi/asm/msgbuf.h
  WRAP    arch/arm/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/arm/include/generated/uapi/asm/param.h
  WRAP    arch/arm/include/generated/uapi/asm/poll.h
  WRAP    arch/arm/include/generated/uapi/asm/resource.h
  WRAP    arch/arm/include/generated/uapi/asm/shmbuf.h
  WRAP    arch/arm/include/generated/uapi/asm/sembuf.h
  WRAP    arch/arm/include/generated/uapi/asm/siginfo.h
  WRAP    arch/arm/include/generated/uapi/asm/termbits.h
  WRAP    arch/arm/include/generated/uapi/asm/sockios.h
  WRAP    arch/arm/include/generated/uapi/asm/socket.h
  WRAP    arch/arm/include/generated/uapi/asm/termios.h
  UPD     include/generated/uapi/linux/version.h
  WRAP    arch/arm/include/generated/asm/early_ioremap.h
  WRAP    arch/arm/include/generated/asm/compat.h
  WRAP    arch/arm/include/generated/asm/current.h
  WRAP    arch/arm/include/generated/asm/emergency-restart.h
  WRAP    arch/arm/include/generated/asm/exec.h
  WRAP    arch/arm/include/generated/asm/extable.h
  WRAP    arch/arm/include/generated/asm/flat.h
  UPD     include/config/kernel.release
  WRAP    arch/arm/include/generated/asm/kdebug.h
  WRAP    arch/arm/include/generated/asm/irq_regs.h
  WRAP    arch/arm/include/generated/asm/local.h
  HOSTCC  scripts/dtc/dtc.o
  WRAP    arch/arm/include/generated/asm/local64.h
  WRAP    arch/arm/include/generated/asm/mm-arch-hooks.h
  WRAP    arch/arm/include/generated/asm/mmiowb.h
  WRAP    arch/arm/include/generated/asm/msi.h
  WRAP    arch/arm/include/generated/asm/parport.h
  HOSTCC  scripts/dtc/flattree.o
  WRAP    arch/arm/include/generated/asm/preempt.h
  WRAP    arch/arm/include/generated/asm/seccomp.h
  WRAP    arch/arm/include/generated/asm/serial.h
  WRAP    arch/arm/include/generated/asm/trace_clock.h
  WRAP    arch/arm/include/generated/asm/simd.h
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  UPD     include/generated/utsrelease.h
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/genksyms/genksyms.o
  YACC    scripts/genksyms/parse.tab.[ch]
  LEX     scripts/genksyms/lex.lex.c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  DTC     arch/arm/boot/dts/overlays/overlay_map.dtb
  DTCO    arch/arm/boot/dts/overlays/act-led.dtbo
  DTCO    arch/arm/boot/dts/overlays/adafruit18.dtbo
  DTCO    arch/arm/boot/dts/overlays/adau1977-adc.dtbo
  DTCO    arch/arm/boot/dts/overlays/adau7002-simple.dtbo
  DTCO    arch/arm/boot/dts/overlays/ads1015.dtbo
  DTCO    arch/arm/boot/dts/overlays/ads1115.dtbo
  DTCO    arch/arm/boot/dts/overlays/ads7846.dtbo
  DTCO    arch/arm/boot/dts/overlays/adv7282m.dtbo
  DTCO    arch/arm/boot/dts/overlays/adv728x-m.dtbo
  DTCO    arch/arm/boot/dts/overlays/akkordion-iqdacplus.dtbo
  DTCO    arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/allo-boss2-dac-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/allo-digione.dtbo
  DTCO    arch/arm/boot/dts/overlays/allo-katana-dac-audio.dtbo
  HOSTCC  scripts/genksyms/parse.tab.o
  DTCO    arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/allo-piano-dac-plus-pcm512x-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/anyspi.dtbo
  DTCO    arch/arm/boot/dts/overlays/apds9960.dtbo
  DTCO    arch/arm/boot/dts/overlays/applepi-dac.dtbo
  DTCO    arch/arm/boot/dts/overlays/at86rf233.dtbo
  DTCO    arch/arm/boot/dts/overlays/audioinjector-addons.dtbo
  DTCO    arch/arm/boot/dts/overlays/audioinjector-isolated-soundcard.dtbo
  DTCO    arch/arm/boot/dts/overlays/audioinjector-ultra.dtbo
  DTCO    arch/arm/boot/dts/overlays/audioinjector-wm8731-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/audiosense-pi.dtbo
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/genksyms/lex.lex.o
  DTCO    arch/arm/boot/dts/overlays/audremap.dtbo
  DTCO    arch/arm/boot/dts/overlays/balena-fin.dtbo
  DTCO    arch/arm/boot/dts/overlays/cma.dtbo
  DTCO    arch/arm/boot/dts/overlays/dht11.dtbo
  DTCO    arch/arm/boot/dts/overlays/dionaudio-loco.dtbo
  DTCO    arch/arm/boot/dts/overlays/dionaudio-loco-v2.dtbo
  DTCO    arch/arm/boot/dts/overlays/disable-bt.dtbo
  DTCO    arch/arm/boot/dts/overlays/disable-wifi.dtbo
  DTCO    arch/arm/boot/dts/overlays/dpi18.dtbo
  DTCO    arch/arm/boot/dts/overlays/dpi24.dtbo
  DTCO    arch/arm/boot/dts/overlays/draws.dtbo
  DTCO    arch/arm/boot/dts/overlays/dwc-otg.dtbo
  DTCO    arch/arm/boot/dts/overlays/dwc2.dtbo
  DTCO    arch/arm/boot/dts/overlays/enc28j60.dtbo
  DTCO    arch/arm/boot/dts/overlays/enc28j60-spi2.dtbo
  HOSTCC  scripts/sortextable
  DTCO    arch/arm/boot/dts/overlays/exc3000.dtbo
  DTCO    arch/arm/boot/dts/overlays/fe-pi-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/fsm-demo.dtbo
  DTCO    arch/arm/boot/dts/overlays/ghost-amp.dtbo
  DTCO    arch/arm/boot/dts/overlays/goodix.dtbo
  DTCO    arch/arm/boot/dts/overlays/googlevoicehat-soundcard.dtbo
  DTCO    arch/arm/boot/dts/overlays/gpio-fan.dtbo
  DTCO    arch/arm/boot/dts/overlays/gpio-ir.dtbo
  DTCO    arch/arm/boot/dts/overlays/gpio-ir-tx.dtbo
  HOSTCC  scripts/asn1_compiler
  DTCO    arch/arm/boot/dts/overlays/gpio-key.dtbo
arch/arm/boot/dts/overlays/gpio-key-overlay.dts:42.3-26: Warning (label_is_string): /__overrides__:label: property is not a string
  DTCO    arch/arm/boot/dts/overlays/gpio-no-bank0-irq.dtbo
  DTCO    arch/arm/boot/dts/overlays/gpio-no-irq.dtbo
  DTCO    arch/arm/boot/dts/overlays/gpio-poweroff.dtbo
  DTCO    arch/arm/boot/dts/overlays/gpio-shutdown.dtbo
  DTCO    arch/arm/boot/dts/overlays/hd44780-lcd.dtbo
  DTCO    arch/arm/boot/dts/overlays/hdmi-backlight-hwhack-gpio.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-amp.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-dac.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-dacplus.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-dacplusadc.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-dacplusdsp.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-dacplushd.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-digi.dtbo
  DTCO    arch/arm/boot/dts/overlays/hifiberry-digi-pro.dtbo
  DTCO    arch/arm/boot/dts/overlays/highperi.dtbo
  DTCO    arch/arm/boot/dts/overlays/hy28a.dtbo
  DTCO    arch/arm/boot/dts/overlays/hy28b.dtbo
  DTCO    arch/arm/boot/dts/overlays/hy28b-2017.dtbo
  DTCO    arch/arm/boot/dts/overlays/i-sabre-q2m.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c-bcm2708.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c-gpio.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c-mux.dtbo
arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts:15.5-24: Warning (reg_format): /fragment@0/__overlay__/i2c@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/overlays/i2c-gpio.dtbo: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm/boot/dts/overlays/i2c-gpio.dtbo: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm/boot/dts/overlays/i2c-gpio.dtbo: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts:14.20-23.6: Warning (avoid_default_addr_size): /fragment@0/__overlay__/i2c@0: Relying on default #address-cells value
arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts:14.20-23.6: Warning (avoid_default_addr_size): /fragment@0/__overlay__/i2c@0: Relying on default #size-cells value
  DTCO    arch/arm/boot/dts/overlays/i2c-pwm-pca9685a.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c-rtc.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c-rtc-gpio.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c-sensor.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c0.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c1.dtbo
  HOSTCC  scripts/extract-cert
  DTCO    arch/arm/boot/dts/overlays/i2c3.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c4.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c5.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2c6.dtbo
  DTCO    arch/arm/boot/dts/overlays/i2s-gpio28-31.dtbo
  DTCO    arch/arm/boot/dts/overlays/ilitek251x.dtbo
  DTCO    arch/arm/boot/dts/overlays/imx219.dtbo
  DTCO    arch/arm/boot/dts/overlays/imx290.dtbo
  DTCO    arch/arm/boot/dts/overlays/imx477.dtbo
  DTCO    arch/arm/boot/dts/overlays/iqaudio-codec.dtbo
  DTCO    arch/arm/boot/dts/overlays/iqaudio-dac.dtbo
  DTCO    arch/arm/boot/dts/overlays/iqaudio-dacplus.dtbo
  DTCO    arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/irs1125.dtbo
  DTCO    arch/arm/boot/dts/overlays/jedec-spi-nor.dtbo
  DTCO    arch/arm/boot/dts/overlays/justboom-both.dtbo
  DTCO    arch/arm/boot/dts/overlays/justboom-dac.dtbo
  DTCO    arch/arm/boot/dts/overlays/merus-amp.dtbo
  DTCO    arch/arm/boot/dts/overlays/justboom-digi.dtbo
  DTCO    arch/arm/boot/dts/overlays/ltc294x.dtbo
  DTCO    arch/arm/boot/dts/overlays/max98357a.dtbo
  DTCO    arch/arm/boot/dts/overlays/maxtherm.dtbo
  DTCO    arch/arm/boot/dts/overlays/mbed-dac.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp23017.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp23s17.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp2515-can0.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp2515-can1.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp251xfd.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp3008.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp3202.dtbo
  DTCO    arch/arm/boot/dts/overlays/mcp342x.dtbo
  DTCO    arch/arm/boot/dts/overlays/media-center.dtbo
  DTCO    arch/arm/boot/dts/overlays/midi-uart0.dtbo
  DTCO    arch/arm/boot/dts/overlays/midi-uart1.dtbo
  DTCO    arch/arm/boot/dts/overlays/miniuart-bt.dtbo
  DTCO    arch/arm/boot/dts/overlays/mmc.dtbo
  DTCO    arch/arm/boot/dts/overlays/mpu6050.dtbo
  DTCO    arch/arm/boot/dts/overlays/mz61581.dtbo
  DTCO    arch/arm/boot/dts/overlays/ov5647.dtbo
  DTCO    arch/arm/boot/dts/overlays/ov7251.dtbo
  DTCO    arch/arm/boot/dts/overlays/ov9281.dtbo
  DTC     arch/arm/boot/dts/bcm2708-rpi-b.dtb
  DTCO    arch/arm/boot/dts/overlays/papirus.dtbo
  DTC     arch/arm/boot/dts/bcm2708-rpi-b-rev1.dtb
  DTCO    arch/arm/boot/dts/overlays/pca953x.dtbo
  DTCO    arch/arm/boot/dts/overlays/pibell.dtbo
  DTC     arch/arm/boot/dts/bcm2708-rpi-b-plus.dtb
  DTCO    arch/arm/boot/dts/overlays/pifacedigital.dtbo
  DTCO    arch/arm/boot/dts/overlays/pifi-40.dtbo
  DTC     arch/arm/boot/dts/bcm2708-rpi-cm.dtb
  DTC     arch/arm/boot/dts/bcm2708-rpi-zero.dtb
  DTCO    arch/arm/boot/dts/overlays/piglow.dtbo
  DTCO    arch/arm/boot/dts/overlays/piscreen.dtbo
  DTCO    arch/arm/boot/dts/overlays/piscreen2r.dtbo
  DTC     arch/arm/boot/dts/bcm2708-rpi-zero-w.dtb
  DTCO    arch/arm/boot/dts/overlays/pisound.dtbo
  DTCO    arch/arm/boot/dts/overlays/pitft22.dtbo
  DTCO    arch/arm/boot/dts/overlays/pitft28-capacitive.dtbo
  DTCO    arch/arm/boot/dts/overlays/pitft28-resistive.dtbo
  DTC     arch/arm/boot/dts/bcm2709-rpi-2-b.dtb
  DTCO    arch/arm/boot/dts/overlays/pitft35-resistive.dtbo
  DTCO    arch/arm/boot/dts/overlays/pps-gpio.dtbo
  DTCO    arch/arm/boot/dts/overlays/pwm.dtbo
  DTCO    arch/arm/boot/dts/overlays/pwm-2chan.dtbo
  DTC     arch/arm/boot/dts/bcm2710-rpi-2-b.dtb
  DTCO    arch/arm/boot/dts/overlays/pwm-ir-tx.dtbo
  DTCO    arch/arm/boot/dts/overlays/qca7000.dtbo
  DTCO    arch/arm/boot/dts/overlays/rotary-encoder.dtbo
  DTCO    arch/arm/boot/dts/overlays/rpi-backlight.dtbo
  DTC     arch/arm/boot/dts/bcm2710-rpi-3-b.dtb
  DTCO    arch/arm/boot/dts/overlays/rpi-cirrus-wm5102.dtbo
  DTCO    arch/arm/boot/dts/overlays/rpi-dac.dtbo
  DTCO    arch/arm/boot/dts/overlays/rpi-display.dtbo
  DTCO    arch/arm/boot/dts/overlays/rpi-ft5406.dtbo
  DTC     arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dtb
  DTCO    arch/arm/boot/dts/overlays/rpi-poe.dtbo
  DTCO    arch/arm/boot/dts/overlays/rpi-proto.dtbo
  DTCO    arch/arm/boot/dts/overlays/rpi-sense.dtbo
  DTCO    arch/arm/boot/dts/overlays/rpi-tv.dtbo
  DTC     arch/arm/boot/dts/bcm2711-rpi-4-b.dtb
  DTCO    arch/arm/boot/dts/overlays/rpivid-v4l2.dtbo
  DTC     arch/arm/boot/dts/bcm2711-rpi-400.dtb
  DTCO    arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/sainsmart18.dtbo
  DTC     arch/arm/boot/dts/bcm2710-rpi-cm3.dtb
  DTCO    arch/arm/boot/dts/overlays/sc16is750-i2c.dtbo
  DTC     arch/arm/boot/dts/bcm2711-rpi-cm4.dtb
  DTCO    arch/arm/boot/dts/overlays/sc16is752-i2c.dtbo
  DTC     arch/arm/boot/dts/bcm2835-rpi-b.dtb
  DTCO    arch/arm/boot/dts/overlays/sc16is752-spi0.dtbo
  DTCO    arch/arm/boot/dts/overlays/sc16is752-spi1.dtbo
  DTC     arch/arm/boot/dts/bcm2835-rpi-a.dtb
  DTC     arch/arm/boot/dts/bcm2835-rpi-b-rev2.dtb
  DTCO    arch/arm/boot/dts/overlays/sdhost.dtbo
  DTC     arch/arm/boot/dts/bcm2835-rpi-b-plus.dtb
  DTCO    arch/arm/boot/dts/overlays/sdio.dtbo
  DTC     arch/arm/boot/dts/bcm2835-rpi-a-plus.dtb
  DTCO    arch/arm/boot/dts/overlays/sh1106-spi.dtbo
  DTC     arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dtb
  DTC     arch/arm/boot/dts/bcm2836-rpi-2-b.dtb
  DTCO    arch/arm/boot/dts/overlays/smi.dtbo
  DTC     arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dtb
  DTCO    arch/arm/boot/dts/overlays/smi-dev.dtbo
  DTC     arch/arm/boot/dts/bcm2837-rpi-3-b.dtb
  DTCO    arch/arm/boot/dts/overlays/smi-nand.dtbo
  DTC     arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dtb
  DTC     arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dtb
  DTCO    arch/arm/boot/dts/overlays/spi-gpio35-39.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi-gpio40-45.dtbo
  DTC     arch/arm/boot/dts/bcm2835-rpi-zero.dtb
  DTC     arch/arm/boot/dts/bcm2835-rpi-zero-w.dtb
  DTCO    arch/arm/boot/dts/overlays/spi-rtc.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi0-1cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi0-2cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi1-1cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi1-2cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi1-3cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi2-1cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi2-2cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi2-3cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi3-1cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi3-2cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi4-1cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi4-2cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi5-1cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi5-2cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi6-1cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/spi6-2cs.dtbo
  DTCO    arch/arm/boot/dts/overlays/ssd1306.dtbo
  DTCO    arch/arm/boot/dts/overlays/ssd1306-spi.dtbo
  DTCO    arch/arm/boot/dts/overlays/ssd1351-spi.dtbo
  DTCO    arch/arm/boot/dts/overlays/superaudioboard.dtbo
  DTCO    arch/arm/boot/dts/overlays/sx150x.dtbo
  DTCO    arch/arm/boot/dts/overlays/tc358743.dtbo
  DTCO    arch/arm/boot/dts/overlays/tc358743-audio.dtbo
  DTCO    arch/arm/boot/dts/overlays/tinylcd35.dtbo
  DTCO    arch/arm/boot/dts/overlays/tpm-slb9670.dtbo
  DTCO    arch/arm/boot/dts/overlays/uart0.dtbo
  DTCO    arch/arm/boot/dts/overlays/uart1.dtbo
  DTCO    arch/arm/boot/dts/overlays/uart2.dtbo
  DTCO    arch/arm/boot/dts/overlays/uart3.dtbo
  HOSTLD  scripts/genksyms/genksyms
  DTCO    arch/arm/boot/dts/overlays/uart4.dtbo
  DTCO    arch/arm/boot/dts/overlays/uart5.dtbo
  DTCO    arch/arm/boot/dts/overlays/udrc.dtbo
  DTCO    arch/arm/boot/dts/overlays/upstream.dtbo
  DTCO    arch/arm/boot/dts/overlays/upstream-pi4.dtbo
  DTCO    arch/arm/boot/dts/overlays/vc4-fkms-v3d.dtbo
  DTCO    arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch.dtbo
  DTCO    arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4.dtbo
  DTCO    arch/arm/boot/dts/overlays/vc4-kms-v3d.dtbo
  DTCO    arch/arm/boot/dts/overlays/vga666.dtbo
  DTCO    arch/arm/boot/dts/overlays/w1-gpio.dtbo
  DTCO    arch/arm/boot/dts/overlays/w1-gpio-pullup.dtbo
  DTCO    arch/arm/boot/dts/overlays/w5500.dtbo
  DTCO    arch/arm/boot/dts/overlays/wittypi.dtbo
  SYSNR   arch/arm/include/generated/asm/unistd-nr.h
  SYSTBL  arch/arm/include/generated/calls-oabi.S
  GEN     arch/arm/include/generated/asm/mach-types.h
  SYSTBL  arch/arm/include/generated/calls-eabi.S
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  CC      scripts/mod/empty.o
  UPD     scripts/mod/devicetable-offsets.h
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CC      kernel/bounds.s
  CALL    scripts/atomic/check-atomics.sh
/bin/sh: 1: bc: not found
make[2]: *** [Kbuild:24: include/generated/timeconst.h] エラー 127
make[2]: *** 未完了のジョブを待っています....
make[1]: *** [Makefile:1138: prepare0] エラー 2
make[1]: ディレクトリ '/home/pi/linux' から出ます
Command exited with non-zero status 2
240.52user 45.54system 7:52.32elapsed 60%CPU (0avgtext+0avgdata 32420maxresident)k
24248inputs+22848outputs (38major+746613minor)pagefaults 0swaps
make: *** [makefile:67: crossmodules] エラー 2

$ sudo apt-get install bc
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが新たにインストールされます:
  bc
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
101 kB のアーカイブを取得する必要があります。
この操作後に追加で 220 kB のディスク容量が消費されます。
取得:1 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf bc armhf 1.07.1-2 [101 kB]
101 kB を 3秒 で取得しました (36.2 kB/s)
以前に未選択のパッケージ bc を選択しています。
(データベースを読み込んでいます ... 現在 149966 個のファイルとディレクトリがインストールされています。)
.../archives/bc_1.07.1-2_armhf.deb を展開する準備をしています ...
bc (1.07.1-2) を展開しています...
bc (1.07.1-2) を設定しています ...
install-info (6.5.0.dfsg.1-4+b1) のトリガを処理しています ...
man-db (2.8.5-2) のトリガを処理しています ...

$ make all
hardware/raspberry_pi/infineon_kit_40w_amp_hat_zw.txt · 最終更新: 2021/01/04 12:31 by ともやん