Re: SOC: Zedboard: Driver question

2014-06-18 Thread sanjeev sharma
is this Finally Working or you are facing some issues ?

Regards
Sanjeev Sharma


On Fri, Jun 13, 2014 at 6:43 PM, Josh Cartwright jo...@eso.teric.us wrote:

 On Thu, Jun 12, 2014 at 04:39:25PM +0300, amit mehta wrote:
  We are working on a school project in which we are trying to develop a
  audio mixer on Zedboard (Development board from Digilent). We have
  developed the IP and have integrated it with the overall hardware
  using Programmable logic. This board has ARM core. We have a Digilent
  pre-configured Linux source which we cross-compiled for ARM board,
  device tree blob and bootloader for Zync(BOOT.BIN). The system boots
  fine with Linux, but now to expose the recently added hardware
  implementation of audio mixer, we are trying to develop the driver
  using the platform driver API.  Currently, In our reconfigurable
  hardware, we have 2 channels and a mixer and we want to access those
  individually as some file nodes under /proc FS. The sample code is
  shown below:
 
 [..]

 It wasn't clear what your problem was, or if you were just asking for
 advice, but I will add one comment that will hopefully save you some
 debugging time:

  #include linux/kernel.h
  #include linux/module.h
  #include asm/uaccess.h  /*Needed for copy_from_user */
  #include asm/io.h   /*Needed for IO Read/Write
 Functions */
  #include linux/proc_fs.h/*Needed for Proc File System
 Functions */
  #include linux/seq_file.h   /*Needed for Sequence File
 Operations */
  #include linux/platform_device.h/*Needed for Platform Driver
 Functions */
 
  /* Define Driver Name */
  #define DRIVER_NAME myiir
 
  unsigned long *base_addr; /* Vitual Base Address */
  struct resource *res; /* Device Resource Structure */
  unsigned long remap_size; /* Device Memory Size */

 The way this driver is written, you will actually be probed three times,
 once per node in the device tree.  The drivers' use of global state here
 is going to bite you.

 [..]
  static int __devinit myiir_probe(struct platform_device *pdev)
  {
struct proc_dir_entry *myiir_proc_entry[3];
int ret = 0;
 
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
dev_err(pdev-dev, No memory resource\n);
return -ENODEV;
}
remap_size = res-end - res-start + 1;
 
if (!request_mem_region(res-start, remap_size, pdev-name)) {
dev_err(pdev-dev, Cannot request IO\n);
return -ENXIO;
}
 
base_addr = ioremap(res-start, remap_size);
if (base_addr == NULL) {
dev_err(pdev-dev, Couldn't ioremap memory at 0x%08lx\n,
(unsigned long)res-start);
ret = -ENOMEM;
goto err_release_region;
}
 [..]
  static const struct of_device_id myiir_of_match[] __devinitconst = {
{.compatible = dglnt,myiir-audio-ch0},
{.compatible = dglnt,myiir-audio-ch1},
{.compatible = dglnt,myiir-audio-mix0},
{},
  };

 Are these really separate IP blocks entirely, or just multiple instances
 of the same IP block (perhaps with different parameters used during
 synthesis)?  If the latter, then they should really share a compatible
 string that reflects the name/version of the IP block; handling which
 block is which channel should be done at a higher level.

 Good luck,

   Josh

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Adding new board support

2014-06-18 Thread sanjeev sharma
Also It is depends on Kernel Version you are trying to add support for New
Board.If your Kernel version doesn't support device tree blob then adding
some Board files would be sufficient enough and you can also take reference
from the other Board which is similar to your Board.

Regards
Sanjeev Sharma


On Sat, Jun 14, 2014 at 9:29 PM, Thomas Petazzoni 
thomas.petazz...@free-electrons.com wrote:

 Hello,

 On Sat, 7 Jun 2014 12:57:34 +0530, AYAN KUMAR HALDER wrote:

  1. Create a config file under arch/arm/configs/ for your board. You
  may refer to any of the standard configuration which closely resembles
  your board's configuration. To start with enable the basic
  configurations such as processor, timer, uart, etc and disable SMP
  which are the bare minimum requirements for the board to boot.
  2. Add a folder under arch/arm/mach-yourplatformname.  Add board.c
  where your can register your platform devices such as pcie, nand, usb,
  uart, gpio, rtc etc
  3, Under the same folder above, add timer.c to initialize your
  timers.Add clock.c to enable/disable clocks and change clock rate of
  various Functional Blocks. Add yourplatformname.c to initialize your
  processor specific details such as global timers, arm pmu, interrupts,
  cache, global dma, ACP, SCU and inter-processor interrupt( if later
  you decide to enable SMP)
  4. It is advisable to refer to a standard platform (like versatile -
  express ) to understand the board specific configurations in Linux.

 Sorry to say so, but those recommendations are quite wrong when the
 goal is to add the support for a new _board_ in the kernel. What you're
 describing here are roughly the steps to add the support for a new SoC
 or family of SoC.

 If what's needed is adding support for a new board that uses an ARM SoC
 already supported by the kernel, then all what's needed is either
 writing a Device Tree file (if the ARM SoC in question is supported
 through the Device Tree) or writing a board file in an existing
 mach-foo folder.

 Best regards,

 Thomas
 --
 Thomas Petazzoni, CTO, Free Electrons
 Embedded Linux, Kernel and Android engineering
 http://free-electrons.com

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Unsuccessful transactions during usb enumeration

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 06:26:23AM +, Ranjith T. C. wrote:
 Thanks for the reply.
 
  What exactly do you mean by this?
 
 What I meant is whether it could be could be an of the USB controller driver 
 or the hardware?

It could be both.  Or a bad cable, or bad connection.

Try putting some debugging code in the Linux device side and see what
that is telling you is happening.

Try plugging the device into different operating systems with different
types of host controller hardware to see if it is a timing issue.

Good luck,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Unsuccessful transactions during usb enumeration

2014-06-18 Thread sanjeev sharma
Hi Greg,

In one of my imx6 based Board when I connect USB Disk first time everything
work's ok and I can read/write content from USB Flash Driver but when I do
eject and connect again I could see below continuous messages from dmesg
and disk never mounted.

 218.431346] FAT-fs (sda): Directory bread(block 480) failed

3[  218.431362] FAT-fs (sda): Directory bread(block 481) failed

3[  218.431374] FAT-fs (sda): Directory bread(block 482) failed

3[  218.431386] FAT-fs (sda): Directory bread(block 483) failed

3[  218.431398] FAT-fs (sda): Directory bread(block 484) failed

3[  218.431420] FAT-fs (sda): Directory bread(block 485) failed

3[  218.431432] FAT-fs (sda): Directory bread(block 486) failed

3[  218.431444] FAT-fs (sda): Directory bread(block 487) failed

3[  218.431466] FAT-fs (sda): Directory bread(block 488) failed

3[  218.431478] FAT-fs (sda): Directory bread(block 489) failed

3[  218.431499] FAT-fs (sda): Directory bread(block 490) failed

3[  218.431515] FAT-fs (sda): Directory bread(block 491) failed

3[  218.431528] FAT-fs (sda): Directory bread(block 492) failed

3[  218.431540] FAT-fs (sda): Directory bread(block 493) failed

3[  218.431551] FAT-fs (sda): Directory bread(block 494) failed

3[  218.431563] FAT-fs (sda): Directory bread(block 495) failed

3[  218.431592] FAT-fs (sda): Directory bread(block 496) failed

3[  218.431604] FAT-fs (sda): Directory bread(block 497) failed

3[  218.431616] FAT-fs (sda): Directory bread(block 498) failed

3[  218.431627] FAT-fs (sda): Directory bread(block 499)

is this probably issue in driver where It is failing to properly re-init
the USB device 2nd time ?

Regards
Sanjeev Sharma


