-
Notifications
You must be signed in to change notification settings - Fork 10
Compiling
This guide provides instructions for compiling U-Boot for various Ingenic devices using the u-boot-ingenic
repository. Follow these steps to clone the repository and run the build script.
First, clone the u-boot-ingenic
repository from GitHub:
git clone https://github.com/gtxaspec/u-boot-ingenic
Navigate to the cloned repository directory and run the build.sh
script:
cd u-boot-ingenic
./build.sh
-
Compile All Platforms: By default, running the script without any arguments will compile U-Boot for all supported platforms.
-
Compile for a Specific Device: To compile only for a specific device, specify the device code as an argument. For example, to compile for the T31X platform, use:
./build.sh t31x
Build Logging: By default, build logs are stored in building-tXX.log
. To redirect these logs to the console instead, use the following command:
./build.sh t31x debug
Here are the device codes and their corresponding configurations:
-
T10 Series:
-
t10n
= "isvp_t10_sfcnor" -
t10l
= "isvp_t10_sfcnor_lite" -
t10n_msc0
= "isvp_t10_msc0"
-
-
T20 Series:
-
t20n
= "isvp_t20_sfcnor" -
t20l
= "isvp_t20_sfcnor_lite" -
t20x
= "isvp_t20_sfcnor_ddr128M" -
t20n_msc0
= "isvp_t20_msc0"
-
-
T21 Series:
-
t21n
= "isvp_t21_sfcnor" -
t21n_msc0
= "isvp_t21_msc0"
-
-
T23 Series:
-
t23n
= "isvp_t23n_sfcnor" -
t23n_msc0
= "isvp_t23n_msc0"
-
-
T30 Series:
-
t30n
= "isvp_t30_sfcnor" -
t30l
= "isvp_t30_sfcnor_lite" -
t30x
= "isvp_t30_sfcnor_ddr128M" -
t30a
= "isvp_t30a_sfcnor_ddr128M" -
t30a1
= "isvp_t30a1_sfcnor_ddr128M" -
t30n_msc0
= "isvp_t30_msc0"
-
-
T31 Series:
-
t31n
= "isvp_t31_sfcnor" -
t31l
= "isvp_t31_sfcnor_lite" -
t31lc
= "isvp_t31lc_sfcnor" -
t31x
= "isvp_t31_sfcnor_ddr128M" -
t31a
= "isvp_t31a_sfcnor_ddr128M" -
t31al
= "isvp_t31al_sfcnor_ddr128M" -
t31n_msc0
= "isvp_t31_msc0" -
t31a_msc0
= "isvp_t31a_msc0_ddr128M" -
t31al_msc0
= "isvp_t31al_msc0_ddr128M"
-
- Ensure you have the required build tools and dependencies installed before running the build script. The following:
build-essential gcc-12 gcc-12-mipsel-linux-gnu lzop u-boot-tools
packages are recommended for compilation on debian based distributions. - For specific build options or additional configurations, refer to the documentation within the repository or the build script itself.