OK3568 4.19.206 Buildroot Modification of BusyBox Configuration

Document classification: □ Top secret □ Secret □ Internal information ■ Open

Modification of BusyBox Configuration

This document takes adding the -z parameter to the tar command as an example..

[root@ok3568:/]# tar --help
BusyBox v1.27.2 (2023-03-19 08:54:20 PDT) multi-call binary.

Usage: tar -[cxthvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
        c       Create
        x       Extract
        t       List
        f       Name of TARFILE ('-' for stdin/out)
        C       Change to DIR before operation
        v       Verbose
        O       Extract to stdout
        h       Follow symlinks
        exclude File to exclude
        X       File with names to exclude
        T       File with names to include
[root@ok3568:/]#

Execute the following command in the Ubuntu source directory /OK3568-linux-source/buildroot/output/OK3568 to enter the busybox configuration interface.

source/buildroot/output/OK3568$ make busybox-menuconfig		//If an error is reported, execute sudo
make busybox-menuconfig

In the graphical interface, locate the two marked options and enable them.

Image

Press Esc to exit and select Yes to save the configuration.

Image

Regenerate the file system.

forlinx@ubuntu:~/3568/OK3568-linux-source$ ./build.sh  buildroot

The generated busybox is located at /OK3568-linux-source/buildroot/output/OK3568/build/busybox-1.27.2/busybox-1.27.2.tar. Extract it to the root directory of the development board for use.

[root@ok3568:/home]# tar --help
BusyBox v1.27.2 (2024-08-01 16:11:32 CST) multi-call binary.

Usage: tar -[cxtzjhvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
        c       Create
        x       Extract
        t       List
        f       Name of TARFILE ('-' for stdin/out)
        C       Change to DIR before operation
        v       Verbose
        z       (De)compress using gzip
        j       (De)compress using bzip2
        O       Extract to stdout
        h       Follow symlinks
        exclude File to exclude
        X       File with names to exclude
        T       File with names to include