summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/manual/bsp-hw.json260
1 files changed, 260 insertions, 0 deletions
diff --git a/meta/lib/oeqa/manual/bsp-hw.json b/meta/lib/oeqa/manual/bsp-hw.json
index a2b1d3e0b0..2bbf4b2617 100644
--- a/meta/lib/oeqa/manual/bsp-hw.json
+++ b/meta/lib/oeqa/manual/bsp-hw.json
@@ -1196,5 +1196,265 @@
1196 }, 1196 },
1197 "summary": "Test_Seek_bar_and_volume_control" 1197 "summary": "Test_Seek_bar_and_volume_control"
1198 } 1198 }
1199 },
1200 {
1201 "test": {
1202 "@alias": "bsps-runtime.bsps-runtime.Check_if_watchdog_can_reset_the_target_system",
1203 "author": [
1204 {
1205 "email": "yi.zhao@windriver.com",
1206 "name": "yi.zhao@windriver.com"
1207 }
1208 ],
1209 "execution": {
1210 "1": {
1211 "action": "1.Check if watchdog device exist in /dev/ directory. Run command echo 1 > /dev/watchdog and wait for 60s. Then, the target will reboot.",
1212 "expected_results": "The watchdog device exist in /dev/ directory and can reboot the target.\n"
1213 }
1214 },
1215 "summary": "Check_if_watchdog_can_reset_the_target_system"
1216 }
1217 },
1218 {
1219 "test": {
1220 "@alias": "bsps-runtime.bsps-runtime.Check_if_RTC_(Real_Time_Clock)_can_work_correctly",
1221 "author": [
1222 {
1223 "email": "yi.zhao@windriver.com",
1224 "name": "yi.zhao@windriver.com"
1225 }
1226 ],
1227 "execution": {
1228 "1": {
1229 "action": "Read time from RTC registers. root@localhost:/root> hwclock -r Sun Mar 22 04:05:47 1970 -0.001948 seconds ",
1230 "expected_results": "Can read and set the time from RTC.\n"
1231 },
1232 "2": {
1233 "action": "Set system current time root@localhost:/root> date 062309452008 ",
1234 "expected_results": ""
1235 },
1236 "3": {
1237 "action": "Synchronize the system current time to RTC registers root@localhost:/root> hwclock -w ",
1238 "expected_results": ""
1239 },
1240 "4": {
1241 "action": "Read time from RTC registers root@localhost:/root> hwclock -r ",
1242 "expected_results": ""
1243 },
1244 "5": {
1245 "action": "Reboot target and read time from RTC again\n",
1246 "expected_results": ""
1247 }
1248 },
1249 "summary": "Check_if_RTC_(Real_Time_Clock)_can_work_correctly"
1250 }
1251 },
1252 {
1253 "test": {
1254 "@alias": "bsps-runtime.bsps-runtime.Check_if_target_can_support_EEPROM",
1255 "author": [
1256 {
1257 "email": "yi.zhao@windriver.com",
1258 "name": "yi.zhao@windriver.com"
1259 }
1260 ],
1261 "execution": {
1262 "1": {
1263 "action": "Check eeprom device exist in /sys/bus/i2c/devices/ ",
1264 "expected_results": "Hexdump can read data from eeprom.\n"
1265 },
1266 "2": {
1267 "action": "Run \"hexdump eeprom\" commandroot@mpc8315e-rdb:/sys/bus/i2c/devices/1-0051> hexdump eeprom0000000 9210 0b02 0211 0009 0b52 0108 0c00 3c000000010 6978 6930 6911 208c 7003 3c3c 00f0 8381\u2026\n",
1268 "expected_results": ""
1269 }
1270 },
1271 "summary": "Check_if_target_can_support_EEPROM"
1272 }
1273 },
1274 {
1275 "test": {
1276 "@alias": "bsps-tools.bsps-tools.smart_add_rpm-dir_channel_(auto)",
1277 "author": [
1278 {
1279 "email": "corneliux.stoicescu@intel.com",
1280 "name": "corneliux.stoicescu@intel.com"
1281 }
1282 ],
1283 "execution": {
1284 "1": {
1285 "action": "Build out packages with poky tree and copy the deploy/rpm directory to target directory. ",
1286 "expected_results": "The command should add a rpm-dir channel with smart. "
1287 },
1288 "2": {
1289 "action": "On target, run \"smart channel --add myrpmdir type=rpm-dir path=/path/to/tmp/deploy/rpm/i586\". ",
1290 "expected_results": "Run \"smart channel --show myrpmdir\" can show the information about the channel:\n[myrpmdir] \ntype = rpm-dir \npath = /path/to/tmp/deploy/rpm/i586"
1291 },
1292 "3": {
1293 "action": "Run \"smart channel --show myrpmdir\" and check the output. ",
1294 "expected_results": "After disable the channel, run \"smart channel --show myrpmdir\" would show:\n[myrpmdir] \ntype = rpm-dir \ndisabled = yes \npath = /path/to/tmp/deploy/rpm/i586"
1295 },
1296 "4": {
1297 "action": "Run \"smart channel --disable myrpmdir\" to diable the channel. ",
1298 "expected_results": ""
1299 },
1300 "5": {
1301 "action": "Run \"smart channel --show myrpmdir\" and check the output.",
1302 "expected_results": ""
1303 }
1304 },
1305 "summary": "smart_add_rpm-dir_channel"
1306 }
1307 },
1308 {
1309 "test": {
1310 "@alias": "bsps-tools.bsps-tools.smart_install_package_from_a_local_directory_(auto)",
1311 "author": [
1312 {
1313 "email": "corneliux.stoicescu@intel.com",
1314 "name": "corneliux.stoicescu@intel.com"
1315 }
1316 ],
1317 "execution": {
1318 "1": {
1319 "action": "Copy packages directory to target and add a rpm-dir channel with \nsmart. Make sure this channel and the default rpm-sys channel are \nenabled.",
1320 "expected_results": "The package \"groff\" should be installed."
1321 },
1322 "2": {
1323 "action": "Run \"smart install package_name\" to install a package from the deploy/rpm/i586 directory. For example, \"smart install groff\".",
1324 "expected_results": ""
1325 }
1326 },
1327 "summary": "smart_install_package_from_a_local_directory"
1328 }
1329 },
1330 {
1331 "test": {
1332 "@alias": "bsps-tools.bsps-tools.smart_install_package_from_a_remote_repomd_repository_(auto)",
1333 "author": [
1334 {
1335 "email": "corneliux.stoicescu@intel.com",
1336 "name": "corneliux.stoicescu@intel.com"
1337 }
1338 ],
1339 "execution": {
1340 "1": {
1341 "action": "Follow procedure in \"https://wiki.yoctoproject.org/wiki/Rpm%27s_Repository_Setup_for_QA\" to create a rpm-md-channel and updatechannelinformation with smart. ",
1342 "expected_results": ""
1343 },
1344 "2": {
1345 "action": "Make sure this channel and the default rpm-sys channel are enabled with \"smart channel --show\". ",
1346 "expected_results": ""
1347 },
1348 "3": {
1349 "action": "Run \"smart install \" to install a package from the remote repository. For example, \"smart install groff\" ",
1350 "expected_results": "The package should be installed. At the example \"groff\" should be installed correctly."
1351 }
1352 },
1353 "summary": "smart_install_package_from_a_remote_repomd_repository"
1354 }
1355 },
1356 {
1357 "test": {
1358 "@alias": "bsps-tools.bsps-tools.smart_remove_package_(auto)",
1359 "author": [
1360 {
1361 "email": "corneliux.stoicescu@intel.com",
1362 "name": "corneliux.stoicescu@intel.com"
1363 }
1364 ],
1365 "execution": {
1366 "1": {
1367 "action": "Run \"smart remove \" and check the output, for example \"smart remove groff\"",
1368 "expected_results": "The package should be removed . At the example \"groff\" should be removed.\n"
1369 }
1370 },
1371 "summary": "smart_remove_package"
1372 }
1373 },
1374 {
1375 "test": {
1376 "@alias": "bsps-meta-yocto.bsps-meta-yocto.System_can_boot_up_via_NFS",
1377 "author": [
1378 {
1379 "email": "yi.zhao@windriver.com",
1380 "name": "yi.zhao@windriver.com"
1381 }
1382 ],
1383 "execution": {
1384 "1": {
1385 "action": "Connect the board's first serial port to your workstation and then start up your favourite serial terminal so that you will be able to interact with the serial console. If you don't have a favourite, picocom is suggested: $ picocom /dev/ttyS0 -b 115200 ",
1386 "expected_results": "The system can boot up without problem\n"
1387 },
1388 "2": {
1389 "action": "Power up or reset the board and press a key on the terminal when prompted to get to the U-Boot command line ",
1390 "expected_results": ""
1391 },
1392 "3": {
1393 "action": "Set up the environment in U-Boot: => setenv ipaddr => setenv serverip ",
1394 "expected_results": ""
1395 },
1396 "4": {
1397 "action": "Download the kernel and boot: => tftp tftp $loadaddr vmlinux => bootoctlinux $loadaddr coremask=0x3 root=/dev/nfs rw nfsroot=: ip=::::edgerouter:eth0:off mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)\n",
1398 "expected_results": ""
1399 }
1400 },
1401 "summary": "System_can_boot_up_via_NFS"
1402 }
1403 },
1404 {
1405 "test": {
1406 "@alias": "bsps-meta-yocto.bsps-meta-yocto.System_can_boot_up_via_USB",
1407 "author": [
1408 {
1409 "email": "yi.zhao@windriver.com",
1410 "name": "yi.zhao@windriver.com"
1411 }
1412 ],
1413 "execution": {
1414 "1": {
1415 "action": "Copy the kernel and rootfs to the USB stick. # mount /dev/sda2 /media/sda2 # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /media/sda2 # cp vmlinux /media/sda2/boot/vmlinux # umount /media/sda2 ",
1416 "expected_results": "The system should boot up via USB\n"
1417 },
1418 "2": {
1419 "action": "Reboot the board and press a key on the terminal when prompted to get to the U-Boot command line # reboot ",
1420 "expected_results": ""
1421 },
1422 "3": {
1423 "action": "Load the kernel and boot: => ext2load usb 0:2 $loadaddr boot/vmlinux => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)",
1424 "expected_results": ""
1425 }
1426 },
1427 "summary": "System_can_boot_up_via_USB"
1428 }
1429 },
1430 {
1431 "test": {
1432 "@alias": "bsps-meta-yocto.bsps-meta-yocto.Boot_from_JFFS2_image",
1433 "author": [
1434 {
1435 "email": "yi.zhao@windriver.com",
1436 "name": "yi.zhao@windriver.com"
1437 }
1438 ],
1439 "execution": {
1440 "1": {
1441 "action": "First boot the board with NFS root. ",
1442 "expected_results": "The system can boot up without problem\n"
1443 },
1444 "2": {
1445 "action": "Install mtd-utils package. Erase the MTD partition which will be used as root: $ flash_eraseall /dev/mtd3 ",
1446 "expected_results": ""
1447 },
1448 "3": {
1449 "action": "Copy the JFFS2 image to the MTD partition: $ flashcp core-image-minimal-mpc8315e-rdb.jffs2 /dev/mtd3 ",
1450 "expected_results": ""
1451 },
1452 "4": {
1453 "action": "Then reboot the board and set up the environment in U-Boot: => setenv bootargs root=/dev/mtdblock3 rootfstype=jffs2 console=ttyS0,115200 ",
1454 "expected_results": ""
1455 }
1456 },
1457 "summary": "Boot_from_JFFS2_image"
1458 }
1199 } 1459 }
1200] \ No newline at end of file 1460] \ No newline at end of file