OK3568 4.19.206 Buildroot Installing Bridge Tool (bridge-utils) in Buildroot

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

Revision History

Date

Version

Revision History

04/08/2022

V1.0

Initial Version

Installing Bridge Tool (bridge-utils) in Buildroot

Navigate to the /OK3568-linux-source/buildroot/output/OK3568 directory and execute the make menuconfig command.

Press the / key to open the search box. Enter the keyword bridge_utils, select OK, and press Enter.

Image

Once the result appears, press 1 to jump to the configuration page.

Image

Select bridge-utils by marking it with y.

Image

Continuously select Exit until you leave the graphical configuration interface. When prompted to save the configuration upon exiting, choose yes.

Image

Switch to the /OK3568-linux-source directory and execute the ./build.sh buildroot command.

Image

You will be prompted that a .config file already exists and asked if you want to regenerate it. Enter n (no); otherwise, your previous configuration will be overwritten.

After compilation completes, a rootfs.ext2 file will be generated in the OK3568-linux-source/buildroot/output/OK3568/images directory. Flash this file individually to the development board.

Image

If the above steps result in an error, your kernel might have been compiled with CONFIG_BRIDGE = n)

Kernel Support for Bridge

Added at the end of the/OK3568-linux-source/kernel/arch/arm64/configs/OK3568-C- Linux _ defconfig.

CONFIG _ BRIDGE = y save file

Switch to the /OK3568-linux-source directory and execute the ./build.sh kernel command.

This will generate a boot.img file in the /OK3568-linux-source/kernel/ directory. Flash the boot.img file individually to the development board. After this, the brctl command should function normally.

Configuring the Network Bridge

Set the IP addresses for eth0 and eth1 by editing the file /etc/network/interfaces (e.g., using vi).

Image

Create the self-start script vi/etc/init. d/S99 bridge.

Image

Test tcp and udp communication.

Image

Image