Raspberry Puppi

A home for all kinds of Puppy related projects
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#61 Post by Lobster »

assembly code, Lisp and Perl.
Lisp? :) Interesting but not required . . .
I can not remember if we are Perl independent yet? It is one of Barrys goals . . . :)
Assembly coding is gonna make a lot of sense.
http://www.shervinemami.info/armAssembly.html

Assembly language optimisation is more involved for ARM
I looked at some High Level Assemblers many years ago (I know it sounds contrary but these are amazingly easy compared to traditional assembler)
Last edited by Lobster on Thu 03 May 2012, 03:42, 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

#62 Post by antiloquax »

I've been reading "Rebel Code" about GNU and Linux and there's a fair bit of discussion of LISP in that.

I think this is the reference manual for the RPi chip.

I tried to download my "arch-puppi" from adrive, but it wouldn't untar properly :(
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

downloadable filesystem for arch-puppi

#63 Post by antiloquax »

Well, I have checked this and it's working.
The file is here.
The md5dum of the extracted puppi.img is:

Code: Select all

66a141b3cb1f1c5b51007b6ae677c789  puppi.img
I'd be interested to hear if this works on a real RPi, Lobster.
If anyone else wants to tell me how to improve it, I'd be delighted!
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:

#64 Post by Lobster »

I'd be interested to hear if this works on a real RPi, Lobster.
:(
Thanks for uploading
but . . . no success ['turtle soup and seaweed', as the mermaids say when disappointed]

The download site was VERY slow :?
The hashfile checked out OK :)

Basically only the red power LED came on but no booting sequence LED is initiated . . .
It may be feasible to take the boot part of the released Arch and add this to your image . . . will have a brief look at that
Image
. . . meanwhile Barry has a real woof build Puppy on ARM. Brilliant.
http://bkhome.org/blog/?viewDetailed=02808
Dougal posts in the comments section of Barrys blog:

Besides that, linux.com has something about Yocto and apparently you can use it to build a distro even if you don't have the HW, as they have an ARM emulator:
https://www.linux.com/news/embedded-mob ... 12-release
(that might be better than trying a T2 build... and you can build on a desktop machine, which might be faster.)


We really need Puppy on Rpi as we have the means to speed Raspberries up.

Pi 'r squared as some might say :)
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

#65 Post by antiloquax »

Hi Lobster,
sorry that didn't work :(
It'll be easier when I have a Pi and I can test stuff properly before sharing links to stuff that doesn't work! :oops:

Anyway ... I've had a look at Barry's blog where he was talking about compiling stuff and I have compiled rxvt.
It works fine. I will have a go at making a .pet later. :)

EDIT - by the way Lobster - do I need to do anything special when compiling, or is ./configure, make, make install ok?
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

#66 Post by antiloquax »

@Lobster (or anyone with an RPi or qemu vrtualisation).
This is a tar.gz of my compile of rxvt.
It'd would be cool if someone could test it.
I've tested it as much as I can and it seems okay.

I haven't made it into a .pet (as I assume we can't use those yet!)
So, if you don't want to manually install the programs, go into rxvt-2.6.5/usr/local/bin and try:

Code: Select all

./rxvt
or

Code: Select all

./rclock
I've got rubix working too, but I haven't made that into an archive yet.
Attachments
rxvt-2.6.4.tar.gz
(60.72 KiB) Downloaded 384 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
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#67 Post by Lobster »

Do not know enough to advise about compiling. :oops:

Good news is rxvt and clock working fine on Rpi (genuine raspberry powered hardware) :D

Yes will be great when you have a board. 8)

We are the Dorg
Resistance is Fruity
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

#68 Post by antiloquax »

That's excellent Lobster! :D :D :D
Now I feel I can go ahead and compile some more things. :)
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
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#69 Post by Tman »

Antiloquax,

I compiled Qemu over the weekend, but my internet was down since Monday and I haven't tested it with any images yet. I am downloading your Puppi image now.

Qemu is brand new territory for me. I would like to know the command parameters I would need to run your Puppi in qemu. Thanks in advance.

qemu-system-arm ??? ( I don't know the rest )

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

#70 Post by antiloquax »

Here's my qemu command:

Code: Select all

qemu-system-arm -M versatilepb -cpu arm1176 -m 192 -hda <path to the file-system image> -kernel /mnt/home/RPi/zImage -append "root=/dev/sda" -serial stdio -redir tcp:2222::22 
The zImage I use is here.

One other thing that may be of use is a virtual usb drive (please excuse me if you already know this!)
I make a partition whatever size I want (usually 512Mb) and put any files I want to access within qemu onto it. Then I dd it to an img file and add this to my start-up script:

Code: Select all

-hdb <path to usb.img>
You can then mount this as a drive and read /write to it. There may be an easier way to do this, but that's how I have been doing it.
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:

#71 Post by Lobster »

Whilst I have been playing :)
http://lobster.thenewhive.com/puppi
and pretending to change the world . . .

. . . Mark has created an Ubuntu1 shared account for Rpi compiled programs. If anyone needs access or can provide more open storage let either of us know.

