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 Sat 02 Aug 2014, 00:56
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO - 6Mb ISO - Basic Building Block Puplet
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 6 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 56, 57, 58 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Wed 10 Mar 2010, 11:13    Post subject:  

probably not impossible - to ensure it gets written directly to the pupsave file you can try copying /lib/modules to /initrd/pup_rw/lib/modules

... although you should be able to just eliminate the lines where the cutdown /lib/modules is removed and the backup of the full /lib/modules~ is moved back into place.... for that matter eliminate the line where it makes the backup - remove it instead (rm -rf) - the cutdown version will replace it - if aufs is trying to be "smart" about not wirting duplicate files in the same location to the pupsave you can "touch" the files so that the time stamp is changed

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Wed 10 Mar 2010, 13:00    Post subject:  

http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=26850

Here is a compile of the full busybox from git - only PAM and SELinux options are disabled - everything else is the fullest desktop version. There is also a pinstall.sh script that will prevent adding busybox apps for items that are already installed even if they are in non-standard locations. you will need which and ln for it to run though, which should exist if you have an existing busybox - this version should make things more functional and give you ~100+ extra programs to play with.

to get the .config file from this busybox incase you want to disable some unnecessary options just run bbconfig >.config

Some scripts need patched to run with busybox ash (petget for example), mostly just converting from using the long options to short options (such as stat -c %s instead of stat --format=%s) I enabled the long options where available so the number of patches should be minimal.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 10 Mar 2010, 13:13    Post subject:  

The present pUPnGO build uses BB v.1.17.0.git. I managed to include technosaurus zdrvctr in buildscript and in the builds of pUPnGO - it really make things more lean. Build with full driver set and at installation/creating a pupsave reduced size by only including the needed drivers. Makes build for foreign hardware an ease.
I will upload the new build script and builds as soon as I have "beautified" the build-script a little more.
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Sun 14 Mar 2010, 09:08    Post subject:  

New build script for download below - ISO builds in homepage not updated yet. Main difference is the inclusion of technosaurous zdrvctr in build script (build in all drivers loaded by host) and in the builds (if zdrv is used). An all-driver build is also possible.
build_pupngo_412.zip
Description 
zip

 Download 
Filename  build_pupngo_412.zip 
Filesize  20.32 KB 
Downloaded  319 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 31 Mar 2010, 04:46    Post subject:  Kernel (re)Build?/Floppy Puppy  

I have been trying to compile P412 kernel following advise found here:

Running in a clean frugal install and after install of lzma-458.pet and compiling I do get a kernel with same size as the original (1590 kB) and it boots and runs OK (so far).
Now I wanted to test some other settings via "make menuconfig" - first thing that looked interesting was "Optimize for size (Look out for broken compilers!)". So changed that, compiled and new kernel with size 1405 kB obtained - 12% lees in size. Not much - but now fits on one floppy - if you want to follow that track...-> 2 Floppy Puppy Boot Disks able of booting already installed P412 or to the initial-ramdisk console if no P412 installed. Download floppy images and (DOS) MAKEBOOT.BAT.

Question: Why is original kernel not build with this feature? Does anyone know of problems using this setting?
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Wed 31 Mar 2010, 17:16    Post subject:  

it probably just uses -Os instead of -O2

they are the same except -O2 does further "optimizations" that may increase size with the hope of gaining speed in return (unrolling loops, duplicating small functions to inline them in multiple places etc...) gcc-4.4.x is much smarter and there is less difference, since it now will inline, unroll etc when code size is smaller such as:

for i = 1 to 3
x += 1
...

could become (depending on ...)
x += 3
...

The example is an oversimplification, but the gcc manual is well documented if you want to know the exact details.

Why not the 2.6.32.xx kernel using Barry's X.31.x .kconfig? too bad .33 broke compatibility with Puppy's init - it had some good stuff

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Wed 31 Mar 2010, 22:40    Post subject:  

haven't tried this yet, but it is the ultra basic X with rxvt and jwm built for png icons only (+libc,m,z,X11,Xdmcp,Xau,png) and some icons
Xbase.png
 Description   screenie
 Filesize   15.71 KB
 Viewed   1316 Time(s)

Xbase.png

X_base.pet
Description 
pet

 Download 
Filename  X_base.pet 
Filesize  1.48 MB 
Downloaded  332 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Thu 01 Apr 2010, 05:45    Post subject:  

technosaurus: Thank you for the explanation. So no reason not to downsize kernel if needed...and maybe include extra if needed...

I did test your ultra-basic X - but could not get it running. Probably font/file-structure have to be sorted out. But really a cut down in size if it can be implemented.

I realize that getting things smaller and more lean is rather difficult with the present setup of pUPnGO. A more user friendly approach might be to make packages for pUPnGO that holds everything to get the feature/application going by installing it on top of the very bare system. For this to work an installer have to be in the basic system.

Then size/feature optimization could be done in the application package - and not as now in the build script. Below the present state of a basic system with Xvesa-package on top (According to your ultra-basic approach the size of this system could come down below 7 MB for the ISO...). The present size is 8-9 MB ...
pupngo_010410.png
Description 
png

 Download 
Filename  pupngo_010410.png 
Filesize  106.33 KB 
Downloaded  391 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Thu 01 Apr 2010, 09:48    Post subject:  

petget only requires a few modifications to work with busybox (it has various scripts that can be run from the commandline)

I started a script that parses the official puppy packages in /root/.packages and builds a jwm menu to install packages. This will give a gui install method without the gtkdialog dependencies (I'm thinking it should go on the right side of the tray?) Will probably pull in xmessage as well to give notifications etc...

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Thu 01 Apr 2010, 11:37    Post subject:  

technosaurus wrote:
...I started a script that parses the official puppy packages in /root/.packages and builds a jwm menu to install packages. This will give a gui install method without the gtkdialog dependencies (I'm thinking it should go on the right side of the tray?) Will probably pull in xmessage as well to give notifications etc...


That would really push things forward! I do try to use dialog only for wizards as it can be used also if you do not have X or Xorg. gtkdialog/xdialog/xmessages carry dependencies that only increase size without increasing functionality...being extremely minimalistic by nature...I even tried to avoid dialog and use script only - but that road was too much of a learning-process for my patience...

Beginning to see a structured pUPnGO building block path - for embedded systems or desktop-versions: kernel (1,5Mb) , initrd.gz (1,3Mb), main-basic sfs (3Mb), zdrv holding selected drivers needed to get up and going (5Mb) and on top of that zdrv-cutter to wipe out unneeded drivers, pet-install to build customized Puppys down -> top...

By defining this structure the dependency/anchoring in P412 also vanish...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Thu 01 Apr 2010, 15:37    Post subject:  

of all of the dialogs, xmessage is the lightest (only requiring a couple of extra small xlibs if I recall correctly) and you can get a full screen of text with several buttons... plus it is easy to script.

FYI the Xvesa has already been sstripped (it is tinyx that I got from tinycore), so don't try to strip it to make it smaller or it will break... should probably move it to a different directory and make a symlink

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Tue 06 Apr 2010, 06:27    Post subject:  

technosaurous: Still no success with the Xvesa from tinycore - but did follow your route with a recompile of jwm and rxvt to minimize total size. Although I can not get the ultra-small size of the 2 programs as you can - I am able to kick some libs out. The attached pet should contain all needed to get a GUI in pUPnGO - and more in line with orig. P412 xwin, X, xinit and xinitrc is used. Reboot and power down now seems to work used from JWM. Still have problems with JWM and finding installed fonts - but works anyway. Updated 080410: See post below.

Also attached a very simple HD installer. This is a very basic OS installer for HD only, only Frugal install, only ext2 file-system, only files from CD, only grub in MBR. Targeted only for pUPnGO-V412. The pet contains the needed files from grub - run the installer with command "PUPNGOINSTALLER".
X_base.pet
Description  Xvesa & JWM for pUPnGO updated 080410
pet

 Download 
Filename  X_base.pet 
Filesize  1.33 MB 
Downloaded  313 Time(s) 
GRUB_OS_INSTALLER.pet
Description 
pet

 Download 
Filename  GRUB_OS_INSTALLER.pet 
Filesize  203.83 KB 
Downloaded  293 Time(s) 

Last edited by goingnuts on Thu 08 Apr 2010, 13:58; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Wed 07 Apr 2010, 00:57    Post subject:  

Code:
xinit -- -br -screen `Xvesa -listmodes 2>&1 |grep 0x[123][246] |sort -r |cut -d " " -f 2|tr "\n" " "|cut -d " " -f 1` -shadow -mouse /dev/mouse -nolisten tcp -tst -I > /tmp/xerrs.log 2>&1 &


start in max resolution (for min resolution remove the -r from sort)
will automatically run .xinitrc (which can simply be a bash script with exec jwm)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 07 Apr 2010, 14:52    Post subject:  

Very Happy - Got him running, updated the pet above - using technosaurous jwm and Xvesa, recompiled rxvt. Added symlinks for fonts and found that Xvesa from tinycore needed courB12-ISO8859-1.pcf and courB14-ISO8859-1.pcf to start. Still JWM claims unable to find his font but turns up anyway...
Reduced pet-size from 1448K to 1305K...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4293

PostPosted: Wed 07 Apr 2010, 16:35    Post subject:  

A while back, I modified the startup scripts for the HSB puplet (for kids) to automatically bypass the keyboard, country, mouse and only ask about the video card... with those mods and the xinit code from my previous post it could get to the desktop extremely fast
http://puppylinux.ca/members/T/puplets/hsblite_alpha.iso
puppy:linux ...Don't let "lite" fool you its ~170+MB

I wonder if you would even need to wait for the rest of init to finish. It may be able to start before the sfs or the drives are found and let those processes run in the background with a yafsplash, xmessage or something when finished... not sure about the pivotroot/switchroot at the end though

jwm and fonts:
http://joewing.net/programs/jwm/fonts.shtml

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 6 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 56, 57, 58 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0908s ][ Queries: 12 (0.0087s) ][ GZIP on ]