Kernel Network Subsystem Patching

2014-01-10 Thread Aruna Hewapathirane
you. Aruna Hewapathirane https://sites.google.com/site/arunahewapathirane/home/business-card/buisness-card.png?attredirects=0 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: A new way to dive into the kernel!

2014-03-11 Thread Aruna Hewapathirane
It seems too many people signed up at the moment... causing the scripts to malfunction. Should be resolved in a day or two is what I was told. I have so far received four tasks. Thank you ! Aruna On Tue, Mar 11, 2014 at 2:14 AM, Srivardhan M S srivardha...@gmail.comwrote: Yes... Just sent the

Re: Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
On Wed, Mar 12, 2014 at 1:39 AM, Rahul Garg rahul.lnm...@gmail.com wrote: Hi all, I am also thinking of taking this challenge. But I found very limited information on submission. So can you help me what we need to submit for the Assigment 1, Hi Rahul, Please send in your assigmnet1.c

Re: Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
On Wed, Mar 12, 2014 at 10:14 AM, Saurabh Jain saurabh4768j...@gmail.com wrote: I'm Sorry! but i am new to this mailing list . Can anybody tell me about which assignment you people are talking ? Here you go : http://eudyptula-challenge.org/ ___

Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
I'm glad to hear that this challenge is real, and someone's getting something out of it. When the challenge first appeared I saw that there was very little actual information on its web page, and when I sent an email inquiry (somewhat testy, I admit), I got snarky humour in response, leading me

Re: A new way to dive into the kernel!

2014-03-12 Thread Aruna Hewapathirane
Try thunderbird http://www.mozilla.org/en-US/thunderbird/ On Wed, Mar 12, 2014 at 12:56 PM, sanmukh rao i.sanm...@gmail.com wrote: But doesnt it encode the attachments into base64. How to avoid that? -Sanmukh On Wed, Mar 12, 2014 at 9:52 AM, Mandeep Sandhu mandeepsandhu@gmail.com

Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-12 Thread Aruna Hewapathirane
snip Aha - I'm not well plugged into the linux kernel community. I don't have the familiarity with website styles that would lead me to notice patterns. I've used a bunch of them, but that doesn't mean I've paid attention to style. Oh-kay fair enough... and understood :) Unknown competence

Re: How to check if my kernel driver is leaking memory

2014-03-13 Thread Aruna Hewapathirane
Please use make menuconfig and press / then search for DEBUG_KMEMLEAK_EARLY_LOG_SIZE and adjust value then save and exit. You will find it under Kernel Hacking - Memory Debugging -| Kernel memory leak detector Symbol: DEBUG_KMEMLEAK_EARLY_LOG_SIZE [=] │ Type : integer │ Prompt: Maximum

Re: Problem while compiling my module on downloaded kernel source

2014-03-14 Thread Aruna Hewapathirane
try: cd /home/rahul/linux-3.13.6 make [wait a few minutes as it builds some scripts and starts building kernel code...] hit Ctrl-C then go back and try building your module. I had the exact same issue and little penguin came to the rescue :) On Sat, Mar 15, 2014

Re: Unable to find /sbin/hotplug in my running kernel

2014-03-20 Thread Aruna Hewapathirane
Hi Rahul, This will help : http://debian-handbook.info/browse/stable/sect.hotplug.html Thank's - Aruna On Thu, Mar 20, 2014 at 11:32 AM, Greg KH g...@kroah.com wrote: On Thu, Mar 20, 2014 at 08:50:02PM +0530, Rahul Garg wrote: Hi I am unable to find /sbin/hotplug in my running kernel.

Re: How to submit for eudyptula-challenge

2014-03-24 Thread Aruna Hewapathirane
Hi Wangyubin, The log level you require is KERN_DEBUG ... But when you run checkpatch.pl on your *.c file it will say: WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... So replacing printk(KERN_DEBUG ... with pr_debug will resolve this.

Re: How to submit for eudyptula-challenge

2014-03-24 Thread Aruna Hewapathirane
and Parinay Kondekar's help! Best Regards! wangyubin On 03/25/2014 10:16 AM, Aruna Hewapathirane wrote: Hi Wangyubin, The log level you require is KERN_DEBUG ... But when you run checkpatch.pl on your *.c file it will say: WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev

Re: How to submit for eudyptula-challenge

2014-03-24 Thread Aruna Hewapathirane
! thanks again! Best Regards! wangyubin On 03/25/2014 10:48 AM, Aruna Hewapathirane wrote: Hi Wangyubin, There is a *reason* why I decided to give you a helping hand my dear, I had a very hard time with that task-01 but it did help me immensely to begin to understand how things work

Re: Problem using git

2014-06-11 Thread Aruna Hewapathirane
The kernel tar file from www.kernel.org is around 70MB. but when i want to download the kernel using git it seems it's really huge. git shows 1% for 25MB. Is it how it should be or am i missing something? This will download a local copy of the *entire* revision history (back to 2.6.12-rc2), which

Re: Eudyptula Challenge Task 01

2014-06-12 Thread Aruna Hewapathirane
Hi, Which email client is best to submit tasks . I use gmail , and I get a problem with attachment base64!? what you suggest me to use! Try Thunderbird ! Does a lot more than simply send email :) Regards, N.G On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava pran...@gmail.com wrote: On

Re: Eudyptula Challenge Task 01

2014-06-16 Thread Aruna Hewapathirane
is Really we need to use Email Client ? Don't we have another option using GMAIL ? Hi Sanjeev, Please *read* the initial welcome email you received when you signed up for the Eudyptula Challenge. It 'specifically' states no HTML email, or base64-mime attachments and tells us, *don't* use Gmail

Re: Delay in Printk Messages.

2014-06-28 Thread Aruna Hewapathirane
Try echo 7 /proc/sys/kernel/printk to enable all console log levels. The numbers are corresponding to below: #define KERN_EMERG 0 /* system is unusable*/ #define KERN_ALERT 1 /* action must be taken immediately*/ #define KERN_CRIT 2 /* critical conditions*/ #define KERN_ERR 3 /* error

Re: Task 1 of Eudyptula Challenge

2014-07-24 Thread Aruna Hewapathirane
Hi Nick, Please go through the file: linux/Documentatio/kbuild/modules.txt Good luck ! Aruna On Thu, Jul 24, 2014 at 3:55 PM, Nick Krause xerofo...@gmail.com wrote: Hey guys, I am need so I was wondering how to write the Makefile. Cheers Nick

Re: Sparse fixes

2014-08-15 Thread Aruna Hewapathirane
Hi Lucas, Not certain if this what your referring to but hope it helps: http://kernelnewbies.org/Sparse and this: http://en.wikipedia.org/wiki/Sparse Good luck - Aruna On Fri, Aug 15, 2014 at 12:55 PM, Lucas Tanure tan...@linux.com wrote: Hi, If I do : $ cat drivers/staging/android/TODO

Re: How to get the information from /proc/files from within a kernel module?

2014-08-25 Thread Aruna Hewapathirane
proc file specifically /proc/pid/status Have a look here: https://gist.github.com/Aruna-Hewapathirane /f41e7291e15bae6062a1 does exactly what your trying to do. Can anyone please point me to either resources or guide me to accomplish the task of reading information from /proc/files... I

Re: Curious about corner case in btrfs code

2014-08-26 Thread Aruna Hewapathirane
Nick, Have a look here please: http://www.brendangregg.com/linuxperf.html Aruna On Wed, Aug 27, 2014 at 12:47 AM, nick xerofo...@gmail.com wrote: On 14-08-27 12:08 AM, valdis.kletni...@vt.edu wrote: On Tue, 26 Aug 2014 21:49:51 -0400, Greg Freemyer said: A decade plus ago when I first

Re: from WHERE platform driver's probe is called?

2014-11-22 Thread Aruna Hewapathirane
I am looking into platform driver and devices and understood HOW platform driver's probe is called from kernel doc and following forum. http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050 http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050 I would ask *what* is platform

Re: Kernelnewbies Digest, Vol 49, Issue 30

2014-12-15 Thread Aruna Hewapathirane
AM, Aruna Hewapathirane aruna.hewapathir...@gmail.com wrote: Last I checked the challenge had 6000 plus people signed up. If I was the person who had to review and respond to all tasks submitted by folks who are taking the challenge that is 6000 plus emails which to me is daunting

Re: Linux Kernel readlink equivalent

2015-01-29 Thread Aruna Hewapathirane
Hello, I'm working on some linux kernel driver stuff and I have a fake path called /dev/blah/whatever that points to /dev/block/real_device. The issue is that lookup_bdev will fail to follow the symlink so I'd like to massage the path upfront by getting the real path

Re: Kernel thread scheduling

2015-04-16 Thread Aruna Hewapathirane
I'm trying to find rb_node's structure and I can't find it with ctags or in the http://lxr.linux.no website. Please use this: Linux 2.6.11 and later http://lxr.linux.no/linux At the top right there is a text box please type what your searching for, in this rb_node. It will show you on the

Re: Is there any tool can format source code according to kernel coding rule?

2015-08-02 Thread Aruna Hewapathirane
Hi all, I am just wondering whether there is a script/tool which format source code according to kernel coding rule automatically? Such as tab, space, brace, etc. Thanks very much in advance! Best Regards Nan Xiao If your using vi(m) in command mode type gg=G this will indent your code

Re: vmlinux

2015-08-15 Thread Aruna Hewapathirane
Hi All ! In my learning of linux there is the stupide questions i would like to ask you. 1- Why the name of the kernel is vmlinux ? What is the origine of this name ? Perhaps you know why ? Tell me please or give the link which can explan it. Please have a look here:

Re: Kernel Debugging using Qemu

2015-08-15 Thread Aruna Hewapathirane
Hi Saket, Thank you so much for the clear instructions. I really wanted to get qemu to work on my 64bit system so I kept trying and finally I got things to work. After following your instructions I could get further but gdb complained about a Remote 'g' packet reply is too long.Your way works

Kernel Debugging using Qemu

2015-08-14 Thread Aruna Hewapathirane
Hi, If anyone uses Qemu can someone please show me how to get started ? I tried : sudo qemu-system-x86_64 -s -S -kernel arch/x86/boot/bzImage -initrd /boot/initrd.img-4.1.2-vtaqemu+ /dev/zero And it does allow me to access through gdb using target remote localhost:1234 but when I set a

Re: debugging kernel module __init function?

2015-08-04 Thread Aruna Hewapathirane
In this case, no. But I’m curious if there’s a way to pull this off, or if it’s fundamentally impossible? What happens 'after' __init gets called ? After boot, the kernel frees up a special section. All functions marked with __init and data structures marked with __initdata are dropped after

Re: what is the use of #ifndefs

2015-07-21 Thread Aruna Hewapathirane
snip I dont understand what goal is it supposed to achieve at the beginning of the headerfile snip The 'goal' is to prevent 'redefinition' errors, like Stephan Müller said it is a 'include guard'. A explanation of why and how to use include guards can be found here:

Re: How to see the preprocessed output of a module source file

2015-11-02 Thread Aruna Hewapathirane
>> On Mon, Nov 2, 2015 at 7:02 AM, Shiyao Ma wrote: >> Hi, >> Say I am writing a module. Instead of directly compile it into a ko file, I'd like to see the preprocessed output of that file, >> similarly the way it's done in gcc -E. lets say you have a module named shiyao.c the

Re: Strange warnings out of checkpatch

2015-11-02 Thread Aruna Hewapathirane
On Mon, Nov 2, 2015 at 3:11 PM, John Whitmore <arig...@gmail.com> wrote: > On Sun, Nov 01, 2015 at 03:34:15PM -0500, Aruna Hewapathirane wrote: > > >> > > > > I'd like to understand what is either wrong with code or chcekpatch > > > $ scripts/c

Re: Strange warnings out of checkpatch

2015-11-01 Thread Aruna Hewapathirane
>> I'd like to understand what is either wrong with code or chcekpatch > $ scripts/checkpatch.pl drivers/net/can/spi/mcp251x.c > John, Please run checkpatch.pl with the -f switch/flag like shown below: scripts/checkpatch.pl *-f *drivers/net/can/spi/mcp251x.c also run scripts/checkpatch.pl

Re: Building modules: missing scripts/basic/Makefile

2016-06-06 Thread Aruna Hewapathirane
> Hi Aruna, > > I ran dpkg -s linux-headers-$(uname -r) and the status indicated it was all > installed ok. Just to be sure I reinstalled it as well > as the dependencies > (linux-headers-3.16.0-4-common and linux-kbuild-3.16). Reinstalling them > seems to have not made > any difference as my

Re: Kernel panic after insmod

2016-06-26 Thread Aruna Hewapathirane
> What exactly was the crash? And where did you find this kernel module > source from? Greg, A little digging around using Google threw this up : http://superuser.com/questions/1092083/how-to-disable-kill-command-on-linux If you scroll down you will see the exact same code :) And completely

Re: can't read this

2016-02-21 Thread Aruna Hewapathirane
>> On Sun, Feb 21, 2016 at 5:34 PM, Ruben Safir wrote: >> ASCII? It is base64 encoding, if you look at the header it says Content-Transfer-Encoding: base64. Please cut and paste the 'content' into this https://www.base64decode.org/ and click decode. The original message

Re: Minimul Config file for Dev Environment

2016-07-30 Thread Aruna Hewapathirane
> Hi Folks, > I usually compile the linux kernel by copying current system .config file. But the > problem it compile bunch things that I don't which is required. My aim > is setup filesystem environmrnt setup on my laptop. > Could somebody point the minimal .config file that will save from me >

Re: Minimul Config file for Dev Environment

2016-07-31 Thread Aruna Hewapathirane
> Thanks for descriptive reply. I tried the below steps, but still localmodconfig ask for lots of > configurations, which probably I don't want. If you run: cat /boot/config-`uname -r` | wc -l That will show you how may kernel configuration options are available on your active running kernel.

Re: insmod error

2017-02-11 Thread Aruna Hewapathirane
>> Please help me out to understand below message mean. >> ubuntu@ubuntu-armhf:/home/Madhu/i2c$ dmesg >> [ 704.283100] i2c_client: loading out-of-tree module taints kernel. >> [ 704.285359] driver initialization >> [ 704.285693] inside probe function What you should pay attention to more

Re: Difference between config, menuconfig and defconfig

2016-09-19 Thread Aruna Hewapathirane
Hi Madhu, make config: Is a text-based configuration. The options are prompted one after another. All options need to be answered, and out-of-order access to former options is not possible. Try this *once* so you have the experience but after that stay away just too much work and grief. make

Re: TCP as a module

2016-11-14 Thread Aruna Hewapathirane
> Currently TCP is statically linked to the kernel. Correct, so how is this done and where ? Once you figure that part out you have what you need to do what you want to :) > How can I make it a loadable module? Change into your source tree, look for this file:

Re: What is this MODULE_ALIAS() used for?

2016-12-14 Thread Aruna Hewapathirane
> source code: > > MODULE_ALIAS("platform:sm501"); > > static const struct of_device_id of_sm501_match_tbl[] = { > { .compatible = "smi,sm501", }, > { /* end */ } > }; > MODULE_DEVICE_TABLE(of, of_sm501_match_tbl); > > location:

Re: Kernel function sequence

2016-12-14 Thread Aruna Hewapathirane
> How to know at what sequence , what function are being called when > kernel starts ? Any way to trace what function calling what ... so on > .? Google is your friend: https://0xax.gitbooks.io/linux-insides/content/Initialization/ ___ Kernelnewbies

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread Aruna Hewapathirane
>> On Wed, Apr 19, 2017 at 6:49 AM, wrote: >> On Wed, 19 Apr 2017 20:32:31 +1000, "Tobin C. Harding" said: >> On Tue, Apr 18, 2017 at 08:59:36AM -0700, Code Soldier1 wrote: >> [snip] >> >> Why the moniker? >>Could be worse. "Code Cannon Fodder", for example And this

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread Aruna Hewapathirane
>> On Tue, Apr 18, 2017 at 11:59 AM, Code Soldier1 wrote: >> Hi, >> Can someone suggest what is the fastest way to build a minimal kernel >> and boot. Two ways to build a minimal kernel. Try make localmodconfig or make tinyconfig and see what fits your needs best. If

Re: cannot insmod sculld in ldd3

2017-03-13 Thread Aruna Hewapathirane
>> Now I wonder what is the proper way to export "Module.symvers" >> information to the outside so that modules that use it do not have to >> copy that file into their directory. If you use a top-level Makefile like the one below it will create the necessary Module.symvers file. I am not sure if

Re: Query regarding kernel modules intercepting system call.

2017-07-08 Thread Aruna Hewapathirane
and what is causing the kernel to panic ? I would also get on IRC and join #kernelnewbies, you get real time answers most times and you get access to some of the most experienced folks there. Who believe it or not are extremely patient and helpful with newbies :) > > Thanks, >

Re: Query regarding kernel modules intercepting system call.

2017-07-08 Thread Aruna Hewapathirane
Hello Ajinkya, On Sat, Jul 8, 2017 at 12:14 PM, Greg KH wrote: > On Sat, Jul 08, 2017 at 09:38:52PM +0530, Ajinkya Surnis wrote: > > Actually, this is not a college assignment. I'm a professional software > > engineer who is completely new to kernel programming. > Welcome to

Re: GRUB always enters a rescue shell.

2017-07-22 Thread Aruna Hewapathirane
On Mon, Jul 17, 2017 at 11:16 AM, Kamil Konieczny < k.koniec...@partner.samsung.com> wrote: > Hi, > > On 13.07.2017 10:39, Hao Lee wrote: > > > I encounter a problem when making a bootable disk image because GRUB > > always enters a > > rescue shell. > > > > I want to create a disk image and

Re: GRUB always enters a rescue shell.

2017-07-22 Thread Aruna Hewapathirane
Hello Hao, On Thu, Jul 13, 2017 at 4:39 AM, Hao Lee wrote: > Hi, > > I encounter a problem when making a bootable disk image because GRUB > always enters a > rescue shell. > > I want to create a disk image and install GRUB 2 on it and then use > Bochs to run it. The

Re: GRUB always enters a rescue shell.

2017-07-24 Thread Aruna Hewapathirane
> > > On 22.07.2017 19:35, Aruna Hewapathirane wrote: > [...] > >>> sudo losetup -o $((2048*512)) /dev/loop1 hd.img > >> > >> should'nt it be 63*512 ? > >> > > > > nope should be 2048 and this is why --> > > https://sup

