LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Add software to a embedded linux created with buildroot (https://www.linuxquestions.org/questions/linux-newbie-8/add-software-to-a-embedded-linux-created-with-buildroot-4175488461/)

FIRE47 12-18-2013 01:34 PM

Add software to a embedded linux created with buildroot
 
Hello
I have a problem.
I created a dedicated system* with buildroot, through the cross-compilation .
Which created a file rootfs.ext2 and toolchain. Now I wanted to use the toolchain to add software that is not present in Buildroot, as idesk, eterm, etc.
I wonder if you can appoint a tutorial of how to use cross-compilation to add this software to rootfs.ext2. I've searched the internet but do not understand.
After creating the buildroot toolchain did cross compilation with: make CROSS_COMPILE = i586-linux-
The toolchain is in the directory: / home/pedro/Documentos/guiao2/buildroot-2012.08/output/host/usr/bin
Then I have to move to the second partition and boot the pen. This part is already working.

I await a help, thank you

rtmistler 12-19-2013 12:23 PM

You can mount the rootfs.ext2 file as loop. Then it is a directory on your system where you can copy these binaries into the file system; like into /usr/bin or /usr/sbin, then umount the file system and now that file system has your added files. You can do that with a script.

However the buildroot process you have should have some sort of definition file which specifies how to create your root file system's contents. For instance, say part of your root file system is a specific file, "my-application-file", search within your tree structure for files which contain the name as it is within your rootfs. You'll likely find more than a few hits; such as the Makefile and other supporting files, but likely you will also find the definition file which governs the content of your rootfs.

FIRE47 12-20-2013 02:19 AM

1 Attachment(s)
Quote:

Originally Posted by rtmistler (Post 5084040)
You can mount the rootfs.ext2 file as loop. Then it is a directory on your system where you can copy these binaries into the file system; like into /usr/bin or /usr/sbin, then umount the file system and now that file system has your added files. You can do that with a script.

However the buildroot process you have should have some sort of definition file which specifies how to create your root file system's contents. For instance, say part of your root file system is a specific file, "my-application-file", search within your tree structure for files which contain the name as it is within your rootfs. You'll likely find more than a few hits; such as the Makefile and other supporting files, but likely you will also find the definition file which governs the content of your rootfs.

Thanks for the reply

I installed Idesk and aterm through the following command, and then export the cross compiler:

-. / Configure - host = i586-linux - prefix = / home/pedro/Documentos/guiao2/montar
-make
-make install

Upon this I was just working with the programs.

I would now install Conky, but I'm having an error in the make.

see the log

rtmistler 12-20-2013 08:36 AM

Try installing build-essential that's seen alot when that ac_nonexistent.h problem is seen.

FIRE47 12-22-2013 04:34 PM

Quote:

Originally Posted by rtmistler (Post 5084497)
Try installing build-essential that's seen alot when that ac_nonexistent.h problem is seen.

Hello

I'm doing a study of a dedicated distribution and use the Buildroot . Conky currently intend to include in the system via cross compile . The toolchain has been built for the i586 architecture when I perform the command:

-./configure - host = i586 -linux - prefix = / home/pedro/Documentos/guiao2/montar - with- libiconv -prefix = / home/pedro/Documentos/guiao2/buildroot-2012.08/output/host / usr / lib

I have no problem, but when I do make I get the following error :

/home/pedro/Documentos/guiao2/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libglib-2.0.so: warning: the use of OBSOLESCENT `utime' is discouraged, use `utimes'
/home/pedro/Documentos/guiao2/buildroot-2012.08/output/host/usr/i586-unknown-linux-uclibc/sysroot/usr/lib/libX11.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
collect2: ld returned 1 exit status
make[2]: *** [conky] Error 1
make[2]: Leaving directory `/home/pedro/Documentos/guiao2/temas_fluxbox/conky-1.9.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/pedro/Documentos/guiao2/temas_fluxbox/conky-1.9.0/src'
make: *** [all-recursive] Error 1


What can I do ?

Thank you


All times are GMT -5. The time now is 03:40 AM.