From: He Yangxuan <yangxuan8282@gmail.com>
To: Neil Armstrong <narmstrong@baylibre.com>
Cc: mjourdan@baylibre.com, linux-amlogic@lists.infradead.org
Subject: Re: Amlogic support on Alpine Linux
Date: Mon, 3 Dec 2018 22:50:17 +0800 [thread overview]
Message-ID: <20181203145017.24t25ifljc734pga@raspberrypi> (raw)
In-Reply-To: <b4fea03d-4446-6512-78f3-6fad6dfc3700@baylibre.com>
Hi Neil,
> On Wed, Nov 28, 2018 at 04:54:53PM +0100, Neil Armstrong wrote:
> Hi Yangxuan,
>
> On 28/11/2018 16:22, He Yangxuan wrote:
> > Hi Neil,
> >
> > The alpine kernel package `linux-amlogic` have been merged in alpine upstream:
> > https://github.com/alpinelinux/aports/commit/8dc0e43d5a410a6f173c14caaa625adaf45f11f4
> > The current kernel config only include arm64, maybe somebody can add armhf or armv7
> > kernel config later.
> > And alpine u-boot package have add Odroid C2 support:
> > https://github.com/alpinelinux/aports/commit/706b2721976b16d73274f23966f3f1a5735bf301#diff-bf45357b9515f24851da3b650e49829e
>
> Good news, thanks for pushing this !
>
> > will add Khadas Vim and Nanopi K2 in alpine u-boot package later.
>
> Could you also add the libretech-cc ?
I have created git PR for libretech-cc: https://github.com/alpinelinux/aports/pull/5739
> > So after the alpine builder build the package, we will have basic support for amlogic
> > devices in alpine.
> > I'm thinking about package mali driver. Based on this mail:
> > https://lists.infradead.org/pipermail/linux-amlogic/2017-June/004092.html
> > and Joseph's archlinuxarm package:
> > https://github.com/archlinuxarm/PKGBUILDs/blob/master/alarm/dkms-mali-utgard-meson
> > https://github.com/archlinuxarm/PKGBUILDs/blob/master/alarm/mali-utgard-meson-libgl
> > https://github.com/archlinuxarm/PKGBUILDs/tree/master/alarm/xf86-video-armsoc-meson
> > I have wrote the alpine APKBUILD for those three packages.
> > Most part is same as Joseph's work, but use your repositories as source.
> > Actually I want to add wayland support and video acceleration.
> > In your this releases: https://github.com/superna9999/meson_gx_mali_450/releases/download/for-4.15/buildroot_openlinux_kernel_4.9_20180131_mali.tar.gz
> > there are several libMali.so (r7p0/m450/dummy,fbdev,wayland,r7p0/m450-X), I should use which one for wayland or video?
>
> For wayland you should obviously use the wayland one, but this one is buggy, you should take the ARM HiKey binary instead at https://developer.arm.com/-/media/Files/downloads/mali-drivers/user-space/hikey/mali-450_r7p0-01rel0_linux_1arm64.tar.gz?revision=b8764bbe-c4d6-4825-a0d9-bceca4ee4b2d
I have tried the libMali.so, both of them work on debian stretch, but none of them work for alpine:
```
phicomm:~# LD_LIBRARY_PATH=/usr/lib/mali weston
Date: 2018-11-29 CST
[23:39:18.762] weston 5.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: unknown (not built from git or tarball)
[23:39:18.763] Command line: weston
[23:39:18.763] OS: Linux, 4.18.18-0-amlogic, #1-Alpine SMP PREEMPT Tue Nov 27 13:19:48 UTC 2018, aarch64
[23:39:18.763] Starting with no config file.
[23:39:18.763] Output repaint window is 7 ms maximum.
[23:39:18.763] Loading module '/usr/lib/libweston-5/drm-backend.so'
[23:39:18.765] Failed to load module: Error relocating /usr/lib/libweston-5/drm-backend.so: gbm_bo_get_offset: symbol not found
[23:39:18.765] fatal: failed to create compositor backend
```
Maybe this related to alpine use musl instead of glibc(from readelf output,
libMali.so need some glibc related shared library)? And if lima work for amlogic wayland now?
> For video acceleration, Mali is not involved her at all.
Still trying to get video acceleration work based on this posts:
https://forum.odroid.com/viewtopic.php?f=135&t=22717&start=900
Seems Maxime have got mpv with v4l2+drmprime in zerocopy use r7p0/m450/dummy/libMali.so .
> > And besides xf86-video-armsoc-meson do we still need xf86-video-fbdev or xf86-video-fbturbo?
>
>
> No, the armsoc driver doesn't need other x11 driver.
Yangxuan
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
prev parent reply other threads:[~2018-12-03 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-28 15:22 He Yangxuan
2018-11-28 15:54 ` Neil Armstrong
2018-12-03 14:50 ` He Yangxuan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181203145017.24t25ifljc734pga@raspberrypi \
--to=yangxuan8282@gmail.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=mjourdan@baylibre.com \
--cc=narmstrong@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®