Debian Build Release: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{#var:TI_RELEASE}} | 08.06.00.42 |
<!-- Set release according to "release" parameter in URL and use RELEASE_STRETCH_V3.0_DART-6UL as default
<!-- Set release according to "release" parameter in URL and use RELEASE_STRETCH_V3.0_DART-6UL as default
--> {{INIT_RELEASE_PARAM|RELEASE_STRETCH_V3.0_DART-6UL}} <!--
--> {{INIT_RELEASE_PARAM|RELEASE_STRETCH_V3.0_DART-6UL}} <!--
Line 360: Line 361:
refer to {{Varlink|IMX8_Debian_XWayland|{{#var:RELEASE_LINK}}|XWayland Example}}
refer to {{Varlink|IMX8_Debian_XWayland|{{#var:RELEASE_LINK}}|XWayland Example}}
|
|
}}
}}
}}


Line 371: Line 373:
|description=Debian project is a  Linux distributions for embedded devices. Debian big varities of pre-built packages
|description=Debian project is a  Linux distributions for embedded devices. Debian big varities of pre-built packages
and easy to customization provides rapid prototyping with minimal efforts.  
and easy to customization provides rapid prototyping with minimal efforts.  
This release is based on TI's [{{#var:TI_RELEASE_NOTES}} {{#var:TI_RELEASE}}] Release. Variscite extends TI's release to support its VAR-SOM-AM62 System On Module.  
This release is based on TI's [{{#var:TI_RELEASE_NOTES}} {{#var:TI_RELEASE}}] Release. Variscite extends TI's release to support its VAR-SOM-AM62 System On Module.  
Release version: '''{{#var:RELEASE_NAME}}'''
Release version: '''{{#var:RELEASE_NAME}}'''
|category1=VAR-SOM-AM62
|category1=VAR-SOM-AM62
Line 379: Line 379:
|documentation=
|documentation=
{{OS_Overview_General_Column}}<!--
{{OS_Overview_General_Column}}<!--
-->{{OS_Overview_Build_Column_AM62}}<!--
-->{{OS_Overview_Build_Column_AM62_DEBIAN}}<!--
-->{{OS_Overview_HowTo_Column_AM62}}}}
-->{{OS_Overview_HowTo_Column_AM62}}}}
{{NONUMBEREDHEADINGS}}
{{NONUMBEREDHEADINGS}}
}}
}}

Latest revision as of 14:32, 26 November 2024

& tee build.log


Build by parts

Build bootloader

$ cd 
$ sudo  -c bootloader


Expression error: Unexpected >= operator.

Build rootfs

Internet connection should be available

$ cd 
$ sudo  -c rootfs


Pack rootfs

To create the root file system archive (rootfs.tar.gz) and UBI image (rootfs.ubi.img), run the following commands:

$ cd 
$ sudo  -c rtar
$ sudo  -c rubi



Create boot SD card

  1. Follow the above steps for make rootfs, kernel, bootloader;
  2. Insert the SD card to card reader connected to a host system;
  3. Run the following commands (Caution! All data on the card will be destroyed):
$ cd 
$ sudo  -c sdcard -d /dev/sdX


where '/dev/sdX' path to the block SD device in your system.

Create a boot SD card image using a loop device

It is also possible to use the "" script to create a boot SD card image, while using a loop device instead of attaching a real SD card.

Create an empty file using the following command:

$ dd if=/dev/zero of=-debian-sd.img bs=1M count=3720

The above command creates a 3700MiB file representing the SD card.

Attach the first available loop device to this file:

$ sudo losetup -Pf -debian-sd.img

To find the actual loop device being used, run:

$ losetup -a