pi2flu
Posts: 1
Joined: Fri Apr 17, 2015 2:33 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 17, 2015 3:00 pm

I trie to set a static address to my raspberry
the coal is to create a smal network with my raspberry and my cubieboard over a small router.

[email protected]:~$ sudo ifconfig
eth1 Link encap:Ethernet Hardware Adresse b8:27:eb:f3:29:ab
inet Adresse:192.168.178.31 Bcast:192.168.178.255 Maske:255.255.255. 0
inet6-Adresse: fe80::ba27:ebff:fef3:29ab/64 Gültigkeitsbereich:Verbind ung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX-Pakete:604 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
TX-Pakete:536 Fehler:0 Verloren:0 Überläufe:0 Träger:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX-Bytes:56800 (56.8 KB) TX-Bytes:75717 (75.7 KB)

lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:65536 Metrik:1
RX-Pakete:174 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
TX-Pakete:174 Fehler:0 Verloren:0 Überläufe:0 Träger:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX-Bytes:13064 (13.0 KB) TX-Bytes:13064 (13.0 KB)

[email protected]:~$ sudo route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 eth1
192.168.178.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1

I tried to change the /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

# The loopback network interface
auto lo
iface lo inet loopback

iface eth1 inet static
address 192.168.178.31
netmask 255.255.255.0
network 192.168.178.0
broadcast 192.168.178.255
gateway 192.168.178.1


# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp

But after a reboot the I got only the localhost 127.0.0.0
Thanks for helping

User avatar
mrengles
Posts: 36
Joined: Tue Mar 31, 2015 12:43 pm
Location: United States

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Apr 20, 2015 3:17 pm

Hello Everyone

I've created a Launchpad PPA with armhf packages for the Raspberry Pi 2 with fo0bars Ubuntu 14.04 Trusty image in mind.

I'm not a developer in anyway, I've just copied other Developers working packages over to my personal package archive, but enable armhf compiling so we can use them with are RPi2! Currently I've only found/needed Netatalk v3.1.7 and TrannmissionBT v2.8.4 but i'm sure more will come. If you know of (working) up-to-date packages that are currently on launchpad but not compiled for armhf, let me know and I'll add to the ppa.

https://launchpad.net/~mrengles/+archive/ubuntu/rpi2

Hope this helps someone else!

Gratitude,

Mrengles aka Robert
:geek:

mangodan2003
Posts: 24
Joined: Thu Apr 23, 2015 1:10 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Thu Apr 23, 2015 3:06 pm

ktb wrote:
fo0bar wrote:The vchiq udev should be installed at /lib/udev/rules.d/10-local-rpi.rules when libraspberrypi0 is installed (though it may take a "udevadm trigger" or reboot to actually apply).
Ah, this is correct. When I looked in the rules.d directory earlier, there were only a few files (10-local-rpi.rules not included). But since rebooting, I see 10-local-rpi.rules in there (and several other new files). Thank you. I'm playing around with i2c-tools and RPi.GPIO.
Did you get anywhere with RPi.GPIO?
I tried this but it seg faults, dmesg shows errors like the following

Program python3 tried to access /dev/mem between 20200000->20201000.

Which seems to be due to a kernel option that needs disabling.

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Thu Apr 23, 2015 6:18 pm

mangodan2003 wrote:
ktb wrote:
fo0bar wrote:The vchiq udev should be installed at /lib/udev/rules.d/10-local-rpi.rules when libraspberrypi0 is installed (though it may take a "udevadm trigger" or reboot to actually apply).
Ah, this is correct. When I looked in the rules.d directory earlier, there were only a few files (10-local-rpi.rules not included). But since rebooting, I see 10-local-rpi.rules in there (and several other new files). Thank you. I'm playing around with i2c-tools and RPi.GPIO.
Did you get anywhere with RPi.GPIO?
I tried this but it seg faults, dmesg shows errors like the following

Program python3 tried to access /dev/mem between 20200000->20201000.

Which seems to be due to a kernel option that needs disabling.
Yes, it worked fine for me. I can't remember if I had to add the Device Tree trailer to this kernel or not.

mangodan2003
Posts: 24
Joined: Thu Apr 23, 2015 1:10 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 7:59 am

Ok, could you confirm if your kernel is / was 3.18.0-20-rpi2?

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 9:14 am

mangodan2003 wrote:Ok, could you confirm if your kernel is / was 3.18.0-20-rpi2?
I'm not certain, but IIRC I think it might have been 3.18.0-14-rpi2. I don't currently have it installed on any of my cards.

Try running sudo vcdbg log msg and check the output for lines about device tree.

You want it to say this:
Kernel trailer DTOK property says yes

EDIT: You might need to add the following on a line in config.txt:
dtdebug=on
Last edited by ktb on Fri Jun 12, 2015 12:49 am, edited 1 time in total.

User avatar
mrengles
Posts: 36
Joined: Tue Mar 31, 2015 12:43 pm
Location: United States

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 11:07 am

mangodan2003 wrote:Ok, could you confirm if your kernel is / was 3.18.0-20-rpi2?
All the non standard Ubuntu software can be found here.

https://launchpad.net/~fo0bar/+archive/ubuntu/rpi2

mangodan2003
Posts: 24
Joined: Thu Apr 23, 2015 1:10 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 2:06 pm

I have the PPA already, and most the packages in it show up, but oddly the one I assume contains the vcdbg tool (raspberrypi-vc) does not :/ i've done apt-get update just to check i'm up-to-date but it doesn't show :/.

User avatar
mrengles
Posts: 36
Joined: Tue Mar 31, 2015 12:43 pm
Location: United States

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 2:12 pm

Have you installed ALL the specific Raspberry Pi packages from fo0bar's PPA?

Code: Select all

sudo ln -s /usr /opt/vc
sudo apt-get install libraspberrypi-bin libraspberrypi-dev libraspberrypi-bin-nonfree
Whats the out put of the measure_temp command?

Code: Select all

/usr/bin/vcgencmd measure_temp
If it shows your SoC temp then you have vc packages installed.

mangodan2003
Posts: 24
Joined: Thu Apr 23, 2015 1:10 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 2:33 pm

k, that got me vcdbg and I was able to confirm no device tree trailer.

I'm investigating using GPIO via sysfs instead, but interrupts using poll don't appear to work, if I can't get past this ill rebuild kernel and add the device tree and go back to the RPi.gpio method.

Thanks

mangodan2003
Posts: 24
Joined: Thu Apr 23, 2015 1:10 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 3:40 pm

Seems to me like something todo with GPIO is broken in sysfs kernel module, once the int fires once it fires forever, like the corresponding flag is never cleared.

I thought I was doing something wrong in my python code but then I found this C example which is producing the same results :

https://developer.ridgerun.com/wiki/ind ... int-test.c

Waiting for my kernel build to complete before trying the RPi.GPIO module.

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Apr 24, 2015 4:55 pm

You shouldn't need to rebuild the kernel.

You should only need to add the trailer to whatever kernel image you currently have.

Something like this should work if the kernel is named kernel7.img:
cd ~
mkdir -p software/build && cd software/build
sudo apt-get install git
git clone git://github.com/raspberrypi/tools.git
sudo ~/software/build/tools/mkimage/mkknlimg /boot/kernel7.img /boot/kernel7_dt.img

Then you could add something like the following to /boot/config.txt:
kernel=kernel7_dt.img

User avatar
mrengles
Posts: 36
Joined: Tue Mar 31, 2015 12:43 pm
Location: United States

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun Apr 26, 2015 3:51 pm

I just installed the updated Kernel 3.18.0-21-rpi2 (Raspberry patched 3.18.12) and everything seems to be working as normal. This actually fixed the Wi-Fi issues I was having with 802.11k & 802.11r Fast Roaming.

Code: Select all

$ uname -a
Linux Server 3.18.0-21-rpi2 #22-Ubuntu SMP PREEMPT Sat Apr 25 05:05:37 UTC 2015 armv7l armv7l armv7l GNU/Linux
Thanks Ryan for keeping everything up-to-date!

fo0bar
Posts: 19
Joined: Tue Feb 17, 2015 7:10 am

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun Apr 26, 2015 4:13 pm

mrengles wrote:I just installed the updated Kernel 3.18.0-21-rpi2 (Raspberry patched 3.18.12) and everything seems to be working as normal. This actually fixed the Wi-Fi issues I was having with 802.11k & 802.11r Fast Roaming.

Code: Select all

$ uname -a
Linux Server 3.18.0-21-rpi2 #22-Ubuntu SMP PREEMPT Sat Apr 25 05:05:37 UTC 2015 armv7l armv7l armv7l GNU/Linux
Thanks Ryan for keeping everything up-to-date!
No problem. Thanks also to Sasha Levin for taking on 3.18 as a kernel.org LTS release; it would have been much more difficult to produce an Ubuntu-styled RPi2-compatible kernel without staying on 3.18.

FYI, several people messaged me about 2015-04-06-ubuntu-trusty.zip.asc not being a valid GPG signature for the image. Actually it was valid, but happened to be an inline binary 150MB signed image wrapper in an ascii header (no idea how that happened). I've fixed to to be a proper detached ascii signature for the image.

el_Salmon
Posts: 17
Joined: Thu Jan 10, 2013 2:22 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Tue Apr 28, 2015 7:21 pm

One issue with clock: ntpdate doesn't work for me in this image. I have replaced it for ntp (Ubuntu reference). These steps fix the date showed:

Code: Select all

sudo service ntp stop
sudo ntpd -gq
sudo service ntp start
Another issue I have is transmission-daemon seems is running from boot but it doesn't response. I need to restart transmission-daemon on every boot to work fine. Any idea?

User avatar
mrengles
Posts: 36
Joined: Tue Mar 31, 2015 12:43 pm
Location: United States

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Tue Apr 28, 2015 8:43 pm

el_Salmon wrote:One issue with clock: ntpdate doesn't work for me in this image. I have replaced it for ntp (Ubuntu reference). These steps fix the date showed:

