Puppylinux for the OLPC laptops: XOpup

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#31 Post by mavrothal »

01micko wrote:and also with connecting my 3G modem, (which was a cinch by the way :wink:
Anything more on that "cinch" ? May not be so trivial to everyone :shock: :D
01micko wrote:However, there is still some kind of problem.. installing dotpets and even sfs can cause issues (in xo-1)
That would be with your custom sfs or the original?
== [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] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#32 Post by 01micko »

Anything more on that "cinch" ? May not be so trivial to everyone
Ah yes, a 'howto' help file is needed, and not just for the olpc. There needs to be a a database in place with instructions for certain modems. While some like mine are very easy to set up, others can be a little more difficult.
That would be with your custom sfs or the original?
Both the same, seems it may be related to which usb dongle I use, so not really a 'bug', will know more on the week end, less sleepy then :D

Cheers
Puppy Linux Blog - contact me for access

rrolsbe
Posts: 185
Joined: Wed 15 Nov 2006, 21:53

Report back on sound

#33 Post by rrolsbe »

I would suggest to just try (re)installing udev from the ubuntu main repository through the puppy package manager. Just udev151(+), not any dependencies. Reboot and see if this brings sound back.
Tried did not work. Though I had power pet removed. I had to remove the power pet several times before the package manager did not list it as installed; likewise, had to install the udev151-12 several time before it was shown as installed. I rebooted each time after adding or removing but the packages did not install/uninstall properly?


BTW, "alsactl init" -- Reported no sound device

Regards, Ron

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

powerapplet

#34 Post by mavrothal »

Ron, Mick
do you by any chance installed a package after you installed the powerapplet pet, and then the sound disappeared on next reboot??? Did you see 2 battery monitors at any point???

I think that the problem is that the pinstall.sh script re-runs every time you install a package. Since the the commands now spit errors (no files to remove no processes to kill) it hangs and on reboot the hanged processes corrupt the file system!!!

Is a wild guess but is this the case? Did you install another package after the powerapplet and before the sound issue?

BTW how do you remove (automatically) the pinstall.sh after installation
== [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] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#35 Post by 01micko »

I didn't install the pet at all, I had it installed manually.

Also what rrslobe describes is similar behaviour to what I have seen with installing/uninstalling pets, even before powerapplet_xo existed, and yes, pinstalls seem to be the culprit.

Cheers
Puppy Linux Blog - contact me for access

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

#36 Post by mavrothal »

01micko wrote:I didn't install the pet at all, I had it installed manually.

Also what rrslobe describes is similar behaviour to what I have seen with installing/uninstalling pets, even before powerapplet_xo existed, and yes, pinstalls seem to be the culprit.

Cheers
Let me get this straight because I'm a bit lost and looks to me there are more than one issues with the powerapplet(pet).

1) Manual installation of powerapplet gave you the sound problem without installing the pet. (BTW I'm still to see the sound problem)
2) When installing the pet and the pinstall.sh is left behind you get additional problems with the puppy package manager

Is that what you are saying? or is the pinstall.sh the only problem? And if it is how do you autoremove the damn thing since PPM does not appear to do it automatically (adding "rm /pinstall.sh" at the bottom of the script does not work for me)
== [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] ==

Lerc
Posts: 4
Joined: Wed 29 Sep 2010, 10:39

#37 Post by Lerc »

I seem to have broken the shutdown.

It doesn't turn off. I get

olpc-switchd segfault at 0 ip b7767714 bfba807c error 4 in libc-2.11.1.so

Which I'm guessing is the powering-off failing horribly.

Other issues I've noticed. Using an external mouse doesn't trigger as a unblank worthy event. Which means you can be doing stuff and the screen goes dim. Not a showstopper, a tap on the touchpad and you're all ok.

Automatic network connection doesn't work. I'm not 100% sure it is supposed to, but I get the impression from the dialogs that it should restore connection on reboot.

