grub-devel
[Top][All Lists]
Advanced

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

Re: Grub fails to detect CBFS when CONFIG_ROM_SIZE and CONFIG_CBFS_SIZE


From: Gailu Singh
Subject: Re: Grub fails to detect CBFS when CONFIG_ROM_SIZE and CONFIG_CBFS_SIZE are same in coreboot
Date: Thu, 15 Jun 2017 02:43:43 +0530

Hi Again,

After adding debug prints in grub_cbfs_mount function in grub-core/fs/cbfs.c we found that mounting fails due to following check.

  ptr = grub_cpu_to_le32 (ptr);
  header_off = (grub_disk_get_size (disk) << GRUB_DISK_SECTOR_BITS)
    + (grub_int32_t) ptr;

  if (grub_disk_read (disk, 0, header_off,
     sizeof (head), &head))
  {
    grub_dprintf ("cbfs", "FAIL:: :%s:%d\n",__FILE__,__LINE__);
    goto fail;
  }

Does this gives any idea what could be the problem when CONFIG_CBFS_SIZE and CONFIG_ROM_SIZE is same in coreboot configuration?

On Thu, Jun 8, 2017 at 11:48 PM, Gailu Singh <address@hidden> wrote:
Hi Experts,

When I try to configure CBFS_SIZE and ROM_SIZE to be same in coreboot, grub fails to detect CBFS file system. If I keep min 64KB difference between ROM_SIZE and CBFS_SIZE then it works fine. 

Can someone please explain why can't I have ROM_SIZE and CBFS_SIZE to be same.

Below are the debug prints (debug="fs")

