===== SOURCE ====== git remote add linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git ===== CONTRIBS / WIP / TODO ===== TODO : * http://marc.info/?l=linux-input&w=2&r=1&&q=b&s=usbtouchscreen * http://marc.info/?l=linux-input&m=143372039429201&w=2 * https://lkml.org/lkml/2015/6/7/191# LinuxInput * https://patchwork.kernel.org/patch/6562461/# MaintaiN * https://patchwork.kernel.org/patch/6777721/# v2 * https://git.kernel.org/cgit/linux/kernel/git/dtor/input.git/log/?h=next * https://github.com/dtor/input/pull/2 DONE : * commited for IdeaPad ==== COOP ==== WorkFlow : * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches * http://kernelnewbies.org/PatchPhilosophy#head-25313c862d62c9640b848348637dafe2837c2568 * http://www.slideshare.net/SamsungOSG/a-survivors-guide-to-contributing-to-the-linux-kernel @TaG: UpStream ===== TODO ===== * https://bugzilla.kernel.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailreporter1=1&emailtype1=exact&email1=rzr%40gna.org&field0-0-0=bug_status&type0-0-0=notequals&value0-0-0=UNCONFIRMED&field0-0-1=reporter&type0-0-1=equals&value0-0-1=rzr%40gna.org&list_id=371701# BuG * http://www.tldp.org/LDP/tlk/tlk-toc.html# LearN * https://bugzilla.kernel.org/show_bug.cgi?id=35252#c2 # [[SDCard]] * [[armv5]] LenovO * amiloa * http://bugs.debian.org/298184 * [[unicorn]] [[ov]] [[adc]] [[gyro]] * https://bugs.launchpad.net/bugs/bugtrackers/linux-kernel-bugs/+index# * http://packages.qa.debian.org/l/linux.html * http://packages.qa.debian.org/l/linux-2.6.html * http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux-2.6/debian/changelog?view=markup * http://cdn.debian.net/debian/pool/main/l/linux-2.6/?C=M;O=D * http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D# DeB * http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/?C=M;O=D * http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=shortlog;h=refs/heads/linux-3.3.y * http://wiki.debian.org/DebianKernel svn co svn://svn.debian.org/kernel/dists/trunk ===== UPSTREAM ===== * [[OpenSource]] : http://kernel.org main site of [[Linux]] sources * https://github.com/torvalds/linux/commits/master * http://anonscm.debian.org/viewvc/kernel/ * http://kernel.ubuntu.com/git?p=ubuntu%2Fubuntu-oneiric.git&a=search&h=HEAD&st=commit&s=dsdt url=https://github.com/torvalds/linux.git git clone --depth 3 $url [[Community]] : * http://www.kerneltraffic.org/kernel-traffic/archives.html [[Mail]]ing List * http://www.atnf.csiro.au/people/rgooch/linux/docs/lkml/ [[Mail]]ing List * irc://irc.freenode.net/#kernel * http://kernelnewbies.org/documents/kdoc/kernel-api/r4964.html * http://vger.kernel.org/ * http://events.linuxfoundation.org/sites/events/files/slides/collab_linux_kernel_v2.pdf# WorkFlow UpStream * https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS * http://unix.stackexchange.com/questions/80519/how-do-i-get-a-linux-kernel-patch-set-from-the-mailing-list ===== VERSIONS ===== * https://en.wikipedia.org/wiki/Linux_kernel_version_history# * [[Debian]] : http://packages.qa.debian.org/l/linux.html http://en.wikipedia.org/wiki/Debian#Kernels * [[Ubuntu]] : http://kernel.ubuntu.com/~kernel-ppa/info/kernel-version-map.html * 2.6.15 : [[Ubuntu]] [[Ubuntu]]/lts/[[dapper]] * 2.6.16.16-arm1 : armv5tejl LS-WTGL490 : [[raid]] * 2.6.18 : [[Debian]]/4/[[etch]] : Linux version 2.6.18-5-686 (Debian 2.6.18.dfsg.1-13) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Fri Jun 1 00:47:00 UTC 2007 * 2.6.21 : [[maemo]]/[[diablo]]="omap1 Linux Nokia-N810 armv6l unknown" * 2.6.22 : [[Ubuntu]] [[gutsy]] * 2.6.24 : [[Ubuntu]]/lts/[[hardy]] : Linux version 2.6.24-3-generic (buildd@vernadsky) (gcc version 4.2.3 20071223 (prerelease) (Ubuntu 4.2.2-4ubuntu3)) #1 SMP Thu Jan 3 23:30:29 UTC 2008 * 2.6.26 : [[Debian]]/5/lenny * 2.6.27 : [[ubuntu]]/intrepid ? * 2.6.31 : [[ubuntu]]/karmic ? * 2.6.32 : [[debian]]/6/squeeze http://packages.qa.debian.org/l/linux-2.6.html [[Ubuntu]]/lts/[[lucid]] * 2.6.32.54 : [[maemo]]/HarmattaN=2.6.32.54-dfl61-20121301@pr1.3 , SamsunG SlP * 2.6.32.63 : LtS : https://www.kernel.org/ LongTerm * 2.6.34 : [[mips]] * 2.6.35 : [[Ubuntu]]/maverick, AceR E310 AndroiD 2.3.5 * 2.6.36 : TiZen SamsunG HtmL5 * 2.6.38 : [[ubuntu]]/natty https://launchpad.net/ubuntu/+source/linux * 2.6.39 : [[debian]]/stable-bpo * 2.6.8 : [[Debian]]/4/[[sarge]] * 3.0.0 : [[Ubuntu]]/oneiric ; [[debian]]/sid * 3.0.1 : NokiA MeltemI http://talk.maemo.org/showthread.php?p=1450957#post1450957 * 3.0.1 : http://en.wikipedia.org/wiki/Android_version_history#v4.x_Ice_Cream_Sandwich * 3.0.8 : android-x86-4.0.3 AndroiD AtoM * 3.1.0-2.3 : [[Ubuntu]]/precise * 3.10 : https://stackoverflow.com/questions/29216191/docker-minimum-kernel-version-3-8-13-or-3-10# AmLogic DockeR * 3.11 : http://releases.ubuntu.com/saucy/ * 3.14 : LTS * 3.15 : https://wireless.wiki.kernel.org/en/users/Drivers/rtl819x * 3.19 : UbuntU 15.4 ViviD * 3.2.0-65-generic-pae : VERSION="12.04.5 LTS, Precise Pangolin" : UbuntU LtS * 3.2.22-5.M2M.recovery.fc14.i686 : FedorA FrI [[M2M]] * 3.2.26 : WD BareBox * 3.2.41-2 : DebiaN 7 WheezY * 3.3 : http://kernelnewbies.org/Linux_3.3 * 3.4 : JollA, [[armv7]] [[sunxi]] * 4.3 : LsProDuo WIP * v4.3.6 : 2016 * 4.4 : LtS 2022 * 4.5 : 2016 * 4.9 : AmLogic https://github.com/CoreELEC/CoreELEC/releases/tag/9.2.0 * 4.9 : https://source.android.com/setup/build/building-kernels# * 4.10 : https://github.com/R0X4R/CVE-2019-13272 * 4.19.0-11-686 : Debian-10 * 4.19.62-sunxi : OlimeX MicrO ArM * 4.20 : 2019 * 5.0 : Ubuntu 19.04 * 5.3 : UbuntU 18.04.4 BioniC * 5.10 : LtS 10y * https://www.cip-project.org/blog/2022/04/04/cip-expands-work-on-slts-kernel-maintenance# : 5.10 + 10y :TODO: * 5.10.0-20-marvell : Debian-11 * 6.1.22 LongTerm https://kernel.org/category/releases.html ===== LEARN ===== * https://github.com/0xAX/linux-insides FEATURES / API : UdeV * http://www.cryptofreak.org/projects/port/#inode# ApI ===== Resources ===== * kernel ressources http://www.scourge.fr/mathdesc menu documents/kernel [[Resources]] : * The Linux Kernel Module Programming Guide http://www.faqs.org/docs/kernel/ * isbn:0672325128 # [[Book]] : [[Linux]] [[Kernel]] Development * http://www.linuxdriver.co.il/kernel_map * [Book] Linux Kernel in a Nutshell : ** http://www.kroah.com/lkn/ ** http://rzr.online.fr/isbn/0596100795 ** http://book.opensourceproject.org.cn/kernel/kernelnut/ * [Book] : Understanding the Linux Kernel, 3rd Edition ** http://www.linux-security.cn/ebooks/ulk3-html/0596005652/toc.html ** http://rzr.online.fr/isbn/0-596-00565-2 ** http://safari.oreilly.com/0596005652 * Course : http://www.cs.usfca.edu/~cruse/cs635/ * https://github.com/0xAX/linux-insides/blob/master/Booting/linux-bootstrap-5.md# BooT ProC : * http://en.wikipedia.org/wiki/Procfs * http://actux.eu.org/uploads/Ateliers/20120228-atelier-kernel-proc-sys.pdf# ProC SyS * http://manpages.courier-mta.org/htmlman5/proc.5.html MisC : * http://redsymbol.net/linux-kernel-boot-parameters// ===== Linux Drivers ===== @tag : [[Book]] : [[Linux]] [[Driver]] [[Programming]] Guide Introduction: * http://www.freesoftwaremagazine.com/articles/drivers_linux * [[Programming]] : ** LLD2 : http://www.xml.com/ldd/chapter/book/index.html ** LDD3: http://lwn.net/Kernel/LDD3/ ; html : http://linuxdriver.co.il/ldd3/ ** http://web.archive.org/web/20070327035948/linuxdriver.co.il/ldd3/toc.html ** http://www.rzr.free.fr.9online.fr/www.rzr.online.fr/cache/http/linuxdriver.co.il/ldd3/toc.html ** http://www.unixgarden.com/index.php/programmation/programmation-noyau-sous-linux-pilotes-en-mode-caractere ===== Patches ===== [[Patch]] Set : * http://kernel.kolivas.org * http://kem.p.lodz.pl/~peter/cko/ Patch set for 2.6 * http://www.sonarnerd.net/projects/linux/ Patch set for 2.4 * http://www.sepi.be/nitro.php ===== ERRORS ===== Fixing up unaligned userspace access in * http://lxr.linux.no/linux/arch/sh64/kernel/traps.c#L766 ===== DEB ===== DebiaN : * http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux-2.6/debian/changelog?view=markup * http://packages.qa.debian.org/l/linux-2.6.html * http://cdn.debian.net/debian/pool/main/l/linux-2.6/?C=M;O=D * http://wiki.debian.org/DebianKernel/GitBisect * irc://irc.oftc.net/#debian-kernel # IrC DebiaN # sudo aptitude install -t unstable libc6-dev-amd64 sudo aptitude install -t experimental linux-image-3.3.0-trunk-amd64 UbuntU : * https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D url=http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4.4-quantal/ url=http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4-precise/ https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.9/ wget -l 1 -r -p ${url} rm -rf kernel.ubuntu.com/~kernel-ppa/mainline/v3.1-oneiric/*386.deb sudo dpkg -i /tmp/kernel.ubuntu.com/~kernel-ppa/mainline/v3.1-oneiric/*.deb time sudo dpkg -i *all.deb && time sudo dpkg -i *amd64.deb base_url=https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.9/ lynx -dump "$base_url" | grep -o https://.*_all.deb \ | while read url ; do wget $url ; done lynx -dump "$base_url" | grep -o https://.*_amd64.deb \ | while read url ; do wget $url ; done @TaG: AmD64 [[64]] LenovO DsdT AcpI PkG DebiaN MainLine [[i386]] ===== linux patches : [[M5457]] [[DSDT]] ===== * http://bugs.debian.org/303844 # [[M5457]] ===== linux-2.6.10 ===== Does not compile : g++ (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5) ===== linux-2.4 ===== * http://bugs.debian.org/323318 * http://bugs.debian.org/320256 * http://lkml.org/lkml/2005/6/12/59 ToDo # this patch needed for gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5) http://user.it.uu.se/~mikpe/linux/patches/2.4/patch-gcc4-fixes-v12-2.4.32 http://user.it.uu.se/~mikpe/linux/patches/2.4/patch-more-gcc4-fixes-v1-2.4.32 /usr/local/src/linux-2.4.32/include/asm/processor.h:75: error: array type has /include/linux/fs.h:1562: error: previous declaration of 'root_device_name' was here process.c:651: error: 'init_tss' undeclared (first use in this function) drivers/acpi/acpi.o: In function `acpi_bus_add':bus.c:(.text+0x17c3d): undefined reference to `strcpy' :bus.c:(.text+0x17c83): undefined reference to `strcpy' :bus.c:(.text+0x17dcf): undefined reference to `strcpy' drivers/acpi/acpi.o:bus.c:(.text+0x17ddd): more undefined references to `strcpy' follow drivers/net/wan/wan.o:(__ksymtab+0x58): undefined reference to `comx_root_dir' drivers/net/wan/wan.o: In function `comx_mkdir':comx.c:(.text+0x1929): undefined reference to `comx_root_dir' :comx.c:(.text+0x1c0c): undefined reference to `comx_root_dir' drivers/net/wan/wan.o: In function `comx_rmdir':comx.c:(.text+0x1da4): undefined reference to `comx_root_dir' ===== MISC ===== * https://wiki.merproject.org/wiki/N9_Kernel_update_project ===== Compile ===== How to tune and optimize a kernel configuration for Performance (on some [[Laptop]]) ? Prepare more than 400 Mb to compile a [[Kernel]] see the [[Debian]] way with [[make-kpkg]] sudo apt-get install libncurses-dev ===== 2.6 / Compiling on [[Laptop]] [[AmiloA]] with Patches : [[DSDT]] [[InitRD]] ===== export VERSION=2.6.19 export REVISION=-k7-amiloa export KVER=${VERSION}${REVISION} cd /usr/local/src [[ === -r linux-${VERSION}.tar.bz2 ]] && \=== wget http://kernel.org/pub/linux/kernel/v2.6/linux-${VERSION}.tar.bz2 cd /usr/local/src && tar xfj linux-${VERSION}.tar.bz2 cd /usr/local/src/linux-${VERSION} sed -e "s/\(EXTRAVERSION =.*\)/\1$REVISION/g" -i Makefile # Tricky [[RegEx]] ? grep "^EXTRAVERSION" Makefile wget -O - \ http://gaugusch.at/acpi-dsdt-initrd-patches/acpi-dsdt-initrd-v0.7e-2.6.14.patch \ | patch -p1 -b # [[DSDT]] http://gaugusch.at/kernel.shtml # make menuconfig zcat /proc/config.gz > /usr/local/src/config-$(uname -r).txt cp /usr/local/src/config-$(uname -r).txt .config make menuconfig \rm /usr/src/linux /usr/src/kernel-headers-${KVER} ln -fs /usr/local/src/linux-${VERSION} /usr/src/linux ln -fs /usr/local/src/linux-${VERSION} /usr/src/kernel-headers-${KVER} ===== [[linux-kernel]] 2.6 / Compiling on [[Laptop]] [[AmiloA]] with Patches : [[DSDT]] [[InitRD]] the [[Debian]] way ===== Compiled [[Debian]] : see [[AMD]] sudo apt-get install linux-source-2.6 kernel-package libncurses-dev initrd-tools initramfs-tools ed2k://|file|linux-2.6.10.tar.bz2|36533484|b0d567843b33d09894465eecc0f62730| ln -fs /usr/src/linux-2.6.10 /usr/src/kernel-headers-2.6.10-k7-amiloa cd /usr/src/linux-2.6.10 grep "^EXTRAVERSION" Makefile #EXTRAVERSION =-k7-amiloa wget -O - http://kem.p.lodz.pl/~peter/cko/rel/patch-2.6.10-cko3.bz2 \ | bzip2 -d | patch -p1 -b wget -O - \ http://gaugusch.at/acpi-dsdt-initrd-patches/acpi-dsdt-initrd-patch-v0.7d-2.6.9.patch \ | patch -p1 -b make menuconfig # [[ToDo]] : # drivers/built-in.o(.text+0x82ad0): In function `idepnp_remove': ===== TTY TROUBLE ===== mc subshell.c: couldn't open master side of pty pty_open_master: Aucun périphérique de ce type Some option missed in kernel config ===== MISC ===== http://people.via.ecp.fr/~alexis/formation-linux/ export KVERS=$(uname -r) export KSRC=/usr/src/kernel-headers-$KVERS apt-get install kernel-headers-$KVERS http://www.mail-archive.com/debian-release@lists.debian.org/msg08650.html [[Boot]] : grub ===== Obsolete Patch ===== [[Mouse]] Regression : http://linuxfr.org/2005/03/02/18407.html [[French]] mousedev.tap_time Files : * http://kernel.org/pub/linux/kernel/v2.6/ ed2k://|file|linux-2.6.13.tar.bz2|38372729|0972556a6c78cc3a41cd2af98a93985a| ed2k://|file|linux-2.6.11.8.tar.bz2|37117402|64d7507272f832ba78fff937941387be| ed2k://|file|linux-2.6.11.7.tar.bz2|37099602|224a5f170de71c44cc1827a91f13f629| ed2k://|file|linux-2.6.11.6.tar.bz2|37090316|af30cc7ce90cfe80dcbe39b86a2032a8| ed2k://|file|linux-2.6.11.5.tar.bz2|37088482|911b7524461d7037b3dc2df2be661c64| ed2k://|file|linux-2.6.11.3.tar.bz2|37092286|3c2dd4877cb7506a653213fc6d390450| ed2k://|file|linux-2.6.11.tar.bz2|37075679|56cf6fb86e1777657e69ecab5942facf| ===== Yaird ===== yaird error: no link to block device in /sys/devices/pci0000:00/0000:00:04.0/ide0/0.0 (fatal) Yaird http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348293 irc://irc.oftc.net/#debian-kernel ===== MISC ===== * http://user-mode-linux.sourceforge.net/debug-session.html * http://user-mode-linux.sourceforge.net/UserModeLinux-HOWTO.html * http://blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:fbcon# FrameBuffer ConsolE * http://eggdrop.ch/texts/uml/# UmL UseR ModE LinuX * http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg11911.html# HanG * http://distro.ibiblio.org/fatdog/web/faqs/boot-options.html# CmdLine ===== MORE ===== @TaG: LinuX KerneL LinuxKernel @related [[Linux]] [[Kernel]] [[Driver]] [[linux-sources]] [[linux-image]] [[acpi]] [[dsdt]] [[initrd]] [[dmesg]] PatcH MkPkg [[SDCard]] BroadCom [[ArmV5]] LenovO UBooT {{http://www.sheylara.com/images08/0712fail9.jpg}} {{http://www.makelinux.info/kernel_map.d/LKM62_2048.png}}8/0712fail9.jpg}} {{http://www.makelinux.info/kernel_map.d/LKM62_2048.png}}pg}} {{http://www.makelinux.info/kernel_map.d/LKM62_2048.png}}