Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2012, 08:20 PM   #16
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
It works, but take off the last "-" from that string... make is progressing now,
qlob is offline   Reply With Quote
Old 10-18-2012, 08:23 PM   #17
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by qlob View Post
It works, but take off the last "-" from that string... make is progressing now,
ah yeah. doh. apologies.
twobob is offline   Reply With Quote
Advert
Old 10-18-2012, 08:33 PM   #18
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Doh. Just figured out the way buildroot really works.... I thought you dropped packages in just a random place somewhere and told buil root to build it, not that it was run every time you wanted to build packages.... need to read more...
qlob is offline   Reply With Quote
Old 10-18-2012, 08:44 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
Added chuff to buildroot 101

in essence its a small 3 part process

Which I have outlined before but: since a picture and a few files can speak a thousand words.

create folder under packages (pictured - with relevant name)

create two files (provided examples) - edit them to use the "relevant name" - Just make one up.

BIG NOTE!!! YOU MUST REMOVE THE --prefix and --exec-prefix !!! you don't have a custom skeleton !! the target directories will be missing!! just run it without the --prefix etc.. until you build a custom skeleton (I can provide one)

You also need to go find the DL URL and copy the style I have provided.

The layout of the Config.in is VERY PICKY, keep the spacing exactly I have shown it. (four spaces indent is it? something like that)

When you are happy with your two new files:

add an entry - in the "relevant section" in the main packages Config.in (example provided with custom entries, search is your friend) (The placement in the file determines which menu it appears in)

re-run make xconfig. wow! they are there! let's build them!!!
ah shoot it broke! check the error output. it probably requires a lib BR doesn't have or you forgot to add support for in the make. Just add the relevant

requires - or selects - in the PACKAGE Config.in and maybe check the ./configure --help in the PACKAGES BUILD DIRECTORY!

Another trick:

say we have BR in ~/GIT/BRK3

always add it -C to your commands like:

make -C ~/GIT/BRK3 xconfig
(Then you can run the commands from ANYWHERE, not just the root.) helpful!

Err... I think that covers it.
EDIT: Ah yes. also try BR inline autocompletion for packages with the -C blah in place.
BR can delete the ".stamp_somethingLikeBuiltOrWhatever" flag files to help with letting BR know you want to rebuild something. Once it is "built" you have to tell it to rebuild like

make -C ~/GIT/BRK3 someapp-clean-for-rebuild (or whatever)

or you can go delete the flags yourself (I just do that TBH)
it's pretty obvious what they do - want to DL it again? delete .stamp_downloaded - etc...
(EDIT: Added a picture of the stamps - NOTE THE DIRECTORY)

RE MAKEFILE's:
The BR Readme covers the 3 main types of make files (It accepts).

Just get used to spotting the GNU Autotools ones and try adding them first - they work 95% of the time on the Kindle 5, - your milage will be less as the older TC may let you down from time to time.

Well, I'll attach the pics. I also pictured WinSCP ready to transfer built files.

HTH
Attached Thumbnails
Click image for larger version

Name:	Selection_200.png
Views:	283
Size:	34.2 KB
ID:	94423   Click image for larger version

Name:	Selection_201.png
Views:	277
Size:	6.5 KB
ID:	94424   Click image for larger version

Name:	Selection_202.png
Views:	275
Size:	4.5 KB
ID:	94425   Click image for larger version

Name:	Selection_203.png
Views:	276
Size:	7.9 KB
ID:	94426   Click image for larger version

Name:	Selection_204.png
Views:	286
Size:	18.7 KB
ID:	94429   Click image for larger version

Name:	Selection_205.png
Views:	288
Size:	76.6 KB
ID:	94430   Click image for larger version

Name:	Selection_206.png
Views:	270
Size:	18.1 KB
ID:	94431  
Attached Files
File Type: gz aalib.tar.gz (657 Bytes, 172 views)
File Type: gz Config.in.tar.gz (3.7 KB, 182 views)

Last edited by twobob; 10-18-2012 at 09:18 PM. Reason: extra points, more tips, more pics
twobob is offline   Reply With Quote
Old 10-18-2012, 08:54 PM   #20
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Quote:
Originally Posted by twobob View Post
in essence its a small 3 part process

Which I have outlined before but: since a picture and a few files can speak a thousand words.

create folder under packages (pictured - with relevant name)

create two files (provided examples) - edit them to use the "relevant name" - Just make one up.

You also need to go find the DL URL and copy the style I have provided.

The layout of the Config.in is VERY PICKY, keep the spacing exactly I have shown it. (four spaces indent is it? something like that)

When you are happy with your two new files:

add an entry - in the "relevant section" in the main packages Config.in (example provided with custom entries, search is your friend) (The placement in the file determines which menu it appears in)

re-run make xconfig. wow! they are there! let's build them!!!
ah shoot it broke! check the error output. it probably requires a lib BR doesn't have or you forgot to add support for in the make. Just add the relevant

requires - or selects - in the PACKAGE Config.in and maybe check the ./configure --help in the PACKAGES BUILD DIRECTORY!

Another trick:

say we have BR in ~/GIT/BRK3

always add it -C to your commands like:

make -C ~/GIT/BRK3 xconfig
(Then you can run the commands from ANYWHERE, not just the root.) helpful!

Err... I think that covers it.
EDIT: Ah yes. also try BR inline autocompletion for packages with the -C blah in place.
BR can delete the ".SomethingLikeBuiltOrWhatever" flag files to help with letting BR know you want to rebuild something. Once it is "built" you have to tell it to rebuild like

make -C ~/GIT/BRK3 someapp-clean-for-rebuild (or whatever)

or you can go delete the flags yourself (I just do that TBH)
it's pretty obvious what they do - want to DL it again? delete .Donwloaded - etc...

RE MAKEFILE's:
The BR Readme covers the 3 main types of make files (It accepts).

Just get used to spotting the GNU Autotools ones and try adding them first - they work 95% of the time on the Kindle 5, - your milage will be less as the older TC may let you down from time to time.

Well, I'll attach the pics. I also pictured WinSCP ready to transfer built files.

HTH
Thanks so much! ngircd appears to already be in buildroot
qlob is offline   Reply With Quote
Advert
Old 10-18-2012, 08:57 PM   #21
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by qlob View Post
It works, but take off the last "-" from that string... make is progressing now,
I thought I was clear that was for the setting of the environment variable CROSS_COMPILE when using "manual make files" .

Build systems, often create their own equivalent of "CROSS_COMPILE" (Buildroot is one of them).
So there can be no common rule about the trailing '-' other than read the build system documentation.
knc1 is offline   Reply With Quote
Old 10-18-2012, 09:02 PM   #22
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by qlob View Post
Thanks so much! ngircd appears to already be in buildroot
Yep. I was messing around with using alien armel builds the other day when you asked is all

Quote:
Originally Posted by knc1 View Post
I thought I was clear that was for the setting of the environment variable CROSS_COMPILE when using "manual make files" .

Build systems, often create their own equivalent of "CROSS_COMPILE" (Buildroot is one of them).
So there can be no common rule about the trailing '-' other than read the build system documentation.
Yeah, There are great docs and even the website is fairly user friendly.

I read the docs about 10? times now. still only retain about 15% probably but it slowly goes in

Luckily only 15% is required to fire it up and let it run. Heh.

@qlob There are also lovely docs on doing a REALLY NEAT JOB (free electrons peoples do a good job of sharing tips, if a bit random) - might want to think about doing that. it's less of a PITA in the end. but your call.

: ) Enjoy the power.
twobob is offline   Reply With Quote
Old 10-18-2012, 09:07 PM   #23
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Don't forget the "make manual" command if your using a "git clone".
The manual is inside of the release tar-ball, but not in the "git clone".

On multiple copies of BR . . .
git clone git://.....whatever the url is
Call that one your 'master'

For your working copies, just git clone the_local_path_and_name_of_the_master
knc1 is offline   Reply With Quote
Old 10-18-2012, 09:20 PM   #24
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by knc1 View Post
Don't forget the "make manual" command if your using a "git clone".
The manual is inside of the release tar-ball, but not in the "git clone".

On multiple copies of BR . . .
git clone git://.....whatever the url is
Call that one your 'master'

For your working copies, just git clone the_local_path_and_name_of_the_master
(and unless you apt-get is NOT configured to download "recommended" packakges? Get ready for a long wait)
twobob is offline   Reply With Quote
Old 10-18-2012, 09:45 PM   #25
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
SDL seems to be breaking... I did get ncurses built though, not sure if it is already on the Kindles, just picked programs I thought would be useful.

From now on, I'm most likely going to do only 1 or 2 packages at a time.
qlob is offline   Reply With Quote
Old 10-18-2012, 09:52 PM   #26
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
SDL build is breaking? or the resulting binary.

resulting binary wont work OOTB because of 4bpp FB. could be patched though. I will need clues to start doing that however...

If build is breaking I will test it in the AM

having fun? : )
twobob is offline   Reply With Quote
Old 10-18-2012, 09:58 PM   #27
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
the build, It's missing some sort of .so file...

Yeah, actually. never thought compiling could be fun xD .

Will deal with building things tomorrow, need to sleep.

hacking tired kills kindles, as they say.
qlob is offline   Reply With Quote
Old 10-18-2012, 10:00 PM   #28
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by qlob View Post
the build, It's missing some sort of .so file...

Yeah, actually. never thought compiling could be fun xD .

Will deal with building things tomorrow, need to sleep.

hacking tired kills kindles, as they say.
Ah right. I will have a play in the tomorrow too then. Might be the TC, undecided right now.

Night fella, good to have someone else on board with the BR hacking.
twobob is offline   Reply With Quote
Old 10-18-2012, 10:29 PM   #29
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
(and unless you apt-get is NOT configured to download "recommended" packakges? Get ready for a long wait)
I keep forgetting that 2Gbyte of dependent packages that it takes to build the manual.

It might be worth the bandwidth to download a release tar-ball, just for the manual and throw away the rest of the files.
knc1 is offline   Reply With Quote
Old 10-19-2012, 06:51 AM   #30
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
I think i used the tarball...
qlob is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buildroot a linux 2.6.26-lab126 kernal. (3.3) twobob Kindle Developer's Corner 155 05-08-2016 12:08 AM
Buildroot - Things added for the kindle twobob Kindle Developer's Corner 2 08-22-2013 10:18 AM
Making a ctng Toolchain for the Kindle Touch via Buildroot twobob Kindle Developer's Corner 16 11-25-2012 08:35 PM


All times are GMT -4. The time now is 09:21 PM.


MobileRead.com is a privately owned, operated and funded community.