And on the other front, I have been looking at where to plug in some bits.

In UDE I try to keep the users home directory relatively empty with the main things being Apps,Library,Downloads, and Stash
Apps for applications.
Library for unchanging media (pdfs,videos,music etc)
Stash for user created content
Downloads for acquired content.

For UDE on puppy I have elected to make a ~/Home(distinct from $HOME). I'll probably set up $UDE_HOME so that if people think it's a really bad idea it can be changed.

I'm going through the puppy apps and making ROX Wrappers as well as the ones I've customised for UDE.

mplayer -fs tv://
works (has a bug which causes a delay, but that has always been the case for me)

I have a tiny script for taking photos using mplayer that stores them in Stash/Photos/`date "+%d %B %Y"`/ It's a workable camera program.

I've also attached a font that may be useful. I built this because bitmap font rendering on the XO is so much faster, but all of the bitmap fonts I had encountered were way too small for the XO screen. This one is 21 pixels. Makes for a much nicer terminal.

more to come.
Attachments
pcterm.pcf.gz
Large monospaced Bitmap font
(4.5 KiB) Downloaded 1425 times

User avatar
Fox7777
Posts: 132
Joined: Fri 27 May 2005, 22:02
Location: Lacey, WA
Contact:

Howto for XOPup is needed

#38 Post by Fox7777 »

We have tried to boot XOPup on the OLPC several times with no success. The last attempt was with XOpup-1.0_RC3 using variations of boot /usb/disk:\boot\olpx.fth , etc. Puppy Linux 5.0 is also on the same usb. Is that a problem? A clearly spelled out howto for this would really help. Thanks.

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

Re: Howto for XOPup is needed

#39 Post by mavrothal »

Fox7777 wrote:We have tried to boot XOPup on the OLPC several times with no success. The last attempt was with XOpup-1.0_RC3 using variations of boot /usb/disk:\boot\olpx.fth , etc. Puppy Linux 5.0 is also on the same usb. Is that a problem? A clearly spelled out howto for this would really help. Thanks.
Yes, having another puppy is a problem. And that's pretty much the only problem I know of!

The how to is simple.
Expand the tarball at the root of the first partition (if multi volume) of any usb or SDcard that does not have Grub, puppyfiles (including the invisible aufs folders .wh..wh.....) or a "boot" folder and boot. Grub and boot is just to be safe.

Having said that, my preferred setup is on an ext3 formated SDcard with a swap partition and saving to the entire partition. Is much more stable albeit not as fast as saving to a file.
== [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] ==

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

#40 Post by mavrothal »

Lerc wrote:I seem to have broken the shutdown.

It doesn't turn off. I get

olpc-switchd segfault at 0 ip b7767714 bfba807c error 4 in libc-2.11.1.so

Which I'm guessing is the powering-off failing horribly.

Other issues I've noticed. Using an external mouse doesn't trigger as a unblank worthy event. Which means you can be doing stuff and the screen goes dim. Not a showstopper, a tap on the touchpad and you're all ok.

Automatic network connection doesn't work. I'm not 100% sure it is supposed to, but I get the impression from the dialogs that it should restore connection on reboot.
All these issues are in the "known issues 3" of the announcement. Eg the filesystem got corrupted during suspend.
The waking up from en external USB device is a limitation of the poewerd power management software when used with the non-hal version of olpc-kbdhim, as the one in XOpup.
And on the other front, I have been looking at where to plug in some bits.

In UDE I try to keep the users home directory relatively empty with the main things being Apps,Library,Downloads, and Stash
Apps for applications.
Library for unchanging media (pdfs,videos,music etc)
Stash for user created content
Downloads for acquired content.

For UDE on puppy I have elected to make a ~/Home(distinct from $HOME). I'll probably set up $UDE_HOME so that if people think it's a really bad idea it can be changed.

I'm going through the puppy apps and making ROX Wrappers as well as the ones I've customised for UDE.

