joaodriessen
Posts: 10
Joined: Fri Oct 18, 2013 9:36 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 3:33 pm

Your English rocks!!
Don't change a thing :-)

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 9:19 pm

jk43 wrote:Hi,
Everything working fine with your image except for USB serial console.
I have added "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootwait" to "/boot/firmware/cmdline.txt" but my usb console screen shows only "Uncompressing Linux... done, booting the kernel." and nothing.
Any idea?
Works for me... Though /dev/mmcblk0p3 is not the default root partition (/dev/mmcblk0p2 is), unless you moved it. Even then, you should see the rest of the kernel messages. Other than that, your cmdline looks fine. Is your serial terminal client set for 115200 8N1?

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 9:50 pm

fo0bar wrote:
codyrigney92 wrote: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.
I'm not sure why the libraspberrypi packages from the PPA wouldn't have worked. That library is built directly from https://github.com/raspberrypi/userland. The buildme patch would have no effect since it's in the "armv6l" block, and arm-linux-gnueabihf.cmake is a cross-compile target, which the patch effectively makes into a native build (with the same flags as what gcc gives it anyway).

The only thing I can think of is the firmware, which had a bad build in the PPA for about a day this week.
Hmm. Well, most things seem to be working fairly well for me using xubuntu-desktop. Thank you for putting this image together. I installed libraspberrypi0, libraspberrypi-dev, libraspberrypi-doc, libraspberrypi-bin. I added /etc/udev/rules.d/10-vchiq-permissions.rules (SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"). That seems to work fine. I haven't figured out why "vcdbg log msg" doesn't work. Well, vcdbg appears to be missing ("vcdbg: command not found" or "sudo: vcdbg: command not found") or I just can't find it.

I'm not sure, but I don't think Device Tree is working. Is that correct?

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 10:20 pm

ktb wrote:Hmm. Well, most things seem to be working fairly well for me using xubuntu-desktop. Thank you for putting this image together. I installed libraspberrypi0, libraspberrypi-dev, libraspberrypi-doc, libraspberrypi-bin. I added /etc/udev/rules.d/10-vchiq-permissions.rules (SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"). That seems to work fine. I haven't figured out why "vcdbg log msg" doesn't work. Well, vcdbg appears to be missing ("vcdbg: command not found" or "sudo: vcdbg: command not found") or I just can't find it.

I'm not sure, but I don't think Device Tree is working. Is that correct?
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).

Oddly vcdbg and edidparser don't appear to be part of the open source userland and hence isn't being built. You can grab it manually:

Code: Select all

wget -O vcdbg 'https://github.com/raspberrypi/firmware/blob/master/hardfp/opt/vc/bin/vcdbg?raw=true' && chmod 0755 vcdbg
I'll ask around and see why it isn't included, and possibly make a libraspberrypi-bin-nonfree package which contains the missing programs.

Not sure about DTB support as I haven't tried it. If someone else has some technical insight into it, please let me know what I can do to make it better.

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 10:28 pm

joaodriessen wrote:Your English rocks!!
Don't change a thing :-)
Its mean "some idea can be change".
Or here is the truth:

http://upload.wikimedia.org/wikipedia/e ... Poster.jpg
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 10:30 pm

https://github.com/raspberrypi/userland/issues/56

As discussed here raspberrypi/firmware@470b34d the source-code for edidparser and vcdbg is currently unavailable. AFAICT this makes them the only part of the ARM-side code that isn't yet open-sourced.

Creating this issue as a reminder that they ought to be added at some point...
I'll create a libraspberrypi-bin-nonfree package, as they're found in the same github repo as the binaries used to assemble raspberrypi-bootloader-nokernel.

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 11:00 pm

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.

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Fri Feb 27, 2015 11:06 pm

fo0bar wrote:Not sure about DTB support as I haven't tried it. If someone else has some technical insight into it, please let me know what I can do to make it better.

Code: Select all

000931.047: Read command line from file 'cmdline.txt'
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootwait cgroup_enable=memory usbhid.mousepoll=0

000932.624: Loading 'kernel7.img' from SD card
001128.424: No kernel trailer (run mkknlimg to fix) - assuming not DT-capable
001144.946: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
004313.058: vchiq_core: vchiq_init_state: slot_zero = 0xf6800000, is_master = 1
004329.776: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
004332.249: cma: cma_hwm is zero - disabling cma service
004333.655: gpioman: gpioman_get_pin_num: pin LEDS_RUNNING not defined
004333.678: gpioman: gpioman_get_pin_num: pin LEDS_NAND_ACTIVITY not defined
004333.700: gpioman: gpioman_get_pin_num: pin LEDS_USB_ACTIVITY not defined
004333.720: gpioman: gpioman_get_pin_num: pin LEDS_FATAL_ERROR not defined
004333.743: gpioman: gpioman_get_pin_num: pin LEDS_APP_OK not defined
004333.766: gpioman: gpioman_get_pin_num: pin LEDS_APP_FAILED not defined
004333.807: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_AUTH not defined
004333.830: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_UNAUTH not defined
004333.853: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_ON not defined
004333.875: gpioman: gpioman_get_pin_num: pin LEDS_DVI_ON not defined
004333.897: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_HPD_UP not defined
004333.918: gpioman: gpioman_get_pin_num: pin LEDS_REMOTE_CONTROL not defined
004333.939: gpioman: gpioman_get_pin_num: pin LEDS_ARM_CONTROLLED not defined
004334.280: TV service:host side not connected, dropping notification 0x00000002, 0x00000002, 0x00000027
001128.424: No kernel trailer (run mkknlimg to fix) - assuming not DT-capable

Here is an example of how I add the trailer to the kernel:

Code: Select all

cd ~/software/build
git clone https://github.com/raspberrypi/tools.git
cd ~/software/build/linux/arch/arm/boot/
/home/ktb/software/build/tools/mkimage/mkknlimg zImage kernel7_new.img
sudo cp kernel7_new.img /boot/kernel-3.18.7-v7+.img
http://www.raspberrypi.org/forums/viewt ... 61#p706261

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sat Feb 28, 2015 12:17 am

Yup. I ran the kernel image through mkknlimg and now Device Tree works. The UPS Pico board is working properly.

Code: Select all

cd ~
mkdir -p software/build && cd software/build
git clone git://github.com/raspberrypi/tools.git
sudo ~/software/build/tools/mkimage/mkknlimg /boot/firmware/kernel7.img /boot/firmware/kernel7_new.img
sudo cp /boot/firmware/kernel7.img /boot/firmware/kernel7.bak.img
sudo cp /boot/firmware/kernel7_new.img /boot/firmware/kernel7.img
sudo reboot
/boot/firmware/config.txt

Code: Select all

...
dtdebug=on

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on

dtoverlay=lirc-rpi:gpio_out_pin=17,gpio_in_pin=18,gpio_in_pull=down

dtoverlay=ds1307-rtc

Code: Select all

ubuntu@ubuntu:~$ sudo i2cdetect -y 1
[sudo] password for ubuntu: 
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- UU 69 6a 6b -- -- -- -- 
70: -- -- -- -- -- -- -- --  

Code: Select all

ubuntu@ubuntu:~$ sudo vcdbg log msg
....
00982.370: Read command line from file 'cmdline.txt'
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootwait cgroup_enable=memory usbhid.mousepoll=0

000983.948: Loading 'kernel7.img' from SD card
001181.050: Kernel trailer DTOK property says yes
001181.309: Loading 'bcm2709-rpi-2-b.dtb' from SD card
001184.883: dtparam: i2c_arm=on
001187.999: dtparam: i2s=on
001190.420: dtparam: spi=on
001195.885: Loaded overlay 'lirc-rpi'
001218.423: dtparam: gpio_out_pin=17
001219.389: dtparam: gpio_in_pin=18
001220.358: dtparam: gpio_in_pull=down
001222.098: Loaded overlay 'ds1307-rtc'
001232.741: dtparam: arm_freq=900000000
001288.683: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
004462.622: vchiq_core: vchiq_init_state: slot_zero = 0xf6800000, is_master = 1
004479.358: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
004481.800: cma: cma_hwm is zero - disabling cma service
004483.216: gpioman: gpioman_get_pin_num: pin LEDS_RUNNING not defined
004483.242: gpioman: gpioman_get_pin_num: pin LEDS_NAND_ACTIVITY not defined
004483.265: gpioman: gpioman_get_pin_num: pin LEDS_USB_ACTIVITY not defined
004483.286: gpioman: gpioman_get_pin_num: pin LEDS_FATAL_ERROR not defined
004483.306: gpioman: gpioman_get_pin_num: pin LEDS_APP_OK not defined
004483.327: gpioman: gpioman_get_pin_num: pin LEDS_APP_FAILED not defined
004483.349: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_AUTH not defined
004483.368: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_UNAUTH not defined
004483.388: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_ON not defined
004483.408: gpioman: gpioman_get_pin_num: pin LEDS_DVI_ON not defined
004483.428: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_HPD_UP not defined
004483.451: gpioman: gpioman_get_pin_num: pin LEDS_REMOTE_CONTROL not defined
004483.473: gpioman: gpioman_get_pin_num: pin LEDS_ARM_CONTROLLED not defined
004483.816: TV service:host side not connected, dropping notification 0x00000002, 0x00000002, 0x00000027

rosslyn568
Posts: 6
Joined: Sat Feb 28, 2015 3:07 am

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sat Feb 28, 2015 3:11 am

I am having difficulty installing additional features because I run out of space. I have an 8 GB SD card, but I very quickly reach the 1.75 GB hard coded limit. I tried changing that in the .sh file, but I could not figure out how to create the image from that. Is there a way to change this limit without having to make a new image and reinstall everything?

fraz0815
Posts: 70
Joined: Fri Jul 20, 2012 1:29 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sat Feb 28, 2015 2:14 pm

rosslyn568 wrote:I am having difficulty installing additional features because I run out of space. I have an 8 GB SD card, but I very quickly reach the 1.75 GB hard coded limit. I tried changing that in the .sh file, but I could not figure out how to create the image from that. Is there a way to change this limit without having to make a new image and reinstall everything?
see https://wiki.ubuntu.com/ARM/RaspberryPi

mccurly
Posts: 11
Joined: Tue Feb 24, 2015 7:55 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sat Feb 28, 2015 6:33 pm

Hello everybody!

I've installed foo's image and am currently trying to run kodi from it. I had to build it from helix branch from git repo and although it built successfully I can't run it. It spills out "unable to create GUI" and doesn't show anything else. Could the flags used to configure kodi be afecting this outcome (namely --disable-vdpau; --disable-x11 and --enable-libcec=no)?

Thanks in advance

codyrigney92
Posts: 57
Joined: Fri Dec 14, 2012 2:04 am

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun Mar 01, 2015 3:21 am

fo0bar wrote:
codyrigney92 wrote: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.
I'm not sure why the libraspberrypi packages from the PPA wouldn't have worked. That library is built directly from https://github.com/raspberrypi/userland. The buildme patch would have no effect since it's in the "armv6l" block, and arm-linux-gnueabihf.cmake is a cross-compile target, which the patch effectively makes into a native build (with the same flags as what gcc gives it anyway).

The only thing I can think of is the firmware, which had a bad build in the PPA for about a day this week.
The specific problem was that it couldn't create (or find?) the camera component. I discovered it was because it wasn't linking to libmmal_vc_client.so. Adding the --no-as-needed linker option to the build fixed it, which is what's in the patch I posted.

I don't fully understand how the firmware works, it's not the user land code right?

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun Mar 01, 2015 9:25 am

codyrigney92 wrote:The specific problem was that it couldn't create (or find?) the camera component. I discovered it was because it wasn't linking to libmmal_vc_client.so. Adding the --no-as-needed linker option to the build fixed it, which is what's in the patch I posted.

I don't fully understand how the firmware works, it's not the user land code right?
Ok thanks, the latest libraspberrypi packages now build with --no-as-needed, and libmmal_vc_client.so is showing up in the link list:

Code: Select all

ubuntu@ubuntu:~$ dpkg -l | grep libraspberrypi
ii  libraspberrypi-bin                 1.20150301.0de0b20-1   armhf                  Miscellaneous Raspberry Pi utilities
ii  libraspberrypi-bin-nonfree         1.20150301.46a04a4-1   armhf                  Miscellaneous Raspberry Pi utilities
ii  libraspberrypi-dev                 1.20150301.0de0b20-1   armhf                  EGL/GLES/OpenVG/etc. libraries for the Raspberry Pi's VideoCore IV (heade
ii  libraspberrypi-doc                 1.20150301.0de0b20-1   armhf                  EGL/GLES/OpenVG/etc. libraries for the Raspberry Pi's VideoCore IV (heade
ii  libraspberrypi0                    1.20150301.0de0b20-1   armhf                  EGL/GLES/OpenVG/etc. libraries for the Raspberry Pi's VideoCore IV
ubuntu@ubuntu:~$ ldd /usr/bin/raspivid
	libmmal_core.so => /usr/lib/libmmal_core.so (0x76efd000)
	libmmal_util.so => /usr/lib/libmmal_util.so (0x76ee6000)
	libmmal_vc_client.so => /usr/lib/libmmal_vc_client.so (0x76ed1000)
	libvcos.so => /usr/lib/libvcos.so (0x76ebd000)
	libbcm_host.so => /usr/lib/libbcm_host.so (0x76ea2000)
	libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76e87000)
	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76e7b000)
	librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76e6d000)
	libvchiq_arm.so => /usr/lib/libvchiq_arm.so (0x76e5f000)
	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d78000)
	/lib/ld-linux-armhf.so.3 (0x76f35000)
(I don't have a camera module, so I can't test if this is actually working. vcgencmd and tvservice continue to work as expected.)

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun Mar 01, 2015 9:27 am

fo0bar wrote:https://github.com/raspberrypi/userland/issues/56
As discussed here raspberrypi/firmware@470b34d the source-code for edidparser and vcdbg is currently unavailable. AFAICT this makes them the only part of the ARM-side code that isn't yet open-sourced.

Creating this issue as a reminder that they ought to be added at some point...
I'll create a libraspberrypi-bin-nonfree package, as they're found in the same github repo as the binaries used to assemble raspberrypi-bootloader-nokernel.
libraspberrypi-bin-nonfree has been uploaded to the PPA, and contains the vcdbg and edidparser utilities.

Code: Select all

$ sudo apt-get install libraspberrypi-bin-nonfree

nurdiyana_ali
Posts: 2
Joined: Sun Feb 08, 2015 6:19 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun Mar 01, 2015 12:27 pm

Hi,

ubuntu@ubuntu:~$ cat /sys/block/mmcblk0/queue/scheduler
noop deadline [cfq]

The image is using completely Completely Fair Scheduler instead of the normal noop (for spindle-free disk access such as mSD).

I tweaked the cmdline.txt and append with elevator=noop. Just FYI :)

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Sun Mar 01, 2015 10:53 pm

This is my first Raspberry Pi and I got everything working so far. Good job! :)

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 12:45 am

mccurly wrote:Hello everybody!

I've installed foo's image and am currently trying to run kodi from it. I had to build it from helix branch from git repo and although it built successfully I can't run it. It spills out "unable to create GUI" and doesn't show anything else. Could the flags used to configure kodi be afecting this outcome (namely --disable-vdpau; --disable-x11 and --enable-libcec=no)?

Thanks in advance
I've given Kodi a few build attempts now.

I've made an ugly mess out of the source, but it looks like I might be close. Here's a very rough summary...

Code: Select all

./configure --with-platform=raspberry-pi-2 --prefix=/usr --host=arm-linux-gnueabihf --enable-ccache --disable-vdpau --disable-vaapi --disable-x11 --disable-libcec
I made a bunch of changes throughout the source files like this:

Code: Select all

case $use_platform in
  raspberry-pi-2)
     target_platform=target_raspberry_pi_2
     use_neon=yes
     use_arch="arm"
     use_cpu=cortex-a7  
     use_hardcoded_tables="yes"
     ARCH="arm"

$as_echo "#define HAS_EGLGLES 1" >>confdefs.h

     USE_OMXLIB=1;
$as_echo "#define HAVE_OMXLIB 1" >>confdefs.h

     USE_MMAL=1;
$as_echo "#define HAS_MMAL 1" >>confdefs.h

     CFLAGS="$CFLAGS"
     CXXFLAGS="$CXXFLAGS"
     ;;
esac

Code: Select all

------------------------
  Kodi Configuration:
------------------------
  Debugging:	Yes
  Profiling:	No
  Optimization:	Yes
  SWIG Available:	Yes
  JRE Available:	Yes
  Doxygen Available:	Yes
  Crosscomp.:	No
  target ARCH:	arm
  target CPU:	cortex-a7
  OpenGLES:	Yes
  ALSA:		Yes
  DBUS:		Yes
  VDPAU:	No
  VAAPI:	No
  VTBDecoder:	No
  OpenMax:	No
  Joystick:	No
  XRandR:	No
  Waveform:	Yes
  Spectrum:	Yes
  GOOM:		No
  RSXS:		Yes
  FishBMC:	No
  ProjectM:	No
  Touch skin:	No
  X11:		No
  Wayland:	No
  Bluray:	Yes
  TexturePacker:Yes
  MID Support:	No
  ccache:	Yes
  ALSA Support:	Yes
  PulseAudio:	Yes
  DVDCSS:	Yes
  Google Test Framework Configured:	Yes
  Avahi:	Yes
  mDNSEmbedded:	No
  Non-free:	Yes
  ASAP Codec:	No
  MySQL:	Yes
  Webserver:	Yes
  libssh support:	Yes
  libRTMP support:	Yes
  libsmbclient support:	Yes
  libnfs client support:Yes
  libafpclient support:	Yes
  AirPlay support:	Yes
  AirTunes support:	No
  UPnP support:		Yes
  Optical drive:	Yes
  libudev support:	Yes
  libusb support:	No
  libcec support:	No
  libcap support:	Yes
  additional players:	No
  additional codecs:	No
  PVR add-ons:		No
  prefix:	/usr
------------------------
I add the following includes to Makefile and Makefile.include, then make -j3.

Code: Select all

-I/usr/include/interface/vcos/pthreads -I/usr/include/interface/vmcs_host -I/usr/include/interface/vmcs_host/linux
Have you made any progress?

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 4:21 am

I've updated the original post with a new image (2015-03-02-ubuntu-trusty.zip). It's a minor image update and there's no reason to reinstall if you installed a previous image.

* Updated Ubuntu / PPA packages
* Kernel module bcm2708_rng now loaded on boot
* Blacklisted platform modules not applicable to the RPi2 (snd_soc_pcm512x_i2c, snd_soc_pcm512x, snd_soc_tas5713, snd_soc_wm8804)

Note that a few fixes have worked their way directly into the PPA packages in the last few days, which you should get if you're keeping up to date on system updates. raspivid etc should be working now, /dev/vchiq should have the right permissions as soon as you install libraspberrypi0 (instead of after a reboot), etc.

mccurly
Posts: 11
Joined: Tue Feb 24, 2015 7:55 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 10:53 am

ktb wrote: Have you made any progress?
Hello, thank you for your interest on this subject.

So far I haven't been able to run it.

I've moved to another "ubuntu" build ---> http://www.raspberrypi.org/forums/viewt ... 56&t=98997 but have to find success yet :(

I will try to test your configuration and tweaks, but right now I am a bit disappointed at my time availability. I foresee to be able to try those out in a few hours notice, though. I will post back whatever I think may be relevant. Hope you understand that and sorry for the inconvenience.

Meanwhile, best regards.

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

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 1:26 pm

fo0bar wrote: * Kernel module bcm2708_rng now loaded on boot
.
I've updated to the latest packages, but bcm2708_rng still doesn't seem to load automatically for me. How did you get that working?

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
i2c-dev
lirc_dev
ipv6
snd_bcm2835
bcm2708_rng

Code: Select all

ubuntu@raspbuntu:~$ sudo modprobe bcm2708_rng
ubuntu@raspbuntu:~$ dmesg
...
[ 2634.862227] bcm2708_rng_init=b8494000
/etc/default/rng-tools

Code: Select all

# Configuration for the rng-tools initscript
# $Id: rng-tools.default,v 1.1.2.5 2008-06-10 19:51:37 hmh Exp $

# This is a POSIX shell fragment

# Set to the input source for random data, leave undefined
# for the initscript to attempt auto-detection.  Set to /dev/null
# for the viapadlock and tpm drivers.
HRNGDEVICE=/dev/hwrng
#HRNGDEVICE=/dev/null

# Additional options to send to rngd. See the rngd(8) manpage for
# more information.  Do not specify -r/--rng-device here, use
# HRNGDEVICE for that instead.
#RNGDOPTIONS="--hrng=intelfwh --fill-watermark=90% --feed-interval=1"
#RNGDOPTIONS="--hrng=viakernel --fill-watermark=90% --feed-interval=1"
#RNGDOPTIONS="--hrng=viapadlock --fill-watermark=90% --feed-interval=1"
#RNGDOPTIONS="--hrng=tpm --fill-watermark=90% --feed-interval=1"

rosslyn568
Posts: 6
Joined: Sat Feb 28, 2015 3:07 am

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 2:01 pm

I have been having similar problems getting Kodi to run on this image. The dependencies I am as of yet unable to install are libcec1, crystalhd-dev, and crystalhd3. I'm trying to compile these from source but running into issues. Has anyone added these to a repository that will work on rpi2 yet?

fraz0815
Posts: 70
Joined: Fri Jul 20, 2012 1:29 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 3:50 pm

I am messing around with kodi build aswell, but on raspbian +pi 2, here some more infos:

https://drive.google.com/file/d/0B8nSlx ... sp=sharing
Most of it should be easy to change for ubuntu, some newer libs etc, also make sure you use gcc/g++ 4.9

and something like

Code: Select all

CFLAGS="-Ofast -fexcess-precision=fast -mfloat-abi=hard -mabi=aapcs-linux -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=1 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -march=armv7e -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mvectorize-with-neon-quad" CXXFLAGS="-Ofast -fexcess-precision=fast -mfloat-abi=hard -mabi=aapcs-linux -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=1 -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -march=armv7e -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mvectorize-with-neon-quad" LDFLAGS="-L/opt/vc/lib" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --disable-projectm --disable-optical-drive --disable-dvdcss --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-ccache

codyrigney92
Posts: 57
Joined: Fri Dec 14, 2012 2:04 am

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 4:11 pm

fo0bar wrote:
codyrigney92 wrote:The specific problem was that it couldn't create (or find?) the camera component. I discovered it was because it wasn't linking to libmmal_vc_client.so. Adding the --no-as-needed linker option to the build fixed it, which is what's in the patch I posted.

I don't fully understand how the firmware works, it's not the user land code right?
Ok thanks, the latest libraspberrypi packages now build with --no-as-needed, and libmmal_vc_client.so is showing up in the link list:

Code: Select all

ubuntu@ubuntu:~$ dpkg -l | grep libraspberrypi
ii  libraspberrypi-bin                 1.20150301.0de0b20-1   armhf                  Miscellaneous Raspberry Pi utilities
ii  libraspberrypi-bin-nonfree         1.20150301.46a04a4-1   armhf                  Miscellaneous Raspberry Pi utilities
ii  libraspberrypi-dev                 1.20150301.0de0b20-1   armhf                  EGL/GLES/OpenVG/etc. libraries for the Raspberry Pi's VideoCore IV (heade
ii  libraspberrypi-doc                 1.20150301.0de0b20-1   armhf                  EGL/GLES/OpenVG/etc. libraries for the Raspberry Pi's VideoCore IV (heade
ii  libraspberrypi0                    1.20150301.0de0b20-1   armhf                  EGL/GLES/OpenVG/etc. libraries for the Raspberry Pi's VideoCore IV
ubuntu@ubuntu:~$ ldd /usr/bin/raspivid
	libmmal_core.so => /usr/lib/libmmal_core.so (0x76efd000)
	libmmal_util.so => /usr/lib/libmmal_util.so (0x76ee6000)
	libmmal_vc_client.so => /usr/lib/libmmal_vc_client.so (0x76ed1000)
	libvcos.so => /usr/lib/libvcos.so (0x76ebd000)
	libbcm_host.so => /usr/lib/libbcm_host.so (0x76ea2000)
	libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76e87000)
	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76e7b000)
	librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76e6d000)
	libvchiq_arm.so => /usr/lib/libvchiq_arm.so (0x76e5f000)
	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d78000)
	/lib/ld-linux-armhf.so.3 (0x76f35000)
(I don't have a camera module, so I can't test if this is actually working. vcgencmd and tvservice continue to work as expected.)
Awesome thanks for fixing this! Great job creating this image!

zilch
Posts: 1
Joined: Mon Mar 02, 2015 4:49 pm

Re: Ubuntu 14.04 (trusty) Raspberry Pi 2 image

Mon Mar 02, 2015 5:02 pm

I followed the wiki to setup xorg and fbturbo. xorg runs ok when using the xorg.conf in the wiki.

However, when I tried to run xorg in depth 24, segmenation fault occurs.

Seems like kodi requires depth 24. Any idea what's going wrong? Thank you.

Here is my config.txt:

Code: Select all

gpu_mem=128
disable_overscan=1
And here is my xorg.conf:

Code: Select all

Section "Device"
    Identifier "Raspberry Pi FBDEV"
    Driver "fbturbo"
    Option "fbdev" "/dev/fb0"
    Option "SwapbuffersWait" "true"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Raspberry Pi FBDEV"
    DefaultDepth 24
EndSection
And here is the Xorg.0.log with segfault:

Code: Select all

[    80.477] 
X.Org X Server 1.15.1
Release Date: 2014-04-13
[    80.477] X Protocol Version 11, Revision 0
[    80.478] Build Operating System: Linux 3.2.0-67-highbank armv7l Ubuntu
[    80.478] Current Operating System: Linux ubuntu 3.18.0-14-rpi2 #15-Ubuntu SMP PREEMPT Wed Feb 18 10:43:15 UTC 2015 armv7l
[    80.478] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0xa01041 bcm2709.serial=0x135170c4 smsc95xx.macaddr=B8:27:EB:51:70:C4 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootwait
[    80.479] Build Date: 12 February 2015  02:55:07PM
[    80.480] xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support) 
[    80.480] Current version of pixman: 0.30.2
[    80.480] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    80.481] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    80.482] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar  2 16:46:42 2015
[    80.483] (==) Using config file: "/etc/X11/xorg.conf"
[    80.483] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    80.486] (==) No Layout section.  Using the first Screen section.
[    80.486] (**) |-->Screen "Screen0" (0)
[    80.486] (**) |   |-->Monitor "<default monitor>"
[    80.487] (**) |   |-->Device "Raspberry Pi FBDEV"
[    80.487] (==) No monitor specified for screen "Screen0".
	Using a default monitor configuration.
[    80.488] (==) Automatically adding devices
[    80.488] (==) Automatically enabling devices
[    80.488] (==) Automatically adding GPU devices
[    80.488] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    80.488] 	Entry deleted from font path.
[    80.488] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    80.488] 	Entry deleted from font path.
[    80.488] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    80.488] 	Entry deleted from font path.
[    80.488] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    80.489] 	Entry deleted from font path.
[    80.489] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    80.489] 	Entry deleted from font path.
[    80.489] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[    80.489] (==) ModulePath set to "/usr/lib/arm-linux-gnueabihf/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[    80.489] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    80.489] (II) Loader magic: 0x76fb8f10
[    80.489] (II) Module ABI versions:
[    80.489] 	X.Org ANSI C Emulation: 0.4
[    80.489] 	X.Org Video Driver: 15.0
[    80.489] 	X.Org XInput driver : 20.0
[    80.489] 	X.Org Server Extension : 8.0
[    80.490] Initializing built-in extension Generic Event Extension
[    80.490] Initializing built-in extension SHAPE
[    80.490] Initializing built-in extension MIT-SHM
[    80.491] Initializing built-in extension XInputExtension
[    80.491] Initializing built-in extension XTEST
[    80.491] Initializing built-in extension BIG-REQUESTS
[    80.491] Initializing built-in extension SYNC
[    80.491] Initializing built-in extension XKEYBOARD
[    80.492] Initializing built-in extension XC-MISC
[    80.492] Initializing built-in extension SECURITY
[    80.492] Initializing built-in extension XINERAMA
[    80.492] Initializing built-in extension XFIXES
[    80.492] Initializing built-in extension RENDER
[    80.493] Initializing built-in extension RANDR
[    80.493] Initializing built-in extension COMPOSITE
[    80.493] Initializing built-in extension DAMAGE
[    80.493] Initializing built-in extension MIT-SCREEN-SAVER
[    80.494] Initializing built-in extension DOUBLE-BUFFER
[    80.494] Initializing built-in extension RECORD
[    80.494] Initializing built-in extension DPMS
[    80.494] Initializing built-in extension Present
[    80.494] Initializing built-in extension DRI3
[    80.494] Initializing built-in extension X-Resource
[    80.495] Initializing built-in extension XVideo
[    80.495] Initializing built-in extension XVideo-MotionCompensation
[    80.495] Initializing built-in extension SELinux
[    80.495] Initializing built-in extension XFree86-VidModeExtension
[    80.495] Initializing built-in extension XFree86-DGA
[    80.496] Initializing built-in extension XFree86-DRI
[    80.496] Initializing built-in extension DRI2
[    80.496] (II) LoadModule: "glx"
[    80.500] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    80.560] (II) Module glx: vendor="X.Org Foundation"
[    80.561] 	compiled for 1.15.1, module version = 1.0.0
[    80.561] 	ABI class: X.Org Server Extension, version 8.0
[    80.561] (==) AIGLX enabled
[    80.561] Loading extension GLX
[    80.561] (II) LoadModule: "fbturbo"
[    80.562] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[    80.563] (II) Module fbturbo: vendor="X.Org Foundation"
[    80.563] 	compiled for 1.15.1, module version = 0.5.1
[    80.563] 	Module class: X.Org Video Driver
[    80.563] 	ABI class: X.Org Video Driver, version 15.0
[    80.563] (II) FBTURBO: driver for framebuffer: fbturbo
[    80.564] (--) using VT number 7

