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 Fri 24 May 2013, 21:24
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 15 of 30 [448 Posts]   Goto page: Previous 1, 2, 3, ..., 13, 14, 15, 16, 17, ..., 28, 29, 30 Next
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 6866
Location: Perth, Western Australia

PostPosted: Fri 15 Jan 2010, 04:37    Post subject:  

ttuuxxx and others,
After discussion on my blog:

http://bkhome.org/blog/?viewDetailed=01339

...only the XO-1 has a Geode CPU, the XO 1.5 has a Via C7-M CPU.

So as my most recent one-file Quirky is compiled specifically for a Geode GX1 CPU, it might not work on the XO 1.5. Heck, there might even be a problem with the XO-1 as it has a Geode LX CPU and I'm only assuming that it is backwards compatible with the GX1.

I think Raffy has an XO-1, so can try the latest Quirky.

Anyway, I'll take a look at what mavrothal has posted and do another build.

_________________
http://bkhome.org/blog2/
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 1759

PostPosted: Fri 15 Jan 2010, 05:28    Post subject:  

Any geode can run using a kernel compiled for 'i586'. However, the geode lx will suffer from severe slowdowns and should use a kernel compiled for 'i486'. Using an 'i486' kernel will ensure compatibility with the XO 1.5
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4636
Location: Manila

PostPosted: Fri 15 Jan 2010, 18:19    Post subject: GX2  

Sorry, I have a Geode miniPC, actually a GX2. But what differs among the newer Geodes is the companion chip, with CS5536 for newer boards, the old ones having CS5535.

There's no problem booting those Geodes with the usual proprietary BIOSes.

XO is unique because it used OpenFirmware. You'll have to read about Mitch Bradley to find out what it means.

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1058

PostPosted: Sat 16 Jan 2010, 06:53    Post subject:  

So,dia anyone had better luck than me with the latest OLPX XO1 quirky?
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1058

PostPosted: Sat 16 Jan 2010, 16:36    Post subject: 3-file version  

I also tried Barry's 3-file version of OLPC-quirky
As I describe in Barry's blog (5th comment) despite my best efforts Very Happy it still can not find the sfs files.
Please take a look and help if you can
C'mon ttuuxxx. Do something Very Happy
Back to top
View user's profile Send private message 
ttuuxxx


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

PostPosted: Sat 16 Jan 2010, 22:17    Post subject: Re: 3-file version  

mavrothal wrote:
I also tried Barry's 3-file version of OLPC-quirky
As I describe in Barry's blog (5th comment) despite my best efforts Very Happy it still can not find the sfs files.
Please take a look and help if you can
C'mon ttuuxxx. Do something Very Happy


I haven't reported anything in the past 2 days because, neither his first or second attempt booted after 50 or so tries. But I haven't tried his 3 file version yet. That might be more promising, I'll try that either later on tonight or early tomorrow.
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 
wmb@firmworks.com

Joined: 04 Sep 2007
Posts: 17

PostPosted: Sun 17 Jan 2010, 03:07    Post subject: Re: 3-file version  

I tried the 3-file version, with the same results as mavrothal - no console messages. That means that the kernel is not right for the machine.

As I have mentioned a couple of times so far, trying to use a kernel derived from upstream sources is very unlikely to work. Some OLPC stuff has been accepted upstream, but I think there are still some loose ends.

The XO-1 does not have a PC-compatible text-mode framebuffer - no EGA character/attribute mapped display at 0xb8000. You must use fbcon, and in addition to that, there is also some Geode GX/LX magic for getting the resolution set right, some stuff for the "DCON" display swizzler chip, some GPIO stuff, and some special PCI configuration stuff to work around the fact that the Geode chipset doesn't really have PCI configuration registers. Conventional BIOS emulates those configuration registers with some ultra-gnarly System Management Mode magic. The code for that was proprietary, not to mention uncompilable since the toolchain it uses is a commercial product that is no long available. So instead of turning on System Management Mode, I wrote a Linux kernel PCI driver addition that does the PCI config spoofing (30 lines of code and some tables).

The reason I described all that is to convince you that you really, really want to start with the OLPC kernel source and fold in aufs and squashfs and whatever.

Apparently mavrothal has done just that, but from what I can tell, he doesn't know how to replace the modules in initrd.gz. If aufs and squashfs are modules instead of being hard-linked, the init isn't going to work if vmlinuz mismatches the modules in initrd.gz .

If I can get a copy of that kernel plus modules, I'll try to get this working.

Mitch Bradley
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1058

PostPosted: Sun 17 Jan 2010, 03:28    Post subject:  

Mitch, thank you for stopping by Very Happy
I certainly do no do initramfs, but in my latest attempt (5th post) the initrd modules do come form the same build as vmlinuz and load just fine (as far as the dmesg shows).
The problem appears to be that usb_storage module has unknown symbols for the
usb_storage_usb_ids
usb_usual_ignore_device
usb_usual_clear_present
usb_usual_check_type
usb_usual_set_present.
This seems to be the case also with the original Barry's version in a Starbox SB-800 (geode LX800) machine (above link, 4th post). So is not Kernel/module specific (init script?... Smile )
I also tried with the infopup script included in the initrd and indeed can not see any device or partition, like it booted from thin air.
Any ideas for that?
Please keep close Very Happy

PS. I'll upload last night's kernel rmps and srpm somewhere and post the link here shortly.
Back to top
View user's profile Send private message 
wmb@firmworks.com

Joined: 04 Sep 2007
Posts: 17

PostPosted: Sun 17 Jan 2010, 03:44    Post subject:  

mavrothal wrote:

The problem appears to be that usb_storage module has unknown symbols for the
usb_storage_usb_ids
...


If you set CONFIG_USB_LIBUSUAL you might get those symbols.
Back to top
View user's profile Send private message 
wmb@firmworks.com

Joined: 04 Sep 2007
Posts: 17

PostPosted: Sun 17 Jan 2010, 04:04    Post subject:  

wmb@firmworks.com wrote:
mavrothal wrote:

The problem appears to be that usb_storage module has unknown symbols for the
usb_storage_usb_ids
...


If you set CONFIG_USB_LIBUSUAL you might get those symbols.


Hmm, it seems that I have misread the sense of the ifeq in usb/storage/Makefile . That symbol should be present if CONFIG_USB_LIBUSUAL is not set. If it is set, the symbol should be in the module usb_libusual. Perhaps you need to modprobe usb_libusual ?
Back to top
View user's profile Send private message 
wmb@firmworks.com

Joined: 04 Sep 2007
Posts: 17

PostPosted: Sun 17 Jan 2010, 04:16    Post subject:  

I see from the XOpupDOTconfig that you (mavrothal) posted earlier that indeed CONFIG_USB_LIBUSUAL=y . So you can try either unsetting that config option or "modprobe usb_libusual".
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1058

PostPosted: Sun 17 Jan 2010, 04:36    Post subject:  

mavrothal wrote:

PS. I'll upload last night's kernel rmps and srpm somewhere and post the link here shortly.


Here are the kernel rpms
http://www.sendspace.com/file/rgznrx
eefde4b9e9ccc09e4fb2b2dd0ae2100b xopup_kernel_rpms.tgz (11.8MB)

For an F11-running XO you'll need kernel-firmware (install first) and kernel. Kernel-headers and kernel-devel are also included, well, for development. Don't be put off by the "DIRTY" suffix, it follows any unofficial kernel, build with OLPC's build system.

/lib/modules and /lib/firmware here (running on an XO)
http://www.sendspace.com/file/947sw7
80f698a9c6a814d538c5a8371f241854 XOpup_modules_firmw.tar.gz (3.2MB)
Keep in mind that the path is not correct.

The patched kernel source rpm is here
http://www.sendspace.com/file/jxntu3
75a416ed280e5dd4ba527747e079f288 kernel-2.6.31_xo1-20100117.0000.1.olpc.628e024_DIRTY.src.rpm (60MB)

Just in case you want to recompile. Though I strongly suggest to do it from the olpc git source (here is a novice howto)and patch it from source.

Get them while hot because sendspace does not keep them for long.

wmb@firmworks.com wrote:

I see from the XOpupDOTconfig that you (mavrothal) posted earlier that indeed CONFIG_USB_LIBUSUAL=y . So you can try either unsetting that config option or "modprobe usb_libusual".


Does the second means that I'll have to add something in the initrd's modules.dep file? (what?) Something else in the initramfs?

Last edited by mavrothal on Sun 17 Jan 2010, 16:32; edited 1 time in total
Back to top
View user's profile Send private message 
wmb@firmworks.com

Joined: 04 Sep 2007
Posts: 17

PostPosted: Sun 17 Jan 2010, 05:17    Post subject:  

I got the kernel RPM ...

wmb@firmworks.com wrote:

I see from the XOpupDOTconfig that you (mavrothal) posted earlier that indeed CONFIG_USB_LIBUSUAL=y . So you can try either unsetting that config option or "modprobe usb_libusual".


Does the second means that I'll have to add something in the initrd's modules.dep file? (what?) Something else in the initramfs?[/quote]

Well, I was thinking you might try typing "modprobe usb-libusual" from the shell prompt, just as a test.

I did that, and got the complaint:

FATAL: Could not load /lib/modules/2.6.31_xo1*/modules.dep: No such file or directory

I looked for that file and, indeed, it isn't present. The containing directory is there, but modules.dep is not. The probable cause is a failure to do "depmod" after creating the modules.

I'm searching for an exact recipe for doing that.
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1058

PostPosted: Sun 17 Jan 2010, 05:43    Post subject:  

wmb@firmworks.com wrote:

Well, I was thinking you might try typing "modprobe usb-libusual" from the shell prompt, just as a test.

I did that, and got the complaint:

FATAL: Could not load /lib/modules/2.6.31_xo1*/modules.dep: No such file or directory

I looked for that file and, indeed, it isn't present. The containing directory is there, but modules.dep is not. The probable cause is a failure to do "depmod" after creating the modules.

I'm searching for an exact recipe for doing that.


Assuming we are talking initramfs I rename the included 2.6.31.5 folder lib/modules to my kernel's name and I add '2.6.31.5' symlink to it.
Is certainly not the right way but "modprobe usb_libusual" just complains that the module does not exists and indeed does dot
"modprobe usb_storage" gives the aforementioned complains

I could also upload my modified initamfs folder and vmlinuz and sfs file with the /lib/modules and firmware from this kernel (is a different one than the posted but only in the sense that I used last night's olpc git instead of Jan 9 - too much manual labor to repeat on the fly) if you think it would help. But I do not have the srpm for this build anymore.
Back to top
View user's profile Send private message 
wmb@firmworks.com

Joined: 04 Sep 2007
Posts: 17

PostPosted: Sun 17 Jan 2010, 05:53    Post subject: modules.dep  

To make the modules.dep, I did this:

Code:
sudo depmod -b $DIR 2.6.31_xo1-20100117.0000.1.olpc.628e024_DIRTY

where $DIR is the staging directory that contains lib/modules/2.6.31_xo1*

I then regenerated the initrd.gz to include the files that depmod created.

The XO-1 now gets much farther. It says it can't find the .sfs file.

/dev/sda is being probed correctly; I can do "fdisk /dev/sda" and view the partition table. But I cannot mount the filesystem. I tried this:

Code:
mkdir /mnt/test
mount /dev/sda1 /mnt/test

and got this:
    mount: mounting /dev/sda1 on /tmp/foo failed


Now I have to work out why it failed.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 15 of 30 [448 Posts]   Goto page: Previous 1, 2, 3, ..., 13, 14, 15, 16, 17, ..., 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.0859s ][ Queries: 12 (0.0098s) ][ GZIP on ]