Raspberry Puppi

A home for all kinds of Puppy related projects
Post Reply
Message
Author
User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#91 Post by Tman »

Antiloquax,
I have no idea how to code in Assembly. I think learning how to program in C is hard enough for my tastes.

Lobster,
If you are able to get the RaspberryPi Arch image running, it would offer you newer tools than Debian...you have a better chance of compiling bleeding-edge software with Arch, which is very bleeding-edge itself.

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

#92 Post by Lobster »

If you are able to get the RaspberryPi Arch image running
You may be right.
I will give it another go.

Just got some sound out of the Rpi for the first time (just a test)
I was connected to mini speakers and I was worried that they would require more power than headphones (these are unpowered speakers) but it worked . . . 8)

For future ref this is the advice I followed
The ALSA sound driver is "alpha" and has issues, but some applications do work. If you are running Debian, try

cd /opt/vc/src/hello_pi/hello_audio
make
./hello_audio.bin

to test analogue output. And

./hello_audio.bin 1
for HDMI
Ay chihuahua - I have to make (compile) the hello_audio program . . . :shock:
Fortunately it was as easy as pie (so to speak)

OK gonna go through the Raspberry Pi wiki and forums
for any other tips . . . :)
Last edited by Lobster on Sun 13 May 2012, 08:18, edited 1 time in total.
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:

#93 Post by Lobster »

I tried setting up woof2
have done it previously (at least initial stages)
http://puppylinux.info/topic/getting-started
Tried again . . .
This time I used the 1.20 binary of Fossil (rather than the updated)
I also created a separate partition for the process
This enabled me to go through the whole of the woof2 process
- including the setting up of an image to an SD card

This is near the start of the process
# ./merge2out

This script merges woof-arch, woof-code and woof-distro, to ../woof-out_*.

woof-arch: architecture-dependent (x86, arm) files, mostly binary executables.
woof-code: the core of Woof. Mostly scripts.
woof-distro: distro-configuration (Debian, Slackware, etc.) files.

Important: the host architecture is distinct from the target architecture.
The host is the machine you are running Woof on, the target is the machine
in which the Puppy that you build is going to run. Typically, you will build
on a x86 machine, and the target may be x86 or arm.

1 arm
2 x86
Type number of host architecture: 2
...ok, x86

1 arm
2 x86
Type number of target architecture: 1
...ok, arm
and this near the end
Uncompressing image, please wait...
Writing skeleton image to /dev/sdc, please wait very patiently...
7727264+0 records in
7727264+0 records out
3956359168 bytes (4.0 GB) copied, 2240.47 s, 1.8 MB/s
mount: wrong fs type, bad option, bad superblock on /dev/sdc2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


Something is wrong. There should be two partitions on the SD card,
vfat and ext4. There was an error mounting them. Aborting script.
#
Not successful :cry:

I have sent Barry more of this process to his gmail address.
A lot of error messages came up . . . however woof2
may be the most complete option
For the ARM build only Debian Squeeze and the Mele compiled kernel
were available

Progress.
Geeky
Slow.
Spurts
Getting there . . . :)
Last edited by Lobster on Fri 11 May 2012, 05:09, edited 1 time in total.
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

#94 Post by antiloquax »

Hi Lobster,
I have tried using woof before and got very confused.
I was wondering about trying the "Linux from Scratch" approach. However, I only got as far as compiling binutils following the instructions in the book. When I tried to move on to gcc, my luck evaporated :(
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.

Dinor
Posts: 5
Joined: Fri 19 Sep 2008, 09:20

#95 Post by Dinor »

Just got the go ahead to order my Raspi today here in Sweden so I guess it will be July at the earliest before I get my hands on it! Do you guys think a working Puppi will be available by then?

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

#96 Post by antiloquax »

Hi Dinor - glad to hear your Pi is imminent. I hope Lobster can answer your question ...

In the mean-time, I have compiled a few more packages: gmeasures, SDL and xarchive. They are on my ftp site!

:D
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
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#97 Post by Tman »

In Qemu; I wasn't able to run the Arch image downloaded from http://www.raspberrypi.org/downloads , so I decided to copy the image onto a 4GB SD card to see its contents. ( dd works in Slacko, but you need to reboot to see the changes on the SD card )

I discovered that it contains 2 partitions: the 1st is a Fat16 partition with files I've never seen before, and the 2nd is an ext3 partition containing the Arch linux filesystem.

Antiloquax,
if you take this image and replace the contents of the 2nd partition with the contents of your Puppi.img, I think that it should work on Lobsters Rpi. The screenshot below is are of the contents of the 2 partitions. I don't know what all the individual files in the first partition specifically do, but I assume that their combined purpose is to boot the linux distro in the Rpi.
Attachments
Rpi_Arch_partitions.jpg
(70.23 KiB) Downloaded 722 times

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

#98 Post by antiloquax »

Hi Tman,
Yes, I'd thought of trying that, but I haven't got as far as uploading the combined partitions. I'll see if I can get something sorted later tonight.
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
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#99 Post by Lobster »

Hi Lobster,
I have tried using woof before and got very confused.
My normal mind state . . . :)

Woof2 is under development, especially the ARM part.
There are some unique qualities of formatting an SD card, on the Rpi it seems to have two partitions. :shock:

For the bootstrapping working with an existing working image and cutting it down is sufficient and may be the better option for now.

The advantages of the woof2 system is that Fatdog (pre woof), Lucid, Slacko, Racy, Wary, Precise, Upup and Puppi can all be very similar. We are turning into a mature distro and our users can expect some consistency,
RacyPy, Saluki, Calf and custom derivatives or radical configurations are all part of the learning kennel.

The Raspberry Pi is a development system. You are buying a board with operating systems (Debian, Fedora, Arch etc) that are of Alpha quality.
So be prepared to help, test, tinker, develop a case, a project. Dream. program etc.

An ARM Puppi is going to run quiet (solid state) with less energy requirements. You can already program on it.

If your attitude is what can I put into Puppi and Raspberry, you will get a great deal out of it. 8)
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:

#100 Post by Lobster »

Do you guys think a working Puppi will be available by then?
Yes.
Some of the programs will be mature. Some aspects will be very much Alpha build.
We have the Geek Scouts, working towards a mind controlled robot on our side . . .
http://www.raspberrypi.org/archives/1185
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#101 Post by Tman »

Someone from the Raspberry Pi forum has managed to boot the Debian and Arch images from the Official Raspberry Pi site with Qemu.
I followed his instructions and was able to do the same:

http://www.raspberrypi.org/forum/genera ... emu/page-3

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

#102 Post by Lobster »

Good job tman :)

In this post . . .
http://www.raspberrypi.org/archives/1195

I read . . .
The firmware is the code that starts up the device, and is loaded on to the GPU to make it work. It then hands control to the OS. A bit like the BIOS on a desktop.
Light goes on in the 100 000 neurons Lobster pretends is his brain . . . :idea:

This explains why Marks Arch image did not work on actual hardware.
Barry also is talking about a dual partition on the SD card needed for the Mele
Read the comments here:
http://bkhome.org/blog/?viewDetailed=02823

This means with an ARM device we can use an open source bios equivalent?
Last edited by Lobster on Fri 11 May 2012, 05:13, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#103 Post by Tman »

Lobster,

Thanks for the info. I was playing around with the Arch image, which I am uploading now.
It is still very barebones, but it does have Rox, Jwm and a few apps.

Lobster, if you have time can you see if it works on your Raspberry Pi?

To extract: tar xvfJ archRpi.tar.xz - ( capital "J" )
To copy to SD disk: dd if=archRpi.img of=/dev/sdX - replace "X" with the letter of your SD drive

I realized that you don't need to reboot to see the new image on the SD card, after you use "dd".
You just need to unplug it and replug it back in.

The Arch image will be ready for download in about 1 hour from now...it's still uploading.
http://www.smokey01.com/Tman/Rpi/

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

#104 Post by antiloquax »

:idea:

This explains why Mark's Arch image did not work on actual hardware.
Yes, sorry. The file I uploaded was just an image of the second partition. I have a 2gb SD card which is the arch fat partition with my set-up on the second. I am going to try to make an image of the whole thing. It might be quicker to post you the card, Lobster!
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
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#105 Post by Lobster »

Lobster, if you have time can you see if it works on your Raspberry Pi?
Many thanks.
Partial success. :)
The image was getting past the power on LED on the Raspberry Pi - in other words it was booting . . .
but no display was getting through to my HDMI TV, it was not connecting.

The Arch image should be displaying the boot up sequence on the TV, this was not happening.
I am going to try to make an image of the whole thing
Look forward to trying it.

So . . . you guys are creating an image that works on VGA but the actual hardware requires HDMI output :roll:
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

#106 Post by antiloquax »

Lobster wrote: So . . . you guys are creating an image that works on VGA but the actual hardware requires HDMI output :roll:
:oops: That's an interesting point, Lobster, I hadn't thought of that! I don't know if there is any way to do that under qemu?? My video card has an HDMI out ... I wonder ...

Anyway ... I have set up a swap partition for my qemu pi to use, so that may speed up the compiling side of things.

Here's an archive with the ARM leafpad
Attachments
leafpadARM.tar.gz
(91.22 KiB) Downloaded 277 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.

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#107 Post by Tman »

So . . . you guys are creating an image that works on VGA but the actual hardware requires HDMI output :roll:
Unfortunately, my monitor only supports VGA and DVI connections. :?
I will look into the QEMU settings and see if it can emulate a HDMI connection.

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

#108 Post by antiloquax »

Tman wrote: Unfortunately, my monitor only supports VGA and DVI connections. :?
I will look into the QEMU settings and see if it can emulate a HDMI connection.
Let me know if you get anywhere with this.
In the mean-time, I have compiled a couple more things.
Attachments
dhcpcdARM.tar.gz
(62.37 KiB) Downloaded 262 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.

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#109 Post by Tman »

antiloquax wrote: Let me know if you get anywhere with this.
In the mean-time, I have compiled a couple more things.
Sure thing, you might want to PM Barry to let him know that you've compiled some apps for Arm, or maybe just create a reply in his blog.

The thing is; he's compiling his apps in Ubuntu Lucid Lynx, and you're compiling in Arch, so I hope there are no compatability conflicts.

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

#110 Post by antiloquax »

Hi Tman, I've put a link to my ftp index on Barry's blog. I'll also PM him.
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