[    80.590] (WW) Falling back to old probe method for fbturbo
[    80.590] (II) Loading sub module "fbdevhw"
[    80.590] (II) LoadModule: "fbdevhw"
[    80.591] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    80.591] (II) Module fbdevhw: vendor="X.Org Foundation"
[    80.592] 	compiled for 1.15.1, module version = 0.0.2
[    80.592] 	ABI class: X.Org Video Driver, version 15.0
[    80.592] (II) FBTURBO(0): using /dev/fb0
[    80.592] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    80.592] (II) FBTURBO(0): Creating default Display subsection in Screen section
	"Screen0" for depth/fbbpp 24/32
[    80.592] (**) FBTURBO(0): Depth 24, (--) framebuffer bpp 32
[    80.593] (==) FBTURBO(0): RGB weight 888
[    80.593] (==) FBTURBO(0): Default visual is TrueColor
[    80.593] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[    80.593] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 4050kB)
[    80.593] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[    80.593] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[    80.594] (II) FBTURBO(0): processor: ARM Cortex-A7
[    80.594] (II) FBTURBO(0): checking modes against framebuffer device...
[    80.594] (II) FBTURBO(0): checking modes against monitor...
[    80.594] (--) FBTURBO(0): Virtual size is 1920x1080 (pitch 1920)
[    80.594] (**) FBTURBO(0):  Built-in mode "current"
[    80.594] (==) FBTURBO(0): DPI set to (96, 96)
[    80.594] (II) Loading sub module "fb"
[    80.595] (II) LoadModule: "fb"
[    80.596] (II) Loading /usr/lib/xorg/modules/libfb.so
[    80.596] (II) Module fb: vendor="X.Org Foundation"
[    80.597] 	compiled for 1.15.1, module version = 1.0.0
[    80.597] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    80.597] (==) Depth 24 pixmap format is 32 bpp
[    80.623] (II) FBTURBO(0): using backing store heuristics
[    80.635] (II) FBTURBO(0): can't load 'g2d_23' kernel module
[    80.635] (II) FBTURBO(0): failed to enable the use of sunxi display controller
[    80.636] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[    80.636] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
[    80.636] (II) FBTURBO(0): enabled fbdev copyarea acceleration
[    80.636] (==) FBTURBO(0): Backing store enabled
[    80.638] (==) FBTURBO(0): DPMS enabled
[    80.638] (II) FBTURBO(0): failed to enable hardware cursor
[    80.638] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP
[    80.638] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log
[    80.638] (==) RandR enabled
[    80.699] (II) SELinux: Disabled on system
[    80.707] (II) AIGLX: Screen 0 is not DRI2 capable
[    80.707] (EE) AIGLX: reverting to software rendering
[    80.767] (II) AIGLX: Loaded and initialized swrast
[    80.767] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    80.842] (EE) 
[    80.843] (EE) Backtrace:
[    80.843] (EE) 
[    80.843] (EE) Segmentation fault at address 0x766bc000
[    80.843] (EE) 
Fatal server error:
[    80.844] (EE) Caught signal 11 (Segmentation fault). Server aborting
[    80.844] (EE) 
[    80.844] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    80.845] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    80.845] (EE) 
[    80.900] (EE) Server terminated with error (1). Closing log file.

Return to “Other”