On Wed, Jun 18, 2014 at 12:09 PM, Greg KH g...@kroah.com wrote:

 On Wed, Jun 18, 2014 at 06:26:23AM +, Ranjith T. C. wrote:
  Thanks for the reply.
 
   What exactly do you mean by this?
 
  What I meant is whether it could be could be an of the USB controller
 driver or the hardware?

 It could be both.  Or a bad cable, or bad connection.

 Try putting some debugging code in the Linux device side and see what
 that is telling you is happening.

 Try plugging the device into different operating systems with different
 types of host controller hardware to see if it is a timing issue.

 Good luck,

 greg k-h

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Unsuccessful transactions during usb enumeration

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 12:22:33PM +0530, sanjeev sharma wrote:
 Hi Greg,
 
 In one of my imx6 based Board when I connect USB Disk first time everything
 work's ok and I can read/write content from USB Flash Driver but when I do
 eject and connect again I could see below continuous messages from dmesg
 and disk never mounted.
 
  218.431346] FAT-fs (sda): Directory bread(block 480) failed
 
 3[  218.431362] FAT-fs (sda): Directory bread(block 481) failed
 
 3[  218.431374] FAT-fs (sda): Directory bread(block 482) failed
 
 3[  218.431386] FAT-fs (sda): Directory bread(block 483) failed
 
 3[  218.431398] FAT-fs (sda): Directory bread(block 484) failed
 
 3[  218.431420] FAT-fs (sda): Directory bread(block 485) failed
 
 3[  218.431432] FAT-fs (sda): Directory bread(block 486) failed
 
 3[  218.431444] FAT-fs (sda): Directory bread(block 487) failed
 
 3[  218.431466] FAT-fs (sda): Directory bread(block 488) failed
 
 3[  218.431478] FAT-fs (sda): Directory bread(block 489) failed
 
 3[  218.431499] FAT-fs (sda): Directory bread(block 490) failed
 
 3[  218.431515] FAT-fs (sda): Directory bread(block 491) failed
 
 3[  218.431528] FAT-fs (sda): Directory bread(block 492) failed
 
 3[  218.431540] FAT-fs (sda): Directory bread(block 493) failed
 
 3[  218.431551] FAT-fs (sda): Directory bread(block 494) failed
 
 3[  218.431563] FAT-fs (sda): Directory bread(block 495) failed
 
 3[  218.431592] FAT-fs (sda): Directory bread(block 496) failed
 
 3[  218.431604] FAT-fs (sda): Directory bread(block 497) failed
 
 3[  218.431616] FAT-fs (sda): Directory bread(block 498) failed
 
 3[  218.431627] FAT-fs (sda): Directory bread(block 499)
 
 is this probably issue in driver where It is failing to properly re-init
 the USB device 2nd time ?

I have no idea, something is trying to read those blocks and failing,
perhaps a program doesn't realize the disk is no longer there anymore?

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Unsuccessful transactions during usb enumeration

2014-06-18 Thread sanjeev sharma
OK ! So USB Driver is trying to read but physically disk is not enumerated
but USB Subsystem did recognize the disk as per Logs.

 usb 2-1.1: new high speed USB device number 6 using fsl-ehci

6[  216.990681] scsi1 : usb-storage 2-1.1:1.0

5[  217.983182] scsi 1:0:0:0: Direct-Access USB2.0Flash Disk
0.00 PQ: 0 ANSI: 2

5[  217.986978] sd 1:0:0:0: [sdb] 3904512 512-byte logical blocks: (1.99
GB/1.86 GiB)

5[  217.987461] sd 1:0:0:0: [sdb] Write Protect is off

7[  217.987473] sd 1:0:0:0: [sdb] Mode Sense: 00 00 00 00

3[  217.987958] sd 1:0:0:0: [sdb] Asking for cache data failed

3[  217.987968] sd 1:0:0:0: [sdb] Assuming drive cache: write through

3[  217.991715] sd 1:0:0:0: [sdb] Asking for cache data failed

3[  217.991726] sd 1:0:0:0: [sdb] Assuming drive cache: write through

6[  218.215499]  sdb:

3[  218.221482] sd 1:0:0:0: [sdb] Asking for cache data failed

3[  218.221513] sd 1:0:0:0: [sdb] Assuming drive cache: write through

5[  218.221529] sd 1:0:0:0: [sdb] Attached SCSI removable disk

3[  218.431346] FAT-fs (sda): Directory bread(block 480) failed

3[  218.431362] FAT-fs (sda): Directory bread(block 481) failed

3[  218.431374] FAT-fs (sda): Directory bread(block 482) failed

3[  218.431386] FAT-fs (sda): Directory bread(block 483) failed

Regards
Sanjeev Sharma



On Wed, Jun 18, 2014 at 12:37 PM, Greg KH g...@kroah.com wrote:

 On Wed, Jun 18, 2014 at 12:22:33PM +0530, sanjeev sharma wrote:
  Hi Greg,
 
  In one of my imx6 based Board when I connect USB Disk first time
 everything
  work's ok and I can read/write content from USB Flash Driver but when I
 do
  eject and connect again I could see below continuous messages from dmesg
  and disk never mounted.
 
   218.431346] FAT-fs (sda): Directory bread(block 480) failed
 
  3[  218.431362] FAT-fs (sda): Directory bread(block 481) failed
 
  3[  218.431374] FAT-fs (sda): Directory bread(block 482) failed
 
  3[  218.431386] FAT-fs (sda): Directory bread(block 483) failed
 
  3[  218.431398] FAT-fs (sda): Directory bread(block 484) failed
 
  3[  218.431420] FAT-fs (sda): Directory bread(block 485) failed
 
  3[  218.431432] FAT-fs (sda): Directory bread(block 486) failed
 
  3[  218.431444] FAT-fs (sda): Directory bread(block 487) failed
 
  3[  218.431466] FAT-fs (sda): Directory bread(block 488) failed
 
  3[  218.431478] FAT-fs (sda): Directory bread(block 489) failed
 
  3[  218.431499] FAT-fs (sda): Directory bread(block 490) failed
 
  3[  218.431515] FAT-fs (sda): Directory bread(block 491) failed
 
  3[  218.431528] FAT-fs (sda): Directory bread(block 492) failed
 
  3[  218.431540] FAT-fs (sda): Directory bread(block 493) failed
 
  3[  218.431551] FAT-fs (sda): Directory bread(block 494) failed
 
  3[  218.431563] FAT-fs (sda): Directory bread(block 495) failed
 
  3[  218.431592] FAT-fs (sda): Directory bread(block 496) failed
 
  3[  218.431604] FAT-fs (sda): Directory bread(block 497) failed
 
  3[  218.431616] FAT-fs (sda): Directory bread(block 498) failed
 
  3[  218.431627] FAT-fs (sda): Directory bread(block 499)
 
  is this probably issue in driver where It is failing to properly re-init
  the USB device 2nd time ?

 I have no idea, something is trying to read those blocks and failing,
 perhaps a program doesn't realize the disk is no longer there anymore?

 greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-18 Thread sanjeev sharma
So Thunderbird client can work out of Box to submit Assignment   We can
also attach .c .h files too if required against the Assignment.

Regards
Sanjeev Sharma


On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma asharma...@gmail.com
wrote:


 On 13-06-2014 AM 04:10, Nada Saif wrote:
  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!
 
  Regards,
  N.G
 Thunderbird

 Regards,
 Abhishek Sharma

  On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava pran...@gmail.com
 wrote:
  On Tue, Apr 29, 2014 at 8:40 PM, me storage me.storage...@gmail.com
 wrote:
  Hi i every one i am new to linux kernel programming .I am
 participating in
  Eudyptula Challenge .Recently i submitted my solutions to Task 01 but i
  gives me reply like the below
 
  Please read the requirements for the Makefile and allow the module to
 be
  built against any kernel source tree on the filesystem, not just those
  kernels that happened to be installed in /lib/ at some point in time.
 
  And my make file is like this
 
  ifneq ($(KERNELRELEASE),)
obj-m += helloworld.o
else
default
  I hope you understand the -C switch
  :
  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
  make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
end
 
  If not then find it out and see what you need to change.
 
  So can any please tell me how to allow the module to be built against
 any
  kernel source tree on the filesystem?
  or can any one pleae tell me what does it mean?
  Thank you
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 
 
 
  --
   ---P.K.S
 
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
  ___
  Kernelnewbies mailing list
  Kernelnewbies@kernelnewbies.org
  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


 ---
 This email is free from viruses and malware because avast! Antivirus
 protection is active.
 http://www.avast.com


 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


out-of-tree configuration

2014-06-18 Thread John Bougs
I am working with a kernel module that has a few kconfig options associated
with it. The makefile for the module as it is does not support out-of-tree
builds. I am trying to change the the makefile to do out-of-tree builds.
Most of this is pretty straight forward, however I can't seem to find any
recomendations on to do local configurations for just the out of tree build.

right now I use the code below, but I don't realy think it is a good
solution because of the possible confilict between the local .config file
and the kernel .config file. Any suggestions on how I should handle this? 



ifneq ($(KERNELRELEASE),)
# kbuild part of makefile

# Optionally, include config file to allow out of tree kernel modules build
-include $(src)/.config

# Core module
obj-$(CONFIG_XXX) += xxx.o
xxx-y += xxx-core.o xxx-sysfs.o 

# drivers
obj-$(CONFIG_XXX_1)+= xxx1.o
obj-$(CONFIG_XXX_2)+= xxx2.o


