Skip to contentSkip to conversation

U-Boot 2019.01-rc1-00337-g42cc2cf partition table issues on imx6

U-Boot Petr Štetiar 2 participants 3 messages Dec 16, 2018 – Jan 5, 2019

lore
Share & tools
lore
#0 lore raw

Hi,

I'm having problems with my bootscript which works on 2018.03 but is having problems on latest master. I need to run mmc part to get it working.

	U-Boot 2019.01-rc1-00337-g42cc2cf (Dec 16 2018 - 01:02:22 +0100)
	Model: Toradex Apalis iMX6 Quad 2GB IT V1.1A, Serial# 04875944

	# mmc dev 0
	switch to partitions #0, OK
	mmc0(part 0) is current device

	# load mmc 0:1 ${loadaddr} ${script}
	** No partition table - mmc 0 **

	# mmc part

	Partition Map for MMC device 0  --   Partition Type: DOS

	Part    Start Sector    Num Sectors     UUID            Type
	  1     2048            32768           5452574f-01     83 Boot
	  2     36864           524288          5452574f-02     83a

	# load mmc 0:1 ${loadaddr} ${script}
	641 bytes read in 26 ms (23.4 KiB/s)

Same problem with ext4ls:

	# mmc dev 0
	switch to partitions #0, OK
	mmc0(part 0) is current device
	# ext4ls mmc 0:1
	** No partition table - mmc 0 **
	# mmc part
	Partition Map for MMC device 0  --   Partition Type: DOS
	
	Part    Start Sector    Num Sectors     UUID            Type
	  1     2048            32768           5452574f-01     83 Boot
	  2     36864           524288          5452574f-02     83

	# ext4ls mmc 0:1
	<DIR>       4096 .
	<DIR>       4096 ..
	<DIR>       4096 lost+found
	             641 boot.scr
	           47312 imx6q-apalis-ixora.dtb
	         2521736 uImage

-- ynezz

author Reviewed-by Simon Glass
#1 lore raw

Petr Å tetiar <[email protected]> [2018-12-16 01:20:07]:

Quoted 9 lines

U-Boot 2019.01-rc1-00337-g42cc2cf (Dec 16 2018 - 01:02:22 +0100)
Model: Toradex Apalis iMX6 Quad 2GB IT V1.1A, Serial# 04875944

# mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device

# load mmc 0:1 ${loadaddr} ${script}
** No partition table - mmc 0 **

I've bisected it down to the following commit:

commit d0851c8937067ad396f2bdafc46d0326bf3317db
Author: Bin Meng <[email protected]>
Date: Mon Oct 15 02:21:07 2018 -0700

blk: Call part_init() in the post_probe() method

part_init() is currently called in every DM BLK driver, either in its bind() or probe() method. However we can use the BLK uclass driver's post_probe() method to do it automatically.

Update all DM BLK drivers to adopt this change.

I've looked at it and it seems, that it's happening because blk_post_probe isn't called.

-- ynezz

#2 lore raw
In reply to Petr Štetiar

+Bin

Quoted 57 lines · Petr Å tetiar

Hi,

I'm having problems with my bootscript which works on 2018.03 but is having problems on latest master. I need to run mmc part to get it working.

U-Boot 2019.01-rc1-00337-g42cc2cf (Dec 16 2018 - 01:02:22 +0100)
Model: Toradex Apalis iMX6 Quad 2GB IT V1.1A, Serial# 04875944

# mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device

# load mmc 0:1 ${loadaddr} ${script}
** No partition table - mmc 0 **

# mmc part

Partition Map for MMC device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 2048 32768 5452574f-01 83 Boot
2 36864 524288 5452574f-02 83a

# load mmc 0:1 ${loadaddr} ${script}
641 bytes read in 26 ms (23.4 KiB/s)

Same problem with ext4ls:

        # mmc dev 0
        switch to partitions #0, OK
        mmc0(part 0) is current device
        # ext4ls mmc 0:1
        ** No partition table - mmc 0 **
        # mmc part
        Partition Map for MMC device 0  --   Partition Type: DOS

        Part    Start Sector    Num Sectors     UUID            Type
          1     2048            32768           5452574f-01     83 Boot
          2     36864           524288          5452574f-02     83

        # ext4ls mmc 0:1
        <DIR>       4096 .
        <DIR>       4096 ..
        <DIR>       4096 lost+found
                     641 boot.scr
                   47312 imx6q-apalis-ixora.dtb
                 2521736 uImage

-- ynezz
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot