Astra 开发套件的eMMC分区定制
The main internal storage used for Astra Machina is the eMMC chip located on the Core Module. The eMMC has partitions for firmware, the root fs, and a home partition. These partitions can be resized to allow more data to be stored in a specific partition. The most common use case would be to enlarge the root fs to accommodate more packages being installed on the board.
Partition Size
Partition Name
Erase / Format
First Action
Write Protection
16M@16M
factory_setting
format
default
none
1M
key_a
default
default
none
7M
tzk_a
default
default
none
1M
key_b
default
default
none
7M
tzk_b
default
default
none
16M
bl_a
default
default
none
16M
bl_b
default
default
none
32M
boot_a
default
default
none
32M
boot_b
default
default
none
32M
firmware_a
default
default
none
32M
firmware_b
default
default
none
1408M
rootfs_a
default
default
none
1408M
rootfs_b
default
default
none
16M
fastlogo_a
default
default
none
16M
fastlogo_b
default
default
none
2M
devinfo
erase
default
none
2M
misc
erase
default
none
.
home
default
default
none
The default image layout for SL1620, SL1640, and SL1680. As of v1.2.0, the home partition is resized to the use the remaining space left at the end of the eMMC.
Some partitions have a and b versions. These redundant partitions are used to support system update.
备注
Enlarging an ab partition will require 2x additional space on the eMMC.
调整分区大小
The eMMC partition layout is set in the emmc.pt
file included in the synasdk-config-native
package.
Use the devtool
utility to modify the config file:
devtool modify synasdk-config-native
The devtool
utility will create the build-sl1680/workspace/sources/synasdk-config-native/configs/product
directory which will contain the source for the config package.
In the product directory is a subdirectory containing a config file for each of the platforms.
Edit the emmc.pt
file for the platform which you are building for.
For example, to change the root fs partition size for SL1680, edit sl1680_poky_aarch64_rdk/emmc.pt
.

Change made to double the root fs partition on SL1680
增加整个eMMC的大小
The default eMMC image size is 16GB. This is the minimum eMMC size for Astra Machina Core Modules. If you have a device with a larger eMMC and would like to allocate more space to system partitions, then you can enlarge the total eMMC size to accommodate the larger partitions.
The total eMMC size is set in the in the configuration file included in the synasdk-config-native
package.
Set the CONFIG_EMMC_TOTAL_SIZE
parameter to the to the total size of the eMMC on your board.

Setting the total eMMC size to 32GB on SL1680
构建 更新的镜像
Finally, build an image with the modified eMMC partition layout:
devtool build synasdk-config-native
devtool build-image astra-media
In dual display setups, it can be useful to set which display new applications (Weston Clients)
should open in. Astra RDK supports specifying which display should be the default.
This is done by setting the default display name in a file and setting the
SHELL_OVERRIDE_DISPLAY_WINDOW
parameter in /etc/default/weston
, to the path of that file.
Identify then name of the display by looking at the ‘Connectors’ section using the command:
modetest -M synaptics
Create a file in any location on the board which holds the name of the display.
In this example we are using DSI-1
:
echo "DSI-1" > /home/root/def_disp
Set the SHELL_OVERRIDE_DISPLAY_WINDOW
parameter in /etc/default/weston
:
SHELL_OVERRIDE_DISPLAY_WINDOW=/home/root/def_disp
Restart the Weston service to allow the change to take affect.
systemctl restart weston
New applications will now open in the display named in /home/root/def_disp
.
To change the default display, simply update this file and restart Weston.