You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mars/getting-started/boot.md
+36-6
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
sidebar_label: 'Boot the Mars'
3
3
sidebar_position: 10
4
4
---
5
-
# Boot Mars from microSD card
5
+
##Boot Mars from microSD card
6
6
7
-
## Prepare
7
+
###Prepare
8
8
9
9
- Necessary
10
10
- Mars
@@ -14,12 +14,12 @@ sidebar_position: 10
14
14
- USB to TTL serial cable
15
15
- HDMI cable
16
16
17
-
## Download images and tools
17
+
###Download images and tools
18
18
19
19
- Download the system image from [Official Image](https://milkv.io/docs/mars/getting-started/images#official-image).
20
20
- Download the flash tool, [balenaEtcher](https://etcher.balena.io/) or [Rufus](https://rufus.ie/en/).
21
21
22
-
## Burn image
22
+
###Burn image
23
23
24
24
Here are the steps for using balenaEtcher.
25
25
@@ -35,12 +35,42 @@ Here are the steps for using balenaEtcher.
35
35
36
36

37
37
38
-
## Power on
38
+
###Power on
39
39
40
40
Insert the microSD card with the burned firmware into the Mars microSD card slot. Use an adapter (5V) to connect Mars via a Type-C cable. Mars will automatically power on and the red power LED on the board will light up. After the system starts successfully, the green status LED on the board will flash.
41
41
42
42
If an HDMI monitor is connected, the Debian desktop will be displayed after booting.
43
43
44
-
## Troubleshooting
44
+
###Troubleshooting
45
45
46
46
If you have a problem, go to our [community](https://community.milkv.io/) and post to let us know.
47
+
48
+
49
+
## Boot Mars from USB drive
50
+
51
+
* Note: The USB drive booting process is a bit complicated, it is recommended to use the microSD card to boot Mars. The USB drive can only be plugged into the USB3.0 port.
52
+
53
+
Use a serial cable to connect to the serial debugging port of Mars. When powering on Mars, press any key to interrupt the boot process and enter the U-Boot command line.
54
+
55
+
In the U-Boot command line, enter the following commands:
56
+
57
+
```bash
58
+
setenv boot_devs 'mmc nvme usb'
59
+
setenv distro_bootenv_usb 'setenv bootdev usb; setenv devnum 0; run usb_boot'
60
+
saveenv
61
+
```
62
+
63
+
Download the image and burn it to the USB drive. Use the microSD card to boot Mars, insert the USB drive into Mars, and modify the `extlinux.conf` file on the USB drive.
64
+
65
+
```bash
66
+
sudo mount /dev/sad3 /mnt
67
+
sudo nano /mnt/extlinux/extlinux.conf
68
+
```
69
+
70
+
In the `extlinux.conf`, modify the `APPEND` line, change `root=/dev/mmcblk1p4` to `root=/dev/sda4`, as shown below:
0 commit comments