Fixed
Created: Dec 6, 2018
Updated: Apr 24, 2019
Resolved Date: Dec 25, 2018
Found In Version: unknown
Fix Version: 10.18.44.3
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Kernel
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# flash_erase /dev/mtd9 0 0 Erasing 128 Kibyte @ 620f360000 -- -1 % complete flash_erase: Skipping bad block at 0f380000 Erasing 128 Kibyte @ 640f5e0000 -- -1 % complete
nfs: server 128.224.178.20 not responding, still trying
nfs: server 128.224.178.20 OK
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# mount -t yaffs2 /dev/mtdblock9 /28485
yaffs: dev is 32505865 name is "mtdblock9" rw
yaffs: passed flags ""
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# dd if=/dev/zero of=/root/file.dd.source bs=512 count=2k
2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.233034 s, 4.5 MB/s root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# touch /root/file.cp.source
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# chmod 777 /root/file.cp.source
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# dd if=/root/file.dd.source of=/28485/tmp.file bs=512 count=2k
2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.672076 s, 1.6 MB/s root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# cp -a /root/file.cp.source /28485/
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# ls -l /28485/ total 1026
-rwx------+ 1 root root 0 Sep 7 02:57 file.cp.source
drwx------ 1 root root 2032 Sep 7 02:57 lost+found
-rw-r--r-- 1 root root 1048576 Sep 7 02:57 tmp.file root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# cp -a /28485/file.cp.source /root/file.cp.dest
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# dd if=/28485/tmp.file of=/root/file.dd.dest bs=512 count=2k
2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.243948 s, 4.3 MB/s root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# umount /28485
root@ti-am335x:/opt/wr-test/testcases/bts/flash_dd_yaffs2# rm -rf /28485
1. Build project
/lpg-build/cdc/fast_prod/WRL10_17/WRL10_17_GIT/wrlinux-10/setup.sh --machines ti-am335x --distros=wrlinux-std-sato --dl-layers --accept-eula=yes
. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env build_test
bitbake-layers add-layer /wrl10/testlayer/WRLINUX_10_17_HEAD/wrlinux/wr-testing/bts-dev
echo "WRTEMPLATE_append = \" feature/bts\"" >> conf/local.conf echo "IMAGE_FSTYPES=\"tar.bz2\"" >> conf/local.conf echo "IMAGE_ROOTFS_EXTRA_SPACE = \"5242880\"" >> conf/local.conf echo "INITRAMFS_MAXSIZE=\"500000\"" >> conf/local.conf echo "BB_NO_NETWORK=\"0\"" >> conf/local.conf echo "NOHDD=\"1\"" >> conf/local.conf
bitbake wrlinux-image-glibc-std-sato
2. Boot up the target (barcode: 21525)
3. Run the following command
root@ti-am335x:/opt/wr-test/testcases/bts/ flash_dd_yaffs2/runtest.sh -k 9