[U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

Simon Glass sjg at chromium.org
Sat Jun 23 13:59:30 UTC 2018


The time has come to migrate all boards to use CONFIG_BLK. This series
is just a test to see what boards would have to be removed if we required
CONFIG_BLK, as we plan to after the next release.

This should help maintainers see what is impacted.

Hopefully maintainers will be able to convert their boards over in the
next month so we we can avoid having to remove any boards.

The goal is to have all boards use driver model. But so far, we do allow
CONFIG_DM to not be defined.


For 'Force BLK', here is the buildman output showing failed boards and the
relatively small number of command errors:

03: Force BLK
      mips:  +   pic32mzdask
       arm:  +   mixtile_loftq colibri_imx6_nospl sniper omap3_zoom1 tbs2910 Mele_A1000G_quad
am335x_igep003x mx6ul_14x14_evk mk802_a10s am43xx_hs_evm devkit3250 pcm051_rev3
am57xx_hs_evm Empire_electronix_m712 Auxtek-T003 pcm058 zc5202 am335x_shc
am335x_shc_ict Hummingbird_A31 vining_2000 am335x_evm_usbspl ot1200_spl igep00x0
Mele_I7 Wobo_i5 r7-tv-dongle liteboard omap3_overo am335x_boneblack evb-ast2500
warp7 gwventana_gw5904 cairo A13-OLinuXinoM mccmon6_sd apalis_imx6_nospl_it
wandboard birdland_bav335a colibri_imx7 colibri_imx6 inet_q972 xpress_spl
stm32f429-evaluation udoo_neo igep0032 Mele_M9 A13-OLinuXino inet98v_rev2
A10s-OLinuXino-M riotboard snapper9260 am43xx_evm pfla02 mx6qsabrelite
apalis_imx6_nospl_com s5p_goni colibri_pxa270 snapper9g20
Yones_Toptech_BS1078_V2 am335x_shc_sdboot_prompt k2g_hs_evm cl-som-imx7
am335x_shc_sdboot vf610twr_nand stm32f469-discovery am335x_evm_nor mx53cx9020
Empire_electronix_d709 vf610twr cm_t43 pengwyn stm32f746-disco Sinovoip_BPI_M2
Sinovoip_BPI_M3 Sinlinx_SinA31s pico-imx7d am43xx_evm_rtconly LicheePi_Zero
pcm051_rev1 mccmon6_nor mx6sabreauto display5_factory am335x_shc_prompt
gwventana_nand Bananapi_M2_Ultra Auxtek-T004 tbs_a711 cm_t335 h8_homlet_v2
Colombus am43xx_evm_usbhost_boot chiliboard am335x_baltos colibri_vf
mx6ul_9x9_evk kp_imx6q_tpc bk4r1 udoo difrnce_dit4350 am335x_evm_norboot
UTOO_P66 iNet_86VS marsboard MSI_Primo81 apalis_imx6 bananapi_m2_berry
xilinx_zynqmp_r5 birdland_bav335b am43xx_evm_qspiboot CSQ_CS908 Ampe_A76
kp_imx53 am335x_evm_spiboot Cubietruck_plus k2g_evm mx6sabresd omap3_logic
pepper colorfly_e708_q1 pcm052 gwventana_emmc am335x_boneblack_vboot
am335x_shc_netboot xpress ot1200 cgtqmx6eval zc5601 devkit8000 dh_imx6 mx6cuboxi
am57xx_evm am335x_sl50 q8_a13_tablet sksimx6

microblaze:  +   microblaze-generic
   powerpc:  +   P1010RDB-PA_36BIT_NOR_SECBOOT BSC9132QDS_SDCARD_DDRCLK100_SECURE
P1010RDB-PB_SPIFLASH_SECBOOT T1024QDS_DDR4_SECURE_BOOT
controlcenterd_36BIT_SDCARD BSC9132QDS_SDCARD_DDRCLK133_SECURE
P1010RDB-PA_SPIFLASH_SECBOOT BSC9132QDS_NAND_DDRCLK133_SECURE
P1010RDB-PA_36BIT_SPIFLASH_SECBOOT P2041RDB_SECURE_BOOT P5020DS_NAND_SECURE_BOOT
P1010RDB-PB_36BIT_NOR_SECBOOT BSC9132QDS_NOR_DDRCLK100_SECURE
P3041DS_SECURE_BOOT T1042D4RDB_SECURE_BOOT T1042RDB_SECURE_BOOT
T4240QDS_SECURE_BOOT P1010RDB-PB_36BIT_SPIFLASH_SECBOOT P1010RDB-PB_NAND_SECBOOT
BSC9132QDS_SPIFLASH_DDRCLK100_SECURE P3041DS_NAND_SECURE_BOOT
T4160QDS_SECURE_BOOT T2080RDB_SECURE_BOOT B4860QDS_SECURE_BOOT
P4080DS_SECURE_BOOT T2080QDS_SECURE_BOOT P5040DS_SECURE_BOOT
P1010RDB-PB_36BIT_NAND_SECBOOT controlcenterd_36BIT_SDCARD_DEVELOP
P1010RDB-PA_NAND_SECBOOT BSC9132QDS_SPIFLASH_DDRCLK133_SECURE
P1010RDB-PA_NOR_SECBOOT controlcenterd_TRAILBLAZER_DEVELOP P5020DS_SECURE_BOOT
T1024QDS_SECURE_BOOT T1040QDS_SECURE_BOOT BSC9132QDS_NOR_DDRCLK133_SECURE
T1024RDB_SECURE_BOOT P5040DS_NAND_SECURE_BOOT P1010RDB-PA_36BIT_NAND_SECBOOT
T1042RDB_PI_NAND_SECURE_BOOT T1040RDB_SECURE_BOOT T1040D4RDB_SECURE_BOOT
BSC9132QDS_NAND_DDRCLK100_SECURE P1010RDB-PB_NOR_SECBOOT T1023RDB_SECURE_BOOT
controlcenterd_TRAILBLAZER

+../board/freescale/common/sdhc_boot.c: In function 'mmc_get_env_addr':
+../board/freescale/common/sdhc_boot.c:31:9: error: 'struct mmc' has no member named 'block_dev'
+  n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf);
+         ^
+../board/freescale/common/sdhc_boot.c:31:36: error: 'struct mmc' has no member named 'block_dev'
+                                    ^
+make[2]: *** [board/freescale/common/sdhc_boot.o] Error 1
+make[1]: *** [board/freescale/common] Error 2
+../common/usb_storage.c: In function 'usb_stor_probe_device':
+../common/usb_storage.c:207:30: error: 'struct usb_device' has no member named 'dev'
+                              ^
+../common/usb_storage.c:217:32: error: 'struct usb_device' has no member named 'dev'
+                                ^
+../board/gdsys/p1022/sdhc_boot.c: In function 'mmc_get_env_addr':
+../board/gdsys/p1022/sdhc_boot.c:46:9: error: 'struct mmc' has no member named 'block_dev'
+../board/gdsys/p1022/sdhc_boot.c:46:36: error: 'struct mmc' has no member named 'block_dev'
+make[2]: *** [board/gdsys/p1022/sdhc_boot.o] Error 1
+make[1]: *** [board/gdsys/p1022] Error 2
+In file included from ../include/common.h:47:0,
+                 from ../drivers/mmc/arm_pl180_mmci.c:14:
+../drivers/mmc/arm_pl180_mmci.c: In function ?arm_pl180_mmci_init?:
+../drivers/mmc/arm_pl180_mmci.c:398:14: error: ?struct mmc? has no member named ?block_dev?
+        (*mmc)->block_dev.devnum);
+              ^
+../include/log.h:134:26: note: in definition of macro ?debug_cond?
+    printf(pr_fmt(fmt), ##args); \
+                          ^~~~
+../drivers/mmc/arm_pl180_mmci.c:397:2: note: in expansion of macro ?debug?
+  debug("registered mmc interface number is:%d\n",
+  ^~~~~
+make[3]: *** [drivers/mmc/arm_pl180_mmci.o] Error 1
+drivers/built-in.o: In function `blk_list_part':
+build/../drivers/block/blk-uclass.c:205: undefined reference to `part_print'
+drivers/built-in.o: In function `blk_print_part_devnum':
+build/../drivers/block/blk-uclass.c:224: undefined reference to `part_print'
+drivers/built-in.o: In function `blk_list_devices':
+build/../drivers/block/blk-uclass.c:244: undefined reference to `dev_print'
+drivers/built-in.o: In function `blk_print_device_num':
+build/../drivers/block/blk-uclass.c:257: undefined reference to `dev_print'
+drivers/built-in.o: In function `blk_show_device':
+build/../drivers/block/blk-uclass.c:275: undefined reference to `dev_print'
+drivers/built-in.o: In function `blk_prepare_device':
+build/../drivers/block/blk-uclass.c:455: undefined reference to `part_init'
+drivers/built-in.o: In function `pic32_sdhci_probe':
+../drivers/mmc/pic32_sdhci.c:(.text.pic32_sdhci_probe+0xd8): undefined reference to `add_sdhci'
+../drivers/ata/dwc_ahsata.c: In function ?ahci_init_one?:
+../drivers/ata/dwc_ahsata.c:875:21: error: ?struct blk_desc? has no member named ?priv?
+  sata_dev_desc[pdev].priv = uc_priv;
+                     ^
+../drivers/ata/dwc_ahsata.c: In function ?init_sata?:
+../drivers/ata/dwc_ahsata.c:898:30: error: ?struct blk_desc? has no member named ?priv?
+  uc_priv = sata_dev_desc[dev].priv;
+../drivers/ata/dwc_ahsata.c: In function ?reset_sata?:
+../drivers/ata/dwc_ahsata.c:913:30: error: ?struct blk_desc? has no member named ?priv?
+../drivers/ata/dwc_ahsata.c: In function ?sata_port_status?:
+../drivers/ata/dwc_ahsata.c:934:24: error: ?struct blk_desc? has no member named ?priv?
+  if (sata_dev_desc[dev].priv == NULL)
+                        ^
+../drivers/ata/dwc_ahsata.c:937:30: error: ?struct blk_desc? has no member named ?priv?
+../drivers/ata/dwc_ahsata.c: In function ?sata_read?:
+../drivers/ata/dwc_ahsata.c:948:51: error: ?struct blk_desc? has no member named ?priv?
+  struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv;
+                                                   ^
+../drivers/ata/dwc_ahsata.c: In function ?sata_write?:
+../drivers/ata/dwc_ahsata.c:956:51: error: ?struct blk_desc? has no member named ?priv?
+../drivers/ata/dwc_ahsata.c: In function ?scan_sata?:
+../drivers/ata/dwc_ahsata.c:964:51: error: ?struct blk_desc? has no member named ?priv?
+make[3]: *** [drivers/ata/dwc_ahsata.o] Error 1
w+../drivers/mmc/pic32_sdhci.c: In function 'pic32_sdhci_probe':
w+../drivers/mmc/pic32_sdhci.c:60:2: warning: implicit declaration of function 'add_sdhci' [-Wimplicit-function-declaration]



Simon Glass (2):
  RFC: dm: Enable CONFIG_BLK
  RFC: dm: Force CONFIG_BLK for all boards with DM

 drivers/block/Kconfig | 2 +-
 drivers/core/Kconfig  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.18.0.rc2.346.g013aa6912e-goog



More information about the U-Boot mailing list