Wednesday, March 17, 2010

Enable "Large File Support" in uClibc

Sources:

[1] Blackfin uClinux (http://docs.blackfin.uclinux.org/doku.php?id=faq)

Steps:

1. Jump to a toolchain source folder

cd /opt/ifx-lxdb-1-2


2. Delete ".configured" file (it was created once the toolchain built)

rm -f .configured


3. Enable LFS (Large File Support) in the configuration files

cd source/uclibc
chmod 666 ifx-uClibc-def-config.mips
chmod 666 ifx-uClibc-opt-config.mips


Replace
# UCLIBC_HAS_LFS is not set

with
UCLIBC_HAS_LFS=y

in both files.

4. Return to the top folder and build the toolchain again.

cd ../..
./setup.sh all

No comments: