Commit Graph

19 Commits

Author SHA1 Message Date
Giulio Benetti
220716ab67 configs/olimex_a20_olinuxino: fix mali not working because Linux version >= 4.20
Since on olinuxino_lime/lime2 we have a Linux version >= 4.20 we need to
pass drm_kms_helper.drm_leak_fbdev_smem=1 to kernel command-line that
really enables DRM_FBDEV_LEAK_PHYS_SMEM. CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM
only adds the code for this, but drm_leak_fbdev_smem is 0 by default, so we
need to override it with 1. Same goes for drm_fbdev_overalloc that
must be at least 200 for having a double buffer that is required by
Mali. This fixes both olimex_a20_olinuxino_lime and lime2 that use
extlinux.conf.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-01-08 21:56:55 +01:00
Giulio Benetti
8eec483760 board/olimex/a20_olinuxino: add linux-disable-lima.fragment
This Linux defconfig fragment is needed to disable Lima driver in favour of
Mali(if enabled). This because Lima is enabled by default in Linux's
sunxi_defconfig and if we enable Mali driver in Buildroot it will fail to
load. So let's set CONFIG_DRM_LIMA=n. Of course this fragment is only used
by Buildroot defconfigs that enable Mali driver.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-01-08 15:09:48 +01:00
Giulio Benetti
f89b3e14cf board/olimex/a20_olinuxino/genimage.cfg: fix option suffix
With commit[1] I've introduced a code style bug:
offset = 8KB
so let's substitute 8KB with 8K.

[1]: 43bfa1cf10

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-11-14 15:31:56 +01:00
Giulio Benetti
43bfa1cf10 board/olimex/a20_olinuxino/genimage.cfg: beautify file
Beatify this genimage .cfg file to have consistency with all genimage .cfg
files in Buildroot.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2021-11-08 22:59:29 +01:00
Francois Perrad
878fbd5fbf Partial revert "configs/olimex_a20_olinuxino: switch to extlinux.conf"
Old scripts are still used by a10_olinuxino & a20_olinuxino_micro

Fixes olimex_a20_olinuxino_micro
see https://gitlab.com/buildroot.org/buildroot/-/jobs/1478738568

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-08-08 23:25:54 +02:00
Francois Perrad
f0d270ccfb configs/olimex_a20_olinuxino: switch to extlinux.conf
a10_olinuxino is not switched to extlinux.conf, so the broken symlinks
are replaced by the previous content from a20_olinuxino.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-07-20 21:23:33 +02:00
Francois Perrad
b8637d1a27 configs/olimex_a20_olinuxino_lime_legacy: remove defconfig
The old 3.4 Linux kernel used by this defconfig doesn't build with gcc
7.x.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-15 23:13:41 +01:00
Francois Perrad
d756c736a9 configs/olimex_a20_olinuxino_lime_mali: rename to olimex_a20_olinuxino_lime_legacy
This commit renames olimex_a20_olinuxino_lime_mali to
olimex_a20_olinuxino_lime_legacy, because the upstream Linux kernel
now also supports using the Mali GPU.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-09-18 21:00:02 +02:00
Francois Perrad
20b3f646b0 olimex_a20: refactor with genimage.sh
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-07-02 00:37:59 +02:00
Francois Perrad
7a794e1143 olimex_a20: refactor with U-Boot boot script
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-07-02 00:37:11 +02:00
Peter Korsgaard
1034c11efb a20_ollinuxino: Accommodate U-Boot environment on SD-card
As described by http://linux-sunxi.org/Bootable_SD_card#SD_Card_Layout

The space betweem 544KB..1MB is reserved / used for the u-boot environment,
so mark it as such to make sure genimage doesn't put other partitions here.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-07-02 13:19:12 +02:00
Luca Ceresoli
a59dc492f0 olimex_a20_olinuxino_*: remove old SD writing instructions
Now that all the boards have been converted to use genimage, the old
instructions on how to partition and write an SD card are useless.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-02-24 23:44:02 +01:00
Luca Ceresoli
ae13fd947b olimex_a20_olinuxino_lime2: update to use genimage
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-02-24 23:43:51 +01:00
Luca Ceresoli
65301a472e olimex_a20_olinuxino_lime: update to use genimage
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Francois Perrad <fperrad@gmail.com>
Tested-by: Francois Perrad <fperrad@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-02-24 23:43:37 +01:00
Luca Ceresoli
316215a746 olimex_a20_olinuxino_micro: update to use genimage
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-02-24 23:43:15 +01:00
Luca Ceresoli
937568ea4d olimex/a20_olinuxino: update readme.txt with lime2 info
[Peter: fix typo, s/AllWinner/Allwinner/]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-02-24 21:40:33 +01:00
Jan Viktorin
aa8c11105d olimex_a20_olinuxino_lime2: new board
It is based on olimex_a20_olinuxino_lime configuration. Tested on the mainline
kernel 4.1.4. It boots and the Ethernet is working at speed 1 Gbps.

[Thomas: remove ccache and optimize 2 options.]

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
Acked-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-10-03 14:50:47 +01:00
Luca Ceresoli
6bcc75d73f configs/olimex_a20_olinuxino_micro: new board
Add a defconfig for the Olimex A20-OLinuXino-Micro board, reusing most
of the A20-OLinuXino-Lime files.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-02 11:00:13 +02:00
Luca Ceresoli
6d3b77e970 olimex_a20_olinuxino_lime: rename board dir to remove _lime suffix
The files in board/olimex/a20_olinuxino_lime/ work with minimal or no
modifications for the Olimex A20-OLinuXino-Micro board, whose support is
going to be added in a later commit.

Rename the directory to clarify it's not restricted to the Lime anymore.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-06-30 23:01:18 +02:00