grub> debug="fs"
grub> ls (cbfsdisk)
kern/fs.c:56: Detecting affs...
kern/fs.c:78: affs detection failed.
kern/fs.c:56: Detecting afs...
kern/fs.c:78: afs detection failed.
kern/fs.c:56: Detecting bfs...
kern/fs.c:78: bfs detection failed.
kern/fs.c:56: Detecting btrfs...
kern/fs.c:78: btrfs detection failed.
kern/fs.c:56: Detecting cpiofs...
kern/fs.c:78: cpiofs detection failed.
kern/fs.c:56: Detecting cpiofs_be...
kern/fs.c:78: cpiofs_be detection failed.
kern/fs.c:56: Detecting exfat...
kern/fs.c:78: exfat detection failed.
kern/fs.c:56: Detecting hfs...
kern/fs.c:78: hfs detection failed.
kern/fs.c:56: Detecting hfsplus...
kern/fs.c:78: hfsplus detection failed.
kern/fs.c:56: Detecting iso9660...
kern/fs.c:78: iso9660 detection failed.
kern/fs.c:56: Detecting jfs...
kern/fs.c:78: jfs detection failed.
kern/fs.c:56: Detecting minix...
kern/fs.c:78: minix detection failed.
kern/fs.c:56: Detecting minix2...
kern/fs.c:78: minix2 detection failed.
kern/fs.c:56: Detecting minix2_be...
kern/fs.c:78: minix2_be detection failed.
kern/fs.c:56: Detecting minix3...
kern/fs.c:78: minix3 detection failed.
kern/fs.c:56: Detecting minix3_be...
kern/fs.c:78: minix3_be detection failed.
kern/fs.c:56: Detecting minix_be...
kern/fs.c:78: minix_be detection failed.
kern/fs.c:56: Detecting newc...
kern/fs.c:78: newc detection failed.
kern/fs.c:56: Detecting nilfs2...
kern/fs.c:78: nilfs2 detection failed.
kern/fs.c:56: Detecting ntfs...
kern/fs.c:78: ntfs detection failed.
kern/fs.c:56: Detecting odc...
kern/fs.c:78: odc detection failed.
kern/fs.c:56: Detecting procfs...
kern/fs.c:78: procfs detection failed.
kern/fs.c:56: Detecting reiserfs...
kern/fs.c:78: reiserfs detection failed.
kern/fs.c:56: Detecting romfs...
kern/fs.c:78: romfs detection failed.
kern/fs.c:56: Detecting sfs...
kern/fs.c:78: sfs detection failed.
kern/fs.c:56: Detecting squash4...
kern/fs.c:78: squash4 detection failed.
kern/fs.c:56: Detecting udf...
kern/fs.c:78: udf detection failed.
kern/fs.c:56: Detecting ufs1...
kern/fs.c:78: ufs1 detection failed.
kern/fs.c:56: Detecting ufs1_be...
kern/fs.c:78: ufs1_be detection failed.
kern/fs.c:56: Detecting ufs2...
kern/fs.c:78: ufs2 detection failed.
kern/fs.c:56: Detecting xfs...
kern/fs.c:78: xfs detection failed.
kern/fs.c:56: Detecting zfs...
kern/fs.c:78: zfs detection failed.
kern/fs.c:56: Detecting tarfs...
kern/fs.c:78: tarfs detection failed.
kern/fs.c:56: Detecting cbfs...
kern/fs.c:78: cbfs detection failed.
kern/fs.c:56: Detecting fat...
kern/fs.c:78: fat detection failed.
kern/fs.c:56: Detecting ext2...
kern/fs.c:78: ext2 detection failed.
Device cbfsdisk: kern/fs.c:56: Detecting affs...
kern/fs.c:78: affs detection failed.
kern/fs.c:56: Detecting afs...
kern/fs.c:78: afs detection failed.
kern/fs.c:56: Detecting bfs...
kern/fs.c:78: bfs detection failed.
kern/fs.c:56: Detecting btrfs...
kern/fs.c:78: btrfs detection failed.
kern/fs.c:56: Detecting cpiofs...
kern/fs.c:78: cpiofs detection failed.
kern/fs.c:56: Detecting cpiofs_be...
kern/fs.c:78: cpiofs_be detection failed.
kern/fs.c:56: Detecting exfat...
kern/fs.c:78: exfat detection failed.
kern/fs.c:56: Detecting hfs...
kern/fs.c:78: hfs detection failed.
kern/fs.c:56: Detecting hfsplus...
kern/fs.c:78: hfsplus detection failed.
kern/fs.c:56: Detecting iso9660...
kern/fs.c:78: iso9660 detection failed.
kern/fs.c:56: Detecting jfs...
kern/fs.c:78: jfs detection failed.
kern/fs.c:56: Detecting minix...
kern/fs.c:78: minix detection failed.
kern/fs.c:56: Detecting minix2...
kern/fs.c:78: minix2 detection failed.
kern/fs.c:56: Detecting minix2_be...
kern/fs.c:78: minix2_be detection failed.
kern/fs.c:56: Detecting minix3...
kern/fs.c:78: minix3 detection failed.
kern/fs.c:56: Detecting minix3_be...
kern/fs.c:78: minix3_be detection failed.
kern/fs.c:56: Detecting minix_be...
kern/fs.c:78: minix_be detection failed.
kern/fs.c:56: Detecting newc...
kern/fs.c:78: newc detection failed.
kern/fs.c:56: Detecting nilfs2...
kern/fs.c:78: nilfs2 detection failed.
kern/fs.c:56: Detecting ntfs...
kern/fs.c:78: ntfs detection failed.
kern/fs.c:56: Detecting odc...
kern/fs.c:78: odc detection failed.
kern/fs.c:56: Detecting procfs...
kern/fs.c:78: procfs detection failed.
kern/fs.c:56: Detecting reiserfs...
kern/fs.c:78: reiserfs detection failed.
kern/fs.c:56: Detecting romfs...
kern/fs.c:78: romfs detection failed.
kern/fs.c:56: Detecting sfs...
kern/fs.c:78: sfs detection failed.
kern/fs.c:56: Detecting squash4...
kern/fs.c:78: squash4 detection failed.
kern/fs.c:56: Detecting udf...
kern/fs.c:78: udf detection failed.
kern/fs.c:56: Detecting ufs1...
kern/fs.c:78: ufs1 detection failed.
kern/fs.c:56: Detecting ufs1_be...
kern/fs.c:78: ufs1_be detection failed.
kern/fs.c:56: Detecting ufs2...
kern/fs.c:78: ufs2 detection failed.
kern/fs.c:56: Detecting xfs...
kern/fs.c:78: xfs detection failed.
kern/fs.c:56: Detecting zfs...
kern/fs.c:78: zfs detection failed.
kern/fs.c:56: Detecting tarfs...
kern/fs.c:78: tarfs detection failed.
kern/fs.c:56: Detecting cbfs...
kern/fs.c:78: cbfs detection failed.
kern/fs.c:56: Detecting fat...
kern/fs.c:78: fat detection failed.
kern/fs.c:56: Detecting ext2...
kern/fs.c:78: ext2 detection failed.
No known filesystem detected - Sector size 512B - Total size 13024KiB
grub>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]