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 18 Apr 2014, 04:26
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO 2012
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 27 [398 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 25, 26, 27 Next
Author Message
escucha


Joined: 14 Mar 2009
Posts: 21
Location: In the Euro Zone next the Mediterranean Sea

PostPosted: Mon 18 Jun 2012, 11:19    Post subject: initrd.gz give-me error  

Hi, initrd.gz is a badly compressed file... It tries to do the best and falls into old code part calling a pup_412.sfs as in the original 412.
Sorry can´t test pupngo yet!
Thanks for your efforts.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Mon 18 Jun 2012, 12:04    Post subject:  

KJ: Again: thanks for test and report - sorry your save2cd wont work - its a nice feature to keep track of changes over time in the "save-file". Dillo font size can be adjusted by editing /usr/etc/dillorc: Add a line with "font_factor=1.2" after "fw_fontname=courier" and your fonts will get bigger. The shipped dillorc is a cut down of the original example file. Below the original.

escucha: Thanks for testing! initrd.gz is not gzipped (as the extension indicate) but lzma compressed. This should not prevent you from booting but it might be that the pup_412pupngo.sfs is not found on your hardware due to my move of all initrd kernel drivers into kernel.
I have no clue how to fix that other than go back to initrd with included kernel drivers needed at boot (which might be the best for pUPnGO 2012 dekstop usage...). The purpose of moving the drivers was to liberate the initrd from all the kernel-driver find and load stuff to ease port to other kernels - but I might have overlooked something (=failed).
Code:
# dillorc
# Sample dillo initialization file.
# Copy this file to ~/.dillo/dillorc and edit to your taste.
# Lines that start with a '#' are comments.


#-------------------------------------------------------------------------
#                             FIRST SECTION                             :)
#-------------------------------------------------------------------------

# Set the desired initial browser size
geometry=640x550

# Dicache is where the Decompressed Images are cached (not the original ones).
# If you have a lot of memory and a slow CPU, use YES, otherwise use NO
use_dicache=NO


#-------------------------------------------------------------------------
#                           RENDERING SECTION
#-------------------------------------------------------------------------

# Fontname for variable width rendering (most of the text).
#   - some fonts may slow down rendering, some others not!
#   - try to tune a fontname/font_factor combination.
# Ex. {helvetica, lucida, times, "new century schoolbook", utopia, ...}
vw_fontname=helvetica

# Fontname for fixed width rendering (mainly <pre> quoted text)
fw_fontname=courier

# All fontsizes are scaled by this value (default is 1.0)
#font_factor=1.2

# If you prefer oblique over italic fonts, uncoment next line
#use_oblique=YES

# Show tooltip popup for images?
# Note: We use the "title" attribute and not "alt".
#       More info at: http://bugzilla.mozilla.org/show_bug.cgi?id=25537
show_tooltip=YES

# Set this to YES, if you want to limit the word wrap width to the vieport
# width (may be useful for iPAQ)
limit_text_width=NO


#-------------------------------------------------------------------------
#                            PARSING SECTION
#-------------------------------------------------------------------------

# If you prefer more accurate HTML bug diagnose, over better rendering
# (page authors and webmasters) set the following to "NO".
#
w3c_plus_heuristics=YES


#-------------------------------------------------------------------------
#                            NETWORK SECTION
#-------------------------------------------------------------------------

# Set the start page.
# Uncomment if you want to override the default start page.
#start_page="file:/home/user/custom.html"

# Set the home location
home="http://www.dillo.org/"

# Set search url to use with the search dialog.
# %s is replaced with urlencoded keywords, and %% by '%'.
search_url="http://www.google.com/search?q=%s"
#search_url="http://search.lycos.com/default.asp?query=%s"
#search_url="http://www.alltheweb.com/search?cat=web&query=%s"

# Set the proxy information for http
#http_proxy=http://localhost:8080/

# if you need to provide a  user/password pair for the proxy,
# set the proxy user name here and Dillo will ask for the password later.
#http_proxyuser="joe"

# When using a proxy, this sets the domains to access without proxy.
# (separated with a single space -- see examples below)
#no_proxy = ".mynet.com"
#no_proxy = ".mynet.com .other.net .foo.bar.org"


#-------------------------------------------------------------------------
#                            COLORS SECTION
#-------------------------------------------------------------------------

# Here we can use the HTML (standard and extended) or C syntax.

# Set the background color
# bg_color=gray
# bg_color=0xd6d6c0
bg_color=0xdcd1ba

# Set the text color
text_color=black

# Set the link color
link_color=blue

# If your eyes suffer with white backgrounds, or you have headaches after
# lengthy computer sessions, and you don't need high contrast to see sharply,
# uncomment next line (it'll use 'bg_color' instead).   -- It works!
#allow_white_bg=NO

# Use the same colors with all documents?
force_my_colors=NO

# When set to YES, visited links will always have a contrasting color,
# independent of the page author's setting.
contrast_visited_color=YES

#-------------------------------------------------------------------------
#                        USER INTERFACE SECTION
#-------------------------------------------------------------------------

# Size of dillo panel (used to enlarge the browsing area)
# tiny   :  recommended for iPAQ (with small_icons)
# small  :  very nice! (it's "medium" without icon titles)
# medium :  nice!
# large  :  Traditional
panel_size=medium
small_icons=NO

# Here you can choose to hide some widgets of the dillo panel...
#show_back=NO
#show_forw=NO
#show_home=NO   
#show_reload=NO
#show_save=NO
#show_stop=NO
#show_bookmarks=NO
#show_menubar=NO
#show_clear_url=NO
#show_url=NO
#show_search=NO
#show_progress_box=NO

# Start dillo windows with a hidden panel?
fullwindow_start=NO

# Enabling this will restrain OpenUrl and FindText, but may be required
# for the ION window manager.
transient_dialogs=NO

# When filling forms, our default behaviour is to submit on enterpress,
# but only when there's a single text entry (to avoid incomplete submits).
# OTOH, if you have to fill the same form lots of times, you may find
# useful to keep away from the mouse by forcing enter to submit.
enterpress_forces_submit=NO

# Some forms lack a submit button, and dillo can generate a custom one
# internally. Unfortunately there's no guarantee for it to work. :(
# (my experience is that forms that lack a submit rely on Javascript)
generate_submit=NO

#-------------------------------------------------------------------------
#                        DEBUG MESSAGES SECTION
#-------------------------------------------------------------------------

# Generic messsages (mainly for debugging specific parts)
# Uncomment the following line to disable them.
#show_msg=NO

# Soon we'll add the "show_debug_messages=NO" option...

#-------------------------------------------------------------------------
#                        HTML BUG MESSAGES SECTION
#-------------------------------------------------------------------------

# Accepted by the W3C validator but "strongly discouraged" by the SPEC.
# (As "TAB character inside <PRE>").
#show_extra_warnings=YES


# -----------------------------------------------------------------------
# dillorc ends here.
Back to top
View user's profile Send private message Visit poster's website 
KJ

Joined: 20 Jul 2006
Posts: 176
Location: Above sea level .. about 320m

PostPosted: Tue 19 Jun 2012, 18:03    Post subject: USB save  

goingnuts: Thanks for the ~/.dillo/dillorc code ... will update that when I get a working save file. I dug out a small (256MB) usb flashdrive. Used "install to USB" to install pUPnGo2012 from the CD ... installed fine from the .iso file on the HDD. Set up ethO and saved a bookmark then told it to poweroff and chose 'save to sdb1' but it still just shuts down without a save. This is the contents of the usb flashdrive now formatted to ext2. Boots and runs great just no save. Is save supposed to work when booting from usb?

Code:
# ls -la
total 34090
drwxr-xr-x  3 root root     1024 2012-06-19 11:36 .
drwxr-xr-x 13 root root      100 2012-06-19 16:47 ..
-rw-r--r--  1 root root       65 2012-06-19 11:36 extlinux.conf
-r--r--r--  1 root root    14336 2012-06-19 11:36 extlinux.sys
-rw-r--r--  1 root root   776017 2012-06-19 11:36 initrd.gz
drwx------  2 root root    12288 2012-06-19 11:36 lost+found
-rwx------  1 root root 16842752 2012-06-19 11:36 pup_412pupngo.sfs
-rw-r--r--  1 root root  1704076 2012-06-19 11:36 vmlinuz
-rwx------  1 root root 15413248 2012-06-19 11:36 zdrv_412.sfs
#


... am I missing something? Thanks KJ

Last edited by KJ on Wed 20 Jun 2012, 10:39; edited 1 time in total
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Tue 19 Jun 2012, 19:24    Post subject:  

I've been looking into compressed ext2 mounted with noatime and xip as a replacement for squashfs and unionfs and ext* and swapfs. So far it went well until I tried it on a slow usb flash drive over usb1. Other than that, speeds were typically faster on first run, slightly slower on reruns. The resave to cd would need modded too, but it cut the kernel size quite a bit and simplified boots, saves, installs, remasters etc...
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Wed 20 Jun 2012, 01:13    Post subject:  

KJ: You have same content on the usb as I get. I have same behavior when trying to save directly to usb - I never tested that - but will try to see if it can be made functional. Save to file works - so try that if you want.
technosaurus: Sounds interesting! Any details or scripts avaleble? Would that methode work with old kernels (2.0/2.2) as well?
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Wed 20 Jun 2012, 02:03    Post subject:  

I have only been testing using kernel command lines: root=/dev/sda1 rootfstype=ext2 and rootflags=noatime,xip,etc...
older kernels would have to be patched for the xip but would work without it (the initial patches are here:)
http://lwn.net/Articles/135442/

the compression patches are available back to 1.X
http://e2compr.sourceforge.net/

side note: while looking through the kernel code for the root*= parameters, I noticed /dev/ram0 is a special case that doesn't get switchrooted - thought of just using a squash on /usr and ext2 on root (I think this is similar to what DSL did with cramfs instead of squash, except that cramfs can be compressed and XIP, while squash is only compressed and is available in older kernels)

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

Joined: 20 Jul 2006
Posts: 176
Location: Above sea level .. about 320m

PostPosted: Wed 20 Jun 2012, 10:38    Post subject: USB flashdrive save  

goingnuts: Posting from pUPnGo2012 with a save file on a USB flashdrive. I should have tried the save to file option from the start. Save to file now works on both my regular USB formatted to ext2 and my partitioned USB drive (SD card in a USB convertor).

FYI freemem on the taskbar still reports system freemem not savefile freemem. Loaded ttuuxxxView which reports correctly

Thanks for all your help .... KJ
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1384

PostPosted: Fri 22 Jun 2012, 03:54    Post subject:  

Tried to "peek" in your initrd.gz but non of the decompression apps appears capable to open the file so the usual
"{gunzip, bunzip2, bunzip, xz -d} -c initrd.gz | cpio -i" fails
Any suggestions?
Thx

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Fri 22 Jun 2012, 10:59    Post subject:  

technosaurus: Thanks - looks like it has some potential...
KJ: Nice! I will look at the code for the pmfree - thanks for notice!
mavrothal: Initrd.gz is a lzma archive:
Code:
#To unpack initrd.gz do:
lzma d initrd.gz initrd
cpio -idmv < initrd

"update": KJ: Cant reproduce the behavior of pmfree - here it shows free space in savefile only...
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 562
Location: Staffordshire

PostPosted: Tue 26 Jun 2012, 14:36    Post subject:  

goingnuts: I'm having problems with the initrd.gz too.
When I run : # lzma d initrd.gz initrd

I get
Code:
lzma: d: No such file or directory
lzma: initrd: No such file or directory


The file is now renamed as initrd.gz.lzma
Running the next command (with the filename altered)
#cpio -idmv < initrd.gz.lzma
... throws up loads of lines of 'cpio: Malformed number ' followed by gibberish.

UPDATE: Solved it by renaming to initrd.lzma then running
Code:
xz --format=lzma --decompress initrd.lzma
then the cpio bit (#cpio -idmv < initrd) works ok.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Thu 28 Jun 2012, 13:37    Post subject:  

Keef: Strange...the "lzma d initrd.gz initrd
cpio -idmv < initrd" works ok here...maybe version of lzma? I used lzma-458 to compress the initrd...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Thu 28 Jun 2012, 14:22    Post subject:  

lzcat file |cpio -id
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 562
Location: Staffordshire

PostPosted: Thu 28 Jun 2012, 14:33    Post subject:  

technosaurus: Yep - that works!
Back to top
View user's profile Send private message 
escucha


Joined: 14 Mar 2009
Posts: 21
Location: In the Euro Zone next the Mediterranean Sea

PostPosted: Mon 16 Jul 2012, 11:39    Post subject: Not working for me  

pup_412.sfs not found again... and again...
Confused Confused Confused
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 777

PostPosted: Mon 16 Jul 2012, 15:16    Post subject: Re: Not working for me  

escucha wrote:
pup_412.sfs not found again... and again...
Confused Confused Confused

Again I am sorry to hear that but I have no clue. Are you booting from CD? Have you the possibility to try another computer?
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 3 of 27 [398 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 25, 26, 27 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.1049s ][ Queries: 13 (0.0113s) ][ GZIP on ]