LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2013, 02:34 PM   #1
FIRE47
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
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
 
Old 12-19-2013, 01:23 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,110
Blog Entries: 10

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
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.
 
Old 12-20-2013, 03:19 AM   #3
FIRE47
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
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
Attached Files
File Type: txt log.txt (64.3 KB, 2 views)
 
Old 12-20-2013, 09:36 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,110
Blog Entries: 10

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
Try installing build-essential that's seen alot when that ac_nonexistent.h problem is seen.
 
Old 12-22-2013, 05:34 PM   #5
FIRE47
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom kernel created with buildroot freezes in qemu anjohn Linux - General 0 07-19-2013 12:44 PM
Embedded Linux Hard Link Suddenly Created on a Root Directory? sarmads1 Linux - Security 5 07-19-2012 07:21 PM
My first embedded linux with Buildroot and Qemu emping Linux - Embedded & Single-board computer 5 06-03-2010 04:46 AM
How to add SIP client functionality to embedded Linux d2army Linux - Software 2 03-23-2008 07:22 AM
LXer: Embedded Linux dev kits add enhanced ARM toolchains LXer Syndicated Linux News 0 11-08-2006 12:12 AM


All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration