Skip to main content

Posts

Compiling and Building Linux kernel with your Name

1. Download the latest stable kernel  from https://www.kernel.org/ or clone from git repository [root@localhost linux]# cd /usr/src [root@localhost linux]# git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2. Move to the cloned repository if you cloned using git [root@localhost linux]# cd /usr/src/linux or extract the tar ball if you have downloaded from kernel.org [root@localhost linux]# tar -xf linux-3.15-rc1.tar.xz -C /usr/src 3. Install the Development tools [root@localhost linux]# yum install gcc ncurses-devel  4. Configure the kernel before compiling the kernel you need to configure the kernel with different tools xconfig,gconfig,menuconfig,nconfig. menuconfig and nconfig needs ncurses-devel to be installed. [root@localhost linux]# make menuconfig select the configurations based on your hardware and save.It will create .config file in current directory. 5. open t...
patch "drivers:staging:ozwpan Replaced wrapper functions with actual spin" added to staging tree 1 message gregkh@linuxfoundation.org   <gregkh@linuxfoundation.org> Tue, Mar 4, 2014 at 4:50 PM To: surendra.tux@gmail.com, gregkh@linuxfoundation.org, rupesh.gujare@atmel.com This is a note to let you know that I've just added the patch titled     drivers:staging:ozwpan Replaced wrapper functions with actual spin to my staging git tree which can be found at     git:// git.kernel.org/pub/scm/ linux/kernel/git/gregkh/ staging.git in the staging-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. From 6b029336d93d8f9a94b0256b1f7d9c 1768eedba7 Mon Sep 17 00:00:00 2001 From: Surendra Patil < surendra.tux@gmail.co...

How to send patches to linux-next tree staging subsystem

1) Checkout the latest branch from below link       git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 2)  Bu ild the kernel using below commands       make oldconfig && make prepare        make scripts 3) Configure your git-send-email for gmail  https://www.kernel.org/pub/software/scm/git/docs/git-send-email.html   This is my .gitconfig file.Paste the below contents into your ~/.gitconfig file.  Edit  name and email address,currently it is configured for gmail. -------------------------------------------------------------------------------------------------------------------------------   [user]         name = Surendra Patil         email = surendra.tux@gmail.com [sendemail]         smtpserver = smtp.gmail.c...

C Program to Reverse a string

#include        <stdio.h> #include        <string.h> #include        <stdlib.h> /* Program - Reverse given string with poniters    Author - Surendra Patil */ int main() {         char *str,*rev,*ptr,temp;         str = (char *)malloc(10*sizeof(char));         printf("Enter the string \n");         scanf("%s",str);         printf("String before reversing = %s len = %d \n",str,strlen(str));         ptr = str       /* point to first character */;         rev = ptr + (strlen(ptr)-1); /* point to last character */         /* keep swappi...
patch "drivers:staging:silicom fixed checkpatch coding style error on macros" added to staging tree 1 message gregkh@linuxfoundation.org   <gregkh@linuxfoundation.org> Wed, Feb 12, 2014 at 9:41 AM To: surendra.tux@gmail.com, gregkh@linuxfoundation.org This is a note to let you know that I've just added the patch titled     drivers:staging:silicom fixed checkpatch coding style error on macros to my staging git tree which can be found at     git:// git.kernel.org/pub/scm/ linux/kernel/git/gregkh/ staging.git in the staging-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. From f1fe476ecb35e5f9ef62b58016fa4f 71e1233bbe Mon Sep 17 00:00:00 2001 From: Surendra Patil < surendra.tux@gmail.com > Date: Tue, ...
patch "drivers:staging:silicom Fixed extern warnings reported by checkpatch" added to staging tree 1 message gregkh@linuxfoundation.org   <gregkh@linuxfoundation.org> Wed, Feb 12, 2014 at 9:31 AM To: surendra.tux@gmail.com, gregkh@linuxfoundation.org This is a note to let you know that I've just added the patch titled     drivers:staging:silicom Fixed extern warnings reported by checkpatch to my staging git tree which can be found at     git:// git.kernel.org/pub/scm/ linux/kernel/git/gregkh/ staging.git in the staging-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. From 4624b5433f063a56032f959e7a6d72 d8e6e735b6 Mon Sep 17 00:00:00 2001 From: Surendra Patil < surendra.tux@gmail.com > Date: Tue,...
patch "drivers:staging:rtl8821ae: Fixed few coding style erors and warnings" added to staging tree 1 message gregkh@linuxfoundation.org   <gregkh@linuxfoundation.org> Tue, Feb 11, 2014 at 12:17 PM To: surendra.tux@gmail.com, Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org This is a note to let you know that I've just added the patch titled     drivers:staging:rtl8821ae: Fixed few coding style erors and warnings to my staging git tree which can be found at     git:// git.kernel.org/pub/scm/ linux/kernel/git/gregkh/ staging.git in the staging-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. From 8f1e98a3290797cc0322f69c0b609c 54bea6b73b Mon Sep 17 00:00:00 2001 From: Surendra Patil < surendra.tux@...