Commit Graph

44 Commits

Author SHA1 Message Date
Yann E. MORIN
d16b32a401 package/rpi-firmware: add option to install vcdbg
vcdbg is a tool to help debug the communication with the GPU.
It comes as a binary-only, and in two flavours: one for the hard
floating point ABI, one for the software floating point ABI.

Unfortunately, we have no source code for that tool, only a binary that
was dynamically linked with glibc and libraries from rpi-userland.

So, just install that executable, and let's hope there is no symbol
issue at runtime.

Note: vcdbg needs glibc, threads and !static. Since glibc already
implies threads and !static, we only need to depend on glibc.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc; Floris Bos <bos@je-eigen-domein.nl>
Cc: Pascal de Bruijn <pmjdebruijn@pcode.nl>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-02 11:01:55 +02:00
Yann E. MORIN
465a039f82 package/rpi-firmware: bump version
Misc enhancements and fixes all over the place, most notably:
  - FW: fix overclocking, better prioritise sound, fix CMA L1 cache,
        improved DTB/DTB-overlay support, SDcard freq fixes,
        voltages...
  - video: fix decoding weird stuff, fix stereo output...
  - camera: raw image capture, HDR (really?)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Floris Bos <bos@je-eigen-domein.nl>
Cc: Pascal de Bruijn <pmjdebruijn@pcode.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-06-29 22:16:39 +02:00
Yann E. MORIN
c22744542a package/rpi-firmware: add option to install DTB overlays
Currently, Buildroot does not support building the overlays that are
bundled in the Linux kernel, so all we can do is install the ones
pre-built in rpi-firmware.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Floris Bos <bos@je-eigen-domein.nl>
Cc: Pascal de Bruijn <pmjdebruijn@pcode.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-06-29 22:14:46 +02:00
Floris Bos
c1c78adf11 rpi-firmware: allow disabling installation of binary DTBs
The binary .dtb files are not suitable for everyone as they are
kernel-version specific.

Reintroduce BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS option.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
[yann.morin.1998@free.fr: don't install DTBs if kernel builds
 its own; fix default; rephrase help text]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Pascal de Bruijn <pmjdebruijn@pcode.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-06-29 22:13:56 +02:00
Floris Bos
38c9ac40f9 rpi-firmware: modify settings for Pi 2
Remove low-level settings from config.txt like arm_freq and sdram_freq.
The defaults should be good for most and differ by Pi model.
E.g. the Pi 2 runs at 900 Mhz by default, setting arm_freq=700
like we had previously would underclock it.

Add short description in comments to options.
Mention initramfs option.

Remove obsolete options from cmdline.txt

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-05-02 19:17:29 +02:00
Ryan Coe
4e92ffdc47 rpi-firmware: remove no longer used BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS
Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-03-04 21:27:43 +01:00
Peter Korsgaard
7403ea730d Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-03-02 23:26:20 +01:00
Yann E. MORIN
c9ba844ed0 package/rpi-firmware: fix config.txt parsing
The rpi-firmware we currently package has a fiscious bug, that happens
in corner cases while reading config.txt (mostly seen on RPi-2, but may
also occur on RPi-1).

Both the DT-aware and DT-unaware branches are affected.

Bump to the latest rpi-firmware to fix that.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-03-01 00:15:41 +01:00
James Hebden
a5ce7590c4 package/rpi-firmware: bump version
Misc fixes and improvements for: DT; hdmi and EDID; video decoding,
latency and cropping; voltage calculations...

Also: support for RPi-2. :-)

Also remove the workaround previously required when installing DTBs, ad
they are now in the same branch as the latest firmware.

