REL 1.0
Page 20 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
2.3.1
U-Boot
Create a directory and open the directory in host to build the uboot
host@host~$mkdir <directory_name>
host@host~$cd <directory_name>
The u-boot source code tar file from deliverables is located in the below path.
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-YoctoKrogoth_Deliverables/Source-Code/U-Boot/u-
boot-iwg15.tar.gz
Un-tar the downloaded u-boot-iwg15.tar.gz file in to newly created directory.
host@host/<directory>~$tar -xvf /<path to iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables
>/iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables/Source-Code/U-Boot/u-boot-iwg15.tar.gz
Copy the u-boot patch file to current directory.
host@host/<directory>~$cp
/<path
to
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables>/iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables/Source-Code/U-Boot/PATCH001-iW-PRDVZ-SC-01-RX.X-RELX.X-
Linux4.1.15_UBoot_basic_customization.patch .
Change the directory to u-boot source code directory.
host@host/<directory>~$cd /<path to u-boot source>/u-boot-iwg15
To apply the patch file, execute the below command.
host@host/<directory>/u-boot-iwg15~$patch -Np1 < ../PATCH001-iW-PRDVZ-SC-01-RX.X-RELX.X-
Linux4.1.15_UBoot_basic_customization.patch
To export the Cross Compiler and tool chain path, execute the below command.
host@host/<Directory>/u-boot-iwg15~$export ARCH=arm
host@host/<Directory>/uboot-iwg15~$export
PATH=$PATH:/opt/fsl-imx-x11/4.1.15-
2.1.0/sysroots/<processor>-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
host@host/<Directory>/u-boot-iwg15~$export CROSS_COMPILE=arm-poky-linux-gnueabi-
To configure for iWave-G15M-Q7 platform, execute the below command.
host@host/<directory>/u-boot-iwg15~$make mx6_iwg15m_q7_defconfig
To compile the u-boot source code, execute the below command.
host@host/<directory>/u-boot-iwg15~$make CC="arm-poky-linux-gnueabi-gcc --sysroot=/opt/fsl-
imx-x11/4.1.15-2.1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/"
After successful compilation, boot loader image (u-boot.imx) will be created in below path.
~/u-boot-iwg15/u-boot.imx
Refer the BINARY PROGRAMMING section to update the u-boot binary.