Closed vinsfortunato closed 1 week ago
I solved the issue by adding the following configs to recipes-kernel/linux/linux-mainline/arm/defconfig
:
CONFIG_MFD_AXP20X=y
CONFIG_MFD_AXP20X_I2C=y
CONFIG_MFD_AXP20X_RSB=y
CONFIG_REGULATOR_AXP20X=y
CONFIG_LEDS_AXP20X=m
CONFIG_AXP20X_ADC=m
CONFIG_INPUT_AXP20X_PEK=y
CONFIG_BATTERY_AXP20X=m
CONFIG_AXP20X_POWER=m
I discovered the issue by modifying the kernel to print the reason behind deferred probe pending and got this on boot:
[ 12.046144] platform 1c0f000.mmc: deferred probe pending: platform: wait for supplier /soc/i2c@0c2ac00/pmic@04/regulators/dcdc1
[ 12.057646] platform 1c10000.mmc: deferred probe pending: platform: wait for supplier /soc/i2c@0c2ac00/pmic@04/regulators/dldo1
And looking into the DTS I noticed that this required the AXP20X driver for I2C.
&i2c0 {
status = "okay";
axp22x: pmic@34 {
compatible = "x-powers,axp221";
reg = <0x34>;
interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
};
};
The kernel boots. But now the HDMI is not working.
:+1: thanks for sharing. If you resolve it you can post pull request and we can add this machine to supported ones by yocto. Thansk.
I'm trying to build a yocto image (scarthgap) for the Bananapi M2 Berry Board.
I've added the following machine configuration file (bananapi-m2berry.conf):
This board should be supported by mainline kernel/u-boot since those DTS and defconf files are present.
I've built the image using
bitbake core-image-base
The image was flashed to an SD Card with
dd
. There is no eMMC on board. Just the SD card.However when the kernel is booting it is getting stuck at:
[ 1.382638] Waiting for root device /dev/mmcblk0p2...
The full boot log (The strange <0x83><0x08><0x9a>... sequence is due to my serial-to-usb device not working properly):
I suspected there was something wrong with the mainline .dts so I tried to decompile the DTB of Armbian which is working on this board and noticed some differences.
I noticed that the Armbian DTB defined additional clock configurations. So I tried adding those by patching the mainline kernel .dts using the following .patch:
Didn't solve anything. I don't know what to try next. Unfortunately I'm also pretty new to yocto/linux.