Debian Build Release: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
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}} | ||
| | | | ||
}} | |||
}} | }} | ||
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
- Follow the above steps for make rootfs, kernel, bootloader;
- Insert the SD card to card reader connected to a host system;
- 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