This document describes how to build the source code for the silex SX-560. The following tarballs are included: u-boot-1.2.tar.bz2 Das U-Boot V1.2 the Universal Boot Loader s3c-linux-2.16.11.tar.bz2 Linux kernel for Samsung S3C2412 buildroot-snapshot.tar.bz2 Buildroot snapshot busybox-1.10.4.tar.bz2 Busybox tools V1.10.4 net-snmp-5.4.2-pre2.tar.bz2 SNMP libraries openssl-0.9.8g.tar.bz2 OpenSSL buildroot-downloads.tar.bz2 uClibc, binutils, gcc, etc. buildroot.config configuration file for buildroot Note that buildroot-downloads.tar.bz2 is not required because buildroot will download what it needs automatically. But buildroot-downloads.tar.bz2 does include the source to uclibc so we make it available per the license. 1. Cross compiler and tools ** You may need to install ncurses-devel package if menuconfig fails to build ** You need write access to /opt directory tar -xf buildroot-snapshot.tar.bz2 tar -xf buildroot-downloads.tar.bz2 mv buildroot-downloads buildroot/dl cp buildroot.config buildroot/.config cd buildroot make menuconfig (Make changes as needed, installs to /opt/tools/uclibc by default) make 2. Update environment to use new tools export PATH="$PATH:/opt/tools/uclibc/bin" export CROSS_COMPILE=arm-linux- export CROSS=arm-linux- export KERNEL= export DEVROOT= 3. Bootloader tar -xf u-boot-1.2.0.tar.bz2 cd u-boot-1.2.0 make 4. Busybox ** Note that busybox built by buildroot is not used on the SX-560 tar -xf busybox-1.10.4.tar.bz2 cd busybox-1.10.4 make 5. MTD utils (needed only if updating kernel) tar -xf mtd-utils.tar.gz cd mtd-utils make ** Will die with an error, but builds flash_eraseall successfully which is all that we need ** ** flash_eraseall lives in arm-linux directory ** 6. Kernel tar -xf s3c-linux-2.6.16 cd s3c-linux-2.6.16 ** Start with default configuration for SX-560 cp arch/arm/configs/sx560_defconfig .config ** Make any changes needed make menuconfig make cd arch/arm/boot ** The following script needs u-boot-1.2.0/tools/mkimage in your path ** ** If you didn't build the bootloader above, mkimage won't be built ** ./mkkern.sh ** new kernel is zImage.img and is in a format that u-boot understands ** ** To install a new kernel use these commands ** flash_eraseall /dev/mtd4 cp zImage.img /dev/mtd4 7. SNMP tar -xf net-snmp-5.4.2-pre2.tar.bz2 cd net-snmp-5.4.2-pre2.tar.bz2 ./config_sx560.sh cd objarm make make install (Installs to net-snmp-5.4.2-pre2/objarm/install) 8. OpenSSL tar -xf openssl-0.9.8g.tar.bz2 cd openssl-0.9.8g make 9. vsftpd tar -xf vsftpd-2.0.6.tar.bz2 cd vsftpd-2.0.6 make