2

I enconter a problem I hope to be solved quickly.

I have grace to BUILDROOT compile a Linux zImage Kernel, build a rootfs, have a bootloader, so everething is right.

But at the boot, the system is so minimal that i don't have got some package manager like apt-get, yum, etc....

Despite the fact i've got the network (wget is possible), I don't know how to have a simply gcc in my host (Buildroot don't permit to compile gcc anymore) or more simply a package manager.

It is so boring to cross compile everything that I think the better solution is to apt-get packages, resolve dependencies and install it for an ARM architecture..

I recompile with Package manager options including IPKG and OPKG but the repositories don't work and the commands return nothing (I.E. ipkg --list, etc..)

Did someone had the same problems and what is the best way to have a good Package Manager on a minimal system compiled and build grace to Buildroot.

What is the best way to have anymore a Native compile toolchain on the ARM host ?

Thanks to your answers

My purpose is to natively compile my code including -lm -lpthread and LIRC module and header files on this minimal host system.

Stefan, France

---- additional informations ---

hello,

i refresh this tag for set informations :

recently buildroot does no longer permit natively compile gcc package even if make and other tools are available on the recent buildroot distribution

gcc and other tags are marked as deprecated

so it is needed / obligated to cross compile on the host so what i did

for convenience, i've the Makefile for my code with dependencies for pthread and lirc_client

If anybody interested, ask me,

stef, France

sawdust
  • 16,103
  • 3
  • 40
  • 50
stefff
  • 61
  • 2
  • 5
  • *"It is so boring to cross compile everything..."* -- So you think native compilation is exciting? *"Buildroot don't permit to compile gcc anymore"* -- Then use an old version of Buildroot to put a toolchain on the target. – sawdust Oct 07 '15 at 09:11
  • @sawdust older version may not work with newer kernel. – Bob Jun 28 '19 at 15:40
  • @sawdust we want to create a fully contained development environment. The cross-compiler only runs on Linux_x86/64 so we would need to create a VM running on windows and then transfer the build artifacts from the VM to the target. – Bob Jun 28 '19 at 15:47

2 Answers2

5

The Buildroot reference documentation has plenty of details about these questions. Please see http://buildroot.org/downloads/manual/manual.html#faq-no-compiler-on-target and http://buildroot.org/downloads/manual/manual.html#faq-no-binary-packages.

Thomas Petazzoni
  • 5,636
  • 17
  • 25
0

I've added dpkg inside buildroot in order to have dpkg on my board... it was really easy to do. The only thing I had to hack is to create a fake ldconfig.

Elvis Dukaj
  • 7,142
  • 12
  • 43
  • 85