Re: building af_packet as a kernel module

2017-07-03 Thread Aruna Hewapathirane
> On Fri, Jun 30, 2017 at 12:06 AM, Kevin Wilson wrote: > Hello, > I have tried to set CONFIG_PACKET=m in kernel 4.11 and rebuilt the > kernel and rebooted. > I am using Ubuntu 16.04. > After reboot, the af_packet.ko kernel module is loaded: > lsmod > shows: > af_packet

Re: Linux Kernel contains only C code?

2018-02-01 Thread Aruna Hewapathirane
> On Fri, Jan 26, 2018 at 1:58 AM, inventsekar wrote: > Hi all, ... > 1. May i know, other than C language, is there any other programming language is/are used inside Linux Kernel?!?! > is there any c++, Perl, python programs are used for peculiar tasks inside Linux

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Aruna Hewapathirane
On Thu, Mar 15, 2018 at 12:39 PM, Aleksei Fedotov wrote: > > If for some reason make modules did not create module.symvers then try: > > > > cd /home/lexa/linux > > make > > [wait a few minutes as it builds some scripts and starts > building kernel

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Aruna Hewapathirane
> > But the issue remain the same: > $ make > make -C /home/lexa/linux M=/home/lexa/module > O=/home/lexa/module/build_x86 modules > make[1]: Entering directory '/home/lexa/linux' > make[2]: Entering directory '/home/lexa/module/build_x86' > > WARNING: Symbol version dump ./Module.symvers >

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Aruna Hewapathirane
On Thu, Mar 15, 2018 at 10:52 AM, Aruna Hewapathirane < aruna.hewapathir...@gmail.com> wrote: > > >> >> But the issue remain the same: >> $ make >> make -C /home/lexa/linux M=/home/lexa/module >> O=/home/lexa/module/build_x86 modules >> make[1]:

Re: /proc/modules not showing any output

2018-12-19 Thread Aruna Hewapathirane
> I think, on my test machine, by default, there are many modules which > get added during boot up, which with vanilla kernel is not happening. > Thanks for your input. > > Regards, > > ~Praveen. > > What does lsmod show you in the vanilla kernel ? If you want the same modules to load in the

Re: /proc/modules not showing any output

2018-12-19 Thread Aruna Hewapathirane
On Wed, Dec 19, 2018 at 11:18 AM Praveen Kumar wrote: > On Wed, Dec 19, 2018 at 9:28 PM Aruna Hewapathirane > wrote: > > > > > >> > >> I think, on my test machine, by default, there are many modules which > >> get added during boot up, which with

Re: how to determine whether the source code is same between two kernels

2019-05-11 Thread Aruna Hewapathirane
On Fri, May 10, 2019 at 11:58 PM Valdis Klētnieks wrote: > On Fri, 10 May 2019 22:11:31 -0400, Aruna Hewapathirane said: > > > > Suppose I have two kernels, one is A.B.C build by people Tom. And > > > the other is A.B.C build by Jerry. The source code have been deleted &g

Re: how to determine whether the source code is same between two kernels

2019-05-10 Thread Aruna Hewapathirane
On Wed, May 8, 2019 at 4:53 AM wuzhouhui wrote: > Hi, > Suppose I have two kernels, one is A.B.C build by people Tom. And > the other is A.B.C build by Jerry. The source code have been deleted > after kernel is build and installed. Now I want to know whether the > source code of these two kernel

Virtual To Physical Address Translation

2019-05-14 Thread Aruna Hewapathirane
Hi, I am trying to wrap my head around the virtual to physical memory address translation. For example let's say I want to locate the sys_call_table. objdump and vmlinux shows me this: aruna@debian:~/linux-5.1.1$ objdump -t vmlinux | grep -i sys_call_table 81c001c0 g O .rodata

Re: Kernel Module with multiple source files not initializing

2019-11-05 Thread Aruna Hewapathirane
>> On Fri, Oct 25, 2019 at 5:16 AM Irfan Ullah (울라 이르판) wrote: >> Dear All, >> I have developed a kernel module consists of one source file that sends and receives message to the user space. I have spitted the source code in two files, and now I am trying to develop kernel module from these

Re: How to get the preprocessor output as part of the compilation process?

2019-12-11 Thread Aruna Hewapathirane
>> On Sun, Dec 8, 2019 at 2:06 PM Frank A. Cancio Bello < fr...@generalsoftwareinc.com> wrote: >> Hi, >> I know that with gcc -E you can get the output of the preprocessor, but what I have to do to get that output for every source code file in the Linux Lernel as part of the compilation process?

Re: .config

2020-02-22 Thread Aruna Hewapathirane
>> On Sat, Feb 22, 2020 at 12:39 PM Enzo Desiage wrote >> Thanks, it worked! Next time try make -j___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: New text

2020-02-22 Thread Aruna Hewapathirane
>> On Wed, Feb 19, 2020 at 10:54 AM Ruben Safir wrote: >> is there currently a rfecommended text to learn kernel development from? There are lot's out there. I have listed below the ones that helped me. 1 - The Linux Programming Interface: A Linux and UNIX System Programming Handbook by

Re: USB driver

2020-04-28 Thread Aruna Hewapathirane
>> On Sat, Apr 25, 2020 at 1:46 AM Sohaib Mhmd wrote: >> Hi everyone, I made a very simple USB driver , >> but the problem is that the probe and disconnect functions never was called. >> I tried to google for this problem but

Re: iptables and combining additional rule sources

2020-04-26 Thread Aruna Hewapathirane
> The problem I am having is, adding the new information to the existing > iptables rules in /etc/sysconfig/iptables. I want to write my rules to > a separate file and then tell /etc/sysconfig/iptables to include it at > the correct position. > > I read the iptables(8), iptables-save(8) and

Kernel Compile Issue

2021-06-22 Thread Aruna Hewapathirane
Hello everyone, I am trying to compile a old kernel and it compiles fine. I used: time make -j$(nproc) and this is a-ok and works. make modules_install works fine. Now when I try to install the newly compiled kernel I get this error below. Error! Bad return status for module build on kernel:

Re: Kernel Compile Issue

2021-06-24 Thread Aruna Hewapathirane
On Thu, Jun 24, 2021 at 12:13 PM Cindy Sue Causey wrote: > > On 6/24/21, Aruna Hewapathirane wrote: > > On Thu, Jun 24, 2021 at 6:21 AM Thomas Bracht Laumann Jespersen > > wrote: > >> > >> > I am trying to compile a old kernel and it compiles f

Re: Kernel Compile Issue

2021-06-24 Thread Aruna Hewapathirane
On Thu, Jun 24, 2021 at 1:29 PM Thomas Bracht Laumann Jespersen wrote: > > > Yes, I was getting that error when running "sudo make install". I > > have manually removed > > all instances of VirtualBox and any guest additions and that warning > > went away. > > Interesting... > Interesting ?

Re: Kernel Compile Issue

2021-06-24 Thread Aruna Hewapathirane
On Thu, Jun 24, 2021 at 6:21 AM Thomas Bracht Laumann Jespersen wrote: > > > I am trying to compile a old kernel and it compiles fine. I used: > > time make -j$(nproc) and this is a-ok and works. > > make modules_install works fine. Now when I try to install the newly > > compiled kernel I get

Re: Kernel Compile Issue

2021-06-24 Thread Aruna Hewapathirane
On Thu, Jun 24, 2021 at 7:09 PM Valdis Klētnieks wrote: > > On Thu, 24 Jun 2021 14:19:04 -0400, Aruna Hewapathirane said: > > > Could well be ... but 'locate' shows me this: > > > > aruna@debian:~$ locate Makefile.normal > > /usr/src/open-vm-tools-9.4.6/vmci/Makef

Re: How to choose format specifier for boolean variables in Linux kernel?

2021-05-24 Thread Aruna Hewapathirane
On Mon, May 24, 2021 at 6:51 AM 慕冬亮 wrote: > Hi all, > > how do I choose format specifier for boolean variables in Linux > kernel? For example, > > bool bup; > pr_alert("%XXX", bup); > > What should "XXX" be in the Linux kernel? > > Dongliang Mu > Please go through this. Hope it will help.

Re: Kernel Compile Issue

2021-06-25 Thread Aruna Hewapathirane
On Thu, Jun 24, 2021 at 8:51 PM Valdis Klētnieks wrote: > > On Thu, 24 Jun 2021 19:36:08 -0400, Aruna Hewapathirane said: > > > but after selecting the new kernel at the GRUB2 menu it hangs at the > > graphical > > login and I am stumped. > > Does control-a

Re: Kernel Compile Issue

2021-06-28 Thread Aruna Hewapathirane
On Sat, Jun 26, 2021 at 2:39 AM Valdis Klētnieks wrote: > > On Fri, 25 Jun 2021 16:05:45 -0400, Aruna Hewapathirane said: > > > Jun 25 10:46:42 debian systemd-modules-load[201]: Failed to find module > > 'vmhgfs' > > Jun 25 10:46:42 debian systemd[1]: Failed to start L

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Aruna Hewapathirane
On Mon, Mar 22, 2021 at 5:18 PM Aruna Hewapathirane < aruna.hewapathir...@gmail.com> wrote: > > >> update-initramfs: Generating /boot/initrd.img-5.12.0-rc3-GIDI_DEV+ >> dpkg: warning: version '5.12.0-rc3-GIDI_DEV+' has bad syntax: invalid >> character in revision nu

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Aruna Hewapathirane
> update-initramfs: Generating /boot/initrd.img-5.12.0-rc3-GIDI_DEV+ > dpkg: warning: version '5.12.0-rc3-GIDI_DEV+' has bad syntax: invalid > character in revision number > dpkg: warning: version '5.12.0-rc3-GIDI_DEV+' has bad syntax: invalid > character in revision number > This is a

Re: "Invalid signature" issue on dev kernel launch

2021-03-23 Thread Aruna Hewapathirane
On Tue, Mar 23, 2021 at 12:37 PM Gidi Gal wrote: > Greetings, > > After receiving a lot of information regarding my query on how to switch > from installed to dev kernel (thank you to all the people that shared their > knowledge on this subject), I am now facing "invalid signature" error when >

Re: "Invalid signature" issue on dev kernel launch

2021-03-23 Thread Aruna Hewapathirane
On Tue, Mar 23, 2021 at 12:37 PM Gidi Gal wrote: > Greetings, > > After receiving a lot of information regarding my query on how to switch > from installed to dev kernel (thank you to all the people that shared their > knowledge on this subject), I am now facing "invalid signature" error when >

Re: "Invalid signature" issue on dev kernel launch

2021-03-23 Thread Aruna Hewapathirane
On Tue, Mar 23, 2021 at 5:09 PM Valdis Klētnieks wrote: > On Tue, 23 Mar 2021 18:36:58 +0200, Gidi Gal said: > > > knowledge on this subject), I am now facing "invalid signature" error > when > > I reboot with my installed dev kernel. > > When/where exactly are you getting that error? There's

