[PATCH] osd fb timings and geometry

Post Reply
scpcom
Posts: 77
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

[PATCH] osd fb timings and geometry

Unread post by scpcom » Mon Aug 29, 2016 7:17 am

- removed redundant mode tables, use hdmi_format_para and vinfo_s as source
- added modes 1080p30 and 1080p25
- made c2_init.sh optional, osd fb gets resolution directcly from "hdmimode=" parameter
- fill fb_def_var with real geometry and timings, to be used by tools like fbset and xrandr
- mode validation to verify that all parameters match (work in progress)
- fixed some values found during validation

Handling of screen modes is much easier now, especially for the VESA modes.
For the TV modes (SD/HD/FHD/4K) I kept some redundant information, because they have special handling that others do not need (e.g. registers in enc_cfg_hw.c).

# prepare

Code: Select all

mkdir linux-c2
cd linux-c2

git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidc2-3.14.y

unzip linux-3.14-c2-osd-fb-timings.zip
# build

Code: Select all

cd linux/

export ARCH=arm64
export LOCALVERSION="+c2"

patch -p1 < ../linux-3.14-c2-debpkg.patch
patch -p1 < ../linux-3.14-c2-osd-fb-timings.patch

make LOCALVERSION="${LOCALVERSION}" ARCH=${ARCH} odroidc2_defconfig

make -j4 LOCALVERSION="${LOCALVERSION}" ARCH=${ARCH} Image modules
make LOCALVERSION="${LOCALVERSION}" ARCH=${ARCH} dtbs

make LOCALVERSION="${LOCALVERSION}" ARCH=${ARCH} headers_check 
make LOCALVERSION="${LOCALVERSION}" ARCH=${ARCH} scripts

make -j1 deb-pkg KDEB_PKGVERSION="3.14.65-20160826-c2" LOCALVERSION="${LOCALVERSION}" ARCH=${ARCH} \
  KBUILD_IMAGE="Image" KBUILD_DEBARCH=arm64 \
  DEBFULLNAME="Builder" \
  DEBEMAIL="build@c2.local"

cd ..
# install

Code: Select all

sudo dpkg -i linux-image-3.14.65*_3.14.65-*-c2*_arm64.deb
Attachments
linux-3.14-c2-osd-fb-timings.zip
(20.78 KiB) Downloaded 68 times

User avatar
odroid
Site Admin
Posts: 32725
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 218 times
Been thanked: 367 times
Contact:

Re: [PATCH] osd fb timings and geometry

Unread post by odroid » Mon Aug 29, 2016 10:56 am

In fact, we've been developing a similar approach like this.
http://odroid.com/dokuwiki/doku.php?id= ... utosetting
I think we can release it in a couple of weeks.

Really appreciate your patch.
We will compare it with your patch and get back to you.

scpcom
Posts: 77
Joined: Thu Jun 23, 2016 8:07 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [PATCH] osd fb timings and geometry

Unread post by scpcom » Fri Sep 23, 2016 6:56 am

- Updated patch for kernel 3.14.79
- Removed tvregs validation
Attachments
linux-3.14.79-c2-osd-fb-timings.zip
(18.84 KiB) Downloaded 63 times

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 2 guests