09-02-2012, 08:27 AM | #1 |
( ͡° ͜ʖ ͡°){ʇ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
|
Configuring a better busybox
This is the default Busybox config in BR
Spoiler:
and here is the 3.3 mario_defconfig Spoiler:
They are 1.20.x and 1.7.2 respectively, and there is a world of difference between them (and is demonstrated by doing a DIFF on them both, they are very different) So I'm building a more feature rich busybox now, anyone has a request for the new config jump in and mention it. Thanks. EDIT: Okay so as per this is completely CAVEAT EMPTOR... Insert GPL link in your mind now... Thanks. The final config is also attached. please note this not some complete busybox replacement yet. These are interim development stubs. If you don't know how to implement them on your device, I would suggest you don't at this stage. Thanks Last edited by twobob; 09-13-2012 at 12:56 PM. Reason: 3.3 |
09-02-2012, 08:30 AM | #2 | |||
( ͡° ͜ʖ ͡°){ʇ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
|
I was thinking about running it through a current busybox build to bring the old config up to date.
Quote:
EDIT: Old version root@kindle:root> busybox Quote:
root@kindle:root> cd /mnt/us/bin root@kindle:bin> ./busybox Quote:
Last edited by twobob; 09-02-2012 at 09:51 PM. |
|||
Advert | |
|
09-02-2012, 08:35 AM | #3 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
09-02-2012, 08:37 AM | #4 |
( ͡° ͜ʖ ͡°){ʇ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
|
to do this you would
extract the busybox install from the Kindle_src_3.3_611680021.tar.gz to usr/local/src cp /usr/local/src/busybox-1.7.2mario_defconfig /home/you/GIT/buildroot/output/build/busybox-1.20.2 cd /home/you/GIT/buildroot/output/build/busybox-1.20.2 mv .config .config_org mv .config.old .config.old_org mv mario_defconfig .config make oldconfig This should use the settings that ARE set already and skip over the rubbish, saving us a very tough DIFF job. Last edited by twobob; 09-02-2012 at 09:24 AM. |
09-02-2012, 08:43 AM | #5 |
( ͡° ͜ʖ ͡°){ʇ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 and now a config file that IS compliant with the new build questions and contains the defaults form the old one
Spoiler:
SO... Any requests? Speak up now : ) |
Advert | |
|
09-02-2012, 08:47 AM | #6 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
This list was posted before the .config listing was available.
Add: inetd So that servers / services can be started on-demand. Enable any/all servers but don't start them by default. Enhance the list of compression utilities that are enabled. Like, xz - then we don't have to build an external one. Probably other things. Those where the easy ones. Last edited by knc1; 09-02-2012 at 09:12 AM. |
09-02-2012, 09:09 AM | #7 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
dos2unix
ls_color not set (what use on grayscale?) module utilities == yes mount and mount helpers swap utils umount additional features of ip httpd Ah - one other thing about "make oldconfig" If the option was not mentioned in the oldconfig, then it was set to the new config's default (unless manually over-ridden). Which probably explains why this new config has things enabled that where not in the original one. Translation: Don't worry about it until it fails. |
09-02-2012, 09:22 AM | #8 |
( ͡° ͜ʖ ͡°){ʇ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 first glance of a diff would be
Spoiler:
I'll have a pile through and see what makes sense to enable. Last edited by twobob; 09-02-2012 at 09:25 AM. |
09-02-2012, 09:27 AM | #9 | |
( ͡° ͜ʖ ͡°){ʇ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:
Right, I basically held down return to just get a "parsable" .config. I figured now go thru with a make menuconfig and tidy it up, then inject as the new Busybox 1.20.x default_config for the BR build. Okay then. I'll jump back in. Thanks mate. |
|
09-02-2012, 09:28 AM | #10 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
config_static = yes
Otherwise you have to build two of them, one for the initramfs and one for the main filesystem after the dynamic library system is enabled. Building two busybox configurations - one with the minimum of features and built static for use in the initramfs one with the features maxed out for the main file system and "static not set" Is a common solution. PS: Was selecting systemd and de-selecting mdev an intentional choice? I thought the K3 was older than the systemd init system. |
09-02-2012, 09:31 AM | #11 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
You might also try the lab126 configuration dance: https://www.mobileread.com/forums/sho...2&postcount=45 Translation: There is a point in this process where choices become a bit arbitrary. Last edited by knc1; 09-02-2012 at 09:58 AM. |
|
09-02-2012, 09:45 AM | #12 | |
( ͡° ͜ʖ ͡°){ʇ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:
Re the P.S - nope, just working my way down to fixing such things so thanks for bringing it up │(/proc/self/exe) Path to BusyBox executable this one worries me. I would prefer to be able to mangle it back the likely /mnt/us/bin location... Hmm. |
|
09-02-2012, 09:47 AM | #13 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
NO
That is required so that Busybox can ID what name it was called with. Or, at least something to do with the applet selection at runtime. There is some documentation on that one (busybox site?) somewhere and it is in the section on how the basic choices for the bb binary and links are made. It wouldn't hurt to check the other *_PATH things for being reasonable for a kindle though. Last edited by knc1; 09-02-2012 at 09:52 AM. |
09-02-2012, 09:51 AM | #14 |
( ͡° ͜ʖ ͡°){ʇ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
|
hmmm...
Notes on something else Spoiler:
so. err... readelf -d /proc/self/exe would readlelf readelf. Meh. that's fine then. Happy days. |
09-02-2012, 09:53 AM | #15 | |
( ͡° ͜ʖ ͡°){ʇ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:
Just wanted to be certain of it's purpose : ) |
|
Tags |
busybox |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo runs linux and busybox | billingd | Kobo Reader | 32 | 04-03-2011 10:19 AM |
configuring text to speech | hpratt | Amazon Kindle | 1 | 06-28-2010 01:34 PM |
Configuring? | rachangua | PocketBook | 3 | 05-15-2010 03:33 AM |
Updating Busybox | Adam B. | iRex | 14 | 10-23-2008 10:18 AM |
Cybook source code released (kernel and busybox) | dottedmag | Gen3 Developer's Corner | 14 | 09-12-2008 04:59 AM |