Squeezed Arm Puppy for Raspberry Pi, alpha4

Please post any bugs you have found
Post Reply
Message
Author
User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#81 Post by rhadon »

Hi Berry,

good explanation at your blog about hardware setup and excellent link about polyfuses. Although it's not my experience.

Since one or two days after I got my Pi, I use a seperate PS for the board and an active hub (4x 500mA, switchable, cheap one, ~13€) which I allways connected first, before I swich on the board. Since about one week I use partitions of my connected usb hd for sap6, instead of the 2nd partition and swap of the sd card. Works flawlessly.

After your post, I did some measurements.

If board has no power , but connected usb hub has power, I have no voltage on the board, not before and not behind the polyfuses. OK, there could be a peak (which I can't measure) when I swich on the power of the hub, but I tested whith my keyboard dongle instead of the hub and at both polyfuses I have nearly the same voltage drop if the dongle is connected (~109mV and ~115mV). I think that a difference of 0.006V is tolerance. So I guess, that it's save for me, but I'll measure from time to time to be sure.

Maybe of interest, the board is feeded with ~0.5V by a connected HDMI cable.

Thanks for the explanation and the link,

Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#82 Post by Lobster »

OK changed config.txt
and modprobed
also set hdmi from suggestions previously posted
You need to set hdmi_drive=2 in the config.txt and then on boot modprobe snd_bcm2835
aplay is giving me crackle (sound of sorts in terms of duration and I can recognize the sound is being played) from command line

Code: Select all

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
So sound to HDMI is possible but not on Barrys hardware?
I removed the mini speakers from the headphone socket.
And also had to do a reboot, when I set the hdmi 3 1(not quite right something like that) it turned off the sound (I could see this from the tray icon)

Mick has mentioned that we are not trying to get the ALSA driver to work?
Which driver are we trying to get working? Sound through HDMI has to be the first step? Also if you get a woof SLR that might well be better than ye olde but stable Debian . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#83 Post by Lobster »

Barry you can put

Code: Select all

test_mode
in your config.txt to test your hardware
http://www.jtek.cz/?p=62

Your difficulties might be your powered USB hub. Only difference in set up I can think of.

I spent two days thinking I had faulty RPi hardware.
I hope it is not that . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#84 Post by Lobster »

in
/root/Startup

I put the following sound.sh

Code: Select all

#!/bin/sh
modprobe snd_bcm2835
aplay /usr/share/audio/2barks.wav
It may not be barks (more like a throttled wasp)
but it tests sound and plays through HDMI
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#85 Post by rhadon »

Hi Lobster,

one of the first things I did, was selecting snd_bcm2835 in menu->System->Puppy boot configuration(maybe in other words)->Click here to add another module and move snd_bcm2835 from the left to the right side. Now it's loaded at every boot :wink: .

To change from analog to HDMI or vice versa, I've build two scripts, one with amixer cset numid=3 1 and one with amixer cset numid=3 2. Both I placed on the desktop. Now I can change sound by just one click. It works.

With analog, sometimes i can hear some scratches, maybe 1 per min., more or less. With all players I've tested. Gxine, gnome mplayer and Mick's playmusic. Maybe other running processes are disturbing? Just a feeling because I get a lot of more "scratches" when I select e.g. another window with the cursor.

Sound via HDMI seems to be more stable to me, although it doesn't sound so good (TV speaker vs. hifi :roll: ).

About speaker tray icon: for me it's allways muted, no matter what I select.

Btw., similar to the network icon, which shows allways active.

~Rolf

Edit: you should take a bigger file for testing :wink: . Using aplay with 2barks.wav, I can't decide is it 1bark or a big "scratch" :oops: .
Last edited by rhadon on Tue 10 Jul 2012, 11:01, edited 1 time in total.
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#86 Post by Lobster »

Thanks rolf,

I was finding that using a USB hub (unpowered) but with just the keyboard connected was giving me auto repeat again.
I am not going to get a powered hub unless essential.

I am not very keen on using the headphone socket . . . but may try that.

It seems to me extraordinary that with the same motherboard but different peripherals we are still having hardware problems.

Anyway back in x86-Slacko-Puppy for now. 8)

Puppy
Penguin Power
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#87 Post by antiloquax »

Hi,
I am trying to update the package database in PPM. It's giving a lot of syntax errors: "Unexpected '(' in ..."
Am I doing something wrong?
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#88 Post by rhadon »

Loster wrote:I was finding that using a USB hub (unpowered) but with just the keyboard connected was giving me auto repeat again.
Sometimes I have the same problem (including missing keys), your'e not alone :wink: .
I am not going to get a powered hub unless essential.
At least if you want to connect other parts like sticks or hds, I would strongly recommend to buy one.
Example:
My power supply (IIRC 1.2A) provides 4.86V, measured between tp1 and tp2 on the board. That's OK. If I connect only my wireless dongle for keyboard (no hub and nothing else), it gets only 4.74V (measured after the polyfuse). Not much. Maybe it's OK, maybe not.
It seems to me extraordinary that with the same motherboard but different peripherals we are still having hardware problems.
One explanation, different peripheral sucks different power. For me a good reason.
But that's my explanation. I'm not sure, reality takes care about what I think :P

~Rolf
Last edited by rhadon on Tue 10 Jul 2012, 13:00, edited 1 time in total.
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#89 Post by rhadon »

antiloquax wrote:I am trying to update the package database in PPM. It's giving a lot of syntax errors: "Unexpected '(' in ..."
You're welcome :D .
I've asked this question yesterday, but still no answer :wink: .

~Rolf

Edit: If you don't break the process, you can use PPM as before, but I don't know if it's updated or not.
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

eowens2
Posts: 177
Joined: Wed 27 Aug 2008, 17:57

#90 Post by eowens2 »

In updating the package database in PPM, I have also been getting the "syntax errors: 'Unexpected "("" reported by antiloquax and rhadon.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#91 Post by Lobster »

I was able to update the ppm - it took nearly two hours but is rather flaky in alpha2. Try and hang on for alpha3 when there should be improvements from Barry.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#92 Post by antiloquax »

Lobster wrote:I was able to update the ppm - it took nearly two hours but is rather flaky in alpha2. Try and hang on for alpha3 when there should be improvements from Barry.
Yes, it seems to have worked. I am part-way through compiling Python. The tk bits seem to have been found this time :)
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#93 Post by antiloquax »

I have Python 3.14 working, with tk (so I have IDLE).
Next ... pygame.
mark

I'm pleased with how fast Puppy boots.
It seems to run a bit slower than Arch though. It took a long time to compile Python ....

Edit
Building pygame. Hope to have a pet for you to try soon.

Edit 2
Pygame is installed. No time to test tonight, so I won't share the pet yet. Also I am going to attach a couple of pics. A Python calculator I am working on and a little game that should be in the next MagPi.
mark
Attachments
fish.png
(11.34 KiB) Downloaded 2180 times
calc.png
(5.87 KiB) Downloaded 2307 times
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

peterw
Posts: 430
Joined: Wed 19 Jul 2006, 12:12
Location: UK

SDHC Image

#94 Post by peterw »

Hi
Thank you 01micko and BarryK for pointing out that when writing the image to the sdhc I should only use sdb and not sdb1. I had spent hours on this problem. With this error corrected the process worked a treat. I can now boot my raspberry pi board and I am impressed with how good it is at such an early stage in its development. Thank you.

peterw

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#95 Post by Lobster »

It seems to run a bit slower than Arch though.
Yes that is Debian. Solid but older.
Congratulations on your Python efforts.

I have a feeling that sound works in Python and RacyPy?

In another month or two, buying multiple motherboards will be possible. Leaving a Rpi to compile for a day or two will not be so much of an issue. In fact Sickgut already seems keen on the idea of a server farm of Rpi's. Sounds good.

Hopefully today or tomorrow Barry will release Alpha3 of Puppi Sap which with the devx will have Python support as well as the potential of the Woof build system for Puppi SLR.

My xcowsay promo script is progressing nicely. May be able to turn it into a Puppi intro/tutorial. I hope sneaky Linux, Icyos and other reviewers have Rpi's on standby.

The great thing is being able to develop script on x86 (I am in an Alpha x86) and then move to the still unstable but rapidly evolving ARM architecture.

Woof. Woof


Puppy
Breaking the Linux mold
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#96 Post by antiloquax »

Yes, sound on Arch is working. I will investigate the sound issues when I next boot up into SAP.
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#97 Post by BarryK »

Lobster wrote:I was able to update the ppm - it took nearly two hours but is rather flaky in alpha2. Try and hang on for alpha3 when there should be improvements from Barry.
I have released alpha3, but didn't get around to looking at the PPM. That is high on the to-do list.

Though, there was a file named 'find_cat' that was missing from alpha2, that the PPM uses when creating the Puppy standard database files. So, maybe the problem has fixed itself.
[url]https://bkhome.org/news/[/url]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#98 Post by BarryK »

Here it is, Squeezed Arm Puppy alpha3:

http://bkhome.org/blog/?viewDetailed=02899
[url]https://bkhome.org/news/[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#99 Post by 01micko »

alpha3, pwallpaper is segfaulting, don't know why. (was for me in alpha 2 too, don't know about alpha one)

I am working on a simple alternative, I wrote awhile ago, but it doesn't work ootb on the Pi, so I'm going to fix it, also add the code for screen cropping calling "background_reshape"

More in a bit...

-

In other news.. my slr based on armed slack has stalled. I can build a distro ok but still get a kernel panic, unless I link /bin/init to busybox (yes wrong I know!) then it starts to boot but not all commands seem to work. For example it goes into an endless loop trying to find mingetty. I don't think the main filesystem is mounting properly as the work arounds for cross build don't run either. I'm using the July 7 filesystem.

-

EDIT

I got sws (simple wall setter) working but there is a catch. The first time it runs you get a rox pinpoard error , a reboot seems to fix it. After reboot I tested all wallpapers in the /usr/share/backround dir and an added one, changed back and forth. I don't know if rebooting before trying to change the wallpaper will fix it. If not then i guess this will be no good.

Widescreen cropping was as easy as inserting a few lines of code from Nathan's wallpaper setter. Works too.

Anyway, it's here if you want to try it. Usual warnings apply. (try at own risk, etc)
Attachments
sws-0.5-noarch.pet
gtkdialog wall setter showing image. May need a reboot if you get pinboard errors
(1.99 KiB) Downloaded 647 times
Puppy Linux Blog - contact me for access

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#100 Post by antiloquax »

The Python 3.1.4 and Pygame that I compiled seems to be working well. I will upload the pet for someone to test in a bit.

The sound problems are going to be awkward. Can anyone give me an idiot's guide to the story so far? I don't seem to have alsa working.
mark

Edit
Downloading Alpha3. :)

Edit
Here's a link to my Python and Pygame pet. You'll need tcl, tck, sdl, sdl-image, sdl-mixer and sdl-ttf.
mark
Python Arm pet
This isn't quite right yet, the Python and Tk stuff works, but not the Pygame. I'll get back when I have fixed it.
Last edited by antiloquax on Wed 11 Jul 2012, 21:55, edited 1 time in total.
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

Post Reply