I am gonna have another go at testing Barry's compiled programs
because I have discovered the weakest link in the testing procedure [paws down please - yes it is me :oops: ]

Have you ordered your Pi yet?
Rpi is silent. solid state and inexpensive.
and . . .and . . . fun . . . just like Puppy . . .
http://raspberrypy.tumblr.com/post/2236 ... cult-of-pi

Puppy Linux
Bring on the smart dogs
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

#72 Post by antiloquax »

Here are links for tar.gz archives for rxvt and rubix (hosted on Ubuntu One - you're welcome to share the folder as Lobster mentioned above, just let me have your email).

rxvtARMv6
rubixARMv6

I've had a go at compiling some other things (I think bcrypt is okay, but I haven't checked it fully yet). I have had problems with ROX - to do with some dependencies that I have not yet got installed.

Does anyone know if there's a suggested "sequence" in which to build packages. I'd rather not rely on much more from the Arch repo than I already have. I'm going to have another look at Barry's site and see if it makes more sense.
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
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#73 Post by Tman »

antiloquax wrote: Does anyone know if there's a suggested "sequence" in which to build packages. I'd rather not rely on much more from the Arch repo than I already have. I'm going to have another look at Barry's site and see if it makes more sense.
mark
You seem to be compiling properly. I use src2pkg for more simple apps. I believe Amigo has a non-puppy src2pkg version as well.

For apps that don't work with src2pkg, I use the traditional:

./configure --help ( sift through the options and figure out what you need to add )
./configure [add your options]
make -jX
( where "X" represents the number of cpu cores you have, eg dual-core would be make -j2 )
make install DESTDIR=/pathname/of/your/choice

Create your own .desktop entry for the app, if it doesn't come with one
Then, trim the folders of whatever is not needed
Next, strip and/or upx if you want to make the binaries smaller
Also, Iguleder's "splitpkg" tool can split the folder into separate categories for DEV, DOC and NLS pets. I've read that new2dir has a similiar option.

Thanks for the parameters for qemu. I don't have much free time for it today, but will be sure to try it out sometime on the weekend.

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

#74 Post by antiloquax »

Thanks for the compiling tips, Tman.
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:

#75 Post by Lobster »

./configure [add your options]
Are there generic options for ARM that I should look out for?
If compiling is considered a useful penguin skill
I come bottom of the class :)

Barry has provided user notes in the comments section here
http://bkhome.org/blog/?viewDetailed=02805

no rhyme or reason every instance seems different?
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

#76 Post by antiloquax »

Okay, I am trying to host these files on my website instead.

ftp PupPi files

account name: a3804781
password: puppi1

So far, it's just the rubix tar.gz that's there.

Edit
Adding rxvt, gfrename, bcrypt, xorg-server and puppi.tar.gz (the image of the Arch File system I've made look a bit like Puppy!)

By the way, I did a pacman -Syyu on the arch OS yesterday and lots of updates came through. I think Arch are about to release a new version ...

I am going to add a little text file here which shows the steps I take to get to a basic graphical environment from the arch image (using xorg-twm).
mark
Attachments
archsetup.tar.gz
(525 Bytes) Downloaded 331 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

#77 Post by Tman »

Lobster wrote:
./configure [add your options]
Are there generic options for ARM that I should look out for?
Here are generic .configure options for Puppy ( it varies, according to the Linux distro ):

Code: Select all

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make install DESTDIR=/tmp/MyPackage
The above should work for a lot of apps, as long as you have all of the needed dependencies for it installed. But adding or removing certain options can make the package less bloated, maybe more responsive, and sometimes results in less dependencies needed for the package to run.

pacer106
Posts: 360
Joined: Tue 11 Jan 2011, 18:42

#78 Post by pacer106 »

Image

Uploaded with ImageShack.us

Image

Uploaded with ImageShack.us

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

#79 Post by Tman »

Antiloquax, I tried your puppi.img in qemu and managed to login as root.
However, I can seem to get X running at the moment. And how did you get a window that says "Qemu" in the titlebar? This is just a quick report; I will try some more tommorrow...signing off after this message. When I run "startx", I get the following error messages:

Code: Select all

[root@alarmpi ~]# startx


X.Org X Server 1.12.1
Release Date: 2012-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.1.10-6-ARCH armv5tel 
Current Operating System: Linux alarmpi 3.1.9 #3 Tue Mar 6 05:34:11 GMT 2012 armv6l
Kernel command line: root=/dev/sda
Build Date: 15 April 2012  04:42:06PM
 
Current version of pixman: 0.24.4
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun May  6 03:46:42 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
JWM: warning: key binding: root menu 1 not defined
Attachments
qemu-puppi.jpg
(32.12 KiB) Downloaded 917 times

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

#80 Post by antiloquax »

Hi Tman,
I don't think the JWM warning is the problem here. I get that as well, I must have made some mistake in my .jwmrc, but it doesn't ususally stop X from starting.

I'll get back to you when I've seen if I can sort this out.
mark

As for the "qemu" title bar. That's just how it has always looked since I installed it!
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