Wind River Support Network

HomeDefectsLIN1019-3646
Fixed

LIN1019-3646 : ostree: Can not install one complete image into SD card which has been deployed one standard WIC image on xilinx-zynqmp target

Created: Nov 29, 2019    Updated: Dec 11, 2019
Resolved Date: Dec 3, 2019
Found In Version: 10.19.45.2
Fix Version: 10.19.45.2
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: Userspace

Description

TEST_STEP
/folk/lpg-build/cdc/fast_prod/WRL10_19/WRL10_19_GIT/wrlinux-10/setup.sh --machines=xilinx-zynqmp --distros=wrlinux --dl-layers --templates feature/ostree --layers wr-ostree --accept-eula=yes
. ./oe-init-build-env build
bitbake-layers add-layer /net/pek-lpgtest15/buildarea1/jhu2/wrlinux/wr-testing/bts-dev
echo require templates/feature/bts/template.conf >> conf/local.conf
echo PREFERRED_PROVIDER_virtual/kernel = "linux-yocto" >> conf/local.conf
bitbake  lib32-wrlinux-image-glibc-std lib32-wrlinux-image-glibc-small

In conf/local.conf :
#jhu2 append as below:
require templates/feature/bts/template.conf
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
BB_NUMBER_THREADS ?= "24"
PARALLEL_MAKE ?= "-j 24"
OSTREE_REMOTE_URL = "http://128.224.162.201/20191129034433/ostree_repo/"
ACTIVE_PLAN = "customized_test_plan.ini"
IMAGE_ROOTFS_EXTRA_SPACE = "2048000"

on target:
1. boot the target with one std wic(without ostree template and layer, bitbake wrlinux-image-glibc-std), not ostsree wic like below:
[16:52:40 jhu2@pek-jhu2-d2 /work_cup/xilinx-zynqmp_ostree]$sudo fdisk  /dev/sdc -l
[sudo] password for jhu2:

Disk /dev/sdc: 15.5 GB, 15523119104 bytes, 30318592 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
Disk label type: dos
Disk identifier: 0xa5c6f677

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        1024      341809      170393    c  W95 FAT32 (LBA)
/dev/sdc2          342016     1492547      575266   83  Linux

2.  in uboot. run below command to install ostree:
setenv ipaddr 128.224.162.199
setenv netmask 255.255.254.0
setenv gatewayip 128.224.162.1
setenv serverip 128.224.162.201
setenv console ttyPS0
setenv baudrate 115200
setenv loadaddr 0x10000000
setenv initrd_addr 0x40000000
setenv fdt_addr 0xE0000
tftpboot ${loadaddr} 28594/Image
tftpboot ${initrd_addr} 28594/initramfs-ostree-image-xilinx-zynqmp.cpio.gz.u-boot
tftpboot ${fdt_addr} 28594/zynqmp-zcu102-rev1.0.dtb

setenv bootargs console=${console},${baudrate} bl=ufsd rdinit=/install instdev=/dev/mmcblk0 instname=wrlinux instbr=lib32-wrlinux-image-glibc-std insturl=http://128.224.162.201/20191129034433/ostree_repo/ instab=1 instsf=1 instnet=0 instpost=shell instsh=2 ip=dhcp clk_ignore_unused

booti ${loadaddr} ${initrd_addr} ${fdt_addr}


IP-Config: Got DHCP answer from 128.224.162.1, my address is 128.224.162.165
IP-Config: Complete:
     device=eth0, hwaddr=00:0a:35:00:22:99, ipaddr=128.224.162.165, mask=255.255.254.0, gw=128.224.162.1
     host=128.224.162.165, domain=corp.ad.wrs.com, nis-domain=swamp
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
     nameserver0=128.224.160.11, nameserver1=128.224.160.12, nameserver2=147.11.57.128
     ntpserver0=147.11.100.50, ntpserver1=147.11.1.11, ntpserver2=147.11.49.4
clk: Not disabling unused clocks
ALSA device list:
  #0: DisplayPort monitor
