我怎样才能找到这些错误的原因?
journalctl -p 3 -b
Dec 12 15:19:22 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2s@7e203000/#sound-dai-cells
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2s@7e203000/status
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/compatible
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/seeed-voice-card,format
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/seeed-voice-card,name
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/status
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/seeed-voice-card,bitclock-master
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/seeed-voice-card,frame-master
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/seeed-voice-card,channels-playback-override
Dec 12 15:19:23 raspberrypi kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/seeed-voice-card,channels-capture-override
答案1
这些是警告,不是错误,不需要修复。这是加载dtoverlays
修改现有设备树属性的正常行为。
对警告的解释是这里。
根据输出,看起来您正在将一些 SPI、I2C 和声音“驱动程序”加载到内核中。常见的添加位置dtoverlays
是通过/boot/config.txt
文件。看看有没有
dtoverlay=
涉及上述系统的线路。它们很可能是这些警告的来源。
或者,如果您在加载某个软件时看到这些响应,则该软件可能明确应用了 dtoverlays。如果在启动期间发生这种情况,请在看到这些警告之前直接查看日志中的条目。这些服务很可能正在加载覆盖层。