I sell on Tindie
Showing posts with label buildroot. Show all posts
Showing posts with label buildroot. Show all posts

Thursday, August 20, 2009

Buildroot qq2440 again

This is complete manual how to build filesystem for qq2440 (s3c2440 or mini2440) - last version.

Download last buildroot snapshot from snapshots.
Don't use release - it has a problems.
Unpack it to some directory

#tar -xvjf buildroot-xxx.tar.bz2

#cd buildroot

#make menuconfig

Now select:
Target architecture (arm)
Target architecture variant (arm920t)
Target ABI (EABI)

Toolchain:
[*] Enable large file (2GB) support
[*] Enable IPV6
[*] Enable RPC
[*] Enable toolchain locale/i18n support
[*] Use software floating point by default
[*] Build/install c++ compiler
Leave other toolchain options unchanged

Target filesystem options:
[*] tar the root filesystem
Compression method (bzip2)

Exit, save

#make

Resulting filesystem exists in buildroot/binaries/uclibc/rootfs.arm.tar.bz2
You can unpack it and mount as NFS filesystem.

In Package selection for the target select desired packages. Not everything will build. I have succesfully built : links, e2ffsprogs, usbutils, alsa-lib, alsa-utils, mpg123, dialog, directfb with samples, SDL, Qt embedded


Tuesday, April 21, 2009

Buildroot for qq2440 (continue)

I compiled buildroot with external toolchain, because of internal buildroot bug. It seems to be exist in last release. When I tried to compile buildroot and toolchain for arm - it didn't work. My board didnt recognize this filesystem.
Yesterday I downloaded buildroot snapshot "buildroot-20090420". Internal toolchain is OK now. And almost everything is compiled now. You only need to choose target architecture "arm" and cpu "arm920t".

Update 20.Aug.2009
Use updated manual

Saturday, February 28, 2009

Building root filesystem for qq2440 with buildroot

Download buildroot from http://buildroot.uclibc.org/downloads/
I'm using 2009.02 release.

Download eldk for compiling
here
This is an iso image. Burn it and install it. I installed 2 versions (with software FP and with hardware FP) in /usr/local/cross. Actually we need to compile with software FP.

#tar -xvjf buildroot-2009.02.tar.bz2
#cd buildroot-2009.02
#make menuconfig

Now select:
Target architecture - arm
Target architecture variant - arm920t
Target ABI - EABI

Toolchain:
Toolchain type : External binary toolchain
Core C library : libc-2.6.so
Libraries to copy : clear all
Enable large file support - check
Enable RPC - check
Use software floating point by default - check
Build c++ compiler - check
External toolchain path : /usr/local/cross/usr

Target filesystem options:
Uncheck all
tar the root filesystem - check
Compression method : bzip2

Exit, save

#make

Root filesystem exists in binaries/uclibc

Now copy all libraries from /usr/local/cross/arm/lib to rootfs/lib. I need to explore what libraries we need exactly.

Deploy image to the board. I'm booting from nfs and in this configuration you can see linux booting in console.

Thanks for help to Leshak

Update 07-Mar-2009:
Tool chain: Libraries to copy:
ld-linux.so.3 libcrypt.so libdl.so libgcc_s.so libm.so libnsl.so libpthread.so libresolv.so librt.so libutil.so libc.so.6

Update 20.Aug.2009
Use updated manual