Releases: cwt/duo-buildroot-sdk
Proof of Concept 1
Proof of Concept 1
This is a proof of concept, demonstrating the successful execution of Alpine Linux on the Milk-V Duo. Several components exist solely within the disk image and have yet to be integrated into the source repository. A considerable part of this process involves manual configuration, file copying, and modifications.
The goal is to thoroughly document these steps and provide them in the form of an automated script in the near future.
Usage
The default mode is RNDIS, akin to the official Milk-V Duo disk image. Alpine runs the "blink" service to make the blue LED blink, just like the official image. Let the LED blink for a while until the RNDIS service becomes ready, then you can SSH into the board using the following command:
$ ssh [email protected]
The password is milkv
.
There are three USB modes available: usb-rndis
(the default), usb-host
, and usb-mass-storage
(msc). If you wish to use the Duo with the "Duo USB&Ethernet IOB," you should disable usb-rndis
and enable usb-host
using the following commands:
milkv-duo:~# rc-update del usb-rndis
milkv-duo:~# rc-update add usb-host
Power off the board, connect it to the IOB, and power it on again.
Maximizing the Partition
To maximize the rootfs partition, please follow the instructions below:
- Turn off swap:
milkv-duo:~# swapoff /dev/mmcblk0p3
- Use fdisk to work on your micro SD card:
milkv-duo:~# fdisk /dev/mmcblk0
-
Delete partitions 3 and 2, then create partition 2 with the first sector at 264192 and the last sector as the default value provided by fdisk, minus 131072. For example, on my 128GB micro SD, the default last sector value is 249737215, so you should enter 249606143. It will ask you whether to remove the ext4 signature, to which you must answer N.
-
Create partition 3 with all default values.
-
Change the last partition type to "Linux Swap" with the following command: t, 3, 82.
-
Now you can write the changes.
-
Run the following command to maximize and create swap:
milkv-duo:~# resize2fs /dev/mmcblk0p2
milkv-duo:~# mkswap /dev/mmcblk0p3
- Reboot the system.