All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [yocto] [WIC] Wic creates spurious partition
       [not found] <160ABD2A1099AD97.19580@lists.yoctoproject.org>
@ 2020-04-30 23:52 ` Rudolf J Streif
  0 siblings, 0 replies; 3+ messages in thread
From: Rudolf J Streif @ 2020-04-30 23:52 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1.1: Type: text/plain, Size: 2081 bytes --]

Ok, I found the answer to my own question. It's the typical extended
partition issue.

:rjs

On 4/30/20 4:36 PM, Rudolf J Streif via lists.yoctoproject.org wrote:
> I seem to be running into wic problems today...
>
> I have the following wks file:
>
> part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk
> --no-table --align 1
> part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}"
> --ondisk mmcblk --no-table --align 69
> part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=vfat
> --label boot --active --align 4096 --fixed-size 16
>
> part /mnt/persistent --ondisk mmcblk1 --fstype=ext4 --label persistent
> --fixed-size 10
> part / --source rootfs --ondisk mmcblk1 --fstype=ext4 --label rootfs1
> --size 500
> part /mnt/rootfs2 --source rootfs --ondisk mmcblk1 --fstype=ext4 --label
> rootfs2 --size 500
> part /mnt/internal_storage --ondisk mmcblk1 --fstype=ext4 --label data
> --size 1000
>
> bootloader --ptable msdos
> That should create 7 partitions of which 5 have a file system. However,
> when I flash the emmc with it and boot the device:
>
> # fdisk /dev/mmcblk1
>
> Disk /dev/mmcblk1: 3.62 GiB, 3867148288 bytes, 7553024 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0813790a
>
> Device         Boot   Start     End Sectors  Size Id Type
> /dev/mmcblk1p1 *       8192   40959   32768   16M  c W95 FAT32 (LBA)
> /dev/mmcblk1p2        40960   61439   20480   10M 83 Linux
> /dev/mmcblk1p3        61440 1392639 1331200  650M 83 Linux
> /dev/mmcblk1p4      1392640 4771841 3379202  1.6G  f W95 Ext'd (LBA)
> /dev/mmcblk1p5      1392641 2723840 1331200  650M 83 Linux
> /dev/mmcblk1p6      2723842 4771841 2048000 1000M 83 Linux
>
> There is another partition that essentially overlaps the last two. That
> makes no sense.
>
> Thanks,
> Rudi
>
>
>
> 


[-- Attachment #1.1.2: Type: text/html, Size: 3375 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] [WIC] Wic creates spurious partition
  2020-04-30 23:36 Rudolf J Streif
  2020-04-30 15:47 ` [yocto] " Sergey Bostandzhyan
@ 2020-04-30 23:51 ` Scott Murray
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Murray @ 2020-04-30 23:51 UTC (permalink / raw)
  To: yocto; +Cc: Yocto list discussion

[-- Attachment #1: Type: text/plain, Size: 2139 bytes --]

On Thu, 30 Apr 2020, Rudolf J Streif wrote:

> I seem to be running into wic problems today...
>
> I have the following wks file:
>
> >>>>>
> part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk
> --no-table --align 1
> part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}"
> --ondisk mmcblk --no-table --align 69
> part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=vfat
> --label boot --active --align 4096 --fixed-size 16
>
> part /mnt/persistent --ondisk mmcblk1 --fstype=ext4 --label persistent
> --fixed-size 10
> part / --source rootfs --ondisk mmcblk1 --fstype=ext4 --label rootfs1
> --size 500
> part /mnt/rootfs2 --source rootfs --ondisk mmcblk1 --fstype=ext4 --label
> rootfs2 --size 500
> part /mnt/internal_storage --ondisk mmcblk1 --fstype=ext4 --label data
> --size 1000
>
> bootloader --ptable msdos
> >>>>>
>
> That should create 7 partitions of which 5 have a file system. However,
> when I flash the emmc with it and boot the device:
>
> # fdisk /dev/mmcblk1
>
> Disk /dev/mmcblk1: 3.62 GiB, 3867148288 bytes, 7553024 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0813790a
>
> Device         Boot   Start     End Sectors  Size Id Type
> /dev/mmcblk1p1 *       8192   40959   32768   16M  c W95 FAT32 (LBA)
> /dev/mmcblk1p2        40960   61439   20480   10M 83 Linux
> /dev/mmcblk1p3        61440 1392639 1331200  650M 83 Linux
> /dev/mmcblk1p4      1392640 4771841 3379202  1.6G  f W95 Ext'd (LBA)
> /dev/mmcblk1p5      1392641 2723840 1331200  650M 83 Linux
> /dev/mmcblk1p6      2723842 4771841 2048000 1000M 83 Linux
>
> There is another partition that essentially overlaps the last two. That
> makes no sense.

That makes sense for DOS partitioning; there can only be 4 primary
partitions, so number 4 is marked as an extended partition with the
total space of the further logical partitions.

Scott

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] [WIC] Wic creates spurious partition
  2020-04-30 23:36 Rudolf J Streif
@ 2020-04-30 15:47 ` Sergey Bostandzhyan
  2020-04-30 23:51 ` Scott Murray
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey Bostandzhyan @ 2020-04-30 15:47 UTC (permalink / raw)
  To: yocto; +Cc: Yocto list discussion

Hi Rudi,

On Thu, Apr 30, 2020 at 04:36:39PM -0700, Rudolf J Streif wrote:
> bootloader --ptable msdos
>
> 
> That should create 7 partitions of which 5 have a file system. However,
> when I flash the emmc with it and boot the device:


did you mean --ptable gpt?

> /dev/mmcblk1p4      1392640 4771841 3379202  1.6G  f W95 Ext'd (LBA)
> /dev/mmcblk1p5      1392641 2723840 1331200  650M 83 Linux
> /dev/mmcblk1p6      2723842 4771841 2048000 1000M 83 Linux

In msdos layout you can only have a limited number of primary partitions, 
anything exceeding that will go into extended partitions which you see
as "overlapping" here, in the above paste p5 and p6 are actually within the 
extended p4 (hinted by W95 Ext'd)

Kind regards,
Jin





> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-30 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <160ABD2A1099AD97.19580@lists.yoctoproject.org>
2020-04-30 23:52 ` [yocto] [WIC] Wic creates spurious partition Rudolf J Streif
2020-04-30 23:36 Rudolf J Streif
2020-04-30 15:47 ` [yocto] " Sergey Bostandzhyan
2020-04-30 23:51 ` Scott Murray

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.