The time now is Wed 22 May 2013, 07:26
All times are UTC - 4 |
| Author |
Message |
AJK101
Joined: 17 Dec 2010 Posts: 41 Location: India
|
Posted: Mon 19 Mar 2012, 12:39 Post subject:
How to change busybox [with a self compiled version] |
|
I'm trying to replace inbuilt busybox with my own (personalized) busybox to suit my features by directly editing the .sfs file
When i replace the /bin/busybox ( in the sfs ) the switch_root in initrd.gz is unable to switch the root to the sfs ( could not find /sbin/init Kernel panic ... )
Earlier was able to simply add/remove whatever files i required after using unsquashfs, and finally using mksquashfs. Without the system to break.
This doesn't work with busybox, rather doing this gives the error mentioned ...
PLUS, i also tried replacing busybox in initrd.gz ( and in /init tried copying the busybox from initrd.gz to /pup_new/bin ) but this didn't even let the initrd.gz boot, giving the "init not found .. kernel panic" for the initrd.gz itself. I.e. the message for "Loading necessary modules ..." never appeared.
Also tried it with a defconfig busybox, in case my configs were bad, but still didn't work
Puppy specs : Racy 5.2.2 on usb pendrive. Working in 1GB ram, Intel Atom
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2209 Location: Gatineau (Qc), Canada
|
Posted: Thu 29 Mar 2012, 13:56 Post subject:
|
|
Hm...
Replacing busybox on any distro sounds like very major surgery.
Perhaps replace only the apps you need? I replaced the busybox "less" with the real one (less-444) and never had a problem.
Good luck.
_________________
"...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2675 Location: Kiel,Germany
|
Posted: Fri 30 Mar 2012, 02:23 Post subject:
|
|
For the initrd : compile statically :
For other watch out for the No Machine Whatever option : this disabled ash in the shell section in my cases (1.17,1.1 .
You need ash enabled , because roundabout a half dozen important scripts like /etc/rc.d/rc.sysinit use #!/bin/ash as the interpreter .
Busybox is very important providing replacements for lots of elementary binaries like login,su,nice,kill,tr, ...
For a dotconfig:
http://www.murga-linux.com/puppy/viewtopic.php?p=487433&search_id=505434022#487433
For a statically:
http://www.murga-linux.com/puppy/viewtopic.php?p=522807&search_id=505434022#522807
And by technosaurus :
http://www.murga-linux.com/puppy/viewtopic.php?t=46388&search_id=1981739698
http://www.murga-linux.com/puppy/viewtopic.php?t=59776&search_id=1981739698
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|