2020-02-28 05:12 PM
I am tring to rebuild kenel for STM32MP157C-DK2 using below url.
After I did 5.4 but it does not work and stop to this point ( root device /dev/mmcblk0p6...).
Let me know how to can rebuild kernel for working.
Thank you.
[ 1.857417] can: netlink gateway (rev 20170425) max_hops=1
[ 1.863493] Key type dns_resolver registered
[ 1.867295] ThumbEE CPU extension supported.
[ 1.871370] Registering SWP/SWPB emulation handler
[ 1.877193] registered taskstats version 1
[ 1.880218] Loading compiled-in X.509 certificates
[ 1.909860] stm32-cpufreq stm32-cpufreq: Failed to get chip info: -517
[ 1.916712] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq
[ 1.930026] stm32-cpufreq stm32-cpufreq: Failed to get chip info: -517
[ 1.936906] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq
[ 1.942262] stm32_rtc 5c004000.rtc: setting system clock to 2020-02-29 01:00:23 UTC (1582938023)
[ 1.952596] Waiting for root device /dev/mmcblk0p6...
Solved! Go to Solution.
2020-03-05 07:47 AM
you have some fragments inside the source tree and outside the source tree. This is 2 different steps.
Your first trial was correct and should lead to merge these configs:
./arch/arm/configs/fragment-01-multiv7_cleanup.config
./arch/arm/configs/fragment-02-multiv7_addons.config
I suggest to remove your .config and redo the config (follow the updated wiki article).
2020-03-05 09:09 AM
Thanks for pointing out the config files under ./arch/arm/configs/
Turns out that using zsh as shell I should have executed the command as:
PC $>make ARCH=arm multi_v7_defconfig "fragment*.config"
2020-03-05 11:22 PM
moreover:
./arch/arm/configs/fragment-01-multiv7_cleanup.config
./arch/arm/configs/fragment-02-multiv7_addons.config
These configs come with ST patches applied on top of the vanilla kernel (see the step before the config). So if you don't have them, its because ST patches were not (or wrongly) applied on the kernel.
Let me know if not clear.
2020-03-06 01:51 AM
I try to rebuild again. now it works well ,
Thank you for your help .
below command was correct.
make ARCH=arm multi_v7_defconfig fragment*.config
2020-03-06 02:46 AM
@MNoor.1 , Ok caught it.
2020-03-06 09:40 PM
[ 1.794692] sdhci: Copyright(c) Pierre Ossman
[ 1.801210] Synopsys Designware Multimedia Card Interface Driver
[ 1.807563] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.815486] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.820963] usbcore: registered new interface driver usbhid
[ 1.825627] usbhid: USB HID core driver
[ 1.833630] stm32-ddr-pmu: probed (ID=0x00140061 VER=0x00000010), DDR@533MHz
[ 1.840775] optee: probing for conduit method from DT.
[ 1.844463] optee: api uid mismatch
[ 1.848396] NET: Registered protocol family 17
[ 1.852418] can: controller area network core (rev 20170425 abi 9)
[ 1.858764] NET: Registered protocol family 29
[ 1.863049] can: raw protocol (rev 20170425)
[ 1.867355] can: broadcast manager protocol (rev 20170425 t)
[ 1.872999] can: netlink gateway (rev 20170425) max_hops=1
[ 1.879164] Key type dns_resolver registered
[ 1.882955] ThumbEE CPU extension supported.
[ 1.887142] Registering SWP/SWPB emulation handler
[ 1.892786] registered taskstats version 1
[ 1.895937] Loading compiled-in X.509 certificates
[ 1.925546] stm32-cpufreq stm32-cpufreq: Failed to get chip info: -517
[ 1.932467] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq
[ 1.945772] stm32-cpufreq stm32-cpufreq: Failed to get chip info: -517
[ 1.952638] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq
[ 1.958096] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01 00:34:37 UTC (946686877)
[ 1.968214] Waiting for root device /dev/mmcblk0p6...
Waiting for root device /dev/mmcblk0p6...^C