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

batalarm_xo

#261 Post by mavrothal »

With the aging XO batteries I though a battery alarm might be handy.
So I heavily modified Xbatalarm to suit the XOs.
The alarm is set at 15% battery level (at <10% the XO will auto shutdown)
If you want to change that limit, edit line 19 of the /usr/bin/xbatalarm_xo script

Will work with any puppy build for the XO-1 and the XO-1.5
Attachments
batalarm.jpg
Xbatalarm_xo on Precise-5.5 for the XO
(34.73 KiB) Downloaded 2396 times
Xbatalarm-1.2_xo.pet
Low battery alarm for the XOs
(1.58 KiB) Downloaded 1141 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

Precise 5.6.1 for the XOs

#262 Post by mavrothal »

Not sure if anyone (in the wild) is still using Puppylinux on the XOs (or the XOs altogether :shock: ) but since I made it thought to post it.
So, if you like the latest and greatest ( :P ), here is Precise-5.6.1_XO

In addition to the latest puppy is also using the 3.3.x olpc kernels (instead of the 2.6.x of the previous versions).
Will update older Precise-5.x.x_XO installations but no the original or other "XOpups"

As usually, to install expand the tarball at the root of a USB stick or SDcard and boot your unlocked XO.

(The "mandatory" picture below shown a bunch of other goodies running on my XOs. Ask if interested)
Attachments
precise-5.6.1.jpg
(24.77 KiB) Downloaded 2197 times
Last edited by mavrothal on Fri 30 Aug 2013, 21:36, 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] ==
Shiseiji
Posts: 1
Joined: Sat 15 Jun 2013, 12:28

or the XOs altogether

#263 Post by Shiseiji »

Well, I just got my XO back out and look what I found!

Thanks.
157
Posts: 4
Joined: Sat 15 Jun 2013, 21:26

#264 Post by 157 »

Hey, sorry for what's almost certainly an incredibly stupid question, but how do I install Puppy Linux on an SD card that I already have a different version of Linux I no longer want on? Since there's already a boot folder at the root of the SD card, I booted Precise 5.6.1 from a USB stick and it worked great, but I'd like to install it straight onto the SD card instead. What would be the best way to do this? From what I understand, formatting an SD card is generally a bad idea.
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#265 Post by mavrothal »

157 wrote:Hey, sorry for what's almost certainly an incredibly stupid question, but how do I install Puppy Linux on an SD card that I already have a different version of Linux I no longer want on? Since there's already a boot folder at the root of the SD card, I booted Precise 5.6.1 from a USB stick and it worked great, but I'd like to install it straight onto the SD card instead. What would be the best way to do this? From what I understand, formatting an SD card is generally a bad idea.
If you want to keep your other linux just rename the boot folder. Puppy will live happily with it if you save to a file (not "save to the entire partition").
Otherwise just "rm -rf" everything in the card and then you can do whatever you want.
No need to reformat.
== [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] ==
157
Posts: 4
Joined: Sat 15 Jun 2013, 21:26

#266 Post by 157 »

mavrothal wrote:
157 wrote:Hey, sorry for what's almost certainly an incredibly stupid question, but how do I install Puppy Linux on an SD card that I already have a different version of Linux I no longer want on? Since there's already a boot folder at the root of the SD card, I booted Precise 5.6.1 from a USB stick and it worked great, but I'd like to install it straight onto the SD card instead. What would be the best way to do this? From what I understand, formatting an SD card is generally a bad idea.
If you want to keep your other linux just rename the boot folder. Puppy will live happily with it if you save to a file (not "save to the entire partition").
Otherwise just "rm -rf" everything in the card and then you can do whatever you want.
No need to reformat.
Alright, thank you, I'll try that!

One other thing, though, is that when I ran it off the USB stick I got an error saying there was no free memory left constantly, even when doing basic things like opening the file manager. Will that not be an issue with the SD card, or will I need to make a swap file? I'm hesitant to do so because it's quite a large capacity card and I don't want to burn it out.
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#267 Post by mavrothal »

157 wrote: One other thing, though, is that when I ran it off the USB stick I got an error saying there was no free memory left constantly, even when doing basic things like opening the file manager. Will that not be an issue with the SD card, or will I need to make a swap file? I'm hesitant to do so because it's quite a large capacity card and I don't want to burn it out.
Is really hard to run anything on the 250MB of XO-1 nowdays.
If you do not want the messaging just remove the /root/Startup/freeramdaemon.sh file and will not bother you again.
Regarding swap and SDcards I have 2 cards with swap partition and 1 with swap file. The oldest is 4-years old and the youngest 2. No problems yet.
== [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] ==
157
Posts: 4
Joined: Sat 15 Jun 2013, 21:26

#268 Post by 157 »

mavrothal wrote:
157 wrote: One other thing, though, is that when I ran it off the USB stick I got an error saying there was no free memory left constantly, even when doing basic things like opening the file manager. Will that not be an issue with the SD card, or will I need to make a swap file? I'm hesitant to do so because it's quite a large capacity card and I don't want to burn it out.
Is really hard to run anything on the 250MB of XO-1 nowdays.
If you do not want the messaging just remove the /root/Startup/freeramdaemon.sh file and will not bother you again.
Regarding swap and SDcards I have 2 cards with swap partition and 1 with swap file. The oldest is 4-years old and the youngest 2. No problems yet.
Sorry for the late reply, I'm afraid I didn't have internet access for a few days.

Would there be a risk of the computer being damaged via overheating or something of that nature if the warning messages were removed? I assumed that might be the case and stuck with the XO's default GNOME desktop in the past few days. Attempts to create a swap file on a smaller SD card using the instructions from a saved version of the OLPC wiki's "Swap" page were unsuccessful, unfortunately. Not quite sure why. I'd have tried a partition, but the proper tools didn't seem to be available. May have just missed them, though.
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#269 Post by mavrothal »

157 wrote: Would there be a risk of the computer being damaged via overheating or something of that nature if the warning messages were removed? I assumed that might be the case and stuck with the XO's default GNOME desktop in the past few days. Attempts to create a swap file on a smaller SD card using the instructions from a saved version of the OLPC wiki's "Swap" page were unsuccessful, unfortunately. Not quite sure why. I'd have tried a partition, but the proper tools didn't seem to be available. May have just missed them, though.
All XOs have builtin thermal protection. The XO-1 in particular does not overheat even when overclocked.
Without the warning (and swap) the XO-1 will just run even slower but no harm will come to the machine.
To make a swap partition you can use gparted to re-partition your card. However you should know that SDcard partitioning can be tricky.
Alternativelly just choose "mkswap"when the warning comes up.
== [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] ==
157
Posts: 4
Joined: Sat 15 Jun 2013, 21:26

#270 Post by 157 »

mavrothal wrote:All XOs have builtin thermal protection. The XO-1 in particular does not overheat even when overclocked.
Without the warning (and swap) the XO-1 will just run even slower but no harm will come to the machine.
To make a swap partition you can use gparted to re-partition your card. However you should know that SDcard partitioning can be tricky.
Alternativelly just choose "mkswap"when the warning comes up.
Oh wow, really? That's great, I didn't know that.

And I'll give partitioning with gparted a shot, thanks. I'm not expecting much success at this point, but might as well keeping trying.
anthill
Posts: 3
Joined: Sat 07 Sep 2013, 17:31

Re: Precise 5.6.1 for the XOs

#271 Post by anthill »

mavrothal wrote:Not sure if anyone (in the wild) is still using Puppylinux on the XOs
I'm still breaking it out from time to time. Thanks for the update Mavrothal!

edit: I don't suppose you know how to change the backlight dimming level / time out? I'd like to see if the screen could blank to 'reflective' zero backlight mode (still this laptop's distinguishing feature).

edit2: Kernel headers? :roll: Hoping to compile some DVB tuner drivers for an ezcap RTL2832 i have lying around...
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Precise 5.6.1 for the XOs

#272 Post by mavrothal »

anthill wrote: edit: I don't suppose you know how to change the backlight dimming level / time out? I'd like to see if the screen could blank to 'reflective' zero backlight mode (still this laptop's distinguishing feature).

edit2: Kernel headers? :roll: Hoping to compile some DVB tuner drivers for an ezcap RTL2832 i have lying around...
Almost missed the edit...

Code: Select all

powerd-config
to configure timeouts and level
Manually you can do it from the XO buttons. They work! Use also the ctrl and alt modifiers with them :wink:
You can even reverse the colors using this pet

The headers are here.
Since I do not know which version you are uing I have bothe the 2.6 and th 3.3 headers of the XO-1 kernels (though should be OK for XO-1.5 too).
Last edited by mavrothal on Fri 13 Sep 2013, 18:33, 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

XOpup for the XO-4

#273 Post by mavrothal »

Here is the first development release of FatDog-ARM linux (a Puppy heritage "dog") for the ARM-based XO-4 and XO-1.75.
Is working fine on the XO-4 but there is no GUI for the XO-1.75 (for more on XO-1.75 problem see here)

Is intended mostly for developers ( there are not many "wild" XO_ARMs anyway).

At 300 MB has the full development tools, kerne- specific, X and all the other headers, git etc, with the usual assortment of puppy/fatdog apps.


To test/work/check it out, download fd-arm_a2_XO.tar.xz (md5sum:ae0f16950da130b7d50a484db4be662d), expand it at the root of a USB stick or SDcard and boot your XO-4 or XO-1.75.

Known Issues (besides the major XO-1.75 X problem):
- Touches are not recognized by X in XO-4 (but they are from the power management infrastructure)
Edit: To fix touchscreen open Gslapt and upgrade to the xf86-input-evdev-2.8.1git-armhf-2 package.
- Screen rotation does not work.
Edit: To fix rotation open Gslapt install xf86-video-dove-0.3.11xo4-armhf-1 and uprate to xorg-server-1.14.3
- The rocker pad keys are not recognized (the game keys are OK - Edit: now fixed. Fix will be in a3).
- The Wifi.sh connection tool crashes after wake up from suspend. Use it only for occasional/transient connections as it is much faster.
Use Classic Network Wizard for more permanent setting (is a bit laborious - see visual instructions if not familiar)

Report, better yet solve :wink: , any problems here (PM is fine too).

Oh... the customary screen shot :P

Edit Sep, 14: The tar.gz file might have been problematic and has been deleted. Please download the tar.xz file.
Attachments
newscreen.jpg
fatdog-arm alpha 2 running on the XO-4
(28.28 KiB) Downloaded 1524 times
Last edited by mavrothal on Mon 30 Sep 2013, 12:13, edited 8 times 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] ==
anthill
Posts: 3
Joined: Sat 07 Sep 2013, 17:31

Re: Precise 5.6.1 for the XOs

#274 Post by anthill »

mavrothal wrote: The headers are here.
Since I do not know which version you are uing I have bothe the 2.6 and th 3.3 headers of the XO-1 kernels (though should be OK for XO-1.5 too).
Ah, sorry, I should have specified! I'm running the latest one:

Code: Select all

-Version-
Kernel		: Linux 3.3.8_xo1-20130530.2216.olpc.f12d9e6_Aufs (i586)
Version		: #1 PREEMPT Thu May 30 22:38:40 EEST 2013
C Library		: GNU C Library version 2.15 (stable)
Distribution		: Precise Puppy - 5.6.1
Puppy package manager complains that the 3.3.8 pet is for the wrong kernel version - but that's just the date/time of build that differs, right?

Thanks for the brightness daemon configuration tip - that does the trick all right.
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Precise 5.6.1 for the XOs

#275 Post by mavrothal »

anthill wrote:[
Puppy package manager complains that the 3.3.8 pet is for the wrong kernel version - but that's just the date/time of build that differs, right?
Might be some very minor changes (different git version) but better be safe.
Here is the correct ones both for the XO-1 and XO-1,5
== [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] ==
anthill
Posts: 3
Joined: Sat 07 Sep 2013, 17:31

Re: Precise 5.6.1 for the XOs

#276 Post by anthill »

mavrothal wrote:better be safe.
Here is the correct ones both for the XO-1 and XO-1,5
Thanks Mavrothal! The package unpacks the headers into /usr/include/linux - is that the desired behavior? Most packages seem to look for /usr/src/linux-headers*.
User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#277 Post by Ted Dog »

Does MESH networking WORK in this? I'm interested in turning my Mele into a WiFi Access point, like Byzantine Linux does..
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Precise 5.6.1 for the XOs

#278 Post by mavrothal »

anthill wrote: Thanks Mavrothal! The package unpacks the headers into /usr/include/linux - is that the desired behavior? Most packages seem to look for /usr/src/linux-headers*.
The kernel source goes in /usr/src .
Headers of (all kind) are going into /usr/include. If you load devx your see all the other header files there too.
If any problem you can symlink to wherever you want.
BTW which package is looking for headers in /usr/src?
== [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

#279 Post by mavrothal »

Ted Dog wrote:Does MESH networking WORK in this? I'm interested in turning my Mele into a WiFi Access point, like Byzantine Linux does..
Which one is "this"?
Mesh networking is only available for the XO-1 wifi card. Other XO models do not have cards with this functionality. I have no idea if the MELE WiFi card supports mesh.
However, AFAIK mesh networking and turn it into wifi AP are different things, and again it depends on the wifi hardware of your machine.
== [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
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#280 Post by Ted Dog »

Oh, thanks, I must be behind on my XO knowledge, did not know they did way with MESH, the software MESH method used by BznLinux acts like a AP on all the boxes tested (all x86 worked, nicely). They have a version for RazPi so I guess an ARM version is do-able..
Post Reply