Code: Select all

sudo service ntp stop
sudo ntpd -gq
sudo service ntp start
Another issue I have is transmission-daemon seems is running from boot but it doesn't response. I need to restart transmission-daemon on every boot to work fine. Any idea?
That's weird ntpdate works just fine for me. Have you set your time zone away from (UTC) the image default like mentioned in Ryan's (fo0bar) Ubuntu Wiki post?

Code: Select all

$ sudo dpkg-reconfigure tzdata
Here's the output of ntpdate working for me as expected.

Code: Select all

$ ntpdate
28 Apr 16:19:16 ntpdate[2203]: no servers can be used, exiting
I'm having the same issue with transmission on startup, but have read on other forums its a pretty common issue with the Ubuntu Trusty package in general and not this image specifically causing the startup bug. I'm still looking for a real solution to this problem myself and will post my results if I find anything worth sharing.

Another bug i've noticed with Transmission, is that I can't login into the web interface on the first try. It will only allow me to login after the second attempt... Even if I save my user/pass with my web browser.

Keep us posted if you find a solution, I'll do the same!

Good luck,

Mrengles aka Robert
:geek:

el_Salmon
Posts: 17
Joined: Thu Jan 10, 2013 2:22 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri May 01, 2015 3:00 pm

mrengles wrote: That's weird ntpdate works just fine for me. Have you set your time zone away from (UTC) the image default like mentioned in Ryan's (fo0bar) Ubuntu Wiki post?

Code: Select all

$ sudo dpkg-reconfigure tzdata
Yes, I did but it didn't work.

ezschemi
Posts: 7
Joined: Sun Mar 01, 2015 10:23 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun May 03, 2015 6:41 pm

The Raspberry Pi 2 with this image is crashing or rebooting every other day: I have a web and file server running on it and during nights the whole Pi either crashes or reboots.
I want to find out how and why it crashes or reboots, though I am stuck right now: There is nothing in the logs.

Any suggestions where to start?

User avatar
DougieLawson
Posts: 35542
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun May 03, 2015 6:47 pm

Log free memory every five minutes (or more frequently). Log the top ten resource users every five minutes.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

menola
Posts: 3
Joined: Sun Mar 29, 2015 1:25 am

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun May 03, 2015 6:47 pm

Weak power supply?

ezschemi
Posts: 7
Joined: Sun Mar 01, 2015 10:23 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon May 04, 2015 5:38 am

DougieLawson wrote:Log free memory every five minutes (or more frequently). Log the top ten resource users every five minutes.
ok. I will try that. It's a short shell script.

krystophv
Posts: 1
Joined: Wed May 06, 2015 1:34 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Wed May 06, 2015 5:11 pm

Are there any more details concerning using the script on the wiki to build the image?

I really just wanted to add the openssh-server package so I could avoid unplugging the monitor and keyboard from my main computer just to set up a headless server, but was unable to get the image to build at all under Ubuntu 15.04 (failed to complete at all, hit udev errors) or Ubuntu 14.10 (completed with many warnings, but Raspberry Pi would not boot from the image it created) using the qemu-debootstrap method.

elermetz
Posts: 1
Joined: Wed May 06, 2015 7:10 am

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Wed May 06, 2015 8:03 pm

codyrigney92 wrote:Hey guys,

I was able to get the Pi Camera working on this image. Thank you for providing this OS image! I did NOT install the libraspberrypi-bin or libraspberrypi-dev because when I did they didn't work with the camera. First thing is to [...]
Hi, did anyone else succeed in getting the raspberry camera to work on the raspberry 2 with this Ubuntu 14.04 Image like it is described by codyrigney92? It is one of the great advantages of the raspberry but it unfortunately did not work when I tried it.

Raymond7
Posts: 4
Joined: Wed Apr 09, 2014 8:14 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri May 08, 2015 11:23 am

First of all GREAT ubuntu image. It works GREAT! I LOVE IT! thanks to the people that made this possible!
Im not very experienced with linux, and this is a great way learning it.

Unfortunately i am not able to play music files(mp3, .....). I it seems that ffmpeg plugin is not in the ubuntu official package anymore. Did anyone found a way to play music in this build? I couldnt install VLC media player. Youtube audio is working well.

User avatar
mrengles
Posts: 36
Joined: Tue Mar 31, 2015 12:43 pm
Location: United States

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri May 08, 2015 2:28 pm

Raymond7 wrote:First of all GREAT ubuntu image. It works GREAT! I LOVE IT! thanks to the people that made this possible!
Im not very experienced with linux, and this is a great way learning it.

Unfortunately i am not able to play music files(mp3, .....). I it seems that ffmpeg plugin is not in the ubuntu official package anymore. Did anyone found a way to play music in this build? I couldnt install VLC media player. Youtube audio is working well.
I'm no Ubuntu/Linux expert either, but I think this will help solve your problem.

https://help.ubuntu.com/community/RestrictedFormats

I'd do a little more research before you just blindly install. Like I said I'm no expert either.

Good luck!

Robert aka Mrengles

Return to “Other”