U-BOOT > U-Boot Compilieren > U-BOOT compilieren:

Das Script-File zum compilieren befindet sich im selben Verzeichnis wie im Abschnitt 9.10.1.

 

compile_u-boot_and_copy_to_tftp.sh

#!/bin/sh

 

# compile_u-boot_and_copy_to_tftp.sh

 

PROJECT_NAME=$(./set_project_name.sh)

PROJECT=${PROJECT_NAME}

 

cd source

make CROSS_COMPILE=/usr/local/arm-2007q1/bin/arm-none-linux-gnueabi- all

 

cp u-boot.bin ..

cp u-boot.bin /tftpboot/$PROJECT.bin

cd ..

 

Hier wird direkt das fertige U-BOOT in das TFTP-Server Verzeichnis /tftpboot als "u-boot-1.3.4_ecpu1100.bin" bzw. ”u-boot-1.3.4_ecpu800.bin” kopiert. So kann es vom laufenden U-BOOT auf dem CPU Modul per TFTP gedownloaded werden und ausprobiert werden.

 

Die compilierte Datei ”u-boot.bin” liegt im aktuellen Verzeichnis.

 

Die kann man einfach überprüfen:

ls u-boot.bin –l

 

Die Datei muss das aktuelle Datum und Uhrzeit besitzen.