pUPnGO 2012

A home for all kinds of Puppy related projects
Message
Author
User avatar
escucha
Posts: 83
Joined: Sat 14 Mar 2009, 19:40
Location: Ainulindalë

initrd.gz give-me error

#31 Post by escucha »

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.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#32 Post by goingnuts »

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: Select all

# 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.

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

USB save

#33 Post by KJ »

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: Select all

# 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, 14:39, edited 1 time in total.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#34 Post by technosaurus »

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...
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#35 Post by goingnuts »

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?

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#36 Post by technosaurus »

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)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

USB flashdrive save

#37 Post by KJ »

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

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#38 Post by mavrothal »

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
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#39 Post by goingnuts »

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: Select all

#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...

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#40 Post by Keef »

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

I get

Code: Select all

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: Select all

xz --format=lzma --decompress initrd.lzma
then the cpio bit (#cpio -idmv < initrd) works ok.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#41 Post by goingnuts »

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

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#42 Post by technosaurus »

lzcat file |cpio -id
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#43 Post by Keef »

technosaurus: Yep - that works!

User avatar
escucha
Posts: 83
Joined: Sat 14 Mar 2009, 19:40
Location: Ainulindalë

Not working for me

#44 Post by escucha »

pup_412.sfs not found again... and again...
:? :? :?

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

Re: Not working for me

#45 Post by goingnuts »

escucha wrote:pup_412.sfs not found again... and again...
:? :? :?
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?

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#46 Post by starhawk »

Hey, goingnuts, I'm sure I've asked this before, as I've forgotten about this version of pUPnGO for some time... BUT...

Could you incorporate Xorg (just enough for the generic driver) into this somehow? I really don't know enough to do it myself :oops:

Also real wireless support would be way cool. Just a port over of SNS would be enough ;)

EDIT: just to give you the full story, this is for the Infernal Dell -- my Latitude CPi (P2 300MHz and 128MB RAM). Xvesa does all sorts of nifty things to the screen about 30sec in. That is to say, it fails quite spectacularly!

Technically, the NeoMagic driver "should" work, but on this system it generally does not -- Puplite5 and Akita get it right, other puplets generally speaking make a mess of things -- the colors are way off. (Not quite as bad a failure as Xvesa, fortunately.)

I still have a wireless-only network, hence that request -- I don't have the (rather rare, I am told) Ethernet->WiFi sort of module, just the regular USB ones. My particular favorite is a Rosewill RNX-N150UBE with the RTL8188 chipset.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#47 Post by technosaurus »

a static toolchain means no Xorg, but you can dump Xorg and the shared lib dependencies from any distro where your video does work.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#48 Post by starhawk »

Ummm... OK, approximately what files should I copy? (I really don't know this stuff!) Can I lift them from, say, Puppy 432?

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#49 Post by starhawk »

Actually... dirty little secret, I got a replacement CPi at some point. The old(er) one is now a parts machine. Looks like that parts machine has some video issues as well as a bad RAM slot -- although pUPnGO looks HORRIBLE on the newer example (not being suited to stripy pink and blue), it *is* stable... strange. I've attached a bad photo of what it looks like -- my amazing photography skills compensate for the fact that every 3rd column or so of pixels is black. Oops.

So I'll want to copy over Xorg, the generic Xorg driver (and MAYBE the neomagic driver) and whatever generates the conf files that Xorg needs.

I'll also be needing to know how to integrate Xorg in -- i.e. how to get the system to call Xorg and not just Xvesa. This should be fun :roll:

Hey, speaking of pink and blue... makes me think of J Edgar Swoop, a silly poem that my father illustrated for IIRC like a class project or something in the 80s. A pity that about 90% of that work got lost somewhere along the way -- the part I've seen was excellent.
Attachments
CPi-pUPnGO-Ewww.jpg
Scary screenshot... just, yuk.
(72.64 KiB) Downloaded 516 times

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#50 Post by technosaurus »

Try changing your bits per pixel. The wrong colors are sometimes fixed by going from 8bpp to 16 or 24
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply