pUPnGO 2012

A home for all kinds of Puppy related projects
Message
Author
KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

On line now

#21 Post by KJ »

It works. Posting from pUPnGo 2012 now with Dillo using live CD and auto-connect. Thanks for the advise ... will try the wifi and usb later.

Goingnuts ... I have followed your work on this project for a long time but haven't had the nerve to actually try to load a version as my CLI (and general typing) skills are poor.

Thanks for the help. KJ

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

#22 Post by Keef »

Posting wirelessly - Linksys pcmcia wifi card using b43 module and WPA-PSK.
Had to copy the firmware in, and also copied in dhcpcd and supporting libs. Not sure if it was needed, but it has took me a few attempts to get this far. Also knocked up a udhcpc.conf, but I think the wireless manager gives preference to dhcpcd. It threw out a load of errors and warnings but got there in the end.

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

#23 Post by goingnuts »

KJ:Thanks for testing! And good you got connected!
KeefThanks for sharing you findings - I did some trial as well but havent got it working yet. I also started to look after a good wifi-front/backend. Now where gtkdialog and Xdialog is in it might be easier to adapt exsisting wifi managers...Any suggestions to which to try?

I started to modify wifibox from Slitaz as I like the interface - but realized that it does not do the wpa-supplicant - which I need to connect to my wpa2 network...
Also tried the pwireless2-1.0 in my normal P412 but no luck there as well...Might give it another try though...
The standard networkwizard in P412 works but its a bit difficult to modify..

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

#24 Post by technosaurus »

I use sns in wary for WiFi, but it will periodically disconnect and not automatically reconnect. I haven't tried jemimah's frisbee, but the code looked ok. Everyone seems to want to overcomplicate it. I am working mostly with the wary kernel, since it is the oldest one that is still regularly maintained...so I may end up with something that may not work 100% Does anyone have hardware that works in pupngo but not wary?
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

pUPnGo 2012 on a partitioned flashdrive

#25 Post by KJ »

Keef ... Your suggestion is correct ... pPUnGo2012 does need a ext partition (I have not ran into that issue before but could have guessed from goingnuts's installation comments). So I made a small ext2 partition (128MB) on my usb flashdrive (actually a 8GB SD with a mix of ext2 and fat32 partitions (10 different pup versions) in a usb convertor). Moved the main files (vmlinuz, initrd.gz, pup_412pupngo.sfs, and zdrv_412.sfs) there with the .sfs's in a subdir (Bootpupngo) and it now boots fine (but will not save) with this grub4dos menu.lst entry:

title pupngo
find --set-root --ignore-floppies /Bootpupngo/pup_412pupngo.sfs
kernel /vmlinuz pmedia=usbflash psubdir=Bootpupngo pfix=fsck
initrd /initrd.gz

Overkill I am sure but this is the way all my other menu.lst entries read. If you place the .sfs's and save file in a psubdir (Bootxxx), most puppies will only look in that dir. so you don't end up with a confusing list of frugal save files and boot problems from other puppy versions you have on your drives.

goingnuts ... FYI I copied the rest of the .iso files onto this partition and pUPnG02012 would not save ... just shutdown. I will find a small usbflash to wipe and run your 'install to usb' option. Tried you "bad" save back to CD option ... yep ... will not boot. Will wait for your fix before I try that again. Thanks ... KJ

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

#26 Post by goingnuts »

technosaurus: Thanks for the pointers! Began to work with sns but I havent the full source code so got stuck (cut the parts out of Wary but havent localised everything needed). And yes - many wireless frontends/backends seems to get very complicated - that why I tried to do one myself...

KJ: Thanks for testing! New iso uploaded where I put back the firmwarestuff in zdrv, added dhcpcd, full wirelesstools package and fixed the save2CD/DVD. cdplay now in menu as well.
Increased size by 4MB but now I can connect to my wpa2 network using the wireless.sh script. Hope that goes for the other network types as well - but I cant test.
Download updated version pUPnGO 2012
update: had to upload new iso - sorry and my apology to the 15 downloads done today! (reason false symlink to losetup - not that severe - but might make mount of ntfs unstable)

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

#27 Post by KJ »

goingnuts: D/Led updated .iso and copied new files to my usb/SD partition ... booted and network connection good .... have not tried wifi yet. Does not save (expected).

Completely erased rw-cd and burned new iso. Booted fine .... network good. Saved back to CD (external USB burner) completed .... but no reboot (same as with previous iso). Sorry ... My laptop internal CD/DVD drive is bad so I run an external drive. Thanks ... KJ

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

#28 Post by goingnuts »

KJ: thanks for testing! About cd-save: Are you able to view the content of the cd after saving? Do you have the original files present plus a folder with this structure: "2012-06-16-23-05"?
After saving to CD one time the content of my CD is:

Code: Select all

total 33945
drwxrwxrwt 12 root root     2048 2012-06-17 07:00 2012-06-16-23-05
-r--r--r--  1 root root     2048 2012-06-16 22:51 boot.cat
-rwxr--r--  1 root root     2048 2012-05-09 21:28 boot.catalog
-rw-r--r--  1 root root     1066 2012-06-16 22:51 boot.msg
-rw-r--r--  1 root root   776017 2012-06-16 22:51 initrd.gz
-rwxr-xr-x  1 root root    13931 2012-06-16 19:21 isolinux.bin
-rw-r--r--  1 root root      113 2012-06-16 22:51 isolinux.cfg
-rwx------  1 root root 16842752 2012-06-16 22:50 pup_412pupngo.sfs
-rw-r--r--  1 root root  1704076 2012-01-11 18:20 vmlinuz
-rwx------  1 root root 15413248 2012-06-16 14:55 zdrv_412.sfs
If structure looks ok try to boot (just a guess as you say reboot gives problems...)

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

#29 Post by KJ »

goingnuts: This is the "ls -la" from my rw-cd:

Code: Select all

# ls -la
total 33947
drwxr-xr-x  3 root root     2048 2012-06-17 04:54 .
drwxr-xr-x 13 root root      100 2012-06-17 13:49 ..
drwxrwxrwt 12 root root     2048 2012-06-17 04:50 2012-06-17-09-54
-r--r--r--  1 root root     2048 2012-06-16 09:51 boot.cat
-rwxr--r--  1 root root     2048 2012-05-09 08:28 boot.catalog
-rw-r--r--  1 root root     1066 2012-06-16 09:51 boot.msg
-rw-r--r--  1 root root   776017 2012-06-16 09:51 initrd.gz
-rwxr-xr-x  1 root root    13931 2012-06-16 06:21 isolinux.bin
-rw-r--r--  1 root root      113 2012-06-16 09:51 isolinux.cfg
-rwx------  1 root root 16842752 2012-06-16 09:50 pup_412pupngo.sfs
-rw-r--r--  1 root root  1704076 2012-01-11 04:20 vmlinuz
-rwx------  1 root root 15413248 2012-06-16 01:55 zdrv_412.sfs
# 
Looks like yours except for the first two entries (and total size). I did firstrun auto setup eth0 and add some bookmarks to Dillo before the save.

In all fairness to your hard work ... this is my first use of live-cd with save-to-cd and I don't know if any puppy will boot after a save-to-cd and shutdown on my system. I will burn another puppy version and try a save-to-cd to see if that works. May be a couple days before I get that done.

First I booted the new iso then selected 'reboot' from the shutdown menu then 'save to CD' and watched the save info on the screen and the OS shutdown and booted from the HD (no puppies there) not the CD. Next I shutdown the computer .... waited a minute and booted the laptop ... external usb cd burner spins up but boot is from another source (external usb CD is BIOS first choice, then usb HDD (flashdrives boot here), then internal HDD). CD mounts and reads OK but no longer boots... have read some text files OK. Thanks ...KJ

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

Save to CD

#30 Post by KJ »

goingnuts: I tried saving Lucid 510 back to CD ... and it no longer boots (pUPnGo2012 is the first iso I burned in a while). Guess my laptop (Acer Aspire 5570Z) doesn't like something common in the save-to-CD process.

One observation, Some of the fonts (smaller ones seen in Dillo home page) are really hard to read. Thanks KJ

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.

Post Reply