Freeing unused kernel memory: 2048K
Run /install as init process
mounting FS: proc /proc
mounting FS: sysfs /sys
mounting FS: tmpfs /tmp
mounting FS: tmpfs /run
Starting version 243+
mdadm: looking for devices for further assembly
mdadm: no recogniseable superblock on /dev/mmcblk0p2
mdadm: Cannot assemble mbr metadata on /dev/mmcblk0p1
mdadm: Cannot assemble mbr metadata on /dev/mmcblk0
mdadm: no recogniseable superblock on /dev/mtdblock3
mdadm: no recogniseable superblock on /dev/mtdblock2
mdadm: no recogniseable superblock on /dev/mtdblock1
mdadm: no recogniseable superblock on /dev/mtdblock0
mdadm: no recogniseable superblock on /dev/ram15
mdadm: no recogniseable superblock on /dev/ram14
mdadm: no recogniseable superblock on /dev/ram13
mdadm: no recogniseable superblock on /dev/ram12
mdadm: no recogniseable superblock on /dev/ram11
mdadm: no recogniseable superblock on /dev/ram10
mdadm: no recogniseable superblock on /dev/ram9
mdadm: no recogniseable superblock on /dev/ram8
mdadm: no recogniseable superblock on /dev/ram7
mdadm: no recogniseable superblock on /dev/ram6
mdadm: no recogniseable superblock on /dev/ram5
mdadm: no recogniseable superblock on /dev/ram4
mdadm: no recogniseable superblock on /dev/ram3
mdadm: no recogniseable superblock on /dev/ram2
mdadm: no recogniseable superblock on /dev/ram1
mdadm: no recogniseable superblock on /dev/ram0
mdadm: No arrays found in config file or automatically

Welcome to fdisk (util-linux 2.34).
Changes will remain in mem mmcblk0: p1 p2
ory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition number (1,2, default 2):
Partition 2 has been deleted.

Command (m for help): Selected partition 1
Partition 1 has been deleted.

Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-30318591, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3031859
1, default 30318591):
Created a new partition 1 of type 'Linux' and of size 165.9 MiB.

Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (341810-30318591, default 342016): Last sector, +/-sectors or +/-size{K,M,G,T,P} (342016-3
0318591, default 30318591):
Created a new partition 2 of type 'Extended' and of size 14.3 GiB.
Partition #2 contains a ext4 signature.

Command (m for help):
All space for primary partitions is in use.
Adding logical partition 5
First sector (344064-30318591, default 344064): Value out of range.
First sector (344064-30318591, default 344064): Last sector, +/-sectors or +/-size{K,M,G,T,P} (344064-30318591, default 30318591):
Created a new partition 5 of type 'Linux' and of size 200 MiB.

Command (m for help): All space for primary partitions is in use.
Adding logical partition 6
First sector (755712-30318591, default 755712): Value out of range.
First sector (755712-30318591, default 755712): Last sector, +/-sectors or +/-size{K,M,G,T,P} (755712-30318591, default 30318591):
Created a new partition 6 of type 'Linux' and of size 1.4 GiB.

Command (m for help): All space for primary partitions is in use.
Adding logical partition 7
First sector (3624960-30318591, default 3624960): Value out of range.
First sector (3624960-30318591, default 3624960): Last sector, +/-sectors or +/-size{K,M,G,T,P} (3624960-30318591, default 30318591):
Created a new partition 7 of type 'Linux' and of size 200 MiB.

Command (m for help): All space for primary partitions is in use.
Adding logical partition 8
First sector (4036608-30318591, default 4036608): Value out of range.
First sector (4036608-30318591, default 4036608): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4036608-30318591, default 30318591):
Created a new partition 8 of type 'Linux' and of size 1.4 GiB.

Command (m for help): All space for primary partitions is in use.
Adding logical partition 9
First sector (6905856-30318591, default 6905856): Value out of range.
First sector (6905856-30318591, default 6905856): Last sector, +/-sectors or +/-size{K,M,G,T,P} (6905856-30318591, default 30318591):
Created a new partition 9 of type 'Linux' and of size 11.2 GiB.

Command (m for help): Partition number (1,2,5-9, default 9):
Partition 1 has been deleted.

Command (m for  mmcblk0: p1 p2
help): Partition type
   p   primary (0 primary, 1 extended, 3 free)
   l   logical (numbered from 5)
Select (default p): Par mmcblk0: p1 p2
tition number (1,3,4, default 1): First sector (2048-342015, default 2048): Value out of range.
First sector (2048-342015, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (341809-342015, default 342015): Last sector, +/-sectors or +/-size{K,
M,G,T,P} (341809-342015, default 342015): Value out of range.
Last sector, +/-sectors or +/-size{K,M,G,T,P} (341809-342015, default 342015): Last sector, +/-sectors or +/-size{K,M,G,T,P} (341809-342015, default 342015):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (341809-342015, default 342015): Last sector, +/-sectors or +/-size{K,M,G,T,P} (341809-342015, default 342015):
Command (m for help):
fatlabel: warning - lowercase labels might not work properly with DOS or Windows
mke2fs 1.45.3 (14-Jul-2019)
The file /dev/mmcblk0p5 does not exist and no size was specified.
mke2fs 1.45.3 (14-Jul-2019)
The file /dev/mmcblk0p6 does not exist and no size was specified.
mke2fs 1.45.3 (14-Jul-2019)
The file /dev/mmcblk0p7 does not exist and no size was specified.
mke2fs 1.45.3 (14-Jul-2019)
The file /dev/mmcblk0p8 does not exist and no size was specified.
mke2fs 1.45.3 (14-Jul-2019)
The file /dev/mmcblk0p9 does not exist and no size was specified.
random: crng init done
mount: /sysroot: can't find LABEL=otaroot.
ostree/deploy/wrlinux initialized as OSTree root
mount: /sysroot/boot: can't find LABEL=otaboot.


GPG: Verification enabled, found 1 signature:

  Signature made Fri Nov 29 04:53:50 2019 using RSA key ID CFA856DFC7CB87BE
  Good signature from "Wind-River-Linux-Sample <svc-linux@gmail.com>"
1169 metadata, 16793 content objects fetched; 155448 KiB transferred in 30 seconds
Relabeling /var (no stamp file 'var/.ostree-selabeled' found)
Transaction complete; bootconfig swap: yes; deployment count change: 1
mount: /sysroot_b: can't find LABEL=otaroot_b.
ostree/deploy/wrlinux initialized as OSTree root
mount: /sysroot_b/boot: can't find LABEL=otaboot_b.


GPG: Verification enabled, found 1 signature:

  Signature made Fri Nov 29 04:53:50 2019 using RSA key ID CFA856DFC7CB87BE
  Good signature from "Wind-River-Linux-Sample <svc-linux@gmail.com>"
0 metadata, 0 content objects fetched (1168 meta, 16793 content local)
Relabeling /var (no stamp file 'var/.ostree-selabeled' found)
Transaction complete; bootconfig swap: yes; deployment count change: 1
mount: /var1: can't find LABEL=fluxdata.
umount: can't unmount /var1: Invalid argument
umount: can't unmount /sysroot_b/boot: Invalid argument
umount: can't unmount /sysroot_b: Invalid argument
umount: can't unmount /sysroot/boot: Invalid argument
umount: can't unmount /sysroot: Invalid argument
install (1): drop_caches: 3
 Entering post-install debug shell

Steps to Reproduce

TEST_STEP
/folk/lpg-build/cdc/fast_prod/WRL10_19/WRL10_19_GIT/wrlinux-10/setup.sh --machines=xilinx-zynqmp --distros=wrlinux --dl-layers --templates feature/ostree --layers wr-ostree --accept-eula=yes
. ./oe-init-build-env build
bitbake-layers add-layer /net/pek-lpgtest15/buildarea1/jhu2/wrlinux/wr-testing/bts-dev
echo require templates/feature/bts/template.conf >> conf/local.conf
echo PREFERRED_PROVIDER_virtual/kernel = "linux-yocto" >> conf/local.conf
bitbake  lib32-wrlinux-image-glibc-std lib32-wrlinux-image-glibc-small

In conf/local.conf :
#jhu2 append as below:
require templates/feature/bts/template.conf
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
BB_NUMBER_THREADS ?= "24"
PARALLEL_MAKE ?= "-j 24"
OSTREE_REMOTE_URL = "http://128.224.162.201/20191129034433/ostree_repo/"
ACTIVE_PLAN = "customized_test_plan.ini"
IMAGE_ROOTFS_EXTRA_SPACE = "2048000"

on target:
1. boot the target with one std wic(without ostree template and layer, bitbake wrlinux-image-glibc-std), not ostsree wic like below:
[16:52:40 jhu2@pek-jhu2-d2 /work_cup/xilinx-zynqmp_ostree]$sudo fdisk  /dev/sdc -l
[sudo] password for jhu2:

Disk /dev/sdc: 15.5 GB, 15523119104 bytes, 30318592 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
Disk label type: dos
Disk identifier: 0xa5c6f677

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        1024      341809      170393    c  W95 FAT32 (LBA)
/dev/sdc2          342016     1492547      575266   83  Linux

2.  in uboot. run below command to install ostree:
setenv ipaddr 128.224.162.199
setenv netmask 255.255.254.0
setenv gatewayip 128.224.162.1
setenv serverip 128.224.162.201
setenv console ttyPS0
setenv baudrate 115200
setenv loadaddr 0x10000000
setenv initrd_addr 0x40000000
setenv fdt_addr 0xE0000
tftpboot ${loadaddr} 28594/Image
tftpboot ${initrd_addr} 28594/initramfs-ostree-image-xilinx-zynqmp.cpio.gz.u-boot
tftpboot ${fdt_addr} 28594/zynqmp-zcu102-rev1.0.dtb

setenv bootargs console=${console},${baudrate} bl=ufsd rdinit=/install instdev=/dev/mmcblk0 instname=wrlinux instbr=lib32-wrlinux-image-glibc-std insturl=http://128.224.162.201/20191129034433/ostree_repo/ instab=1 instsf=1 instnet=0 instpost=shell instsh=2 ip=dhcp clk_ignore_unused

booti ${loadaddr} ${initrd_addr} ${fdt_addr}
Live chat
Online