mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
76edb1fbde0bcaf49ec9e990f363e5032a2fd7a7
PD#172587 Problem: vdin afbce can not work well Solution: change afbce work mode Verify: verify on tl1 Change-Id: I3e980c7488bd8a0eb6f043fd1fb2d2b2bc75140f Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>8adc242tvafe: add control for tvconfig snow config [1/1]190d82fcvbs: cvbsoutput support for tl1 [1/1]3e859c8vdin: add dolby mem release protection [1/1]ba57ce5vdin: G12A color space error when capture screen by post blend [1/1]768c100vdin: add new interface for passing dma-buf to vdin [1/1]f24b329vdin: QD980 HDMI 4k 30Hz,change bit depth has green screen [1/1]a8c6962vdin: add afbce reg access protection [1/1]874fe722vdin: support afbc/non-afbc switch dynamically [1/1]321d0bcvdin: revert ignore v4l2start/stop ioctl when vdin1 used for preview [1/1]05df311vdin: disable afbce under 4k resolution [1/1]3038cb8vdin: recycle garbage frame for afbc mode [1/1]fbb84a75vdin: support dynamic dest_cfmt changing [1/1]81c1e14vdin: ignore v4l2start/stop ioctl when vdin1 used for preview [1/1]bab3adbtvafe: add av/atv/cvbs support for tm2 [1/1]2c05842vdin: add vdin support for tm2 [1/1]5a825f1vdin: config vdin mif/afbc path directly [1/1]3cb9517vdin: sync vdin0 & vdin1 buffer for afbc mode to avoid garbage screen [1/1]d1f8149vdin: fixed the issue of mem mapping from vmap. [1/1]0b049e1vdin: add sm1 support [1/1]bfc5e18vdin: fix vdin1 dest_cfmt for tl1 afbc preview support [1/1]ded6424tvin: vdin: add vdin1 scaler preview for vdin0 preview [1/1]b23ca7bvdin: optimize game mode for tl1 phase lock [1/1]2a95ff7vlock: add phase lock function [1/1]51822f9vlock: screen flash after PAL NTSC swich [1/1]315f6d3vlock: vlock for tl1 [1/1]7f3b8d9vdin: fix snowflake bottom screen [1/1]c2a4eaftvafe: optimize stable time on manual setting [1/1]c05cefdtvin: vdin: add interface to get signalinfo [1/1]5c5d26ctvin: vdin: fix vdin histgram error on tl1 [1/1]7c0701btvin: vdin: fix dolby vision memory free print error [1/1]a510d76tvin: vdin: fix system crash when dolby vision enable [1/1]2f1ba00vdin: add vdin1 histgram [1/1]f5abdd8tvin: vdin: fix TXLX ATv channel switching crash [1/1]8d1a496vdin: tl1: add viu loop back vpp path [1/1]63f1b85tvin: vdin: add vdin afbce memory power ctrl [1/1]211b677hdmirx: add allm mode. [1/2]2afb3d7tvafe: fix black border for atv [1/1]ced9632tvin: vdin: fix afbce 576p color anomaly [1/1]f00295aetvin: vdin: fix afbce 4k yuv444 display error [1/1]1fef799tvin: vdin: vdin add afbce write back to memory interface [1/1]482e11btvin: vdin: fix vdin CMA layout adaptation [1/1]87d67d8tvin: vdin: vdin afbce fix header size bug [1/1]f938eedvdin: optimize game mode process [1/1]6e847e0tvin: vdin: hdmirx format change, display exception [1/1]4c7bb63tvin: vdin: tl1 improve vdin function [1/1]8850ab8tvin: vdin: tl1 improve vdin afbce function [1/1] tvin: vdin: tl1 improve vdin function [1/1] PD#172587 Problem: 1.in the afbce mode, screen flicker when serial port print too many debugging information 2.vdin afbce 4K crash 3.viu loop back error 4.need afbce lossy mode Solution: 1.vdin use rdma mode 2.change vdin afbce buff size 3.change VDIN_ASFIFO_CTRL3 register 4.add lossy mode Verify: x301 Change-Id: Id66c0d7df22a9aeaca15d645f9a2ce0ecf47be3f Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com> tvin: vdin: hdmirx format change, display exception [1/1] PD#SWPL-2411 Problem: hdmirx input 4096X2160 yuv422 in a short period of time, formate change form yuv422 to yuv444, screen display is exception. Solution: force malloc yuv444 size Verify: Verify on txlx r311 Change-Id: Ie670b9a2b0c1eceffe423a1cf8606e78b6b347cd Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> vdin: optimize game mode process [1/1] PD#SWPL-2145 Problem: HDMI Rx Video path display latency of Game mode and Normal mode Solution: optimize game mode Verify: T962X-R311 Change-Id: Ib0a41915dfb088495c976d56ab812f90e31602f4 Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com> tvin: vdin: vdin afbce fix header size bug [1/1] PD#SWPL-3208 Problem: vdin afbce scaler, display abnormal. Solution: fix afbce header size problem. Verify: TL1 X301 Change-Id: I461b4aa809ceddbe18cf7f6f49e8152b43b86076 Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: fix vdin CMA layout adaptation [1/1] PD#SWPL-2526 Problem: 1.CMA layout adaptation cause crash 2.vdin buff dump error 3.read_pic error Solution: 1.codec mm has be moved to high memory area, we should map memory use vmap. 2.make vdin high mem and low mem to be compatible when we dump vdin buff. 3.fix read_pic bug. Verify: TXLX R311 Change-Id: I90e4f46ba91d38c6ce0f8bfd65b5c22e6be3b83f Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: vdin add afbce write back to memory interface [1/1] PD#SWPL-3200 Problem: vdin add afbce need more debug method. Solution: vdin add read_pic_afbce debug interface Verify: TL1 X301 Change-Id: I45a741ba20409dc25b41ce316b0df0dce9d2dc28 Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: fix afbce 4k yuv444 display error [1/1] PD#SWPL-3429 Problem: vdin output format is afbce 4k yuv444,it display ghost shadow of image Solution: add afbce comb control Verify: x301 Change-Id: I168f13994a4929bd227ba70b006f259ac0726238 Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: fix afbce 576p color anomaly [1/1] PD#SWPL-3424 Problem: dvd play 576p media, tl1 display color anomaly Solution: encoder use same default color setting with decoder Verify: x301 Change-Id: I8954874ea048b2d9e9b7aa58c883da1f306c4459 Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvafe: fix black border for atv [1/1] PD#SWPL-3573 Problem: appear black border after unplug/plug signal Solution: reset de when nosignal restore acd hsync when signal unstable Verify: verified by x301 Change-Id: Ia9e2e9dfb326061bd3b9b6f9a02be0d935cdf06f Signed-off-by: Nian Jing <nian.jing@amlogic.com> hdmirx: add allm mode. [1/2] PD#SWPL-1619 Problem: need support allm mode Solution: add allm mode Verify: None Change-Id: I34d05cfbef4b3fccbbb7c6b35fa613cda9b9cf36 Signed-off-by: yicheng shen <yicheng.shen@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com> tvin: vdin: add vdin afbce memory power ctrl [1/1] PD#SWPL-3635 Problem: Miss vdin afbce memory power ctrl. Solution: Add vdin afbce memory power ctrl. Verify: x301_tl1 Change-Id: I94946e3d16027083688735d68b9d023b6bc5c8bf Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> vdin: tl1: add viu loop back vpp path [1/1] PD#SWPL-2676 Problem: tl1 viu loop back error Solution: add viu loop back vpp path Verify: TL1 X301 Change-Id: I4069f6bbd6672d89bd93a0c8b275cfffc273c427 Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: fix TXLX ATv channel switching crash [1/1] PD#SWPL-3964 Problem: ATv channel switching crash Solution: stop vdin, close afbc need judge platform, there is not afbce on txlx Verify: verify by einstein Change-Id: Ibcff1da47b9fdca7e1758b0d45e7d6800bfc8080 Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> vdin: add vdin1 histgram [1/1] PD#SWPL-3059 Problem: vdin1 hisgram and screencap cannot be used simultaneously Solution: add vdin1 histgram,and make hist and screencap function to be compatible Verify: txlx r311 Change-Id: I759d1cdc69d59015ce845898990088eb6943cc41 Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com> tvin: vdin: fix system crash when dolby vision enable [1/1] PD#SWPL-3353 Problem: system crash when dolby vision enable Solution: 32bit kernel,phy addr to virt interface is changed Verify: Verified on txlx R311 Change-Id: Ie012bdaf7f9dc24acf7a7e03f0db056ff31e578c Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: fix dolby vision memory free print error [1/1] PD#SWPL-3353 Problem: dolby vision memory free print error Solution: dolby vision memory has been free by vdin_cma_release, don't free again. Verify: test pass on R311 Change-Id: Id7108cf17260430c53dff707e843ed7833c8ee7c Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: fix vdin histgram error on tl1 [1/1] PD#TV-2263 Problem: vdin histgram error on tl1 Solution: tl1 use TVIN_PORT_VIU1_WB0_VPP Verify: verify on tl1 Change-Id: I225a85a1debee0e8c42f60751524661fc5c986bd Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvin: vdin: add interface to get signalinfo [1/1] PD#TV-2083 Problem: TVIN_IOC_G_SIG_INFO not complete enough Solution: add interface to get signalinfo Verify: Verify on TL1 Change-Id: I32f198f14dfcc1f8a8ee1f19c4065bd7d4d5dccc Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> tvafe: optimize stable time on manual setting [1/1] PD#SWPL-5052 Problem: optimize swith channel time Solution: lower wait time on manual colorfmt setting stable time optimized from 500ms -> 300ms Verify: x301 Change-Id: I7e7d711d1c3ab0630d41e933c53ce34d0025e860 Signed-off-by: Nian Jing <nian.jing@amlogic.com> vdin: fix snowflake bottom screen [1/1] PD#SWPL-5129 Problem: cut window need restore when nosignal Solution: restore cutwin when nosignal Verify: verified by r341 Change-Id: If18dbd18df11cce5d1ddb99ee266901b75b065b3 Signed-off-by: Nian Jing <nian.jing@amlogic.com> vlock: vlock for tl1 [1/1] PD#SWPL-3129 Problem: 1.verify manual pll mode 2.modify vlock hiu register access api 3.add a new fsm for tl1 test 4.add chip match data Solution: add function for tl1 Verify: verified on tl1 Change-Id: I75f8d2a40437056135f8dd0fb241016a9ea680df Signed-off-by: Yong Qin <yong.qin@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com> vlock: screen flash after PAL NTSC swich [1/1] PD#SWPL-4246 Problem: the screen always flash after switch PAL to NTSC in AVin Solution: do not change pll M value, M value will case v by one fail Verify: verified on tl1 android p Change-Id: Ib5ea8dfef1c40af5535e69fdc9241a7f77b4a7dd Signed-off-by: Yong Qin <yong.qin@amlogic.com> vlock: add phase lock function [1/1] PD#SWPL-3644 Problem: new feature on tl1 Solution: add function Verify: verified on tl1 android p Change-Id: I964054512f59a98f03d20df11b8c63d6802744d5 Signed-off-by: Yong Qin <yong.qin@amlogic.com> vdin: optimize game mode for tl1 phase lock [1/1] PD#SWPL-4788 Problem: sometimes hdmi source display broken in game mode Solution: use phase lock for tl1 game mode ahead 2 frames, and ahead 1 frame for previous chips. Verify: x301 Change-Id: I00df9125c9ea7869ed6e111ba99a8b755c914129 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> tvin: vdin: add vdin1 scaler preview for vdin0 preview [1/1] PD#SWPL-4115 Problem: vdin preview error when input 4K Solution: use vdin1 as double write function Verify: x301 Change-Id: I4ed15dd5c445ed3c38b4a2535be075210dcbdac7 Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com> vdin: fix vdin1 dest_cfmt for tl1 afbc preview support [1/1] PD#SWPL-5971 Problem: preview window color is green with 1080p & 4k hdmirx Solution: vdin1 dest_cfmt follow vdin0 for the software double write for preview Verify: x301 Change-Id: I2e45b5f838cddcac1ca1c4e6710a7cc1f45ae9b5 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: add sm1 support [1/1] PD#SWPL-6065 Problem: need add vdin support for sm1 Solution: add vdin support for sm1 Verify: pxp Change-Id: I55af5273607a88f4e5a2394de0acbb44811da8f9 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: fixed the issue of mem mapping from vmap. [1/1] PD#SWPL-6196 Problem: the memory issue cause to kernel crash. Solution: 1. add flush cache when the mem oper end. 2. unmap addr which from vmap in vdin driver. Verify: X301 Change-Id: Id6efe2b009fe64ad753d51eb06784bd4e66f5e87 Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com> vdin: sync vdin0 & vdin1 buffer for afbc mode to avoid garbage screen [1/1] PD#SWPL-3431 Problem: enter hdmi 4k port will flash garbage screen with afbc mode Solution: sync vdin0 & vdin1 buffer for afbc mode Verify: x301 Change-Id: I443a9be2ed619a5cd2b6229f15814d8b856c5535 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: config vdin mif/afbc path directly [1/1] PD#SWPL-6277 Problem: switch hdmi port maybe display green screen Solution: 1.optimize vdin stop sequence, reduce afbc state polling interval, and rest afbc to get a clean state 2.change vdin mif/afbc patch directly, not rdma method, for vdin0/1 rdma are independent Verify: x301 Change-Id: I0ddf5d27dcfc0fd930eeb681f876c4c5e92e8d70 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: add vdin support for tm2 [1/1] PD#SWPL-6701 Problem: Need vdin supprt for sm2 Solution: add vdin support for tm2 Verify: test pass on tm2 ab311 Change-Id: I57d7b3014938011d18c5e168f18c78e4fa542fc7 Signed-off-by: Nian Jing <nian.jing@amlogic.com> tvafe: add av/atv/cvbs support for tm2 [1/1] PD#:SWPL-6702 Problem: tm2 bringup Solution: add av/atv/cvbs support for tm2 Verify: tm2 T962E2 Change-Id: I1c7358cd17463843fbdd7a93c7416a22aaa2387c Signed-off-by: Nian Jing <nian.jing@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com> vdin: ignore v4l2start/stop ioctl when vdin1 used for preview [1/1] PD#SWPL-6840 Problem: hdmi port can't screencap Solution: ignore v4l2start/stop ioctl when vdin1 used for preview Verify: x301 Change-Id: I26e7b057177a0b7ed203c04bd3008c2a34793b4a Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: support dynamic dest_cfmt changing [1/1] PD#TV-4306 Problem: vdin afbc will show green screen when hdmirx change dest_cfmt after stable Solution: dynamic config vdin afbc with cfmt Verify: x301 Change-Id: I404c47934f090222a2cdd7cf98b619826cd92cc7 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: recycle garbage frame for afbc mode [1/1] PD#TV-4335 Problem: switch tvin signals will flash garbage screen Solution: recycle barbage frame for afbc mode Verify: x301 Change-Id: I17c13b5db7a506403aa5ac74568b7a9e16c075c0 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: disable afbce under 4k resolution [1/1] PD#SWPL-7511 Problem: no need enable vdin afbce under 4k, it is no help for bandwidth with these resolution Solution: only enable vdin afbce for 4k resolution Verify: x301 Change-Id: I283efd872004846d158ef6c9addbd1e666d2f61a Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: revert ignore v4l2start/stop ioctl when vdin1 used for preview [1/1] PD#SWPL-7324 Problem: tvafe work abnormal when use vdin1 preview Solution: revert the previous commit for v4l2start/stop Verify: x301 This reverts commit81c1e1449c. Change-Id: I8cdefececb8b01cb86426684a6c700bc9bf8b615 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: support afbc/non-afbc switch dynamically [1/1] PD#SWPL-7512 Problem: need switch vdin afbc/non-afbc mode sometime Solution: support afbc/non-afbc switch dynamically Verify: x301 Change-Id: I08433938f169a51ed1ed7a23fd99f3ba42e076fe Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com> vdin: add afbce reg access protection [1/1] PD#SWPL-7983 Problem: txlx will crash when access afbce reg without afbce hw Solution: add afbce reg access protection Verify: r311 Change-Id: Iaabf8da9cb2a58e9c26626b9ac718bdf9c6a2ac3 Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> vdin: QD980 HDMI 4k 30Hz,change bit depth has green screen [1/1] PD#SWPL-8184 Problem: don't updated afbce output color format Solution: update afbce config according afbce support or not, instead of afbce need or not. Verify: verified by t962x2_x301 Change-Id: I7885357c1e5b04b58b059401a5f66d2ee83c76ef Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com> vdin: add new interface for passing dma-buf to vdin [1/1] PD#TV-3863 Problem: gpu cann't get vdin buf directly Solution: vdin write data to the addr passed by upper layer Verify: verified by t962x2_x301 Change-Id: I495b78c419e10a6dacb9b9f29c0f8e87339ac195 Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com> vdin: G12A color space error when capture screen by post blend [1/1] PD#SWPL-8335 Problem: color space setting error Solution: set yuv444 when use viu1 post blend port Verify: verified by t962x2_x301 Change-Id: Ic92a6db92f6cec64084d140c5f505489579b294f Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com> vdin: add dolby mem release protection [1/1] PD#SWPL-8797 Problem: sometime oops occurred for vdin_dolby mem release Solution: add vdin dolby mem alloc flag & release protection Verify: x301 Change-Id: Iee90b58a0624c32032e204adcd043c8e94d03f1f Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com> cvbs: cvbsoutput support for tl1 [1/1] PD#172587 Problem: no cvbsoutput Solution: add cvbsoutput Verify: test pass on x301 Change-Id: I92f70d26e32f95de7c63ddbac9fe6664063c1902 Signed-off-by: Nian Jing <nian.jing@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com> tvafe: add control for tvconfig snow config [1/1] PD#SWPL-5985 Problem: display snow when snow config disabled Solution: add control for tvconfig snow config Verify: verify it on x301 Change-Id: I3466efc98577f2403f3a6cd638ad7dbf70ce34dc Signed-off-by: Nian Jing <nian.jing@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
…
Linux kernel release 4.x <http://kernel.org/>
These are the release notes for Linux version 4. Read them carefully,
as they tell you what this is all about, explain how to install the
kernel, and what to do if something goes wrong.
WHAT IS LINUX?
Linux is a clone of the operating system Unix, written from scratch by
Linus Torvalds with assistance from a loosely-knit team of hackers across
the Net. It aims towards POSIX and Single UNIX Specification compliance.
It has all the features you would expect in a modern fully-fledged Unix,
including true multitasking, virtual memory, shared libraries, demand
loading, shared copy-on-write executables, proper memory management,
and multistack networking including IPv4 and IPv6.
It is distributed under the GNU General Public License - see the
accompanying COPYING file for more details.
ON WHAT HARDWARE DOES IT RUN?
Although originally developed first for 32-bit x86-based PCs (386 or higher),
today Linux also runs on (at least) the Compaq Alpha AXP, Sun SPARC and
UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, Cell,
IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64, AXIS CRIS,
Xtensa, Tilera TILE, AVR32, ARC and Renesas M32R architectures.
Linux is easily portable to most general-purpose 32- or 64-bit architectures
as long as they have a paged memory management unit (PMMU) and a port of the
GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC). Linux has
also been ported to a number of architectures without a PMMU, although
functionality is then obviously somewhat limited.
Linux has also been ported to itself. You can now run the kernel as a
userspace application - this is called UserMode Linux (UML).
DOCUMENTATION:
- There is a lot of documentation available both in electronic form on
the Internet and in books, both Linux-specific and pertaining to
general UNIX questions. I'd recommend looking into the documentation
subdirectories on any Linux FTP site for the LDP (Linux Documentation
Project) books. This README is not meant to be documentation on the
system: there are much better sources available.
- There are various README files in the Documentation/ subdirectory:
these typically contain kernel-specific installation notes for some
drivers for example. See Documentation/00-INDEX for a list of what
is contained in each file. Please read the Changes file, as it
contains information about the problems, which may result by upgrading
your kernel.
- The Documentation/DocBook/ subdirectory contains several guides for
kernel developers and users. These guides can be rendered in a
number of formats: PostScript (.ps), PDF, HTML, & man-pages, among others.
After installation, "make psdocs", "make pdfdocs", "make htmldocs",
or "make mandocs" will render the documentation in the requested format.
INSTALLING the kernel source:
- If you install the full sources, put the kernel tarball in a
directory where you have permissions (e.g. your home directory) and
unpack it:
xz -cd linux-4.X.tar.xz | tar xvf -
Replace "X" with the version number of the latest kernel.
Do NOT use the /usr/src/linux area! This area has a (usually
incomplete) set of kernel headers that are used by the library header
files. They should match the library, and not get messed up by
whatever the kernel-du-jour happens to be.
- You can also upgrade between 4.x releases by patching. Patches are
distributed in the xz format. To install by patching, get all the
newer patch files, enter the top level directory of the kernel source
(linux-4.X) and execute:
xz -cd ../patch-4.x.xz | patch -p1
Replace "x" for all versions bigger than the version "X" of your current
source tree, _in_order_, and you should be ok. You may want to remove
the backup files (some-file-name~ or some-file-name.orig), and make sure
that there are no failed patches (some-file-name# or some-file-name.rej).
If there are, either you or I have made a mistake.
Unlike patches for the 4.x kernels, patches for the 4.x.y kernels
(also known as the -stable kernels) are not incremental but instead apply
directly to the base 4.x kernel. For example, if your base kernel is 4.0
and you want to apply the 4.0.3 patch, you must not first apply the 4.0.1
and 4.0.2 patches. Similarly, if you are running kernel version 4.0.2 and
want to jump to 4.0.3, you must first reverse the 4.0.2 patch (that is,
patch -R) _before_ applying the 4.0.3 patch. You can read more on this in
Documentation/applying-patches.txt
Alternatively, the script patch-kernel can be used to automate this
process. It determines the current kernel version and applies any
patches found.
linux/scripts/patch-kernel linux
The first argument in the command above is the location of the
kernel source. Patches are applied from the current directory, but
an alternative directory can be specified as the second argument.
- Make sure you have no stale .o files and dependencies lying around:
cd linux
make mrproper
You should now have the sources correctly installed.
SOFTWARE REQUIREMENTS
Compiling and running the 4.x kernels requires up-to-date
versions of various software packages. Consult
Documentation/Changes for the minimum version numbers required
and how to get updates for these packages. Beware that using
excessively old versions of these packages can cause indirect
errors that are very difficult to track down, so don't assume that
you can just update packages when obvious problems arise during
build or operation.
BUILD directory for the kernel:
When compiling the kernel, all output files will per default be
stored together with the kernel source code.
Using the option "make O=output/dir" allows you to specify an alternate
place for the output files (including .config).
Example:
kernel source code: /usr/src/linux-4.X
build directory: /home/name/build/kernel
To configure and build the kernel, use:
cd /usr/src/linux-4.X
make O=/home/name/build/kernel menuconfig
make O=/home/name/build/kernel
sudo make O=/home/name/build/kernel modules_install install
Please note: If the 'O=output/dir' option is used, then it must be
used for all invocations of make.
CONFIGURING the kernel:
Do not skip this step even if you are only upgrading one minor
version. New configuration options are added in each release, and
odd problems will turn up if the configuration files are not set up
as expected. If you want to carry your existing configuration to a
new version with minimal work, use "make oldconfig", which will
only ask you for the answers to new questions.
- Alternative configuration commands are:
"make config" Plain text interface.
"make menuconfig" Text based color menus, radiolists & dialogs.
"make nconfig" Enhanced text based color menus.
"make xconfig" Qt based configuration tool.
"make gconfig" GTK+ based configuration tool.
"make oldconfig" Default all questions based on the contents of
your existing ./.config file and asking about
new config symbols.
"make silentoldconfig"
Like above, but avoids cluttering the screen
with questions already answered.
Additionally updates the dependencies.
"make olddefconfig"
Like above, but sets new symbols to their default
values without prompting.
"make defconfig" Create a ./.config file by using the default
symbol values from either arch/$ARCH/defconfig
or arch/$ARCH/configs/${PLATFORM}_defconfig,
depending on the architecture.
"make ${PLATFORM}_defconfig"
Create a ./.config file by using the default
symbol values from
arch/$ARCH/configs/${PLATFORM}_defconfig.
Use "make help" to get a list of all available
platforms of your architecture.
"make allyesconfig"
Create a ./.config file by setting symbol
values to 'y' as much as possible.
"make allmodconfig"
Create a ./.config file by setting symbol
values to 'm' as much as possible.
"make allnoconfig" Create a ./.config file by setting symbol
values to 'n' as much as possible.
"make randconfig" Create a ./.config file by setting symbol
values to random values.
"make localmodconfig" Create a config based on current config and
loaded modules (lsmod). Disables any module
option that is not needed for the loaded modules.
To create a localmodconfig for another machine,
store the lsmod of that machine into a file
and pass it in as a LSMOD parameter.
target$ lsmod > /tmp/mylsmod
target$ scp /tmp/mylsmod host:/tmp
host$ make LSMOD=/tmp/mylsmod localmodconfig
The above also works when cross compiling.
"make localyesconfig" Similar to localmodconfig, except it will convert
all module options to built in (=y) options.
You can find more information on using the Linux kernel config tools
in Documentation/kbuild/kconfig.txt.
- NOTES on "make config":
- Having unnecessary drivers will make the kernel bigger, and can
under some circumstances lead to problems: probing for a
nonexistent controller card may confuse your other controllers
- A kernel with math-emulation compiled in will still use the
coprocessor if one is present: the math emulation will just
never get used in that case. The kernel will be slightly larger,
but will work on different machines regardless of whether they
have a math coprocessor or not.
- The "kernel hacking" configuration details usually result in a
bigger or slower kernel (or both), and can even make the kernel
less stable by configuring some routines to actively try to
break bad code to find kernel problems (kmalloc()). Thus you
should probably answer 'n' to the questions for "development",
"experimental", or "debugging" features.
COMPILING the kernel:
- Make sure you have at least gcc 3.2 available.
For more information, refer to Documentation/Changes.
Please note that you can still run a.out user programs with this kernel.
- Do a "make" to create a compressed kernel image. It is also
possible to do "make install" if you have lilo installed to suit the
kernel makefiles, but you may want to check your particular lilo setup first.
To do the actual install, you have to be root, but none of the normal
build should require that. Don't take the name of root in vain.
- If you configured any of the parts of the kernel as `modules', you
will also have to do "make modules_install".
- Verbose kernel compile/build output:
Normally, the kernel build system runs in a fairly quiet mode (but not
totally silent). However, sometimes you or other kernel developers need
to see compile, link, or other commands exactly as they are executed.
For this, use "verbose" build mode. This is done by passing
"V=1" to the "make" command, e.g.
make V=1 all
To have the build system also tell the reason for the rebuild of each
target, use "V=2". The default is "V=0".
- Keep a backup kernel handy in case something goes wrong. This is
especially true for the development releases, since each new release
contains new code which has not been debugged. Make sure you keep a
backup of the modules corresponding to that kernel, as well. If you
are installing a new kernel with the same version number as your
working kernel, make a backup of your modules directory before you
do a "make modules_install".
Alternatively, before compiling, use the kernel config option
"LOCALVERSION" to append a unique suffix to the regular kernel version.
LOCALVERSION can be set in the "General Setup" menu.
- In order to boot your new kernel, you'll need to copy the kernel
image (e.g. .../linux/arch/x86/boot/bzImage after compilation)
to the place where your regular bootable kernel is found.
- Booting a kernel directly from a floppy without the assistance of a
bootloader such as LILO, is no longer supported.
If you boot Linux from the hard drive, chances are you use LILO, which
uses the kernel image as specified in the file /etc/lilo.conf. The
kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
/boot/bzImage. To use the new kernel, save a copy of the old image
and copy the new image over the old one. Then, you MUST RERUN LILO
to update the loading map! If you don't, you won't be able to boot
the new kernel image.
Reinstalling LILO is usually a matter of running /sbin/lilo.
You may wish to edit /etc/lilo.conf to specify an entry for your
old kernel image (say, /vmlinux.old) in case the new one does not
work. See the LILO docs for more information.
After reinstalling LILO, you should be all set. Shutdown the system,
reboot, and enjoy!
If you ever need to change the default root device, video mode,
ramdisk size, etc. in the kernel image, use the 'rdev' program (or
alternatively the LILO boot options when appropriate). No need to
recompile the kernel to change these parameters.
- Reboot with the new kernel and enjoy.
IF SOMETHING GOES WRONG:
- If you have problems that seem to be due to kernel bugs, please check
the file MAINTAINERS to see if there is a particular person associated
with the part of the kernel that you are having trouble with. If there
isn't anyone listed there, then the second best thing is to mail
them to me (torvalds@linux-foundation.org), and possibly to any other
relevant mailing-list or to the newsgroup.
- In all bug-reports, *please* tell what kernel you are talking about,
how to duplicate the problem, and what your setup is (use your common
sense). If the problem is new, tell me so, and if the problem is
old, please try to tell me when you first noticed it.
- If the bug results in a message like
unable to handle kernel paging request at address C0000010
Oops: 0002
EIP: 0010:XXXXXXXX
eax: xxxxxxxx ebx: xxxxxxxx ecx: xxxxxxxx edx: xxxxxxxx
esi: xxxxxxxx edi: xxxxxxxx ebp: xxxxxxxx
ds: xxxx es: xxxx fs: xxxx gs: xxxx
Pid: xx, process nr: xx
xx xx xx xx xx xx xx xx xx xx
or similar kernel debugging information on your screen or in your
system log, please duplicate it *exactly*. The dump may look
incomprehensible to you, but it does contain information that may
help debugging the problem. The text above the dump is also
important: it tells something about why the kernel dumped code (in
the above example, it's due to a bad kernel pointer). More information
on making sense of the dump is in Documentation/oops-tracing.txt
- If you compiled the kernel with CONFIG_KALLSYMS you can send the dump
as is, otherwise you will have to use the "ksymoops" program to make
sense of the dump (but compiling with CONFIG_KALLSYMS is usually preferred).
This utility can be downloaded from
ftp://ftp.<country>.kernel.org/pub/linux/utils/kernel/ksymoops/ .
Alternatively, you can do the dump lookup by hand:
- In debugging dumps like the above, it helps enormously if you can
look up what the EIP value means. The hex value as such doesn't help
me or anybody else very much: it will depend on your particular
kernel setup. What you should do is take the hex value from the EIP
line (ignore the "0010:"), and look it up in the kernel namelist to
see which kernel function contains the offending address.
To find out the kernel function name, you'll need to find the system
binary associated with the kernel that exhibited the symptom. This is
the file 'linux/vmlinux'. To extract the namelist and match it against
the EIP from the kernel crash, do:
nm vmlinux | sort | less
This will give you a list of kernel addresses sorted in ascending
order, from which it is simple to find the function that contains the
offending address. Note that the address given by the kernel
debugging messages will not necessarily match exactly with the
function addresses (in fact, that is very unlikely), so you can't
just 'grep' the list: the list will, however, give you the starting
point of each kernel function, so by looking for the function that
has a starting address lower than the one you are searching for but
is followed by a function with a higher address you will find the one
you want. In fact, it may be a good idea to include a bit of
"context" in your problem report, giving a few lines around the
interesting one.
If you for some reason cannot do the above (you have a pre-compiled
kernel image or similar), telling me as much about your setup as
possible will help. Please read the REPORTING-BUGS document for details.
- Alternatively, you can use gdb on a running kernel. (read-only; i.e. you
cannot change values or set break points.) To do this, first compile the
kernel with -g; edit arch/x86/Makefile appropriately, then do a "make
clean". You'll also need to enable CONFIG_PROC_FS (via "make config").
After you've rebooted with the new kernel, do "gdb vmlinux /proc/kcore".
You can now use all the usual gdb commands. The command to look up the
point where your system crashed is "l *0xXXXXXXXX". (Replace the XXXes
with the EIP value.)
gdb'ing a non-running kernel currently fails because gdb (wrongly)
disregards the starting offset for which the kernel is compiled.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%