Re: How to switch between installed kernel and developed kernel

2021-03-22 Thread Aruna Hewapathirane
On Mon, Mar 22, 2021 at 9:17 PM Valdis Klētnieks wrote: > On Tue, 23 Mar 2021 00:01:22 +0200, Gidi Gal said: > > > Many thanks for your reply, Aruna. Is there a way to remove the installed > > '5.12.0-rc3-GIDI_DEV+' kernel ? Yes there are 'many' ways to remove a kernel :-) A reverse command

Re: "Invalid signature" issue on dev kernel launch

2021-03-24 Thread Aruna Hewapathirane
On Wed, Mar 24, 2021 at 1:26 AM Valdis Klētnieks wrote: > On Tue, 23 Mar 2021 22:36:33 -0400, Aruna Hewapathirane said: > > > I also see: > > CC drivers/cpufreq/cpufreq_ondemand.o > > drivers/cpufreq/cpufreq_ondemand.c: In function ‘od_set_powersave_bi

Re: "Invalid signature" issue on dev kernel launch

2021-03-24 Thread Aruna Hewapathirane
Thanks, > Gidi > > > On Wed, Mar 24, 2021 at 4:36 AM Aruna Hewapathirane < > aruna.hewapathir...@gmail.com> wrote: > >> >> >> On Tue, Mar 23, 2021 at 12:37 PM Gidi Gal >> wrote: >> >>> Greetings, >>> >>> After receiving

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Aruna Hewapathirane
On Tue, Mar 23, 2021 at 11:06 AM Valdis Klētnieks wrote: > On Tue, 23 Mar 2021 00:29:10 -0400, Aruna Hewapathirane said: > > > Use : linux-check-removal > > That's a debian-specific thing... > Yep and he is running Ubuntu which is a derivative of Debian ? His

