All customers except US A&D: to ensure that you can access all of your product downloads, you must log in to the Wind River Delivers portal https://delivers.windriver.com and visit the My Products page to force an initial sync of your product entitlement. Only after you’ve completed this step will you be able to access and download product content through the Artifacts, Registry, and Git interfaces. This also applies to users attempting to run the Wind River installer in maintenance or update mode or Linux installation updates at the command line.

Wind River Support Network

HomeDefectsLIN1021-1723
Fixed

LIN1021-1723 : axxiaarm: different md5sum for the same file content after re-mount usb storage

Created: Oct 15, 2021    Updated: Nov 23, 2021
Resolved Date: Nov 23, 2021
Found In Version: 10.21.20.6
Fix Version: 10.21.20.7
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP

Description

Wind River Linux LTS 21.20 Update 6 axxiaarm ttyAMA0

axxiaarm login: root
Password:
root@axxiaarm:~#
root@axxiaarm:~# mkfs.ext4 /dev/sda
sda sda1
root@axxiaarm:~# mkfs.ext4 /dev/sda
sda sda1
root@axxiaarm:~# mkfs.ext4 /dev/sda1 -F
mke2fs 1.46.1 (9-Feb-2021)
/dev/sda1 contains a ext4 file system
last mounted on /mnt on Tue Mar 23 08:13:24 2021
Creating filesystem with 3870464 4k blocks and 969136 inodes
Filesystem UUID: f69031a2-8736-4604-8c37-6ce8dbadedb2
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

root@axxiaarm:~# mount /dev/sda1 /mnt/
root@axxiaarm:~# EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

root@axxiaarm:~# dd if=/dev/zero of=/mnt/big_file bs=1024 count=1024
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0292204 s, 35.9 MB/s
root@axxiaarm:~# md5sum /mnt/big_file
b6d81b360a5672d80c27430f39153e2c /mnt/big_file
root@axxiaarm:~# cp /mnt/big_file /mnt/big_file_cp
root@axxiaarm:~# umount /mnt/
root@axxiaarm:~# mount /dev/sda1 /mnt/
root@axxiaarm:~# EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

root@axxiaarm:~# cp /mnt/big_file /mnt/big_file_cp
root@axxiaarm:~# md5sum /mnt/big_file
1c39cec8c0ca01397f912e39bc4b026f /mnt/big_file
root@axxiaarm:~#

Steps to Reproduce

To Get The Testing Layer:
------------------------
# git clone ssh://git@lxgit.wrs.com/wrlinux-testing/testcases
# cd wrlinux;git checkout WRLINUX_10_21_HEAD

Project Build:
----------------------
    --machines=axxiaarm --templates feature/docker feature/kexec feature/kdump --distro wrlinux --dl-layers
    Build Steps:
    . oe-init-build-env
    Add BTS layer  
    1.bitbake-layers add-layer <path to wr-testing/bts-dev>
    2.echo "require templates/feature/bts/template.conf" >> conf/local.conf
    3.echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"' >> conf/local.conf
    
    build image:
    # bitbake wrlinux-image-std

boot 55xx board:
root@axxiaarm:~# cat /proc/cmdline 
console=ttyAMA0 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/24841/rootfs,tcp ip=128.224.179.38:128.224.178.20:128.224.178.1:255.255.254.0:axm5500:eth0:off ignore_loglevel selinux=0 enforcing=0 kmemleak=on earlyprintk=serial,0x2010080000,115200
croot@axxiaarm:~# cat /proc/version 
Linux version 5.10.70-rt47-yocto-preempt-rt (oe-user@oe-host) (arm-wrs-linux-gnueabi-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1.20210209) #1 SMP PREEMPT_RT Sat Oct 9 06:20:51 UTC 2021
root@axxiaarm:~# cat /etc/os-release 
ID=wrlinux
NAME="Wind River Linux LTS"
VERSION="10.21.20.6"
VERSION_ID=10.21.20.6
PRETTY_NAME="Wind River Linux LTS 21.20 Update 6"
root@axxiaarm:~# 

On the board:
mkfs.ext4  /dev/sda1 -F
mount /dev/sda1  /mnt/

dd if=/dev/zero of=/mnt/big_file bs=1024 count=1024 
md5sum /mnt/big_file 
cp /mnt/big_file /mnt/big_file_1
umount  /mnt/
mount /dev/sda1  /mnt/
md5sum /mnt/big_file


Live chat
Online