Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 23:55
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
XOpup Interest Group. Puppy Linux for the OLPC XO-1 laptop
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 30 [448 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 28, 29, 30 Next
Author Message
mavrothal


Joined: 24 Aug 2009
Posts: 1794

PostPosted: Sat 24 Oct 2009, 01:04    Post subject: disassemble w/pictures  

ttuuxxx wrote:

Do you know how to open up the XO so that I can remove and replace the sd card inside, not the external one under the monitor. The one that the actual OS is located on.
ttuuxxx

Opening the XO is simple. However you CAN NOT remove the internal RAW flash memory that is wired to the motherboard. The SD slot is your best option for a semi-permanent storage/booting and the USB for err... USB.
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 24 Oct 2009, 01:45    Post subject:  

Thanks for the images Raffy, I managed to get it 50% apart and then came across mavrothal input, lol

Ok mavrothal how to I change the bios so it boot with SD card under the monitor. I don't see any bios options when booting.
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 1794

PostPosted: Sat 24 Oct 2009, 02:11    Post subject:  

ttuuxxx wrote:
Thanks for the images Raffy, I managed to get it 50% apart and then came across mavrothal input, lol

Ok mavrothal how to I change the bios so it boot with SD card under the monitor. I don't see any bios options when booting.
ttuuxxx


No BIOS Shocked
XO is using OFW (see previous page).
Basically the OFW looks in order to the USB, SDcard, Internal NAND to find a /boot folder and an olpc.fth file within this folder and does whatever this olpc.fth file is telling it. Basically 3 things, what is the root partition and its file system, the path to vmlinuz and the path to initrd (if used).
Here is my olpc.fth located in the SDcard that will boot Ubuntu from the SDcard if the "O" game key is pressed, and Fedora/Suagr from the NAND if not.
/boot/olpc.fth (in the SDcard)
Code:
\ Boot script
\
\ overclock first
\
7de009e
5dd
4c000014
wrmsr
\
\ end of overclock
\
\ boot option
\
game-key-mask h# 80 and if
    " ro root=/dev/mmcblk0p1 rootfstype=ext2 console=tty0 fbcon=font:SUN12x22 video=fb:1200x900 loglevel=3 splash" to boot-file
    " sd:\boot\vmlinuz" to boot-device
    " sd:\boot\olpcrd.img" to ramdisk
else
\ original teapot's version
\
\    " ro root=mtd0 rootfstype=jffs2 console=tty0 fbcon=font:SUN12x22" to boot-file
\    " nand:\boot\vmlinuz" to boot-device
\    " nand:\boot\olpcrd.img" to ramdisk
\
\ f11-xo1 vesion
\
    " root=/dev/mtdblock0 rootfstype=jffs2 console=ttyS0,115200 console=tty0 fbcon=font:SUN12x22 selinux=0" to boot-file
    " nand:\boot\vmlinuz" to boot-device
    " nand:\boot\initrd.img" to ramdisk
    setup-smbios
    unfreeze
    dcon-unfreeze
    visible
then
boot

The commented out "original version" is for booting F9-based/os802 (the one that came with the XO). The other is for F11-based system.
Now, the "setup-smbios" you need to simulate a "normal" BIOS. The unfreeze etc is so you get to see the console during boot.
Setting console, fonts, etc is not nessecary but good to have before you know you do not need...
( I hope you noticed the "overclock" Very Happy )


look here for more OFW and here for a booting specifically

PS: If you copy/paste my olpc.fth file make sure there is no <return> in the long lines that look-like they are braking. The lines that end with: to boot-file. Should be in one line.

Last edited by mavrothal on Sat 24 Oct 2009, 02:34; edited 3 times in total
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 24 Oct 2009, 02:17    Post subject: Re: disassemble w/pictures  

mavrothal wrote:
ttuuxxx wrote:

Do you know how to open up the XO so that I can remove and replace the sd card inside, not the external one under the monitor. The one that the actual OS is located on.
ttuuxxx

Opening the XO is simple. However you CAN NOT remove the internal RAW flash memory that is wired to the motherboard. The SD slot is your best option for a semi-permanent storage/booting and the USB for err... USB.


actually if look at this image the microSD internal card is removable
http://wiki.laptop.org/images/f/f0/XO_1.5_B1_Annotated_Motherboard.png
just found this image after putting it all back together, grrr, so still trying to figure out how to change the boot order?
ttuuxxx
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 1794

PostPosted: Sat 24 Oct 2009, 02:23    Post subject: Re: disassemble w/pictures  

ttuuxxx wrote:

actually if look at this image the microSD internal card is removable
http://wiki.laptop.org/images/f/f0/XO_1.5_B1_Annotated_Motherboard.png
just found this image after putting it all back together, grrr,


No you are good Very Happy .
This is for XO-1.5, the machine under development. You have XO-1
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1794

PostPosted: Sat 24 Oct 2009, 02:45    Post subject: Unlock your XO  

A very important point.
Unless you get a developers key and inactivate security in the OFW promt, YOU CAN NOT boot other OSs! Not even unsigned OLPC development builds!!!
(ok, you can but you need to have the security key in the /security folder of this OS)
So do it before you attempt to get anything else running on the XO. It take a day to get a key...
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 24 Oct 2009, 02:57    Post subject: Re: disassemble w/pictures  

mavrothal wrote:
ttuuxxx wrote:

actually if look at this image the microSD internal card is removable
http://wiki.laptop.org/images/f/f0/XO_1.5_B1_Annotated_Motherboard.png
just found this image after putting it all back together, grrr,


No you are good Very Happy .
This is for XO-1.5, the machine under development. You have XO-1


That is kind of what I asked for, man that would be simple I could soldier a few jumper wires to the micoSD slot and soldier in a external adapter, Then I could just unplug the original OS and toss in my testing Os.
This is starting to be a lot of complex work to just make a OS, I wish they would of sent me some developer specs/how to etc and make the laptop developer friendly, It was way easier for me to change and upgrade a motherboard in my old Toshiba laptop then just to be able
to boot this machine, lol
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 24 Oct 2009, 03:06    Post subject: Re: Unlock your XO  

mavrothal wrote:
A very important point.
Unless you get a developers key and inactivate security in the OFW promt, YOU CAN NOT boot other OSs! Not even unsigned OLPC development builds!!!
(ok, you can but you need to have the security key in the /security folder of this OS)
So do it before you attempt to get anything else running on the XO. It take a day to get a key...


Ok here's a question how do I obtain a developers key if i'm not using wireless internet? It says it takes a day or two, I get that it needs to get one via online.
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
raffy

Joined: 25 May 2005
Posts: 4796
Location: Manila

PostPosted: Sat 24 Oct 2009, 04:49    Post subject: USB  

From the support FAQ:
How_can_I_access_the_Internet.3F
Quote:
Can I use a wired Ethernet connection?

Yes, you can connect to a wired Internet connection; use a USB-to-Ethernet adapter.


I guess it should be easy if you have a wireless router. There must be getting started page - not available as I type this. This one is OK.

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).

Last edited by raffy on Sat 24 Oct 2009, 04:57; edited 1 time in total
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1794

PostPosted: Sat 24 Oct 2009, 04:52    Post subject: Re: Unlock your XO  

ttuuxxx wrote:

Ok here's a question how do I obtain a developers key if i'm not using wireless internet? It says it takes a day or two, I get that it needs to get one via online.
ttuuxxx

lower in the same page Very Happy

BTW, soldering another microSD would not solve any of the booting problems. Actually the machine would be bricked because would not even have some OFW to start. So leave it alone Very Happy
The SD slot is ok as soon as you wrestle the olpc.fth file Very Happy
If you want a walk-through on how to install os802 to an SD card and boot from there let me know. Some relevant links were given in one of my previous page post.
Basically you download the ext3 image, mount and correct the initrd to load USB/SD devices first, correct the olpc.fth to boot from /dev/mmcblk0p1 (the first partition in the SD card) and the filesystem to ext2 or ext3 (depending on the card formatting), copy it to the Sdcard put in in the XO slot and power up. Should boot from the card fine.

PS: On a second thought, I'll just tell you (or any other interested) Very Happy
So here we go installing and booting from USB/SD in a secure XO machine Very Happy

Download http://xs-dev.laptop.org/~cscott/xo-1/streams/staging/build41/devel_ext3/xo-1-olpc-stream-staging-devel_ext3.img.bz2

as "su" expand to the SDcard
Code:
bunzip2 -c xo-1-olpc-stream-staging-devel_ext3.img.bz2 | dd of=/dev/sdX bs=1024

If you do that on the XO make sure your card does not automount (it will if is fat/vfat). Unmount from the Journal/frame NOT the terminal. The path of the card on the XO is /dev/mmcblk0.
Resize your partition with fdisk (make sure you add some swap partition here)
Resize the filesystem with fsck.ext3 (on the mounted partition)
Code:
cd  /SDcard_path/boot
mkdir initramfs
cd initramfs
gunzip -c ../olpcrd.img | cpio -i
nano initutil.py # or your favorite editor

Find "ohci-hcd", duplicate that line and change "ohci-hcd" to "ehci-hcd" on the second line, then save the file and exit from the editor
Code:
find . -print | cpio -H newc -o | gzip -9 >../olpcrd-modified.img
cd ..
ln -sf olpcrd-modified.img olpcrd.img
rm -rf initramfs

Modify /etc/fstab to add the swap and see if any other paths need adjustment (they should not)
Modify /boot/olc.fth file of the card to
Code:
\ boot script

" root=/dev/mmcblk0p1 rootfstype=ext3 console=tty0 fbcon=font:SUN12x22" to boot-file
" sd:\boot\vmlinuz" to boot-device
" sd:\boot\olpcrd.img" to ramdisk
setup-smbios
unfreeze
dcon-unfreeze
visible
boot

Note: The "setup-smbios" is not needed but is for future use. If you have problems booting remove this line.
If you do not have the developer's key yet, boot the XO from the NAND (if not already) and copy the /security folder from the NAND to the card
Copy also the /home/.devkey.html to the card
finally copy the /ofw to the card
If you have the key and inactivated security forget these 3 steps.
Reboot
Should boot from the card.
You'll end up in a home screen w/o activities! You can download activities to a USB stick and follow these instructions

Disclaimer is some time that I did not do that but looks Shocked fine

PPS As I said before XO is known not to play well with many SDcards. Besides not booting from some of them, it also tends to corrupt them occasionally, particularly the bigger/high density ones. So after making a bootable SDcard I would give it a couple of days of "playing" time with several reboots (including hard ones) to make sure that it "likes" the card, before I put any kind of serious work on it. Needles to reiterate the need for often backup Very Happy
Back to top
View user's profile Send private message 
hailpuppy

Joined: 28 Oct 2009
Posts: 73

PostPosted: Thu 29 Oct 2009, 03:00    Post subject: Where have all the heroes gone???  

Sad HI i just joined puppy forum but have been an intense puppy linux lover since i first came across puppy 4.2. I love puppy for many reasons. I have an XO also with me.I got it from the Sri Lankan OLPC project specially to see if I can check puppy on Xo. Well as all of you guys might agree puppy seems the best Os for XO. Well apart from the specially configured windows XP for XO Laptop, puppy seems the only practical linux OS whichcan turn XO into a really usable laptop. Whatever said and done XO laptop looks merely a playmate with Sugar on it. I do agree that Sugar may be able to make small children get connected with xO but when they grow up XO will be of no use to them only because Sugar powers Xo. I am not from a programmers background but i can work out a way to put you guys across with with OLPC guys in Sri lanka and another set of guys who are interested in diving into XO in turms of coding and stuff. If Barry can also take a step forward into being a bit more interested in the XO implementation of Puppy it might produce a wonderful product.XO's hardware comes bundles up with some cool features as well.Just imagine the benefits of XO and Puppy getting together.I v been following this thread from the very beginning and found that you guys seemingly have taken a rest. Just had to say that I love your brave hearted effort to make Puppy XO friendly. keep it up guys.!!!! And thankx!!1!
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1794

PostPosted: Thu 29 Oct 2009, 05:15    Post subject:  

Patients young apprentice Very Happy
Besides ttuuxxx said is going to give monthly reports and is only the 29th... Very Happy Very Happy Very Happy

Seriously though ttuuxxx, I hope by now you have your developer's key a working SDcard (with one of the available XO OSs) some basic idea what the XO can and can't do with its original (or other) OS.
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Thu 29 Oct 2009, 06:43    Post subject:  

mavrothal wrote:
Patients young apprentice Very Happy
Besides ttuuxxx said is going to give monthly reports and is only the 29th... Very Happy Very Happy Very Happy

Seriously though ttuuxxx, I hope by now you have your developer's key a working SDcard (with one of the available XO OSs) some basic idea what the XO can and can't do with its original (or other) OS.


Hi mavrothal This project will be mostly weekend work, The reason is that I getup at 5am mon-fri for construction work and don't get home until 3:30, then I spend a bit of time with the kids, eat and watch about 1hr of tv and I'm dead to the world, lol, Man I should use my computer diploma instead of working hard, lol
Lets just say I'm tired early, I might mess around with 2.14X because that is really simple, weekends I'm refreshed and actually this weekend will be a long weekend for me Smile So Saturday, Sunday, Monday I'll work on it, probably about 50hrs worth, I can easily spend 16hr days on puppy Smile .
Also as Sugar goes, well I won't make it default but maybe as a sfs or something, I've seen Xo on ebay for sale that people have put ubuntu in only because they hate sugar, I've been letting my kids play with the xo's to get input, and they have difficulties closing sugar apps because they aren't well defined, The laptop stopped in the middle of shutting down a few times etc. Sugar should go.

ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 1794

PostPosted: Thu 29 Oct 2009, 07:16    Post subject:  

ttuuxxx wrote:

Hi mavrothal This project will be mostly weekend work, The reason is that I getup at 5am mon-fri for construction work and don't get home until 3:30, then I spend a bit of time with the kids, eat and watch about 1hr of tv and I'm dead to the world, lol, Man I should use my computer diploma instead of working hard, lol
Lets just say I'm tired early, I might mess around with 2.14X because that is really simple, weekends I'm refreshed and actually this weekend will be a long weekend for me Smile So Saturday, Sunday, Monday I'll work on it, probably about 50hrs worth, I can easily spend 16hr days on puppy Smile .

Exclamation Exclamation Exclamation

Quote:
Also as Sugar goes, well I won't make it default but maybe as a sfs or something, I've seen Xo on ebay for sale that people have put ubuntu in only because they hate sugar, I've been letting my kids play with the xo's to get input, and they have difficulties closing sugar apps because they aren't well defined, The laptop stopped in the middle of shutting down a few times etc. Sugar should go.
ttuuxxx

Freeze at shutdown is a known bug (as if this solves the issue... Wink ) happening when 2 simultaneous instructions are issued. Just ctrl-alt-f3 (the 3 dot button) to get another console and then the shutdown progresses normally.
Sugar has evolved from what you have (0.82) and improved considerably in the current 0.86 version. However 0.86 is not really available for the XO. (You can try it if you really want but is still unstable. The non-xo versions from the same link should work ok in a "normal" computer though) Sugar 0.84 is available but with major breakers (eg no camera).
In any case and in contrast to some claims Sugar is not self taught... it does need a lot of guidance.
Making a Sugar sfs would be supper, but lets worry about this latter Very Happy
Back to top
View user's profile Send private message 
alejol


Joined: 14 Apr 2009
Posts: 30
Location: Country: Uruguay; city: Florida

PostPosted: Fri 06 Nov 2009, 15:49    Post subject: Continue like that, man! Do not give up!
Subject description: Thanks ttuuxxx for your effort!!
 

ttuuxxx, I live in Uruguay and my daughter Emilia has one XO.
I am very dissapointed with Sugar, and very upset with Journal. It is the worst file manager, and one of worst MIT's ideas. Journal impedes the sharing or saving files in a simple fashion with non-XO machines. The use of .metadata files obscures each file.
And Sugar interface is not standard, and our childrens do not learn how to use a *real* computer.
I appreciate your effort, and the hardware of the XO is not standard which makes your job difficult.
I will be very pleased to try Puppy in the XO .

My best wishes to be able to successfully complete your project!!
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 4 of 30 [448 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 28, 29, 30 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1347s ][ Queries: 12 (0.0147s) ][ GZIP on ]