Jump to content

Buildroot for pine-apple ( cross-compile)


stutte

Recommended Posts

Hey is there some body who has a working build root for the mark5 ??

i am trying to have a working cross compiler for pineapple

or is there someone who could help me find the right settings (cpu arch,kernel,uclibc,binutils,gcc version ??? )

this is a example i use for compiling for my arm router ... so i would need most of these settings

######################################################
# This tutorial describes how to a build an ARM #
# cross-compile toolchain with buildroot. #
# #
# This allows a user to run his own code on #
# an embedded device. #
# #
# Device = ARM embedded device (router) #
# Host OS = Ubuntu 14.10 #
######################################################

# Get the latest version of buildroot
cd ~
git clone git://git.buildroot.net/buildroot

# Setup buildroot
cd buildroot
make menuconfig

Target options:
-> Set 'Target Architecture' to ARM (big endian)
-> Set 'Target Architecture Variant' to arm1176jz-s
-> Set 'Target ABI' to EABI
-> Set 'Floating point strategy' to Soft float

Build options:
-> Enable compiler cache

Toolchain:
-> Set 'Kernel Headers' to manually specified
-> Set 'Linux version' to 2.6.39.3
-> Set 'Custom kernel headers series' to 2.6.x

-> Set 'C library' to 'uClibc'
-> Set 'uClibc version' to 0.9.33.x

-> Enable IPv6 support
-> Enable RPC support
-> Enable WCHAR support

-> Set 'Binutils Version' to 2.22
-> Set 'GCC Version' to 4.7.x

Save and exit.

# Start building toolchain
make

# When finished, toolchain can be found in ~/buildroot/output/host/usr/bin/
# GCC syntax: ./armeb-buildroot-linux-uclibcgnueabi-gcc <source.c> -o <output file>

Link to comment
Share on other sites

can not edit my previous post :rolleyes:

i figured it out and

and have a working cross compiler for pineapple

these are the right settings (cpu arch,kernel,uclibc,binutils,gcc version ??? )

this is a example i use for compiling for my mark 5

######################################################
# This tutorial describes how to a build an ARM #
# cross-compile toolchain with buildroot. #
# #
# This allows a user to run his own code on #
# an embedded device. #
# #
# Device = pine apple mark5 #
# Host OS = kali linux #
######################################################

# Get the latest version of buildroot
cd ~
git clone git://git.buildroot.net/buildroot

# Setup buildroot
cd buildroot
make menuconfig

Target options:
-> Set 'Target Architecture' to MIPS (big endian)
-> Set 'Target Architecture Variant' to mips32
-> Set 'Floating point strategy' to use Soft float

Build options:
-> Enable compiler cache

choose if you want static or dynamic binary's compiled

static is easy cus it does not require libraries on the pineapple butt sometimes dynamic compiling is needed

Toolchain:
-> Set 'Kernel Headers' to manually specified
-> Set 'Linux version' to 3.3.8
-> Set 'Custom kernel headers series' to 3.3.x
-> Set 'C library' to 'uClibc'
-> Set 'uClibc version' to 0.9.33.x

-> Enable IPv6 support
-> Enable RPC support
-> Enable WCHAR support

-> Set 'Binutils Version' to 2.22
-> Set 'GCC Version' to 4.7.x

Save and exit.

# Start building toolchain
make

# When finished, toolchain can be found in ~/buildroot/output/host/usr/bin/
# GCC syntax: ./mips-buildroot-linux-uclibc-gcc <source.c> -o <output file>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...