*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: 1 2 3 [4] 5 6 7 8
Print
Author Topic: Microcore linux for the XO-1 and XO-1.5  (Read 60771 times)

#45 Re: Microcore linux for the XO-1 and XO-1.5

metal.lunchbox
Senior Contributor
**
Posts: 149


February 17, 2010, 04:10:08 PM

RE: wpa_supplicant
this is normal, to need wpa_supplicant to connect to a wpa encrypted network.
Logged

xoxoxoxoxo

#46 Re: Microcore linux for the XO-1 and XO-1.5

ibboucco
Commenter

Posts: 8


February 19, 2010, 11:03:08 AM

I have tried to use the latest X version
First of all, I have used an SDHC card and it does not work (cannot boot).  If put the same card on a card reader, it does work. so there must be something easy, I just do not know enoug
I have tried to check if VLC is able to use the camera, but I have got gibberish, I I do not know hot to set it up
 Cry
Logged

#47 Re: Microcore linux for the XO-1 and XO-1.5

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


February 19, 2010, 04:55:34 PM

First of all, I have used an SDHC card and it does not work (cannot boot).  If put the same card on a card reader, it does work. so there must be something easy, I just do not know enoug

Just look 2 pages before  Cheesy

Quote
I have tried to check if VLC is able to use the camera, but I have got gibberish, I I do not know hot to set it up
 Cry

Try to install v4l, ffmpeg and/or gstreamer extensions if missing (I haven't checked)
Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#48 Re: Tinycore linux for the XO-1 - sources

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


February 21, 2010, 10:27:33 AM

Just in case you want to build your own TinyCore-XO or improve/modify it easier, I have uploaded in the friendly site Cool a folder with the TC-XO sources. Includes the kernels, the Xorg-7.4.tcz as well as 3 scripts that will build TinyCore-XO automatically when you run them on your XO (that runs a squashfs-enabled kernel).

The kernels can be installed in any F11-XO1/osNN build and probably others (Deborah?) for additional functionality. Besides Squashfs also include Aufs2 (for puppy linux) and HFSplus (to access your mac formatted iPod Cheesy).
Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#49 Re: Tinycore linux for the XO-1

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


February 22, 2010, 01:08:46 PM

Getting closer to TC-XO 0.1  Grin I managed to get sound/dimming and B&W color keys working.
Till a new build is done (I'll wait till battery and PM is done too) you can download the actkbd.tcz extension, set it to run /opt/bootlocal.sh like that
Code:
ln -sf /home/tc/.actkbd.conf /usr/local/etc/actkbd.conf
actkbd -q -D --device /dev/input/event4
then add the /home/tc/.actkbd.conf file to your home directory and put this in it
Code:
67:key::sudo adjust_brightness.sh - &
68:key::sudo adjust_brightness.sh + &
127:key::sudo toggle_color.sh &
87:key::xovolume.sh - &
88:key::xovolume.sh + &
56+87:key::xovolume.sh mute &
56+88:key::xovolume.sh max &
It points to the relevant scripts from Teapot's ubuntu and metal's Deborah (with minor mods) so the keys now work as expected.
Of course you must have the scripts too installed Wink
« Last Edit: February 22, 2010, 01:16:00 PM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#50 Re: Tinycore linux for the XO-1 - power management!

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


March 05, 2010, 02:25:46 AM

Just before the release of TC-XO 0.1  Grin (still needs a simple battery monitor) you can have power management for all the previous builds. And functional dimming/sound keys as a bonus Grin

Assuming that you run tinycore from a USB stick, to install just copy/paste the following in your terminal (middle click will do that).
Code:
cd /mnt/sda1/tce/optional
wget -c http://ftp.cc.uoc.gr/mirrors/linux/TinyCore_for_XO1/TC-XO_sources/tc-xo-pm.tcz
wget -c http://ftp.cc.uoc.gr/mirrors/linux/TinyCore_for_XO1/TC-XO_sources/tc-xo-pm.tcz.dep
wget -c http://ftp.cc.uoc.gr/mirrors/linux/TinyCore_for_XO1/TC-XO_sources/tc-xo-pm.tcz.md5.txt
sudo echo tc-xo-pm.tcz >> /mnt/sda1/tce/onboot.lst
sudo echo tc-xo-pm.tcz >> /mnt/sda1/tce/optional/tce.lst
After rebooting power management is there!

Also the dimming/sound keys will work as expected but you should reverse the modifications described in the just above post, if implemented.

The XO will suspend on lid-closure and power button press as well as on inactivity in different times depending if it is on battery, in tablet form or on AC power. Press the power button to wake it up.
You can modify the suspend timing editing the /home/tc/.powerd/powerd.conf file. Just make sure that the SLEEP time is after the BLANK time in all cases.
The /home/tc/.powerd/postresume file should already have the settings of your wifi and reconnect on resume. Check this file if you have a problem with that.

And a word of caution. Tinicore does not have vmstat so if you do a computation intensive long calculation in may think that you are inactive and suspend. Make sure that you stop powerd (kill in terminal) before that.
« Last Edit: March 05, 2010, 12:56:25 PM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#51 Re: Tinycore linux for the XO-1 - server down

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


March 12, 2010, 03:49:10 AM

FYI
The tinycore-xo hosting server had a major file system corruption and 6TB (!) of data was lost Including TinyCore_for_XO1 Cry
None of the provided relevant links is alive.

They are working on rebuilding it and should be up by next week.
By then the tc-xo v0.1 Grin should be there too (I hope...)

Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#52 Re: Tinycore linux for the XO-1 v0.1

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


March 16, 2010, 12:17:26 AM

Apparently server rebuilding takes longer than expected. They tell me they hit a major RedHat bug that are trying to get around.

So till this is solved I uploaded the new tc-xo_01.base.tar.bz2 (md5sum: 719ccfb295b5482a1dc6d8df1e58de43) in sendspace.com.

The 26MB "tc-xo_01.base" build is exactly that Grin
Has just the TC infrastructure, Xorg-7.4, ALSA, Power Managment, keyboard support, flwm window manager, Xfe file manager and the Xfw, Xfi, Xgv, nano apps. No browser (Opera is recommended)
It can be customized with TC extensions to suit your needs.

What's new
- Based on the newly released TinyCore 2.9
- The builds are utilizing new and modified tcz extensions (marked "_xo").
   - tc-xo-pm.tcz is a de novo extension. It provides power management and keyboard dimming, volume and rotation support.
   - actkbd_xo.tcz  provides keyboard dimming, volume, rotation and color/B&W toggle, independent or in conjunction with olpc-kbdshim.
   - alsa_xo.tcz for sound that will not crash the installation.
   - Xorg-7.4_xo.tcz with support for the gamekeys through Xmodmap.

Known Issues
- Screen rotation and other screen resolutions do not work properly. They do not resize for the XO-screen and just run off it, when implemented.
- Despite my promise for v0.1  Embarrassed there is no battery monitor. As a temp measure, type "bat_mon.sh -p" in your terminal to see the battery % level.

Installation
- To install expand the tarball at the root of an ext2/3-formatted USB stick labeled "TC-XO" and boot.

Notes: Any stick label can be used but then the "LABEL=<name>" in the /boot/olpc.fth file must be edited accordingly.
In various distros unlabeled sticks show as "disk" or "usb" or "media" or other generic name. This is NOT the label name
To install in an SDcard, change the two instances of "u:\" to "sd:\"  in the /boot/olpc.fth file. Formatting and naming, as for the USB stick.

There is no network/wifi manager application included. You must edit the /opt/bootlocal.sh file and enter your wireless access point settings where indicated.
Open and WEP networks are supported. To connect to WPA encrypted networks you must download the wpa_supplicant extensions (not tested)

You also need to edit the "tz=GMT-2" in the /boot/olpc.fth file to your time zone, so time will show correctly

Hidden goodies
- The actkbd_xo.tcz-autogenerated /home/tc/.actkbd.conf file has the configuration for the actkbd keyboard customization daemon that monitors the keyboard or the olpc-kbdshim output if present. It can be edited for further key customisation.
Depending on olpc-kbdshim installation (included in tc-xo-pm.tcz)  this file has different configuration to support dimming/sound keys. However, to protect user customizations, you must manually remove/rename the previous version for the new one to be generated at boot time.

- The tc-xo-pm.tcz-autogenerated /home/tc/.powerd/powerd.conf file has the suspend timeout settings and it can be edited to suit your needs. Make sure however that the "sleep" time, is *after* the "blank" time, otherwise the XO will never suspend. Again, this file will not be auto-generated if present

- The tc-xo-pm.tcz-autogenerated /home/tc/.powerd/postresume script connects your network on wake-up from suspend. It copies your /opt/bootlocal.sh settings and can be further customized with additional functions. The file will not be auto-generated a boot if present. You must manually remove/rename it it and reboot, or manually edit it, if you change network settings.

More builds,  info, sources and build scripts, when the server is up...
« Last Edit: March 16, 2010, 12:21:19 AM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#53 Re: Tinycore linux for the XO-1 - server up

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


March 17, 2010, 05:20:50 AM

 
Quote
More builds,  info, sources and build scripts, when the server is up...
Well,... it is! Grin Hopefully with no more problems.

So now you can find 3 versions of tc-xo_01 with different amount of applications, as well as sources, scripts, kernels etc.

Further details, in the build announcement
« Last Edit: March 17, 2010, 05:28:56 AM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#54 Re: Tinycore linux for the XO-1 - menu fix

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


March 19, 2010, 04:49:07 AM

All the TC-XO versions "suffer" from very small fonts in the menu and the windows tittle bar. So I recompiled flwm with bigger fonts.
To implement (till v.0.2 arrives) it just copy/paste the following in your terminal
Code:
sudo -s
cd /opt
wget -c http://ftp.cc.uoc.gr/mirrors/linux/TinyCore_for_XO1/TC-XO_sources/flwm_xo
chmod 775 flwm_xo
echo "ln -sf /opt/flwm_xo /usr/sbin/flwm_topside" >> /opt/bootlocal.sh
reboot
Done! You can now remove your glasses  Grin

PS:This works with all TC-XO builds not just the latest
« Last Edit: March 19, 2010, 04:51:31 AM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#55 Re: Tinycore linux for the XO-1 - battery monitor

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


April 19, 2010, 02:48:17 PM

Finally... a battery monitor for tinycore-XO. Grin
Is based on the watcher application
Till properly packaged and configured in TC-XO v0.2  download the 14kb(!) executable xo_bat, from here. Expand it, place it some where (/opt ?) and edit your .xsession to autostart at boot or do it manually
To place it in a specific corner use the -g argument. eg  :
./xo_bat -g +0+0 (top-left corner)
./xo_bat -g -0+0 (top-right corner)
./xo_bat -g +0-0 (bottom-left corner)
./xo_bat -g -0-0 (bottom-right corner)
Since I have set it to update every 60sec, when you launch it takes a minute before the reading appears. This is normal.
And BTW, works with any other OS too Grin

The flit developer also working to make flit XO friendly and is in pretty good point. Grin
My next little thing before v0.2, is to have a popper but simple network manager. Probably something based on the SNS from PuppyLinux. We'll see how long this is going to take...
« Last Edit: April 21, 2010, 12:37:14 AM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#56 Re: Tinycore linux for the XO-1 - tc-xo v02 !

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


April 22, 2010, 01:25:50 AM

Well, network manager may take quite a while mostly because I can not find anything small and nimble. There is nothing build with FLTK and the gtk-dialog/python managers start from 5MB and go up to 15MB+ Shocked.
Editing the opt/bootlocal.sh file should suffice at this point. Besides this is an experimental build after all... Undecided

So tc-xo_02 is here.
This is a 36MB build that has the basic apps plus the Opera browser.
Is based on the just released tinicore v2.10 with the improved application browser and other goodies
Is using the latest unmodified olpc kernel instead  of a modified one in the previous builds.
It includes the fixes described in the above posts, eg bigger fonts for the window manager and a battery monitor.
And of course maintains all the functionality of tc-xo_01. Sound, power management, gamekey and keyboard support, both Xorg and Xfbdev display managers etc.
Customize it as needed with the AppBrowser. See available applications and extensions here

Below is a screenshot of the actual build (the xmms audio player was installed after).




Some interesting details (battery monitor, machine specs, clock) can be seen in a high resolution picture here Cool
« Last Edit: April 22, 2010, 01:28:42 AM by mavrothal » Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#57 Re: Tinycore linux for the XO-1 - new flit

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


May 10, 2010, 06:53:20 AM

Just a heads up.
Flit, the clock/sound/battery mini-tray has been updated to version 1.2 that has full XO-1 support for battery and sound Grin It is scalable too so you can pick a size that fits your needs (or eye-site  Cool).
Remove flit.tcz that came with TC-XO builds and install the new one through appbrowser.
To stop (the now unnecessary) xo_bat from loading just comment out the  "xo_bat -g -0+0" from .xsession
Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )

#58 Re: Microcore linux for the XO-1 and XO-1.5

anika200
Commenter

Posts: 26


May 21, 2010, 02:40:33 PM

Hey Mavrothal,  I thought I would try reporting my findings here instead of the tinycore site.  Anyway,  your advise to untar as root cleared up all the permission problems, thank you.  I think I managed to stop the Xvesa set up from coming up.  You probably wont believe it but I have to remove my SD card from the slot for that to stop.  I think it has to do with existing /home and /usr directories (from a fedora install) on that SD card.

I did run md5 on the download btw and it was fine.

I am still getting the hsetroot segfault error.  Do you have any ideas on where to look for the cause?  This sounds weird but tinycore is still activating a swapfile I have on the nand, could this cause issues?  I just dont know where to look first.
« Last Edit: May 21, 2010, 02:52:08 PM by anika200 » Logged

#59 Re: Microcore linux for the XO-1 and XO-1.5

mavrothal
Administrator
OLPC News Forum Expert
*****
Posts: 1289


May 21, 2010, 10:12:22 PM

Hey Mavrothal,  I thought I would try reporting my findings here instead of the tinycore site. 

Very wise...

Quote
Anyway,  your advise to untar as root cleared up all the permission problems, thank you.  I think I managed to stop the Xvesa set up from coming up.  You probably wont believe it but I have to remove my SD card from the slot for that to stop.  I think it has to do with existing /home and /usr directories (from a fedora install) on that SD card.

That is strange. I have an SDcard all the time in and gives me no problem. Unless... does your SDcard and USB have the same label? eg "OLPCRoot" or something? This will certainly mess things up.

Quote
I am still getting the hsetroot segfault error.  Do you have any ideas on where to look for the cause?  This sounds weird but tinycore is still activating a swapfile I have on the nand, could this cause issues?  I just dont know where to look first.

So are you getting a black screen or what? hsetroot is only used by /home/tc/.setbackground AFAICT.
Swap is not a problem. TC will auto scan all the devices for a swap partition and use it.
But, is there any chance that TC is reading hsetroot off your NAND or anyplace else. eg what's on your nand (besides swap)? What's the nand label (if any?)

I would suggest to use a stick with the "TC-XO" (or another unique) label if you don't
Logged

XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or XOpup Grin )
Pages: 1 2 3 [4] 5 6 7 8
Print
Jump to:  

Members
Total Members: 2405
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 23
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 15
Total: 15