mplayer -fs tv://
works (has a bug which causes a delay, but that has always been the case for me)

I have a tiny script for taking photos using mplayer that stores them in Stash/Photos/`date "+%d %B %Y"`/ It's a workable camera program.

I've also attached a font that may be useful. I built this because bitmap font rendering on the XO is so much faster, but all of the bitmap fonts I had encountered were way too small for the XO screen. This one is 21 pixels. Makes for a much nicer terminal.

more to come.
Wow! sounds very nice. are you posting these?
== [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] ==

User avatar
Fox7777
Posts: 132
Joined: Fri 27 May 2005, 22:02
Location: Lacey, WA
Contact:

RE: Howto for XOPup is needed

#41 Post by Fox7777 »

Darn, still not clear. A howto with an example of what should be on the usb and what command to use in order to boot the usb would help.

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

Re: RE: Howto for XOPup is needed

#42 Post by mavrothal »

Fox7777 wrote: A howto with an example of what should be on the usb
The boot, boot10 and boot15 folders and the lupu-511.sfs file
To be safe just get an empty usb stick (though that's an overkill).
Fox7777 wrote: and what command to use in order to boot the usb would help.
There is no command.
Just plug it in an XO-1 or XO-1.5 and power-up the machine.

If is still not clear try again the build announcement and the formatting instructions included in the build.
== [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] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#43 Post by 01micko »

mavrothal

there is a 'woops' with the announcement html file, a space in the filename, the browser won't open it :o , should be :

Announce_XOpup-1.0_RC3.html

--------------------------------------

More on petget issues later, but I have a gut feeling it is to do with aufs, no proof though.

Cheers
Puppy Linux Blog - contact me for access

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

#44 Post by mavrothal »

01micko wrote:mavrothal

there is a 'woops' with the announcement html file, a space in the filename, the browser won't open it :o , should be :

Announce_XOpup-1.0_RC3.html
I have no "woops". The link in the top post works fine and the file in the tarbal also works fine. Just checked.
Did you refresh your Browser cache?
The link to the hosting site is http://ftp.cc.uoc.gr/mirrors/linux/XOpu ... 0_RC3.html

01micko wrote:More on petget issues later, but I have a gut feeling it is to do with aufs, no proof though
It could be... I think aufs it may also be responsible for the occasional fs corruption in suspend.
Anybody knows if aufs for the 2.6.35 kernel is better? There is now an olpc-2.6.35.4 kernel but is not mature/tested enough, so I'm afraid it may cause more problems than improvements. But if Aufs is a winner it may worth trying.
== [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] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#45 Post by 01micko »

mavrothal wrote:
01micko wrote:mavrothal

there is a 'woops' with the announcement html file, a space in the filename, the browser won't open it :o , should be :

Announce_XOpup-1.0_RC3.html
I have no "woops". The link in the top post works fine and the file in the tarbal also works fine. Just checked.
Did you refresh your Browser cache?
The link to the hosting site is http://ftp.cc.uoc.gr/mirrors/linux/XOpu ... 0_RC3.html
I meant in the tarball, I just tested, see screeny

Also, I just done a fresh install of Standard (no respin) of rc3 and then rebooted (after some net setup, swapfile etc on FAT32 [not as in Jeff Fatt :wink: :wink: ]), then installed your pet of the powerapplet_xo, no prob with sound, rebooted, still no problem with sound. Then installed seamonkey from quickpet, installed fine but I got 2 powerapp icons! (pinstall.sh re-executed, not deleted, also petspecs not deleted). Ok, will look at petget see if we can't workaround the issue, I think we should stick with this kernel/aufs patch for awhile and work out the bugs. I think I can fix the petget issues, same if an SFS has a pinstall too, should be fixable.

Cheers
Attachments
xotray.png
(4.98 KiB) Downloaded 1957 times
xowoops.png
(3.75 KiB) Downloaded 1938 times
Puppy Linux Blog - contact me for access

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

#46 Post by mavrothal »

01micko wrote: I meant in the tarball, I just tested, see screeny
I see. My mac has no problem with that :D and when a click on it in XOpup/Fedora/Ubuntu Midori/html viewer/Browser just opens it so I did not consider it an issue, but you are right should be corrected.
01micko wrote:I think we should stick with this kernel/aufs patch for awhile and work out the bugs.
I would agree with the kernel, but there is now Aufs2.1 that might address some of these issues. I'll give it a try and see if things improve at all.
== [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] ==

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

new kernel

#47 Post by mavrothal »

mavrothal wrote: there is now Aufs2.1 that might address some of these issues. I'll give it a try and see if things improve at all.
Quoting myself... :roll:

I did make a new kernel with Aufs2.1 and now the devious powerapplet pet leaves no trace behind after installation :D :D .
I also have the sense that on "bad" cards/usbs corruption of the savefile during suspend is not that often but I did not check enough to verify.
Please download the new /boot10 folder (is only for the XO-1 not XO-1.5) and test.
You may need a new lupsave file though.
The new "boot10" folder with the new kernel vmlinuz/initrd.img is HERE

With this kernel "uname -r" should be: 2.6.31_xo1-20101006.1917.1.olpc.12d6406_PupAufs21
== [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] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#48 Post by 01micko »

I did make a new kernel with Aufs2.1 and now the devious powerapplet pet leaves no trace behind after installation :D :D
Indeed it doesn't :)

I downloaded 'boot10', overwrote old one, deleted pupsave and followed the same procedure as in a couple of posts back on the same stick and no problem so far.

Cheers
Puppy Linux Blog - contact me for access

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

powerd pet

#49 Post by mavrothal »

Here is a pet that in my hands solves most (if not all) of the squashfs corruption issues observed at times, when waking up from suspend.
What it does is a) to snapmerge whatever is in RAM before going to sleep and b) add a 5 sec delay between the final sync and device powerdown allowing any caches to be written.

As a result it takes up to 15sec longer for the XO to actually go to suspend but this is happening after the screen goes black or the lid closed. It just takes longer for the powerlight to start blinking (the indication of suspend) and you will see USB activity (if your stick has a light) the first few seconds after the "suspend"

Pls test with your "bad" media and report
Attachments
powerd_xo-1.pet
Power management for XOpup
(21.47 KiB) Downloaded 899 times
== [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] ==

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

recover lost sound!

#50 Post by mavrothal »

I finally tracked down the sound issue in Aufs (again) since sudenly is giving .wh.* devices! (though I think the real source of the problem is udev/pup_event)

To fix it do this.
In another machine (or the XO running Fedora11+/Sugar0.84+ :D) as su/sudo loop mount your lupusave.2fs, say in /mnt/pup and delete the white space dev files. eg

Code: Select all

mkdir /mnt/pup # if not already there
mount -o loop /media/XOpup/lupusave.2fs /mnt/pup # or whatever name your file/stick has
cd /mnt/pup/dev
rm -f .wh.*
rm -f */.wh.*
cd
umount /mnt/pup
umount /media/XOpup
# 99% of the time this fixes it. If not add this step before u-mounting the stick
mount -o loop -o ro /media/XOpup/lupusave.2fs /mnt/pup
fsck.ext2 /media/XOpup/lupusave.2fs #or fsck.ext3 if you have .3fs file
# Ignore the warning and check the fs. Fix any issues. Usually timestamps.
umount /mnt/pup
umount /media/XOpup
Put your stick back on your XO and boot. Sound should be there :D

Now if someone (hi Mick :wink:) can write a script that could do that in XOpup, or check and correct during shutdown, wouldbe nice.
Though is not trivial since white space files are not shown because of Aufs configuration and changing that opens the door for all kind of user messups :roll:
Last edited by mavrothal on Sun 17 Oct 2010, 09:54, edited 1 time in total.
== [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] ==

Post Reply