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 Fri 24 Oct 2014, 12:26
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 Posts_count  
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: 4256
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_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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0450s ][ Queries: 11 (0.0050s) ][ GZIP on ]