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 Tue 02 Sep 2014, 03:10
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 26 of 30 [448 Posts]   Goto page: Previous 1, 2, 3, ..., 24, 25, 26, 27, 28, 29, 30 Next
Author Message
tempestuous

Joined: 10 Jun 2005
Posts: 5245
Location: Australia

PostPosted: Mon 02 Aug 2010, 02:23    Post subject:  

eowens2 wrote:
if I understand you correctly, you are suggesting using the environment in which my kernel and modules were created, to compile alsa-1.0.23 alsa-driver, alsa-lib and alsa-utils

Just the ALSA driver modules.
Then it's best to compile the ALSA library and utilities in your Puppy installation.

eowens2 wrote:
On the alsa-project.org 1.0.23 download page, alongside the above mentioned driver/lib/utils, are also alsa-firmware, alsa-plugins, alsa-tools and pyalsa (all for alsa-1.0.23). I take it that (at least at this point anyway) none of these latter elements are necessary?

Correct.
Strictly speaking, you should compile the alsa-oss compatibility library, since this is included in Puppy.
Personally, I avoid alsa-oss whenever I'm compiling my own kernel. It's far more elegant to disable alsa-oss compatibility when compiling the ALSA drivers, then the alsa-oss libraries become redundant.
Any half-decent audio application in Linux will be 100% ALSA compatible, and won't require the OSS compatibility modules/libraries.
Back to top
View user's profile Send private message 
eowens2

Joined: 27 Aug 2008
Posts: 97

PostPosted: Wed 04 Aug 2010, 15:14    Post subject:  

I had hoped to report success.

I downloaded alsa-1.0.23 (alsa-driver + alsa-utils + alsa-lib) from alsa-project.org..

The alsa-driver I compiled on my desktop system under Ubuntu 9.04, which was the same system that compiled the 2.6.31 kernel and modules on my xopup. No errors were reported in the processs. I moved the 12 new modules over to the xo-1 and did a depmod.

Alsa-lib and alsa-utils I compiled on the xo-1 under Puppy 4.31 and devx-4.31 with no errors reported, and did a make install.

The system booted fine, I ran alsaconf, but no sound was made.

# alsamixer
cannot open mixer: No such device
#
# aplay -l
aplay: device_list:235: no soundcards found...
#
# lspci
00:01.0 Class 0600: 1022:0028 (rev 21)
00:01.1 Class 0300: 1022:2081
00:01.2 Class 1010: 1022:2082
00:0c.0 Class 0501: 11ab:4100 (rev 10)
00:0c.1 Class 0805: 11ab:4101 (rev 10)
00:0c.2 Class 0400: 11ab:4102 (rev 10)
00:0f.0 Class 0601: 1022:2090 (rev 03)
00:0f.3 Class 0401: 1022:2093 (rev 01)
00:0f.4 Class 0c03: 1022:2094 (rev 02)
00:0f.5 Class 0c03: 1022:2095 (rev 02)
#
# cat /proc/asound/cards
--- no soundcards ---
(NOTE: this is a different output from before. Earlier the system HAD reported card0 as cs5535audio)
#
but oddly,
# cat /proc/asound/devices
33: : timer
#
# lsmod | grep snd
snd_cs5535audio 12656 0
snd_ac97_codec 93984 1 snd_cs5535audio
snd_pcm 68004 2 snd_cs5535audio,snd_ac97_codec
snd_timer 18748 1 snd_pcm
snd 53072 4 snd_cs5535audio,snd_ac97_codec,snd_pcm,snd_timer
ac97_bus 1660 1 snd_ac97_codec
snd_page_alloc 8468 2 snd_cs5535audio,snd_pcm
(this is fewer modules than before with ALSA-1.0.2.0)
#
# modinfo snd
filename: /lib/modules/2.6.31_xo1-20100428.0000.1.olpc.628e024_DIRTY/kernel/sound/acore/snd.ko
alias: char-major-116-*
license: GPL
description: Advanced Linux Sound Architecture driver for soundcards.
author: Jaroslav Kysela <perex@perex.cz>
srcversion: 2AFF637B797434DB66BC936
depends:
vermagic: 2.6.31_xo1-20100428.0000.1.olpc.628e024_DIRTY preempt mod_unload modversions GEODE 4KSTACKS
parm: slots:Module names assigned to the slots. (array of charp)
parm: major:Major # for sound driver. (int)
parm: cards_limit:Count of auto-loadable soundcards. (int)

# modinfo snd_cs5535audio
filename: /lib/modules/2.6.31_xo1-20100428.0000.1.olpc.628e024_DIRTY/kernel/sound/pci/cs5535audio/snd-cs5535audio.ko
description: CS5535 Audio
license: GPL
author: Jaya Kumar
srcversion: 98980B105DFA3EB2F6567C7
alias: pci:v00001022d00002093sv*sd*bc*sc*i*
alias: pci:v0000100Bd0000002Esv*sd*bc*sc*i*
depends: snd-ac97-codec,snd-pcm,snd,snd-page-alloc
vermagic: 2.6.31_xo1-20100428.0000.1.olpc.628e024_DIRTY preempt mod_unload modversions GEODE 4KSTACKS
parm: ac97_quirk:AC'97 board specific workarounds. (charp)
parm: index:Index value for cs5535audio (array of int)
parm: id:ID string for cs5535audio (array of charp)
parm: enable:Enable cs5535audio (array of bool)
#

#tail /etc/modprobe.conf
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.23 ---
alias snd-card-0 snd-cs5535audio
alias sound-slot-0 snd-cs5535audio
# --- END: Generated by ALSACONF, do not edit. ---

Any ideas?
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Wed 04 Aug 2010, 17:47    Post subject:  

I start thinking that the issue may not be ALSA per se but some other subsystem (dbus, hal, apci, udev) that may interfere with card "visibilty" by the system.
As I said in a previous mail this ALSA sfs (tcz really from tinycore-xo) works fine on the XO-1 with the very same kernel. However it fails with the same symptoms under puppy.
This tells me at least that is not ALSA itself that generates the problem.

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5245
Location: Australia

PostPosted: Wed 04 Aug 2010, 21:58    Post subject:  

Yes, it's looking like a low-level hardware resource issue.
Try booting with the "acpi=off" boot option.
If still no success, try each of these boot options -

irqpoll routeirq ##(both options together)
acpi=noirq
acpi=force
acpi=strict
pci=biosirq
pci=nosort
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Thu 05 Aug 2010, 11:48    Post subject:  

In contrast to eowens2 on a fresh lupu-508 install with my kernel I get

Code:
# lspci
00:01.0 Host bridge: Advanced Micro Devices [AMD] Device 0028 (rev 21)
00:01.1 VGA compatible controller: Advanced Micro Devices [AMD] Geode LX Video
00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD] Geode LX AES Security Block
00:0c.0 FLASH memory: Marvell Technology Group Ltd. Device 4100 (rev 10)
00:0c.1 SD Host controller: Marvell Technology Group Ltd. OLPC Cafe Controller Secure Digital Controller (rev 10)
00:0c.2 Multimedia video controller: Marvell Technology Group Ltd. Device 4102 (rev 10)
00:0f.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03)
00:0f.3 Multimedia audio controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio (rev 01)
00:0f.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02)
00:0f.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02)
 
# cat /proc/asound/cards
 0 [Audio          ]: cs5535audio - CS5535 Audio
                      CS5535 Audio cs5535audio at 0x1480, irq 5

# cat /proc/asound/devices
  2:        : timer
  3: [ 0- 0]: digital audio playback
  4: [ 0- 0]: digital audio capture
  5: [ 0]   : control
  6:        : sequencer


However
Code:
# aplay -l
aplay: device_list:223: no soundcards found...
# alsamixer
cannot open mixer: No such device


alsaconf goes smoothly and finds the cards as before but at the end (as before) reports
Code:
Setting default volumes...
amixer: Mixer attach default error: No such device

and trying to play a sound spits
Code:
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:608: audio open error: No such device
Saving the mixer setup used for this in /etc/asound.state.
/usr/sbin/alsactl: save_state:1502: No soundcards found...

But still exits ironically with
"Now ALSA is ready to use.
For adjustment of volumes, use your favorite mixer.
Have a lot of fun!"

acpi=off
irqpoll routeirq
acpi=noirq
acpi=force
acpi=strict
pci=biosirq
pci=nosort
makes no difference... Question

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
eowens2

Joined: 27 Aug 2008
Posts: 97

PostPosted: Thu 05 Aug 2010, 14:29    Post subject:  

I have used all of the boot options ("acpi=off", "irqpoll routeirq", "acpi=noirq", "acpi=force", "acpi=strict", "pci=biosirq" and "pci=nosort") on Puppy 4.31 on the XO-1 using ALSA-1.0.23, and the only difference I could see is that sometimes the boot process seemed to slow.

As before, "aplay -l" and "alsamixer" could not find the device. And as before, alsaconf could find the card identity and post the alias info to the end of modprobe.conf (I deleted the tail of modprobe.conf before running alsaconf to be sure it was posting freshly obtained info). Too bad the system can't seek the counsel of modprobe.conf as to the identity of card0!

And yes when I try to play an actual file I get the same output as Mavrothal. Mavrothal, your "lspci" output from Lupu-508 is interesting. Lupu-508 must be using a newer version of busybox or an "lspci-FULL". What version of ALSA is in lupu-508? And busybox version?

When a new version of Puppy is released (i.e. 4.12, 4.31, Lupu-xxx), especially if a new kernel is present, do the developers typically compile anew major components (i.e. ALSA, X-windows) "under" or "against" the new kernel?
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Thu 05 Aug 2010, 14:51    Post subject:  

eowens2 wrote:
Too bad the system can't seek the counsel of modprobe.conf as to the identity of card0!

On a related issue:
Using the tinycore-xo alsa/alsaconf (that works fine with this kernel) gets through without any ALSA issue.
However, at the end it says
Code:
Starting sound driver: snd-cs5535audio 
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
amixer: Mixer attach default error: No such device
Setting default volumes...
amixer: Mixer attach default error: No such device
Saving the mixer setup used for this in /etc/asound.state.
alsactl: save_state:1502: No soundcards found...

with the same result Sad

eowens2 wrote:
What version of ALSA is in lupu-508? And busybox version?

cat /proc/asound/version says 1.0.20 but /root/.packages/woof-installed-packages says alsa-base and alsa-utils 1.0.22
For busybox woof-installed-packages says 1.16.2

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Mon 16 Aug 2010, 16:22    Post subject: SFS and nand mounting, power management et al.  

Although XOpup's sound remains elusive ( Sad ), wrestling with it from different angles I came up with a couple of interesting tidbits.

OLPC kernels (the original or the ones made in Fedora machines-like the ones I have posted), because of their "funny" naming scheme, do not report the correct KERNELSUBVER(sion), eg "31", in puppy scripts so puppy thinks is an old (2.6.28 or earlier) version. As a result, defaults to squashsf version 3, so version 4 sfs files can not be loaded.
You need to edit 3 scripts, initrd.gz/init, /usr/sbin/bootmanager and /usr/sbin/filemnt to fix that. You just need to add underscore in the KERNELSUBVER string so will look like that
Code:
KERNELSUBVER=`echo -n "$KERNELVER" | cut -f 3 -d '.' | cut -f 1 -d '-' | cut -f 1 -d '_'` #v423, mav:add underscore for OLPC kernels
Then it correctly recognize the olpc kernel version and auto-mounts v4 sfs files (I guess would be nice if included in the official puppy/woof).

In order to mount the XO-1's internal NAND you need the memory technology devices (mtd) missing from puppies. So from an F11-running XO-1 (eg running the new official os851) copy /dev/mtd* or rsync them from updates.laptop.org to puppy's /dev. This will copy mtd0, mtd0ro and mtdblock0. To mount the XO-1 NAND type in terminal
Code:
mount -t jffs2 /dev/mtdblock0 /mount_dir
I usually make /mnt/xo-nand as mount directory but can be anything you want. You can even edit /etc/fstab and add the line
Code:
/dev/mtdblock0  /mnt/xo-nand jffs2 defaults,noauto 0 0
so you'l just need to type "mount /mnt/xo-nand" to mount it. However, I do not recommend automounting or even mounting the NAND at all, unless is absolutely necessary! Puppy has trouble cleanly unmounting file systems and can mess-up your XO-1's nand (did it to me a couple of times...)

I also managed to get power management and brightness and (I assume) sound keys working in XOpups. For pm I used OLPC's powerd and olpc-switchd and supplied the missing strace, rtcwake and yet another device, rtc. For the keys I used the actkbd daemon and a bunch of little scripts from other XO builds. Again the /dev/input/even4 the actual XO-1 keyboard device was missing...
The scripts were started in rc.local and the XO-1 is now even more usable with Puppy, but still silent Sad I have the feeling that the sound issue is also a device issue rather than alsa, I just don't know which, and various I tried all failed. Any device/udev expert out there?

BTW I wonder why the "whereis" command in not present in puppies ??? Is very useful specially with all the extra scripts and the occasional "non-standard" location of things. I guess everyone knows where things are in puppy Shocked ...

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Mon 16 Aug 2010, 16:56    Post subject: Sound works!!!!  

Looks like that sound works in XOpup Very Happy Very Happy Very Happy
Check it out here
I'm away at the moment but is someone can tide it up would be great.

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Wed 18 Aug 2010, 13:24    Post subject: Puppy Linux Lucid 5.1 (lupu510) for the XO-1 is here!  

Update 3 Sep. 22 : XOpup has a new build and thread, and is updated to 1.0_RC.
Please look at the new thread for more.

You can still find the old builds HERE



(Check the "visual history" of XOpup HERE)

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy

Last edited by mavrothal on Wed 22 Sep 2010, 04:14; edited 10 times in total
Back to top
View user's profile Send private message 
cobyhoff

Joined: 10 Nov 2009
Posts: 5
Location: Hillsboro, Oregon, USA

PostPosted: Thu 19 Aug 2010, 17:13    Post subject: Thank you!  

I have been lurking here since you announced your intentions on OLPCnews forums. I have been lurking there since Nov '07 (original G1G1). I am so excited to see your success here! I have been running puppy on my Gecko Edubook (www.norhtec.com, www.deviceonchip.com) since I got it, and have been even more excited about the possibility of Puppy on the OLPC. I wish I could have helped the process, but my lack of Linux experience has kept me from volunteering.

Again, Thank you!
Back to top
View user's profile Send private message Visit poster's website 
rrolsbe

Joined: 15 Nov 2006
Posts: 182

PostPosted: Tue 24 Aug 2010, 14:32    Post subject: Lucid Puppy works great on my XO version 1.0 machine
Subject description: Thanks to all that worked on this
 

Now that it boots into Puppy using the OLPC 1.0 computer, hopefully the user community can make further improvements. My OLPC computer (using Puppy) performs better than anything I have used prior. I knew running out of RAM would be better. I am sure there is a slow down while it decompress the binaries in the RAM disk but you can't have everything.

Thanks Again to all who made this happen.

Regards, Ron
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Wed 25 Aug 2010, 15:37    Post subject: XOpup-v2  

A new improved version is available.
See original post above.

Quote:
Now that it boots into Puppy using the OLPC 1.0 computer, hopefully the user community can make further improvements.


Let's hope. Though most of the things run fine. Very Happy
What does not work is the chromium browser (you need to install the lupu501 version from here), the luvcview webcamera (probably needs recompiling for the XO-1) and most notably xrandr that does not support screen rotation and alternative resolution (the modified xorgwizard in the new version takes care of that). A proper, tray, battery monitor would be also nice.
Hopefully these and other things will get some attention.

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1603

PostPosted: Thu 26 Aug 2010, 16:37    Post subject: power management  

Added a pet in the original post above that enables "aggressive" power management on inactivity and can considerably increase battery life in casual use.
It actually works better than in the official F11/Sugar 0.84 version Very Happy

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
hailpuppy

Joined: 28 Oct 2009
Posts: 73

PostPosted: Fri 27 Aug 2010, 14:17    Post subject:  

Hi Mavrothal, ttuuxxx and all the other dedicated developers who made this happen,

Thank you all for not giving up on what we were all awaiting so eagerly.Of course I could not join the development team due my lack of knowledge in linux development but I too kind of feel happy as I personaly contacted Mitch to draw his attention to this project Smile. Mavrothal and ttuuxxx you two have been really impressive and guys I am most grateful to for you two for not giving up even when the going got very very tough.

One more thing Mavrothal? Is it now more speedy ? Will you be able to post a video of our most anticipated Xopup?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 26 of 30 [448 Posts]   Goto page: Previous 1, 2, 3, ..., 24, 25, 26, 27, 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.1247s ][ Queries: 12 (0.0093s) ][ GZIP on ]