Merge ~xypron/ubuntu-manual-tests:visionfive2 into ubuntu-manual-tests:main

Proposed by Heinrich Schuchardt
Status: Merged
Merged at revision: d31b57554b4688cbaaf6e1e5a47fcc355742c5d6
Proposed branch: ~xypron/ubuntu-manual-tests:visionfive2
Merge into: ubuntu-manual-tests:main
Diff against target: 83 lines (+41/-3)
4 files modified
testcases/image/1754_Install VisionFive (+1/-1)
testcases/image/1755_Install Nezha (+1/-1)
testcases/image/1756_Install LicheeRV (+1/-1)
testcases/image/1780_Install VisionFive 2 (+38/-0)
Reviewer Review Type Date Requested Status
Brian Murray Pending
Review via email: mp+440491@code.launchpad.net

Commit message

riscv: Add testcase for StarFive VisionFive 2

Description of the change

riscv: correct ttyUSB device

VisonFive, Nezha D1, and LicheeRV use a single UART. When using a TTL to
USB converted this typically is shown as /dev/ttyUSB0.

riscv: Add testcase for StarFive VisionFive 2

A new testcase is added.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/testcases/image/1754_Install VisionFive b/testcases/image/1754_Install VisionFive
2index 3294484..9e9efd7 100755
3--- a/testcases/image/1754_Install VisionFive
4+++ b/testcases/image/1754_Install VisionFive
5@@ -8,7 +8,7 @@ The scope of this test is to ensure that riscv64+visionfive image boots from SD
6 <dd>Ethernet cable for networking</dd>
7 <dd>FTDI adapter for serial console (pinout available here: https://rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide)</dd>
8 <dt>Connect to the serial console</dt>
9- <dd>sudo screen /dev/ttyUSB1 115200</dd>
10+ <dd>sudo screen /dev/ttyUSB0 115200</dd>
11 <dt>Power on the board</dt>
12 <dd>You should see U-BOOT menu</dd>
13 <dd>It should then boot GRUB after a delay</dd>
14diff --git a/testcases/image/1755_Install Nezha b/testcases/image/1755_Install Nezha
15index 9d1d5be..677d1ad 100755
16--- a/testcases/image/1755_Install Nezha
17+++ b/testcases/image/1755_Install Nezha
18@@ -8,7 +8,7 @@ The scope of this test is to ensure that riscv64+nezha image boots from SD card
19 <dd>Ethernet cable for networking</dd>
20 <dd>FTDI adapter for serial console (pinout available here: https://linuxgizmos.com/files/rvboards_nezha_detail.jpg)</dd>
21 <dt>Connect to the serial console</dt>
22- <dd>sudo screen /dev/ttyUSB1 115200</dd>
23+ <dd>sudo screen /dev/ttyUSB0 115200</dd>
24 <dt>Power on the board</dt>
25 <dd>You should see U-BOOT menu</dd>
26 <dd>It should then boot GRUB after a delay</dd>
27diff --git a/testcases/image/1756_Install LicheeRV b/testcases/image/1756_Install LicheeRV
28index 18cf8f7..416cccb 100755
29--- a/testcases/image/1756_Install LicheeRV
30+++ b/testcases/image/1756_Install LicheeRV
31@@ -7,7 +7,7 @@ The scope of this test is to ensure that riscv64+licheerv image boots from SD ca
32 <dt>Connect serial console to the board</dt>
33 <dd>FTDI adapter for serial console (pinout available here: https://popolon.org/depots/RISC-V/D1/LicheeRV/dl.sipeed.com/Lichee_RV_Dock/1_Datasheet/Sipeed%20Lichee%20RV%20DOCK%20Datasheet%20V1.0.pdf)</dd>
34 <dt>Connect to the serial console</dt>
35- <dd>sudo screen /dev/ttyUSB1 115200</dd>
36+ <dd>sudo screen /dev/ttyUSB0 115200</dd>
37 <dt>Power on the board</dt>
38 <dd>You should see U-BOOT menu</dd>
39 <dd>It should then boot GRUB after a delay</dd>
40diff --git a/testcases/image/1780_Install VisionFive 2 b/testcases/image/1780_Install VisionFive 2
41new file mode 100755
42index 0000000..640df46
43--- /dev/null
44+++ b/testcases/image/1780_Install VisionFive 2
45@@ -0,0 +1,38 @@
46+The scope of this test is to ensure that riscv64+visionfive2 image boots from SD card on StarFive VisionFive 2 board
47+
48+<dl>
49+ <dt>Flash downloaded image onto SD card</dt>
50+ <dd>You can use Gnome Disks app to restore img.xz onto the SD card</dd>
51+ <dd>Alternatively you can use xz -d to decompress, and then dd to copy the image to the SD card</dd>
52+ <dt>Connect networking, serial console to the board</dt>
53+ <dd>Ethernet cable for networking</dd>
54+ <dd>FTDI adapter for serial console (pinout available here: https://rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide)</dd>
55+ <dt>Connect to the serial console</dt>
56+ <dd>sudo screen /dev/ttyUSB0 115200</dd>
57+ <dt>Power on the board</dt>
58+ <dd>You should see U-BOOT output</dd>
59+ <dd>It should then boot GRUB after a delay</dd>
60+ <dd>You should see GRUB menu</dd>
61+ <dd>It should then boot the default kernel after a delay</dd>
62+ <dd>After a while cloud-init will run</dd>
63+ <dd>Wait for the 'Cloud-init finished' message</dd>
64+ <dd>Then one will be able to login</dd>
65+ <dt>Login and change password</dt>
66+ <dd>Login using ubuntu for both username and password</dd>
67+ <dd>Reenter ubuntu password again</dd>
68+ <dd>Set new password</dd>
69+ <dd>Confirm the new password</dd>
70+ <dt>Perform generic testing</dt>
71+ <dd>Check that apt update works</dd>
72+ <dd>Run any command that is not installed, check that command-not-found recommends things to install</dd>
73+ <dd>e.g. hello</dd>
74+ <dd>Install a package and check that it works, e.g. hello</dd>
75+ <dt>Reboot</dt>
76+ <dd>The board should reboot normally</dt>
77+ <dt>Poweroff</dt>
78+ <dd>Console messages should reach poweroff target</dd>
79+ <dd>There should be final kernel dmsg powering off</dd>
80+ <dd>Manually turn power-off from the board</dd>
81+</dl>
82+<strong>If all actions produce the expected results listed, please <a href="results#add_result">submit</a> a 'passed' result.
83+ If an action fails, or produces an unexpected result, please <a href="results#add_result">submit</a> a 'failed' result and <a href="../../buginstructions">file a bug</a>. Please be sure to include the bug number when you <a href="results#add_result">submit</a> your result.</strong>

Subscribers

People subscribed via source and target branches