1795 Install Milk-V Mars in Ubuntu Server riscv64+milkvmars in Noble Daily (archived)

DownloadLink to the download information
1795 Install Milk-V MarsDetailed information on the testcase
Testcase (Report an issue with this testcase)

The scope of this test is to ensure that riscv64+visionfive2 image boots from SD card on Milk-V Mars board

Flash downloaded image onto SD card
You can use Gnome Disks app to restore img.xz onto the SD card
Alternatively you can use xz -d to decompress, and then dd to copy the image to the SD card
Connect networking, serial console to the board
Ethernet cable for networking
USB to TTL adapter for serial console (pinout available here: https://milkv.io/docs/mars/getting-started/setup)
Connect to the serial console
sudo screen /dev/ttyUSB0 115200
Power on the board
You should see U-BOOT output
It should then boot GRUB after a delay
You should see GRUB menu
It should then boot the default kernel after a delay
After a while cloud-init will run
Wait for the 'Cloud-init finished' message
Then one will be able to login
Login and change password
Login using ubuntu for both username and password
Reenter ubuntu password again
Set new password
Confirm the new password
Perform generic testing
Check that apt update works
Run any command that is not installed, check that command-not-found recommends things to install
e.g. hello
Install a package and check that it works, e.g. hello
Reboot
The board should reboot normally
Poweroff
Console messages should reach poweroff target
There should be final kernel dmsg powering off
Manually turn power-off from the board

If all actions produce the expected results listed, please submit a 'passed' result.
If an action fails, or produces an unexpected result, please submit a 'failed' result and file a bug. Please be sure to include the bug number when you submit your result.

ReporterLast updateBugsComment
Passedravi-sharma2024-08-30 03:02

Step 1 to 5 and 7 works. 6 needs me to connect to an Ethernet cable. It is in progress.
====================================================
It is kernel panic every time I boot the board with ethernet connected.

[ 427.326851] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
[ 427.335827] Oops [#1]
[ 427.338146] Modules linked in: qrtr cfg80211 binfmt_misc nls_iso8859_1 cdns3 snd_soc_simple_card cdns_usb_common snd_soc_spdif_tx jh7110_pwmdac snd_soc_simple_card_utils udc_core input_le
ds snd_soc_core joydev snd_compress ofpart cmdlinepart ac97_bus cdns3_starfive snd_pcm_dmaengine axp20x_pek spi_nor snd_pcm dw_axi_dmac_platform mtd snd_timer pwm_ocores sfctemp snd soundcor
e uio_pdrv_genirq uio dm_multipath efi_pstore nfnetlink ip_tables x_tables autofs4 btrfs hid_generic blake2b_generic usbhid hid raid10 raid456 async_raid6_recov async_memcpy async_pq async_x
or async_tx xor raid6_pq libcrc32c raid1 raid0 motorcomm dwmac_starfive stmmac_platform stmmac axp20x_regulator xhci_pci xhci_pci_renesas pcs_xpcs axp20x_i2c spidev phylink clk_starfive_jh71
10_vout clk_starfive_jh7110_isp axp20x phy_jh7110_usb phy_jh7110_pcie spi_cadence_quadspi dw_mmc_starfive dw_mmc_pltfm dw_mmc pinctrl_starfive_jh7110_aon jh7110_trng clk_starfive_jh7110_aon
clk_starfive_jh7110_stg spi_pl022
[ 427.425041] CPU: 0 PID: 1626 Comm: open-iscsi.fina Not tainted 6.8.0-41-generic #41.1-Ubuntu
[ 427.433606] Hardware name: Milk-V Mars (DT)
[ 427.437858] epc : skb_add_rx_frag+0x30/0xbc
[ 427.442120] ra : stmmac_rx+0x36c/0xb10 [stmmac]
[ 427.447131] epc : ffffffff80a4874c ra : ffffffff02706b48 sp : ffffffc800003c50
[ 427.454461] gp : ffffffff8218fd28 tp : ffffffd8c30e9d80 t0 : ffffffd8c3fefee0
[ 427.461791] t1 : 0000000000001010 t2 : 0000000000000000 s0 : ffffffc800003c60
[ 427.469121] s1 : 00000000000bfa3c a0 : ffffffd8c0eb5b00 a1 : 00000000000000fe
[ 427.476449] a2 : 0000000000000000 a3 : 0000000000000000 a4 : 000000000000003c
[ 427.483776] a5 : 0000000000000600 a6 : ffffffd8c3ff0ed0 a7 : 000000000000003c
[ 427.491105] s2 : ffffffd8be200360 s3 : ffffffd8c0eb5b00 s4 : ffffffd8cbd209e0
[ 427.498434] s5 : ffffffd8cbd209e0 s6 : 0000000000000000 s7 : 0000000000000000
[ 427.505763] s8 : ffffffd8cbd209e0 s9 : 0000000000000000 s10: ffffffd8c39e8870
[ 427.513091] s11: 0000000000000037 t3 : 0000000000000000 t4 : 0000000000000000
[ 427.520420] t5 : 0000000000000600 t6 : ffffffd8c3fefe82
[ 427.525813] status: 0000000200000120 badaddr: 0000000000000008 cause: 000000000000000d
[ 427.533845] [<ffffffff80a4874c>] skb_add_rx_frag+0x30/0xbc
[ 427.539432] Code: 0207 d893 0208 981a e8b3 00d8 3423 0118 3023 00c8 (3803) 0086
[ 427.546977] ---[ end trace 0000000000000000 ]---
[ 427.551706] Kernel panic - not syncing: Fatal exception in interrupt
[ 427.558158] SMP: stopping secondary CPUs
[ 427.562152] Kernel Offset: 0x0 from 0xffffffff80000000
[ 427.567375] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
====================================================
logging more information message.

[ 26.365098] starfive-dwmac 16030000.ethernet: Failed to reset the dma
[ 26.380572] starfive-dwmac 16030000.ethernet end0: stmmac_hw_setup: DMA engine initialization failed
[ 26.398621] starfive-dwmac 16030000.ethernet end0: __stmmac_open: Hw setup failed
====================================================
with some luck, I was able to configure the network.

ubuntu@ubuntu:~$ sudo netplan status
Online state: online
DNS Addresses: 127.0.0.53 (stub)
DNS Search: fritz.box

● 1: lo ethernet UNKNOWN/UP (unmanaged)
MAC Address: 00:00:00:00:00:00
Addresses: 127.0.0.1/8
::1/128

● 2: end0 ethernet UP (networkd: end0)
MAC Address: 6c:cf:39:00:92:39
Addresses: 192.168.178.27/24 (dhcp)
2a00:1f:9600:d801:6ecf:39ff:fe00:9239/64
fe80::6ecf:39ff:fe00:9239/64 (link)
DNS Addresses: 192.168.178.1
fd00::4a5d:35ff:fee0:fe0d
2a00:1f:9600:d801:4a5d:35ff:fee0:fe0d
DNS Search: fritz.box
Routes: default via 192.168.178.1 from 192.168.178.27 metric 100
(dhcp)
192.168.178.0/24 from 192.168.178.27 metric 100 (link)
192.168.178.1 from 192.168.178.27 metric 100 (dhcp, link)
2a00:1f:9600:d801::/64 metric 100 (ra)
2a00:1f:9600:d800::/56 via fe80::4a5d:35ff:fee0:fe0d metric
100 (ra)
fe80::/64 metric 256
default via fe80::4a5d:35ff:fee0:fe0d metric 100 (ra)
====================================================
tests 6 and 8 passed as well.

ubuntu@ubuntu:~$ neofetch
.-/+oossssoo+/-. ubuntu@ubuntu
`:+ssssssssssssssssss+:` -------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 24.04.1 LTS riscv64
.ossssssssssssssssssdMMMNysssso. Host: Milk-V Mars
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 6.8.0-41-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 11 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 747 (dpkg)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.2.21
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080
ossyNMMMNyMMhsssssssssssssshmmmhssssssso Terminal: /dev/ttyS0
ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: (4) @ 1.500GHz
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Memory: 184MiB / 7935MiB
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso.
-+sssssssssssssssssyyyssss+-
`:+ssssssssssssssssss+:`
.-/+oossssoo+/-.
====================================================
ubuntu@ubuntu:~$ sudo apt install hello
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
hello
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.9 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports noble/main riscv64 hello riscv64 2.10-3build1 [28.9 kB]
Fetched 28.9 kB in 0s (162 kB/s)
Selecting previously unselected package hello.
(Reading database ... 85815 files and directories currently installed.)
Preparing to unpack .../hello_2.10-3build1_riscv64.deb ...
Unpacking hello (2.10-3build1) ...
Setting up hello (2.10-3build1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for install-info (7.1-3build2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ubuntu@ubuntu:~$ hello
Hello, world!

Link to the testcase revision
Add a test result

You need to be logged in to submit your test results.