Re: How to switch between installed kernel and developed kernel

2021-03-23 Thread Aruna Hewapathirane
s install, it should support uninstall as well. Please > let me know whether it sounds like a worthy enhancement or a wrong > expectation. > > Have a look at the make install and make clean sections in the Makefile. Again nothing to stop you from having a 'delete' or 'remove' target eh ?

Re: My effort to learn Linux kernel development

2021-08-10 Thread Aruna Hewapathirane
Hello Sue and everybody else, Useful to know : https://linuxhint.com/linux-kernel-tutorial-beginners/ Very useful to know: https://github.com/0xAX/linux-insides/blob/master/Booting/linux-bootstrap-1.md I wish 'I' found this years ago when I first started

Re: Any tracing mechanism can track the executed instructions of a user process in the kernel?

2021-10-17 Thread Aruna Hewapathirane
On Sun, Oct 17, 2021 at 10:46 PM Dongliang Mu wrote: > Hi all, > > I am writing to kindly ask one question: is there any tracing > mechanism in Linux kernel that can trace all the executed instructions > of a user process? Use gdb -p to attach to the process your interested in The gdb

Re: ALSA kernel projects - for academic purposes

2021-09-29 Thread Aruna Hewapathirane
On Fri, Sep 24, 2021 at 10:05 AM Muni Sekhar wrote: > Hi all, > > > What small projects would you suggest to a novice with the ALSA > kernel. The aim is to develop a familiarity with the ALSA kernel > source code, and also to submit it for academic purposes. > > > -- > Thanks, > Sekhar > 1.

