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 Tue 23 Sep 2014, 10:38
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 26 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 24, 25, 26, 27, 28, ..., 56, 57, 58 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 11 May 2011, 14:39    Post subject: static build of dialog and other ncurses based progs  

Finally got through compiling a static version of dialog, now small enough to be included as default...
Configured with:
Code:

./configure --disable-included-msgs --with-ncurses --disable-nls --disable-Xdialog --disable-extras --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=/usr/local/info --mandir=/usr/local/man

93K upxed - and 190K installed. source here

Also a static build of MP (ncurses-based text-editor attached. 225K installed/100K upxed. Version is the old mp-3.2.13 but works ok. Updated 130511 so attachment contains man etc.
Update 160511: Changed version to mp-3.3.13 (same version as in P412) after finding the source. Slightly smaller (215K).

Added 130511: htop static build, source here

Added 160511: retawq-0.2.6c. A very small text-web browser 268K static build.
retawq-0.2.6c.tar.bz2
Description  retawq-0.2.6c static build
bz2

 Download 
Filename  retawq-0.2.6c.tar.bz2 
Filesize  194.42 KB 
Downloaded  207 Time(s) 
mp-3.3.13.tar.bz2
Description  mp-3.3.13 static build
bz2

 Download 
Filename  mp-3.3.13.tar.bz2 
Filesize  136.78 KB 
Downloaded  200 Time(s) 
htop-0.6.4.tar.bz2
Description  htop-0.6.4 static build
bz2

 Download 
Filename  htop-0.6.4.tar.bz2 
Filesize  98.19 KB 
Downloaded  224 Time(s) 
dialog.tar.bz2
Description  dialog-1.1-20071028 static build
bz2

 Download 
Filename  dialog.tar.bz2 
Filesize  110.31 KB 
Downloaded  212 Time(s) 

Last edited by goingnuts on Mon 16 May 2011, 14:59; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Sun 15 May 2011, 13:14    Post subject: Static build of BASH  

Sometime CLI scripts are very "bashish" and the time or work to make them ash-compatible seems just too long and hard...
The alsaconf and especially firewall_install.sh could be examples. Then a static build of bash comes handy. Attached an older version bash-2.05b (source) - patched with all the official patches. Its 500K - same size as org. P412 bash 3.00.16 using shared libs...
Once - not so many years ago - this version was the latest and newest bash around...
bash-2.05b.tar.bz2
Description  Static build of bash205b with official patches
bz2

 Download 
Filename  bash-2.05b.tar.bz2 
Filesize  372.62 KB 
Downloaded  207 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Sun 15 May 2011, 15:01    Post subject:  

I want to use pupngo to build an embedded system of a "sage" server.
If I want to compile sage from source, do I need the original devx_412.sfs? Is the original puppy_412.iso still available somewhere?
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Sun 15 May 2011, 15:42    Post subject:  

emil: yes - use the original devx_412.sfs.
Org. ISO here:
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/
Back to top
View user's profile Send private message Visit poster's website 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Sun 15 May 2011, 15:48    Post subject:  

emil wrote:
I want to use pupngo to build an embedded system of a "sage" server.
If I want to compile sage from source, do I need the original devx_412.sfs? Is the original puppy_412.iso still available somewhere?


emil,

You can get the devx_412.sfs Here

Cheers,
s
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Mon 16 May 2011, 05:03    Post subject:    

Thanks - I found iso and devx file Very Happy

Now a dumb question: I tried to compile sage inside pupngo (had installed devx, gfortran and tcltk into it), but it refuses to work with build scripts because it says "bash not found". I guess this is because of the busybox. Is there any way to fix this?

Do you recommend to build in regular 412 and just use the binary in pupngo for my minimal sage server?
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Mon 16 May 2011, 10:32    Post subject:  

emil: I would recommend to compile in P412 and not in pUPnGO. The missing bash-thing - 6 post up there is a static bash - might work - but best guess is that you will have much less trouble compiling in original P412 and afterwards move your programs to pUPnGO.
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Thu 26 May 2011, 20:01    Post subject:  

Hi goingnuts,

Here's what I have for the JWM drive icons...

Basically, click on a drive icon, ROX opens.. After you close ROX, an Xdialog thing pops up, asking if you want to unmount.. If you click yes, it unmounts, icon not refreshed. If you click no, it updates the icon and restarts JWM to show the drive is still mounted.

And of course, it works in reverse - if it was mounted and you unmount, the icons are refreshed to show that...

It might seem strange to update the icons after ROX is closed, but this way, it minimizes the need to re-run create_jwmrc_drives and restart JWM.. Icons are only refreshed if if needed.

.....

I think this is all you need, don't think I updated anything while doing it... It's a bit rough... It's maybe different from what you originally sent me, meaning it might not work until you improve it!!

I removed 9menu, and added an Xdialog thing asking to unmount, after ROX is closed.... Like 2.14X ... Yet to fix multiple instances, if you click the drive icon twice - you'll see what I mean..

For me it works fine, although at first boot, sometimes a few partitions are missing, and I have to run create_jwmrc_drives.sh again.... I know it can be fixed, just not sure how as yet.

Hope you like it Smile Obviously take it as you want, change whatever, or stick to what you got now, this is just in case it helps.

And a screenshot...
screen.png
 Description   after closing ROX
 Filesize   297.11 KB
 Viewed   1323 Time(s)

screen.png

drive_mounter.sh.gz
Description 
gz

 Download 
Filename  drive_mounter.sh.gz 
Filesize  10 KB 
Downloaded  207 Time(s) 
create_jwmrc_drives.sh.gz
Description 
gz

 Download 
Filename  create_jwmrc_drives.sh.gz 
Filesize  10 KB 
Downloaded  205 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Thu 26 May 2011, 22:47    Post subject:  

I added a script for jwm notifications (no other apps required)
http://www.murga-linux.com/puppy/viewtopic.php?t=51200

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

Joined: 07 Dec 2008
Posts: 780

PostPosted: Fri 27 May 2011, 14:20    Post subject:  

sc0ttman: Thanks for sharing! I will adopt some of your code - really would be nice if jwm would update the image on traybuttons without restart...
Busybox blkid is extremely slow as it always probe everything so I might use a static GNU of that bin or use static build of "vol_id" from the udevd-package (as far as I remember) - to get the drive name and put it in the jwm-tool-tip instead.

For the multikernel build I have a working iso with the 4 kernels. A problem is that the iso gets to large for hosting at www.datafilehost (iso is 113Mb) as it holds 4 complete versions of pUPnGO. It still need some polish and testing but hopefully it will be finished soon.
Back to top
View user's profile Send private message Visit poster's website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Fri 27 May 2011, 15:29    Post subject:  

goingnuts hope it is okay if I ask a very naive but friendly intended question.

Your Pupngo is 6mb big and TCL is some 10 MB but when one have installed Firefox and other things one are used to have on Puppy then it is bigger than puppy with them installed from scratch.

How does that work on Pupngo. That one is smaller than the puppy with same program which is smaller than the TinyCore with them included?

Have I got that right? So you and Technosaurus and TTuuxx love things that are small size and effect without bloat.

The problem seems to be that pupngo use a kernel with older drivers.

What is it about TCL that allow them to have recent drivers then? TCL just worked out of the box. Everything worked apart from the Swedish keyboard. But that is accomplished by some extra work by the user.

Both wants to be modular. Both use files that can be loaded and unloaded. some of the ideas seems to be rather similar.

I am in latest version of TCL now for the first time it boot on NTFS.

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Fri 27 May 2011, 15:53    Post subject:  

goingnuts wrote:
sc0ttman: Thanks for sharing! I will adopt some of your code - really would be nice if jwm would update the image on traybuttons without restart...
Busybox blkid is extremely slow as it always probe everything so I might use a static GNU of that bin or use static build of "vol_id" from the udevd-package (as far as I remember) - to get the drive name and put it in the jwm-tool-tip instead.

For the multikernel build I have a working iso with the 4 kernels. A problem is that the iso gets to large for hosting at www.datafilehost (iso is 113Mb) as it holds 4 complete versions of pUPnGO. It still need some polish and testing but hopefully it will be finished soon.

Yeah, sorry if I disappointed or misled you Embarassed - I still can't get icons refreshed without re-starting JWM, I know it's a dumb way, but I think it works OK...ish.. Would love to know if I can do it without restarting JWM, but I seriously doubt it is possible (for me at least)..

If I can get a faster blkid, (or similar) that would be lovely... Can't remember where I got mine, actually.. Will have to check... Anything that speeds up running create_jwmrc_drives will be nice... I don't know enough to make it into an ash script, or even if it is possible..

About the kernel thing, PM me for FTP details, you can upload to my site somewhere... I'm thinking a multi-kernel, PXE booting thing would be nice... I'd maybe even build/host one for people to test!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Fri 27 May 2011, 16:14    Post subject:  

Hi nooby
Quote:
I am in latest version of TCL now for the first time it boot on NTFS.

Finally! Congratulations! BTW pUPnGO was never intended to become a desktop-building block although you can use it as such. And its a hobby, its fun, its educationally - at least for me...

Hi sc0ttman
I have attached to static bins that both gives drive names etc. I do not know if they are faster than the one you are using but maybe worth a try. And thanks for the hosting offer - I will revert when ready Smile

Update 280511: some timings on dynamic blkid versus the static blkid:
dynamic: real 0m0.019s
static : real 0m0.017s
static vol_id: real 0m0.016s

This cant be a bottleneck Rolling Eyes but output of blkid is (with command "/blkid -s LABEL /dev/sda1"):
/dev/sda1: LABEL="XPNEW"
where output of vol_id is (with command "vol_id --label /dev/sda1":
XPNEW
so using vol_id you get the result and the output of blkid has to be modified (if only label is needed..."
blkid_volid_bins.tar.gz
Description  blkid and vol_id static builds
gz

 Download 
Filename  blkid_volid_bins.tar.gz 
Filesize  49.41 KB 
Downloaded  205 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Tue 31 May 2011, 14:12    Post subject:  

I am having strange problems creating pUPnGO with kernel 2.6.33.2 from lupo:
If on hardware with a CRT-monitor "everything" is ok but using a LCD screen - monitor turns black. And this gives no way of trouble-shooting Crying or Very sad
If I bypass the following line in /etc/udevd/rules.d/50-udev-puppy-basic.rules
ACTION=="add", SUBSYSTEM=="?*", ENV{MODALIAS}=="?*", RUN+="/sbin/pup_event_backend_modprobe"

I can avoid the black screen - but no drivers are loaded (except the ones force loaded by initrd.gz)

Any hints would be very much appreciated!
Update 010611: Well...turns out to be a graphic driver problem and not a monitor-type issue. Deleting the /lib/modules/kernel/drivers/gpu directory from zdrv "solves" it. Further tests seems to point to drm_kms_helper.ko as being the trouble-maker - removing that single module makes everything work.

Last edited by goingnuts on Wed 01 Jun 2011, 15:47; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 01 Jun 2011, 11:13    Post subject: Kernel driver stripping
Subject description: ...a fools attempt to reduce size
 

Observed that kernel drivers seldom reports as stripped in ROX-Filer - guess there are a good reasons for that (?)
But as size matters in the pUPnGO sense, I tried anyway to strip them. For now I stripped all drivers in lib/modules/2.6.33.2 obtaining the following result:
#zdrv size uncompressed before stripping: 51Mb
#zdrv size uncompressed after stripping: 47Mb
#zdrv size compressed before stripping: 21Mb
#zdrv size compressed after stripping: 19Mb
All drivers gunzipped before stripping.
I cannot see any problems/difference booting pUPnGO_525 before and after stripping...
And modules still report "unstripped" in ROX-Filer...

Size reduction is minor doing the same thing on modules in initrd (reduction 160K uncompressed).

Used below script:
Code:
#!/bin/sh
START_DIR="zdrv_525/lib/modules/2.6.33.2"
cd $START_DIR
for x in $(find . -name *.ko); do
#do a recursive strip
strip --strip-unneeded $x
done
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 26 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 24, 25, 26, 27, 28, ..., 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.1109s ][ Queries: 13 (0.0172s) ][ GZIP on ]