在VMware虚拟机上安装的ubuntu在启动时,可能会出现一个错误:

piix4_smbus 0000:00:007.3: Host SMBus controller not enabled!

错误原因

Kernel driver i2c-piix4 中我们可以看到一段话:

The PIIX4 (properly known as the 82371AB) is an Intel chip with a lot of functionality. Among other things, it implements the PCI bus. One of its minor functions is implementing a System Management Bus. **This is a true SMBus - you can not access it on I2C levels. ** The good news is that it natively understands SMBus commands and you do not have to worry about timing problems. The bad news is that non-SMBus devices connected to it can confuse it mightily. Yes, this is known to happen…

piix4 的一个次要功能是实现SMBus,而我门不能在I2C级别上访问SMbus。
错误原因VMware实际上并没有为CPU访问提供那个级别的接口,但是Ubuntu试图加载该内核模块(piix4)。所以会报错,但是这个错误对系统没有影响。

解决方法

  • 打开终端
  • sudo nano /etc/modprobe.d/blacklist.conf
  • 添加一行 blacklist i2c-piix4
  • update-initramfs -u
  • 重启 reboot
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