blob: 360af5bbfff1fce78a70eb162ddcf121a3611c32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
metadata:
name: TC25
format: "Manual Test Definition 1.0"
description: "TC25: NAND Controller"
maintainer:
- ryan.harkin@linaro.org
os:
- openembedded
scope:
- functional
devices:
- lces2
- soca9
environment:
- manual-test
run:
steps:
- "#soca9: ok"
- "NAND_MTD=/dev/mtd0"
- "#lces2: ok"
- "NAND_MTD=/dev/mtd1"
- " "
- "USB_DEV=/dev/sda1"
- " "
- "device_exists $NAND_MTD"
- "device_exists $USB_DEV"
- " "
- "# This might fail if there are bad blocks on the NAND"
- "#dd if=/dev/urandom of=/tmp/random bs=1M count=10 && time flashcp -v /tmp/random $NAND_MTD"
- " "
- "flash_erase $NAND_MTD 0 0"
- " "
- "# This is a more reliable/realistic test because it skips bad blocks"
- "dd if=/dev/urandom of=/tmp/random bs=1M count=10 && time nandwrite $NAND_MTD /tmp/random"
- " "
- "# mount the USB stick first"
- "mnt=/mnt/usb"
- "mkdir -p ${mnt}"
- "mount ${USB_DEV} ${mnt}"
- " "
- "nanddump -l 10485760 ${NAND_MTD} > ${mnt}/nand.bin"
- " "
- "ls -al /tmp/random ${mnt}/nand.bin"
- "md5sum /tmp/random ${mnt}/nand.bin"
- "umount ${mnt}"
expected:
- "md5sums match"
|