Re: AM335x MLO failed to boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, Apr 14, 2022 at 05:07:38PM +0300, Alexander Shiyan wrote:
> Hello.
> 
> I can't start the custom AM335x board after updating to version 2021.12.0.
> Perhaps this is a consequence of the "devfs: Do not create overlapping
> partitions" commit.
> 
> Here is a debug output:
> Add partition nand0.MLO, device nand0 (0x00000000-0x00020000)
> Add partition nand0.boot, device nand0 (0x00020000-0x00080000)
> Add partition nand0.env, device nand0 (0x000a0000-0x00040000)
> Add partition nand0.system, device nand0 (0x000e0000-0x0ff20000)
> booting from NAND
> Add partition x, device nand0 (0x00020000-0x00080000)
> New partition x (0x00020000-0x0009ffff) on nand0.boot overlaps with
> partition nand0.boot (0x00000000-0x0007ffff), not creating it
> failed to open bbx
> booting failed
> 
> What is the partition "x" in this case?
> How to fix this?

The problem is here:

> static void *omap_xload_boot_nand(struct omap_barebox_part *part)
> {
> 	void *to;
> 
> 	devfs_add_partition("nand0", part->nand_offset, part->nand_size,
> 					DEVFS_PARTITION_FIXED, "x");

This adds a partition in order to read the barebox image from it. You already
have a partitioned device, so we can't create any conflicting partitions.
We could read from that partition instead of re-creating it, but likely the
partitions do not exist in all cases. You could try the following patch. It's
completely untested, but the idea is to read from the raw device
instead.

Sascha

--------------------------8<--------------------------------

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux