Puppylinux for the OLPC laptops: XOpup

For talk and support relating specifically to Puppy derivatives
Message
Author
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] ==

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

Re: powerd pet

#51 Post by rrolsbe »

mavrothal wrote: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
Clarification, are the files inside the readonly squash file system getting corrupted? or is the sfs file itself getting corrupted? If the sfs file itself is getting corrupted, I think the file system itself would be corrupted; therefore, any file located on the boot media might be corrupted?

Regards, Ron

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

Re: powerd pet

#52 Post by mavrothal »

Woops...
double post
Last edited by mavrothal on Fri 08 Oct 2010, 07:22, 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] ==

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

Re: powerd pet

#53 Post by mavrothal »

rrolsbe wrote:
Clarification, are the files inside the readonly squash file system getting corrupted? or is the sfs file itself getting corrupted? If the sfs file itself is getting corrupted, I think the file system itself would be corrupted; therefore, any file located on the boot media might be corrupted?

Regards, Ron
Actually the corruption is in RAM! Because probably some device may try to direct access memory (DMA) while the machine is asleep forcing a memory self refresh that generates the corruption (something like that was explained to me :D ).

Short answer, NONE of the actual lupu-511.sfs, lupusave.3fs of any other sfs is corrupted, UNLESS you save them.
The lupu-511.sfs is read-only so does not get corrupted anyway but the lupusave is read-write and gets corrupted on save after the RAM corruption.

My advice. If you see that something is "wrong" just "hard reboot" pressing the powerd button for 5sec so changes will not have the chance to be saved into the files. On reboot should be fine, but the session data will be lost :(

However, the new powerd_xo.pet should eliminate these instances since saves all the RAM data before suspend and adds 5 extra seconds after the save step and before device(usb/card) poweroff

I hope this is clear
== [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] ==

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

All good now

#54 Post by rrolsbe »

Just a quick post.

I replaced the boot10 folder, cleaned up the wh files and loaded the powerd/powerapp pet files. After doing this using a new pupsave file, everything seems to be working fine. Thanks for the clarification on the corruption problem. I knew the pupsave file and /mnt/home were the only entities mounted read/write; therefore, your explanation of the corruption problem makes total sense.

BTW, all this was done booting from the same flaky usb stick.

Thanks for all the hard work!!!
Regards, Ron
Time for RC4??

UPDATE: The powerapp has two battery symbols on the desktop and ps indicates there are TWO copies of powerapplet_xo running. I

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

Re: All good now

#55 Post by mavrothal »

rrolsbe wrote: Time for RC4??
We are cooking 1.0! but the power management although improved is not there yet
rrolsbe wrote:UPDATE: The powerapp has two battery symbols on the desktop and ps indicates there are TWO copies of powerapplet_xo running. I
Does it persists through reboot?
There is a problem with PPM in puppy/lupu in recent releases. Till the next release :wink: try installing the file from HERE (is not a pet). Works much better in my hands
== [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] ==

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

Re: All good now

#56 Post by rrolsbe »

Does it persists through reboot?
Rebooted again now only a single copy.
There is a problem with PPM in puppy/lupu in recent releases. Till the next release :wink: try installing the file from HERE (is not a pet). Works much better in my hands.
I will give it a try thanks!

Regards, Ron

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

RE: Howto for XOPup is needed

#57 Post by Fox7777 »

We have XOpup-1.0_RC3 on a usb stick booting on Cl1 Q2E45. When it gets to switch root, we get a kernel panel, not syncing message. Has anyone had this problem and is there a solution for it? Thanks

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

Re: RE: Howto for XOPup is needed

#58 Post by mavrothal »

Fox7777 wrote:We have XOpup-1.0_RC3 on a usb stick booting on Cl1 Q2E45. When it gets to switch root, we get a kernel panel, not syncing message. Has anyone had this problem and is there a solution for it? Thanks
Something is messed up with your setup/stick but without any info we can not know what. Kernel panic can happen for many reasons so if you want to get at the bottom of it provide some more info about the problem and the setup (a good idea in general when reporting problems)
So do the following
1) Boot in Sugar and verify that XOpup-1.0_RC3.tar.gz that you downloaded in intact eg has the correct md5sum. In sugar terminal type "md5sum /path_to_file/XOpup-1.0_RC3.tar.gz". The output sould be: bc3f733dfb90f139a5f34cb75077a37d
2) while still in Sugar put your usb stick in and from the terminal issue

Code: Select all

su
fdisk -l /dev/sda
Post the output (copy/paste) here so we can see how your stick looks like partition/filesystem-wise
3) still in the terminal type

Code: Select all

ls -al /media/stick_name/
where stick_name is the actual name of your stick, and post the output here so we can see what other files my be missing of conflict with XOpup.

Another common source of problems when writing/extracting something in a USB/SDcard on the XO, is that the device may be removed before it has the chance to be written fully (I did it few times :roll: ).
Just type "sync" in the terminal when you copy extract something to make sure everything is in sync
== [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

#59 Post by Fox7777 »

Problem solved: In summary you need the developer key, the correct firmware installed, the right md5sum on your XOpup download. We extracted to /media/disk on a formatted usb stick with partition 1 as ext3 and partition 2 as swap. (This was done on another computer running Mepis Linux 8.5 so does not have to be on the OLPC). Everything seemed to work OK including sound and wifi (as eth1). This transforms the OLPC from a Fedora novelty toy to something that would be very useful with super wifi, office suite, ability to add more programs, etc. and it is lightweight, rugged, waterproof, dirt proof, etc. Thanks again.

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

XOpup-1.0 is out.

#60 Post by mavrothal »

XOpup gained some more stability and features and is out as XOpup-1.0 :D
Check the top post for more info and download.

So now what...?
For v2 we* are thinking decreasing the size of the build while keeping Ubuntu compatibility is a main goal.
To that extend we think to remove the IceWM, the CD and DVD related applications, PPLOG and server apps and other not likely to be often used apps.
Replace Abiword, Calculate and paint with lighter versions etc.
The originals are going to be available as a separate sfs or pets but not in the build.
The idea is to build a small and even more efficient/fast base and allow users to customize it according to their needs by adding on top anything, from OpenOffice to... Sugar!!! while the base remains sufficient for most daily uses.

If you have any suggestions fore or against specific apps, or better yet can help out, let us know.

* we = 01micko and me :D
== [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