RALINK AP SDK 3.3.0.0 User's Manual
Page 23 of 93
5
TOOL-CHAIN
The Ralink AP SDK uses buildroot to make the Linux kernel image. Buildroot is a set of Makefiles
and patches. It is easy to make a cross-compilation toolchain and root file system for the
target Linux system. Use the uClibc C library.
5.1
Install toolchain
#cp RT288x_SDK/toolchain/buildroot-gcc342.tar.bz2 /opt
#$ tar jxvf buildroot-gcc342.tar.bz2
The extract procedure makes a directory equivalent to "/opt/buildroot-gdb"
5.2
Install LZMA Utility
lzma is necessary to make the compressed kernel image. The Ralink RT2880 SDK uses lzma to
compress the kernel image.
#cd RT288x_SDK/toolchain/lzma-4.32.0beta3
#./configure
#make
#make install (install lzma to /usr/local/bin)
Use gzip or lzma to compress the kernel image.
Make changes to RT288x_SDK/source/vendors/Ralink/{Platform}/Makefile
COMP = gzip
Use gzip to compress the Linux kernel image.
COMP = lzma
Use lzma to compress the Linux kernel image.
5.3
Install mksquashfs utility
mksquashfs-lzma is necessary to make the compressed rootfs. The Ralink AP SDK uses
mksquashfs with lzma to compress the root filesystem.