Re: My effort to learn Linux kernel development

2021-07-24 Thread Aruna Hewapathirane
> I know well that there is not any book that provides current knowledge > about the Linux kernel. > Hello Amit, If you watch this through to the very end you will not require any books :-) https://www.youtube.com/watch?v=Sk9TatW9ino Good Luck - Aruna

Re: How to disable address randomization ?

2022-01-13 Thread Aruna Hewapathirane
> > When I search randomization the only thing I found is KASLR which I > don't think is the same thing. > Think about this carefully. When you insmod that kernel module which address space is it using ? Kernel or Userspace ? :-) This will help:

Re: *** Compiler is too old

2022-03-08 Thread Aruna Hewapathirane
On Sun, Mar 6, 2022 at 10:29 PM wrote: > On Tue, Feb 22, 2022 at 7:19 PM Aruna Hewapathirane > wrote: > > > > On Tue, Feb 22, 2022 at 8:48 PM Valdis Klētnieks > > wrote: > > > > > > On Sun, 20 Feb 2022 23:52:47 -0500, Aruna Hewapathirane s

make menuconfig and make j$(nproc) throwing errors

2022-02-23 Thread Aruna Hewapathirane
Hi, I am trying to compile the 5.16.10 kernel and make menuconfig throws this error below: aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ make menuconfig HOSTLD scripts/kconfig/mconf /usr/bin/ld: scripts/kconfig/confdata.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be

Re: make menuconfig and make j$(nproc) throwing errors

2022-02-24 Thread Aruna Hewapathirane
On Thu, Feb 24, 2022 at 1:46 AM Greg KH wrote: > > On Wed, Feb 23, 2022 at 10:58:45PM -0500, Aruna Hewapathirane wrote: > > And I tried to build without make menuconfig and make is telling me I > > need 'bison' ? Why do I need bison ? Since when > > did we need bison

Re: make menuconfig and make j$(nproc) throwing errors

2022-02-24 Thread Aruna Hewapathirane
> > Greg, now make complains it requires 'flex' ? > > Yes, please install that. Done and first compile went smooth took slightly over 40 minutes and below is the second run... aruna@debian:/media/aruna/linux-next/home/linux-5.16.10$ time make -j$(nproc) DESCEND objtool CALL

Re: *** Compiler is too old

2022-02-22 Thread Aruna Hewapathirane
On Mon, Feb 21, 2022 at 6:26 AM FMDF wrote: > On Mon, Feb 21, 2022 at 5:53 AM Aruna Hewapathirane > wrote: > > > *** Compiler is too old. > > *** Your GCC version:4.9.2 > > *** Minimum GCC version: 5.1.0 > > This ML is not for distribution related proble

Re: *** Compiler is too old

2022-02-22 Thread Aruna Hewapathirane
On Tue, Feb 22, 2022 at 8:48 PM Valdis Klētnieks wrote: > > On Sun, 20 Feb 2022 23:52:47 -0500, Aruna Hewapathirane said: > > > *** Compiler is too old. > > > > What would be the sanest way to do this? Meaning upgrade gcc and friends ? > > Well... the answer to

Re: *** Compiler is too old

2022-02-22 Thread Aruna Hewapathirane
to do so. > > On Mon, 21 Feb 2022 at 05:53, Aruna Hewapathirane < > aruna.hewapathir...@gmail.com> wrote: > >> Hello, >> >> It has been some time since I needed to compile a kernel and I have this >> problem now. >> *** Compiler is too old.

*** Compiler is too old

2022-02-20 Thread Aruna Hewapathirane
Hello, It has been some time since I needed to compile a kernel and I have this problem now. *** Compiler is too old. What would be the sanest way to do this? Meaning upgrade gcc and friends ? Please see below for details: make menuconfig gives me this:

Re: A question about linux pipes

2022-05-14 Thread Aruna Hewapathirane
> On Fri, May 13, 2022 at 11:46 AM xhighway999 wrote: > > Hi Guys, > sorry to bother you all. But I have a simple question about Linux Pipes. > Is the following statement right or wrong: > "Named pipes can be used to transfer data from one process to multiple other processes that know the name at

  1   2   >