u-boot binary too large on compile
-
I am trying to compile basic u-boot binaries using the configuration from here:
https://github.com/OnionIoT/u-boot/blob/master/configs/onion-omega2p_defconfigI am able to succesfully compile the make but get a u-boot.bin much larger than expected. I get a u-boot.bin of 487 kb while most images i found from the Onion are arond 170 kb. Moreover the Onion has a 192kb max sixe for the bootloader so was wondering if anyone could help me in the right direction. Any help would be greatly appreciated
Here are the steps i took in Ubuntu 22.04.04
sudo apt-get update sudo apt-get install build-essential libncurses5-dev bc gcc-multilib Wget https://downloads.openwrt.org/releases/21.02.3/targets/ramips/mt76x8/openwrt-sdk-21.02.3-ramips-mt76x8_gcc-8.4.0_musl.Linux-x86_64.tar.xz tar -xvf openwrt-sdk-21.02.3-ramips-mt76x8_gcc-8.4.0_musl.Linux-x86_64.tar.xz cd openwrt-sdk-21.02.3-ramips-mt76x8_gcc-8.4.0_musl.Linux-x86_64 export STAGING_DIR=$(pwd)/staging_dir export PATH=$PATH:$STAGING_DIR/toolchain-mipsel_24kc_gcc-8.4.0_musl/bin export CROSS_COMPILE=mipsel-openwrt-linux- git clone https://github.com/OnionIoT/u-boot.git cd u-boot/ make onion-omega2p_defconfig Make
-
@baby-Onioneer Just use these steps:
git clone https://github.com/OnionIoT/omega2-bootloader.git
cd omega2-bootloader
./setup_env.sh
makeYou can check the repo for any other details you may need.
-
@crispyoz said in u-boot binary too large on compile:
I did succesfully compile that one before but dont see a defconfig file for me to edit and play with, which is why I was using the other git repo. Am I incorrect there and there is a defconfig file I can edit? I found nothing from a find command.
-
@baby-Onioneer There's no defconfig I have seen in that repo. There a are stack of them for various devices under the main build system. Look in the <build root>/build-dir/hosts/<u-boot version>/configs. Nothing specific to the Omega2 there.
-
@crispyoz Thank