![]() |
#106 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Adding new packages 101 - Customising BR.
Replies and Moans about "I do what with the headers? Bah :\"
Spoiler:
Okay so to the thrust of this post: Adding new packages 101 - Customising BR. (It's easy, honest). the main docs are here: http://buildroot.uclibc.org/download...s_to_buildroot This reallife guide is what I intend to take the project where knc1 wanted. The guide: We assume that you have some knowledge. ${foo} is a reference to a variable. you would test conditions like if(${foo}) blar endif read up on Makefile and configure files. that will help. Including AALIB in BR... mkdir /home/you/GIT/buildroot/package/aalib cd /home/you/GIT/buildroot/package/aalib nano -w aalib.mk Spoiler:
save it nano -w Config.in Spoiler:
save it. In this next section you can choose to include it in the packages directories. I choose LIBRARIES: GRAPHICS because I think that is the best fit. nano /home/you/GIT/buildroot/package/Config.in add source "package/aalib/Config.in" in the relevant section (see pictures for my example) Adding Support in existing BR applications: In this next section we are optionally adding support for the new package in existing packages like so: (adding support in SDL) nano /home/you/GIT/buildroot/package/sdl/Config.in Spoiler:
save it. Edit the mk to include the call. Run make xconfig from BuildRoot Root. You should see the new things as pictured below. The example I posted here also includes the use of making another application require support which is the start of integration. HTH. Last edited by twobob; 10-01-2012 at 01:08 PM. Reason: vice versa taggage |
![]() |
![]() |
![]() |
#107 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
so I go the kernel source. and make kernel-headers
http://kernel.org/doc/Documentation/...rs_install.txt then I point them at the right place make headers_install ARCH=i386 INSTALL_HDR_PATH=/usr/include so I just point that at the TC include folder? ( I think yes) answers on a postcard. You ever get the feeling you've read every page of a manual but the relevant one? : ) For my reference http://www.mobileread.mobi/forums/sh...=170213&page=3 Last edited by twobob; 10-01-2012 at 01:18 PM. Reason: : ) |
![]() |
![]() |
Advert | |
|
![]() |
#108 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
19:55 Began rebuilding all packages for time test.
Including new aalib and SDL support for it. This build will encompass all packages as outlined in the 2nd to top post of this thread. EDIT: well I'm not sure the total count of stuff built but its in the high 300's. Time to completion: 21:25. Wow. not bad. 90 minutes to compile everything. I love you buildroot. Last edited by twobob; 08-19-2012 at 04:28 PM. |
![]() |
![]() |
![]() |
#109 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Pardon me if I mention the obvious, no insult intended, but in case you missed it:
In the top level directory of the Buildroot tree, enter: make manual **Then** you will have something to read that is supposed to match the version your using. |
![]() |
![]() |
![]() |
#110 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
nothing is obvious. Obviously
![]() Fortunately my lack of shame serves me well in this regard. Hope you doing good on this fine sunny day. Well actually it was miserable and cold but meh in my mind it is sunshine... Well the build is into hour 2 (over 1 hour that is) and going strong. Time for some tea I think ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#111 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
EDIT:
Instead of that spaomla meanderson gripe heres some raw data. YUM How to pull the right library 101. Let's have a list of everything if you were wondering what Enviroment settings there are by default. This would be they. With a little bit of extras ie. the fix for "relocation error: ../lib/libc-2.3.6.so: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.3 with link time reference" Many thanks goes to bmoore and his Stupid_LD_Tricks for the ideas. export DISPLAY=':0.0' export EDITOR='/bin/vi' export HISTFILESIZE='1000' export HISTSIZE='1000' export HOME='/tmp/root' export HOSTNAME='kindle' export INPUTRC='/etc/inputrc' export LANG='en_US.UTF-8' export LC_ALL='en_US.UTF-8' export LD_LIBRARY_PATH='/lib:/usr/lib:/mnt/us/lib:/mnt/us/usr/lib' export LD_PRELOAD='/lib/libc-2.5.so' export LOGNAME='root' export MAIL='/var/mail/root' export OLDPWD='/mnt/us/bin' export PAGER='/bin/more ' export PATH='/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/mnt/us/bin:/mnt/us/usr/bin' export PS1='[\u@\h \W]\$ ' export PWD='/mnt/us' export SHELL='/bin/sh' export SSH_CLIENT='192.168.1.99 9999 22' export SSH_CONNECTION='192.168.1.99 9999 192.168.1.99 22' export SSH_TTY='/dev/pts/4' export TERM='xterm' export USER='root' Well that's eminently scriptable and should get us enough traction to make aalib work. *SHOULD* TBC : ) Last edited by twobob; 08-19-2012 at 07:26 PM. Reason: the s p i m m er has gone - Let's have something cool |
![]() |
![]() |
![]() |
#112 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#113 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
we have video! well kinda ;)
took 90 mins to do everything I managed to include so far.
1.3 Gb of software. I now have aalib working ![]() aafire test works This is a big step forward. That's a custom inclusion in buildroot. custom Config.in with a new fully customized skeleton for the kindle - targetting the correct structure now. I also had a look how hard it might be to whip up a CATCH-ALL fixer-upper script to apply to existing and new Configure.in s automatically. Also to locally cascade the new optional dependencies satisfied by aalib, a few things support it IIRC. It's a toughie with handballed files in the mix to do this all on-auto but I'm thinking on it. This IS something I am good at (Thank my lucky stars had to happen eventually) On the kindle side I now can hack the right libs to start, more or less, at whim. without too much 'ld' gripes and no updating the core config. People may well already know all about LD_PRELOAD and LD_LIBRARY_PATH and friends. for my part this is helpful info. Since stuff now works. In a large way. from FAT. Without linking. who knew. ![]() (thanks you NiLuje for the pointers, and HIDI for a working example) prboom is just a step away... Lots of fun being had here. Happy to share. Last edited by twobob; 08-19-2012 at 09:16 PM. Reason: more fire |
![]() |
![]() |
![]() |
#114 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
aatest
ah why not a few more shots. : )
aatest in action. looks like i need to configure the fonts... ah yes /mnt/us/etc... how handy Last edited by twobob; 08-19-2012 at 08:22 PM. |
![]() |
![]() |
![]() |
#115 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
man ual - he dead!
Quote:
make -C /home/you/GIT/buildroot O=/home/you/BLDS/buildroot/. manual Generating HTML manual... make[1]: a2x: Command not found make[1]: *** [/home/you/BLDS/buildroot/./docs/manual/manual.html] Error 127 make: *** [all] Error 2 I'll add it to the deathlist ![]() EDIT OR NOT: add asciidoc to the build-depends to fix this bug hmm. Let me just grab that you@dev ~/BLDS/buildroot $ sudo apt-get install asciidoc 0 upgraded, 52 newly installed, 0 to remove and 1 not upgraded. Need to get 450 MB of archives. Whoa. hardcore. Oh well. Time for some tea. Last edited by twobob; 08-20-2012 at 06:00 PM. |
|
![]() |
![]() |
![]() |
#116 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Translation: Abandon yee all ideas of running asciidoc on the Kindle.
|
![]() |
![]() |
![]() |
#117 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Okay its installed!! you@dev ~/BLDS/buildroot $ make manual Code:
make -C /home/you/GIT/buildroot O=/home/you/BLDS/buildroot/. manual Generating HTML manual... Generating Split HTML manual... Generating PDF manual... Generating Text manual... a2x: ERROR: w3m -cols 70 -dump -T text/html -no-graph /home/you/BLDS/buildroot/docs/manual/manual.text.html > /home/you/BLDS/buildroot/docs/manual/manual.text returned non-zero exit status 127 make[1]: *** [/home/you/BLDS/buildroot/./docs/manual/manual.text] Error 1 make: *** [all] Error 2 Honestly. More tea. you@dev ~/BLDS/buildroot $ sudo apt-get install w3m Code:
[sudo] password for you: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libgc1c2 Suggested packages: w3m-img w3m-el migemo The following NEW packages will be installed libgc1c2 w3m 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 1,182 kB of archives. After this operation, 2,351 kB of additional disk space will be used. Do you want to continue [Y/n]? y Code:
you@dev ~/BLDS/buildroot $ make clean-manual make -C /home/you/GIT/buildroot O=/home/you/BLDS/buildroot/. clean-manual you@dev ~/BLDS/buildroot $ make manual make -C /home/you/GIT/buildroot O=/home/you/BLDS/buildroot/. manual Generating HTML manual... Generating Split HTML manual... Generating PDF manual... Generating Text manual... Generating EPUB manual... you@dev ~/BLDS/buildroot $ yay ;) Last edited by twobob; 08-19-2012 at 09:31 PM. |
|
![]() |
![]() |
![]() |
#118 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Interesting, it churned out an epub version.
I guess that is so you can display a page of directions on the Kindle while fighting with the build system on your larger machine. Note to the casual reader: The Buildroot release tar-balls come with the manual already built. This work is being done with a clone of the Buildroot repository (which does not contain generated files). |
![]() |
![]() |
![]() |
#119 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Okay so I got my headers in order AFAICT. shoved my experiences in the moan thread - when I am certain I have it right I will stick it in it's own thread. It was annoying enough to warrant one IMHO : )
So quick rebuild of everything I think. another 90 mins I'll never get back hehehe ![]() Okay. I updated Buildroot via GIT. and stashed my changes. Forked off BR with a view to long-term shallow fork to Kindle when I get my head more around it. Pushed the fork to github. reapplied my SDL wangle and AALIB inclusion. New go-round with right headers, latest BR updates, just started. See what that brings. Last edited by twobob; 08-20-2012 at 07:05 PM. Reason: added that it has started. at midnight. |
![]() |
![]() |
![]() |
#120 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Thanks Niluje. |
|
![]() |
![]() |
![]() |
Tags |
buildroot, compile, howto, kernal, kindle 3.3 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linux | Titus | enTourage Archive | 6 | 09-07-2010 11:23 AM |
So as a Linux..... | tajreed | General Discussions | 13 | 04-05-2010 12:51 PM |
Linux? | Ron46 | Ectaco jetBook | 8 | 12-24-2009 08:07 AM |
Linux | coredump | Sony Reader | 12 | 11-17-2009 05:07 AM |
Linux Help | clewley | Bookeen | 3 | 04-04-2008 08:40 AM |