Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RPi2 can't find root on SD card after kernel update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 815

PostPosted: Wed May 01, 2024 11:08 am    Post subject: RPi2 can't find root on SD card after kernel update Reply with quote

Hi All,

With a recent update i got de new sys-kernel/raspberrypi-sources kernel 6.1.21 and decided to give it a go, but so far this has not been successful.

My current kernel is sys-kernel/raspberry-sources 5.10.63 which has all required modules built-in. I copied it's .config to the 6.1.21 directory, and used make oldconfig to adapt it to the new kernel. After that i build it with make zImage and copied it to /boot/gentoo6.img, and ran make dtbs and make dtbs_install.
Now, if i configure /boot/config.txt to use this gentoo6.img kernel image i see the kernel booting (so far so good ...), but it stops because it can't find it's SDcard which contains it's root filesystem. I've checked all MMC related drivers and they are available. As a method for troubleshooting i even enabled all MMC drivers to see if that helps, but it didn't.

This are some relevant parts of the kernel config:
grep BCM .config
Code:

CONFIG_ARCH_BCM=y
# CONFIG_ARCH_BCM_CYGNUS is not set
# CONFIG_ARCH_BCM_HR2 is not set
# CONFIG_ARCH_BCM_NSP is not set
# CONFIG_ARCH_BCM_5301X is not set
# CONFIG_ARCH_BCM_281XX is not set
# CONFIG_ARCH_BCM_21664 is not set
# CONFIG_ARCH_BCM_23550 is not set
CONFIG_ARCH_BCM2835=y
# CONFIG_ARCH_BCM_53573 is not set
# CONFIG_ARCH_BCM_63XX is not set
# CONFIG_ARCH_BCMBCA is not set
# BCMBCA sub platforms
CONFIG_BCM2835_SMI=y
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_BCM2708_VCMEM is not set
CONFIG_BCM_VCIO=y
CONFIG_BCM2835_DEVGPIOMEM=y
CONFIG_BCM2835_SMI_DEV=y
CONFIG_HW_RANDOM_BCM2835=y
# CONFIG_I2C_BCM2708 is not set
CONFIG_I2C_BCM2835=y
CONFIG_SPI_BCM2835=y
CONFIG_SPI_BCM2835AUX=y
# CONFIG_SPI_BCM_QSPI is not set
CONFIG_PINCTRL_BCM2835=y
CONFIG_GPIO_BCM_VIRT=y
# CONFIG_BCM2711_THERMAL is not set
CONFIG_BCM2835_THERMAL=y
CONFIG_BCM2835_WDT=y
CONFIG_BCMA_POSSIBLE=y
# CONFIG_BCMA is not set
# CONFIG_MFD_BCM590XX is not set
CONFIG_FB_BCM2708=y
CONFIG_MMC_BCM2835_MMC=y
# CONFIG_MMC_BCM2835_DMA is not set
CONFIG_MMC_BCM2835_SDHOST=y
CONFIG_MMC_BCM2835=y
# CONFIG_LEDS_BCM6328 is not set
# CONFIG_LEDS_BCM6358 is not set
CONFIG_DMA_BCM2835=y
CONFIG_DMA_BCM2708=y
# CONFIG_CLK_BCM2711_DVP is not set
CONFIG_CLK_BCM2835=y
CONFIG_BCM2835_TIMER=y
CONFIG_BCM2835_MBOX=y
# CONFIG_BCM2835_POWER is not set
CONFIG_PWM_BCM2835=y
# CONFIG_BCM_KONA_USB2_PHY is not set


grep MMC .config
Code:

CONFIG_MMC=y
CONFIG_PWRSEQ_EMMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=32
# CONFIG_MMC_TEST is not set
# MMC/SD/SDIO Host Controller Drivers
CONFIG_MMC_BCM2835_MMC=y
# CONFIG_MMC_BCM2835_DMA is not set
CONFIG_MMC_BCM2835_SDHOST=y
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_ARMMMCI is not set
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_IO_ACCESSORS=y
CONFIG_MMC_SDHCI_PLTFM=y
# CONFIG_MMC_SDHCI_OF_ARASAN is not set
# CONFIG_MMC_SDHCI_OF_AT91 is not set
# CONFIG_MMC_SDHCI_OF_DWCMSHC is not set
# CONFIG_MMC_SDHCI_CADENCE is not set
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_SDHCI_MILBEAUT is not set
CONFIG_MMC_SDHCI_IPROC=y
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_DW is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_CQHCI is not set
# CONFIG_MMC_HSQ is not set
CONFIG_MMC_BCM2835=y
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_MMC_SDHCI_OMAP is not set
# CONFIG_MMC_SDHCI_AM654 is not set


Can anyone see what's missing?
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum