Autore Topic: Raspberry  (Letto 13442 volte)

Offline akrobaticone

  • Gran Maestro dei Gamberi
  • *****
  • Post: 983
    • Mostra profilo
Raspberry
« il: 20 Aprile 2012, 15:47:25 »
http://www.raspberrypi.org/

in arrivo in Italia a breve

con Gambas a bordo si possono fare un sacco di cose simpatiche
"e il naufragar m'è dolce in questo mar"

Offline Ceskho

  • Amministratore
  • Senatore Gambero
  • *****
  • Post: 3.778
  • Vi Veri Veniversum Vivus Vici
    • Mostra profilo
    • Pagina Personale
Re: Raspberry
« Risposta #1 il: 23 Aprile 2012, 13:08:38 »
Non riesco ancora a capire quale dotazione hardware abbia....sicuro che gambas ci giri?

Offline akrobaticone

  • Gran Maestro dei Gamberi
  • *****
  • Post: 983
    • Mostra profilo
Re: Raspberry
« Risposta #2 il: 23 Aprile 2012, 16:01:49 »
sicuro.....no
con 256Mb di Ram non so se si riesca a installarlo
http://it.wikipedia.org/wiki/Raspberry_Pi
però l'oggetto è sfizioso e se ne parla anche quì
http://www.tomshw.it/cont/news/il-raspberry-pi-e-potente-e-si-overclocca-che-e-un-piacere/37006/1.html

di sicuro se dovesse far successo contribuirebbe non poco a diffondere il pinguino e le distro installate
mi sembra una buona occasione

appena riesco ne ordino uno.
poi la prima cosa che provo è installare gambas

"e il naufragar m'è dolce in questo mar"

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #3 il: 26 Aprile 2012, 12:12:34 »
Minisini ha inviato questo messaggio alla mailing-list internazionale:

« Gambas 3 on Raspberry Pi

At least the interpreter and the compiler compile correctly (with only one strange warning).
I will try to continue on compiling Gambas, but the QEMU ARM emulator is very slow, so it takes hours.

-- Benoît Minisini
»

ed ha allegato un file immagine.
« Ultima modifica: 12 Dicembre 2013, 15:02:28 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #4 il: 27 Aprile 2012, 00:10:39 »
...ulteriore messaggio di Minisini:
« The Raspberry system was emulated through QEMU. Compilation takes hours. X11 Display was forwarded to the host machine. Everything is sluggish.

But it works, and it's cool. :-)

If you want to try, use the very last development version.

Regards,

-- Benoît Minisini
»

ed ha inviato anche un file immagine che qui allego.
« Ultima modifica: 12 Dicembre 2013, 15:03:01 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #5 il: 28 Aprile 2012, 13:45:23 »
L'utente charlesg della mailing-list internazionale di Gambas ha inviato la stampa dello schermo a Eben Upton, amministratore della fondazione Raspberry Pi Foundation, il quale gli ha riposto così:
«Oh, very cool. We'll try to help you guys jump the queue for some units when we get the next batch in.»
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #6 il: 29 Aprile 2012, 13:55:26 »
L'utente John Rose ha inviato questo messaggio:

« I've been looking at RaspberryPi. Personally, I don't want to use
Fedora. So installing Debian for Armel on the RaspberryPi looks good, as
current Ubuntu for Arm (apparently have to use 9.04 or earlier)
supposedly does not support this processor. So I presume that dev of a
Gambas3 app could be done on (e.g.) Ubuntu 10.04 or 12.04 with creation
of an installation package for Debian. Would the created .deb install OK
on the RaspberryPi computer?

PS I believe that Benoit posted some messages about running Gambas on an
Arm device, but I'm unclear if they apply to the above situation.
»
« Ultima modifica: 12 Dicembre 2013, 15:03:49 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline El Berto

  • Grande Gambero
  • ***
  • Post: 150
    • Mostra profilo
Re: Raspberry
« Risposta #7 il: 30 Giugno 2012, 23:03:25 »
Potreste gentilmente "tradurre"?
Allora, Raspberry ha un processore ARM.
Non ci capisco niente di distribuzioni di Linux....
Per usare un programma in Gambas (3) devo quindi installarlo su Debian (se non ho capito male), poi posso lanciare l'eseguibile con un emulatore di ARM (con QEMU) per vedere se funziona su Raspberry?

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #8 il: 26 Luglio 2012, 16:46:10 »
Riporto di seguito domande e risposte - sempre circa Raspberry - apparse sulla mailing list internazionale:

« Somebody know how to use gpio port with Gambas 2/3 on Raspberry pi ? »

* * * * * * * *

« According to:

    http://www.haifux.org/lectures/258/gpio_spi_i2c_userspace.pdf

You have some directories in /sys to make gpio accessible from user
space, and then other directories to program them.

--
Benoît Minisini
»

* * * * * * * *

« He may be talking about this...

  http://pypi.python.org/pypi/RPi.GPIO

I think this code is used in the Python modules...

  http://elinux.org/RPi_Low-level_peripherals#GPIO_Driving_Example_.28C.29

Since I finally got mine RasPi and just gotten Gambas3 3.1.1 up running I'm
also very interested in this topic (and I'm sure lot's of other people are
to) but since I'm quite lost when it comes to C there is some reading to do.

A guy named Gordon have already made a C library named WiringPi but I have no
clue on how to use it from within Gambas3 or if it's even possible?

  https://projects.drogon.net/raspberry-pi/wiringpi/

Having an way to read/write RasPi's GPIO, I2C and SPI from Gambas3 would be
golden and I wished I known C/C++ and was talented enough to write a component :-/

BTW - Gambas3 3.1.1 seems to run fine on the RasPi using Xfce on Debian Squeeze,
haven't done much so far but at least it's up running and reading/writing the GPIO
is next so any input is appreciated.
»

* * * * * * * *

« Maybe I say something stupid, but there is a shell script example there:

http://elinux.org/RPi_Low-level_peripherals#GPIO_Driving_Example_.28Shell_script.29

It is just a matter of writing or reading files in /sys/class/gpio as
root. So you can use the standard file functions in Gambas for doing the
same thing.

Couldn't it be a simple solution?

--
Benoît Minisini
»

* * * * * * * *

« Yes, thats probably the easiest way to toggle the I/O pins ON/OFF if
speed is no concern but when there is no way to use interrupt etc that
way. Also it does not run in user space must be run as root wich is fine
for some things but not all.
»

* * * * * * * *

« A guy named Gordon have already made a C library named WiringPi but I have no
clue on how to use it from within Gambas3 or if it's even possible?
  https://projects.drogon.net/raspberry-pi/wiringpi/
»

* * * * * * * *

« This is a more interesting thing. I think by using Extern functions, you
can use that library directly without any problem.

Regards,

--
Benoît Minisini
»

* * * * * * * *

Thats what I hoped for, I need to read up on how to use the EXTERN
function and how to declare properly.

Also found an alternative C library for I/O and SPI made by Mike McCauley.

  http://www.open.com.au/mikem/bcm2835/index.html

Both libraries are probably quite similar but I downloaded and installed both
and will see if I can use them in Gambas3, will keep this list posted...

* * * * * * * *

With some luck and Google I managed to compile a shared version of the
C library to RaspberryPi I/O by Mike McCauley and it seems to work
(at least partly) within Gambas3 using the EXTERN function.

I started with the simplest function there was in the library and that
was pretty strait forward and it works fine in Gambas3 using the
code below...

  ' Declare external function
  Public Extern delay(millis As Integer) In "libbcm2835"

  ' Delay 2 sec
  delay(2000)

Next up was to declare an actual I/O function to toggle I/O pins
and looks like this in the C code (bcm2835.c from the library at
http://www.open.com.au/mikem/bcm2835/index.html)...

  ...
  // Set putput pin
  void bcm2835_gpio_set(uint8_t pin)
  {
      volatile uint32_t* paddr = gpio + BCM2835_GPSET0/4 + pin/32;
      uint8_t shift = pin % 32;
      bcm2835_peri_write(paddr, 1 << shift);
  }
  ...

Since my C knowledge is very limited I wonder what to declare "uint8_t"
as? According to Google it seems to be the same as unsigned char so I
tried to use Byte in the declaration but no go, I get segmentation
fault when calling that function.

  Public Extern bcm2835_gpio_set(pin As Byte) In "libbcm2835"

Anyone have any ideas what I am doing wrong?

BTW: Let me know if anyone wants the shared library file and I will
upload it somewhere, it's compiled in Debain Squeeze.

/CJ

* * * * * * * *

Hi,

your posting is very interesting, thank you

I use GB3 on Opensuse so far and now i'm learning for RaspBerry PI.

1st step was to make a Virtual machine of debian.
2nd is to get Gmabs3 working on it ...
but this failed.

Your information sounds as you successfully run ganbas3 on debian.
How did you install Gambas3 ?

wally

* * * * * * * *

uint8_t is a type as specified by the _t in the naming. u = unsigned
and int = integer 8 = eight bits. So this declares an unsigned integer
of 8 bits.

Hope this helps.

Morgan
»
« Ultima modifica: 12 Dicembre 2013, 15:07:54 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline akrobaticone

  • Gran Maestro dei Gamberi
  • *****
  • Post: 983
    • Mostra profilo
Re: Raspberry
« Risposta #9 il: 04 Agosto 2012, 10:31:05 »
quindi in sostanza c'è molto interesse per far girare Gambas su Raspberry.
a fine agosto arriva anche il mio.....
"e il naufragar m'è dolce in questo mar"

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #10 il: 07 Agosto 2012, 17:11:53 »
Aggiungo questa:


«What minimum do i need to run a Gambas3 project, developed on
OpenSuse /Gambas 3-IDE on a Raspberry-Dbian system ?

So far i installed gb3-runtime on the debian system and tried to run a
project.gambas executable using gbr3 ./project.gambas, but this
does not work. "No project file in 'project.gambas'

thank you
wally
»


************

«Sound like the gb3-runtime isn't installed correctly on your RasPi.
Did you install it as a deb-package using...

  dpkg -i gambas3-runtime_*.deb

If your project doesn't uses any other Gambas3 components all you
need is the gb3-runtime installed.

/CJ»


***********

«i installed simly with apt-get and seems to work.
gbr3 -V , gbr3 --help behave as expected.

> If your project doesn't uses any other Gambas3 components all you
> need is the gb3-runtime installed.

Ok, here i was not sure at all. I think all components activatet and used
during develpment should also be present on target system.

I'll try with one of the incuded simple example projects.
Keep us informed on you activities concerning RasPi

wally»
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline akrobaticone

  • Gran Maestro dei Gamberi
  • *****
  • Post: 983
    • Mostra profilo
Re: Raspberry
« Risposta #11 il: 27 Settembre 2012, 09:42:27 »
Qualcuno ha avuto modo di fare qualche prova con Raspberry?
io lo sto ancora aspettando da RS :'(
"e il naufragar m'è dolce in questo mar"

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #12 il: 27 Settembre 2012, 10:47:42 »
Qualcuno ha avuto modo di fare qualche prova con Raspberry?

Sulla Mailing List Internazionale un tizio ha inserito qualche giorno fa una schermata, che allego appresso, realizzata con il suo Raspberry, nella quale si vede che è stato appena avviato Gambas 3.3.
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Raspberry
« Risposta #13 il: 27 Settembre 2012, 19:02:59 »
Lo stesso utente ha aggiunto oggi questo messaggio:

Hello,

i think this might be interesting for gambas3 users on Raspberry PI.

Gambas3-example using Gordons wiringpi library
https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
to drive GPIO on a raspberry.

If there would be sufficient general interest, maybe a gambas-component
"gb.raspi" would make sense.

wally


ed ha allegato anche un programmino, che però richiede una libreria esterna.
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline akrobaticone

  • Gran Maestro dei Gamberi
  • *****
  • Post: 983
    • Mostra profilo
Re: Raspberry
« Risposta #14 il: 25 Ottobre 2012, 12:41:36 »
come devo procedere per installare gambas?
"e il naufragar m'è dolce in questo mar"