Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Sep 2014, 21:58
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to change busybox [with a self compiled version]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
AJK101

Joined: 17 Dec 2010
Posts: 41
Location: India

PostPosted: 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
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4235
Location: Gatineau (Qc), Canada

PostPosted: 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.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: 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.1Cool .

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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

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
[ Time: 0.0442s ][ Queries: 11 (0.0046s) ][ GZIP on ]