Adding Debian packages: Difference between revisions
No edit summary |
(Add INIT_RELEASE_PARAM) |
||
Line 1: | Line 1: | ||
<!-- Set release according to "release" parameter in URL and use | <!-- Set release according to "release" parameter in URL and use RELEASE_BUSTER_V1.0_DART-MX8M-MINI as default | ||
--> {{ | --> {{INIT_RELEASE_PARAM|RELEASE_BUSTER_V1.0_DART-MX8M-MINI}} <!-- | ||
--> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM | --> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!-- | ||
--> {{PageHeader|{{#var:HARDWARE_NAME}} - Adding Debian Packages}} {{DocImage|category1={{#var:HARDWARE_NAME}}|category2=Debian}} __toc__ | --> {{PageHeader|{{#var:HARDWARE_NAME}} - Adding Debian Packages}} {{DocImage|category1={{#var:HARDWARE_NAME}}|category2=Debian}} __toc__ | ||
= General = | = General = |
Revision as of 22:24, 1 May 2023
This page is using the default release RELEASE_BUSTER_V1.0_DART-MX8M-MINI.
To view this page for a specific Variscite SoM and software release, please follow these steps:
- Visit variwiki.com
- Select your SoM
- Select the software release
General
It's not recommended to duplicate SOM's internal storage/clone from one device to another. There are few scripts run for the first time at startup, and configuration files are generated, which are unique to the SOM. A better approach is to add required packages, services, and applications to the Debian rootfs at compile time using the build script. The resulting rootfs, created by the build script, will then be available as an archive, ready to be deployable for other targets.
Please refer to the Debian Build Release guide to learn more about the build process.
Adding packages to rootfs
If you want to add more packages to the Debian rootfs, add your list of packages to the build script variable G_USER_PACKAGES (already present in the build script).
For example, if you want to add the packages git and vim, you can change
#### user rootfs packages #### readonly G_USER_PACKAGES=""
to
#### user rootfs packages #### readonly G_USER_PACKAGES=" \ git \ vim \ "
File: ~/var_mx8mm_dart_debian_buster/var_make_debian.sh
Then build the rootfs according to the Debian Build Release guide.
Adding application to rootfs
If you have your application to be installed on your rootfs:
Take the forth-stage section of the following script as an example (search for "# fourth-stage" in the script): https://github.com/varigit/debian-var/blob/debian_buster_var01/variscite/weston_rootfs.sh
In this section, the script installs, for example, the service variscite-bt by copying its application files (located at the folder ~/var_mx8mm_dart_debian_buster/variscite) to their proper places in the rootfs.
Build the rootfs
Please refer to the Debian Build Release guide to learn how to use the Debian build script to create the rootfs.