else
# normal makefile
KDIR ?= /lib/modules/`uname -r`/build

default: .config
$(MAKE) -C $(KDIR) M=$$PWD modules

.config:
@echo need local .config
exit 1

modules_install: 
$(MAKE) -C $(KDIR) M=$$PWD modules_install


clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions \
   modules.order Module.symvers

endif


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: out-of-tree configuration

2014-06-18 Thread Anders Darander
On 18 June 2014 15:03, John Bougs bogusemail98...@yahoo.com wrote:
 I am working with a kernel module that has a few kconfig options associated
 with it. The makefile for the module as it is does not support out-of-tree
 builds. I am trying to change the the makefile to do out-of-tree builds.

First, why do you want to build the module out-of-tree?

For 3rd party modules I can understand that need, OTOH, in that case your
question wouldn't have existed.

Cheers,
Anders

-- 
Anders Darander
EPO guidelines 1978: If the contribution to the known art resides
solely in a computer program then the subject matter is not
patentable in whatever manner it may be presented in the claims.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: out-of-tree configuration

2014-06-18 Thread john bougs




On Wednesday, June 18, 2014 6:47 AM, Anders Darander 
anders.daran...@gmail.com wrote:
 


On 18 June 2014 15:03, John Bougs bogusemail98...@yahoo.com wrote:
 I am working with a kernel module that has a few kconfig options associated
 with it. The makefile for the module as it is does not support out-of-tree
 builds. I am trying to change the the makefile to do out-of-tree builds.

First, why do you want to build the module out-of-tree?

For 3rd party modules I can understand that need, OTOH, in that case your
question wouldn't have existed.


I am working with a third party module that I am building out of tree.  I 
trying this across multiple platforms.  I am placing the module code in our 
VCS... out of tree seems to be a cleaner, simpler, les complicated  solution to 
me.

Without  trying to sound confrontational, why not build it out of tree?___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: out-of-tree configuration

2014-06-18 Thread Valdis . Kletnieks
On Wed, 18 Jun 2014 07:02:09 -0700, john bougs said:
 Without  trying to sound confrontational, why not build it out of tree?

Why not have it build in-tree? That way you can throw it at Greg KH
and get it in (at least) drivers/staging, at which point you no longer
have to do ongoing maintenance to keep in sync with new kernel APIs - if
anybody changes an API that  you're using, it's their job to update
your use of it. :)


pgpySZVLwLHKo.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: out-of-tree configuration

2014-06-18 Thread Anders Darander
On 18 Jun 2014 16:02, john bougs bogusemail98...@yahoo.com wrote:




 On Wednesday, June 18, 2014 6:47 AM, Anders Darander 
anders.daran...@gmail.com wrote:


 On 18 June 2014 15:03, John Bougs bogusemail98...@yahoo.com wrote:
  I am working with a kernel module that has a few kconfig options
associated
  with it. The makefile for the module as it is does not support
out-of-tree
  builds. I am trying to change the the makefile to do out-of-tree builds.

 First, why do you want to build the module out-of-tree?

 For 3rd party modules I can understand that need, OTOH, in that case your
 question wouldn't have existed.


 I am working with a third party module that I am building out of tree.  I
trying this across multiple platforms.  I am placing the module code in our
VCS... out of tree seems to be a cleaner, simpler, les complicated
solution to me.

Well, from your first email, I got the impression that you tried to move an
in-tree module out of the kernel tree.

What 3rd party module is it that you're building, that is delivered to you
in a state to only allow in-tree builds? That's a pretty uncommon
situation.

Are the config options you need to be set something that only this module
knows about, or are they something the rest of the kernel knows about?

 Without  trying to sound confrontational, why not build it out of tree?

Well, there's nothing wrong to build a true 3rd party module out-of-tree.
It might very well be your only choice due to a number of factors.

Though, if you can get it upstreamed, you'll win in the long term.

Cheers,
Anders
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: out-of-tree configuration

2014-06-18 Thread john bougs





On Wednesday, June 18, 2014 7:31 AM, Anders Darander 
anders.daran...@gmail.com wrote:
 


 
Well, from your first email, I got the impression that you tried to move an 
in-tree module out of the kernel tree. 
What 3rd party module is it that you're building, that is delivered to you in a 
state to only allow in-tree builds? That's a pretty uncommon situation. 
Are the config options you need to be set something that only this module knows 
about, or are they something the rest of the kernel knows about? 
 Without  trying to sound confrontational, why not build it out of tree?