Signed-off-by: James Hebden <james@hebden.net.au>
Signed-off-by: "Guillermo A. Amaral" <g@maral.me>
[yann.morin.1998@free.fr: further bump, fix and trim commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-02-22 22:24:52 +01:00
Yann E. MORIN
958c224c56 package/rpi-firmware: install DTB blobs
Add an option to install all the DTBs:
  - standard DTBs for standalon A/B and A+/B+ models;
  - overlay DTBs for the 'hats' addon boards.

Install the DTBs as per the traditional layout expected by all RPi
users, that is:
  - base DTBs alongside the other boot files;
  - overlay DTBs in a sub-directory.

This requires the user provide a specially configured Linux defconfig
file, as the default ones do not enable USE_OF.

[Thomas: adjust comment explaining why we use a different version when
installing the DTBs is selected.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-10 12:21:20 +01:00
Yann E. MORIN
7a6cf0485c package/rpi-firmware: add DT-aware marking script
The Raspberry Pi can boot a kernel with device tree support. But at the
same time, the RPi folks wante to keep the old-fashioned, ATAG-based way
of booting (don't ask...).

So, the bootloader needs to know whether the kernel it is loading has DT
support or not. For that, it looks at the end of the kernel image for a
magic footer. If found, it loads a device tree and sets the registers
appropriately so that the kernel finds the DTB. If not found, it loads
the kernel with the traditional ATAGS.

Where it becomes a bit tricky, is that the DTB is different for models
A/B and A+/B+ (that is A and B use the same DTB, while the A+ and B+ use
a second DTB). The bootloader is capable to load the correct DTB from a
specially named file. That is:
  - on A/B, it loads bcm2708-rpi-b.dtb
  - on A+/B+, it loads bcm2708-rpi-b-plus.dtb

If the DTB is differently named, the bootloader won't find it, will not
load any DTB at all, and revert to booting with ATAGS.

It is possible to specify what DTB to load, by adding an new config
option 'device_tree=file.dtb' in config.txt, but then the firmware on
the SDcard is no longer bootable on both the original models and the
Plus models.

So, add a script that appends the appropriate footer to the kernel
image. The script is vampirised from the RPi's tools repository, but a
new package is *not* added just for that script: the whole repository is
300+ MiB, and a checkout is 600+ MiB; it is not pertinent to add this as
a new package for a script that weights a few KiB...

Install that script as a host utility, too.

Notes: lots of information is available in this thread on the RPi forums:
    http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=93015

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-10 12:19:25 +01:00
Yann E. MORIN
72e9667e6f package/rpi-firmware: only install images
The rpi-firmware only installs images files, so it should use
_INSTALL_IMAGES_CMDS and not _INSTALL_TARGET_CMDS.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-01 22:58:14 +01:00
Yann E. MORIN
8b33222e30 package/rpi-firmware: bump version
Too many changes to list, but lots of fixes and enhancements all over
the place...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-01 22:25:31 +01:00
Yann E. MORIN
f8dbe6eb67 package/rpi-firmware: bump revision for a lot of fixes + enhancements
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-09-28 22:58:32 +02:00
Bernd Kuhls
16c453f413 package/rpi-firmware: Bump version to kernel 3.12.25
This version bump, amongst other things, introduces
OMX_ImageFilterDeInterlaceFast, which is needed by
the upcoming xbmc/kodi version bump.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-08-03 10:20:52 +02:00
Yann E. MORIN
ecfd6b9c30 package/rpi-firmware: bump
Yet another bump for the Raspberry Pi firmware:
  - HDMI: EDID override; HDCP fix; add command to control power to HDMI phy;
        fixes to mode selection
  - GPU: enable use of HW cursor; fix for GLES FFT compliance; fix scaling;
        remove arbitrary restrictions on output sizes
  - video-decode: better handle corrupted h264 streams, better allocate memory
  - misc: choose composite video when HDMI is not plugged

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-06-01 23:12:16 +02:00
Yann E. MORIN
510f088d01 package/rpi-firmware: bump
Undocumented changes (probably related to HDMI).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-09 16:29:43 +02:00
Yann E. MORIN
49009bb5ea package/rpi-firmware: bump for enhancements and bug fixes
Fixes and enhancements for:
  - video: add 3D stereo, unusual streams with skipped frames
  - audio: reset-on-flush, alsa passthrough, volume
  - misc : SDRAM drive strength
  - some undocumented changes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-04-30 09:11:51 +02:00
Yann E. MORIN
be92f003ba package/rpi-firmware: bump revision
Of utmost importance, this bump allows to overclock the RPi to even
higher frequencies: ARM > 1200MHz, core > 600MHz, RAM > 600MHz. :-)
To be used with caution, of course! :-)

Fixes and enhancements for:
  - clocks : allow higher overclocks
  - audio  : PCM channel expansion/conversion
  - video  : stutter on streams without b-frames, choice of scaling /kernel/
  - camera : padding-removal, new YUV and BGR modes
  - decoder: timestamps fixes, frames interval tracking
  - encoder: misc jpeg encoding fixes, save inline motion vectors
  - display: don't require EDID on HDMI

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-04-14 20:54:36 +02:00
Yann E. MORIN
ea442b18ec package/rpi-firmware: bump revision
Fixes in firmware:
  - misc: SDRAM calibration
  - camera: burst performance, exposure, EXIF
  - audio: noise in multichannel output, 8-bit input, float input/output,
           non-power-of-2 multi-channel
  - video: SEI in h264 encoder

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-03-29 18:27:50 +01:00
Yann E. MORIN
2f76708fd0 package/rpi-firmware: bump version
Bump for misc fixes and enhancements:
  - firmware: smaller cut-down (aka rescue) firmware
  - audio: sample rates, float samples, any-number-of-channels
  - hdmi: fix for (high?) output rates
  - video: h264 decode when changing resolution
  - camera: high frame rates, full FoV

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-03-16 21:24:35 +01:00
Yann E. MORIN
b62fe9a04e package/rpi-firmware: bump version
Bump to latest changeset:
  - fix for detecting monitor

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-03-11 11:46:26 +01:00
Yann E. MORIN
3d6ebaf644 package/rpi-firmware: bump version
Fixes and enhancements for:
  - audio: clock, HDMI passthrough, DTS
  - video playback: unpacked bitstreams
  - 3D: HW textures orientation
  - PWM: boot-time options
  - undisclosed changes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-03-02 21:00:15 +01:00
Yann E. MORIN
2ff133bbb2 package/rpi-firmware: bump for misc enhancements and fixes
Fixes for h264 video deocding, audio playback and cec.
Some improvements in HDMI output management.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-02-03 09:23:21 +01:00
Yann E. MORIN
ce2f4b24af package/rpi-firmware: bump for misc fixes/improvements
Bring a slew of fixes and improvements to:
  - boot hang
  - camera zoom, night mode
  - MJPEG decoder/encoder
  - video decoder/encoder
  - dispmanx (3D engine)
  - documentation

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-01-19 20:45:44 +01:00
Yann E. MORIN
e19f7f7593 package/rpi-firmware: bump
This bumps gets us:
  - support for the v4l2 driver
  - fix latencies in vdec3 (h264 decoder)
  - fix incorrect frame presentation in de-interlacing filter

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-12-13 00:01:27 +01:00
Mischa Jonker
e5c392830e packages: convert Github http:// users to the github helper
[Thomas: taken from Mischa original github patch.]

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-12-06 22:38:26 +01:00
Yann E. MORIN
c37dd482c8 package/rpi-firmware: only install one firmware file
Since only one firmware is used to boot the Raspberry Pi, there is no
reason to install all of them.

Add an option to select what firmware to install.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-12-03 12:20:17 +01:00
Yann E. MORIN
78f0f20562 package/rpi-firmware: bump for misc fixes and improvements
This fixes a few shortcomings in the boot firmware:
  - emmc pll clock issues
  - audio underruns and chirps
  - unload of sensor drivers (?)
  - missing config.txt no longer borks the boot
  - lockups during long exposures on the camera
  - YUV-to-texture fastpath for the camera

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-12-01 23:50:47 +01:00
Yann E. MORIN
0c6fff0e46 package/rpi-firmware: bump version
Bump bootloader and GPU firmware for misc fixes:
  - cec fixes
  - DTS buffering
  - others (pause_burst_frames enabled by default. WTF is that?)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-11-11 01:17:48 +01:00
Yann E. MORIN
c16b7bf306 package/rpi-firmware: bump
Further fixes for de-interlacing.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-11-05 23:55:18 +01:00
Thomas De Schampheleire
e6ea6b7865 git packages: use full revision hash
There is no benefit in using the shortened git revision hash. On the
contrary: the shorter the hash, the higher the risk of having collisions
with another commit.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2013-11-02 16:16:54 +01:00
Yann E. MORIN
883c4dc43a package/rpi-firmware: bump version
Fixes for de-interlacing of /unusual/ MPEG streams.
Yes, some people seem to enjoy generating MPEG streams in
which interlacing is not constant. That's apparently 100%
valid, but yet very unusual, and at the very least, weird.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-10-10 23:14:38 +02:00
Yann E. MORIN
d06678b783 package/rpi-firmware: bump version
Fix for issues with USB, audio, and GLESv2.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-10-05 00:03:06 +02:00
Yann E. MORIN
3874e5cba9 package/rpi-firmware: bump version
Fixes for USB and audio; enable video capture.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-09-22 11:47:24 +02:00
Yann E. MORIN
b9260ebf76 package/rpi-firmware: bump version
Fixes and improvements for USB, audio sync, camera support,
codecs, HDMI framerate and audio, and GPU freezes.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-09-05 15:45:24 +02:00
Yann E. MORIN
7ca310b0a0 package/rpi-firmware: bump version
Fixes for:
  - sound volume
  - GL deadlock
  - ressources leak
  - compressed audio streams
  - audio sampling up to 192kHz
  - display scaling
  - cache flush for mailbox

Switch to using a 7-char cset, instead of the long one.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-07-07 21:38:08 +02:00
Yann E. MORIN
e003d66f85 package/rpi-firmware: version bump for HDMI and audio fixes
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-27 15:50:57 +02:00
Yann E. MORIN
e22f57d41b package/rpi-firmware: update
Updating brings in a new bootloader that enables more free codecs:
    MJPEG, VP6, VP8, Ogg Theora and Ogg Vorbis

Also, the command-line definition has moved to its own file, now.
Although the legacy 'cmdline' variable seems to still be supported
for a little while, better switch now than forget when we upgrade
later.

Update the RPi board readme accordingly.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-07 10:56:01 +02:00
Spenser Gilliland
6b16001d4f rpi-firmware: fix github tarball to use commit id
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-06 23:08:24 +02:00
Alexandre Belloni
8dfd59d114 Normalize separator size to 80
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-06 22:30:24 +02:00
Simon Dawson
8dee06013e various packages: fix license information
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-05-08 13:49:01 +02:00
Maxime Hadjinlian
3d2c995658 rpi-firmware: Fixup config.txt
The default name of the kernel binary for the RaspberryPi is kernel.img,
it's only a zImage kernel renamed.  Since Buildroot will build a zImage, the
default config should use the zImage name instead of forcing the user to
rename a file.

This patch also remove the cmdline argument rootfstype. There is no point
forcing the user to use ext4 for its root partition.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-05-02 23:26:06 +02:00
Maxime Hadjinlian
2f511fe312 rpi-firmware: New package
Introducing a package to install pre-built binaries for the bootloader and
the GPU firmware for the RaspberryPi board.

[Peter: rename to rpi-firmware, add link to http://elinux.org/RPiconfig]
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-01-06 23:01:50 +01:00