Well, there's nothing wrong to build a true 3rd party module out-of-tree. It 
might very well be your only choice due to a number of factors. 
Though, if you can get it upstreamed, you'll win in the long term. 
Cheers, 

Anders 


I'm playing with a module off of github -  fbtft.   All the config is local to 
the module.  

Thanks









 
Well, from your first email, I got the impression that you tried to move an 
in-tree module out of the kernel tree. 
What 3rd party module is it that you're building, that is delivered to you in a 
state to only allow in-tree builds? That's a pretty uncommon situation. 
Are the config options you need to be set something that only this module knows 
about, or are they something the rest of the kernel knows about? 
 Without  trying to sound confrontational, why not build it out of tree?
Well, there's nothing wrong to build a true 3rd party module out-of-tree. It 
might very well be your only choice due to a number of factors. 
Though, if you can get it upstreamed, you'll win in the long term. 
Cheers, 

Anders ___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-18 Thread Anand Moon
Hi Sanjeev,

Please share the steps to configure Thunderbird so that it benefits all of us.

-Anand Moon



On Wednesday, June 18, 2014 4:37 PM, sanjeev sharma 
sanjeevsharmae...@gmail.com wrote:
 


So Thunderbird client can work out of Box to submit Assignment   We can also 
attach .c .h files too if required against the Assignment.

Regards
Sanjeev Sharma 




On Sun, Jun 15, 2014 at 2:57 PM, Abhishek Sharma asharma...@gmail.com wrote:


On 13-06-2014 AM 04:10, Nada Saif wrote:
 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!

 Regards,
 N.G
Thunderbird

Regards,
Abhishek Sharma


 On Tue, Apr 29, 2014 at 6:34 PM, Pranay Srivastava pran...@gmail.com wrote:
 On Tue, Apr 29, 2014 at 8:40 PM, me storage me.storage...@gmail.com wrote:
 Hi i every one i am new to linux kernel programming .I am participating in
 Eudyptula Challenge .Recently i submitted my solutions to Task 01 but i
 gives me reply like the below

 Please read the requirements for the Makefile and allow the module to be
 built against any kernel source tree on the filesystem, not just those
 kernels that happened to be installed in /lib/ at some point in time.

 And my make file is like this

 ifneq ($(KERNELRELEASE),)
       obj-m += helloworld.o
   else
   default
 I hope you understand the -C switch
 :
         make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
   clean:
         make -C /lib/modules/$(shell uname -r)/bulid M=$(PWD) clean
   end

 If not then find it out and see what you need to change.

 So can any please tell me how to allow the module to be built against any
 kernel source tree on the filesystem?
 or can any one pleae tell me what does it mean?
 Thank you

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



 --
          ---P.K.S

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com



___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Challenge Task 01

2014-06-18 Thread Valdis . Kletnieks
On Wed, 18 Jun 2014 10:43:42 -0700, Anand Moon said:

 Hi Sanjeev, Please share the steps to configure Thunderbird so that it
  benefits all of us.

% grep -i thunder /usr/src/linux-next/Documentation/email-clients.txt
Thunderbird (GUI)
Thunderbird is an Outlook clone that likes to mangle text, but there are ways
  The easiest thing to do with Thunderbird and patches is to use an
- Edit your Thunderbird config settings so that it won't use format=flowed.
  thunderbird's registry editor.

If you're doing the challenge, you have the info already in your source tree


pgppHZJlagpG4.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Why the page tables are needed for lowmem?

2014-06-18 Thread Pranay Srivastava
On Thu, Jun 19, 2014 at 8:51 AM, sandeep kumar
coolsandyfor...@gmail.com wrote:
 Hi All

 i was going through mm initialization code, and saw paging_init()
 implementation.
 it has a function map_lowmem().

 I was wondering why do we need page table entries for lowmem ??

I hope you understand how MMU and virtual memory works.

 because all the pages in lowmem can be addressed by kernel logical address
 and differ only an offset from the physical address. Why cant we simply add
 that offset to the virtual(logical) address and get the job done. Why waste
 some memory for creating PTEs for them?

Let's forget about lowmem or high mem. See the role of MMU and you'll
understand why it's needed.


 can any one clarify?


 --
 With regards,
 Sandeep Kumar Anantapalli,

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




-- 
---P.K.S

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies