What does ISA/PCI really mean to ARM architecture?
Hi, list I know this might be a very basic question. But I really don't clear at it. Can a peripheral chip that claims to be ISA or PCI device be used in a ARM based embedded system? For these kind of chips, I only concern about the planar kind of devices, means they are not on a dedicated expansion card. From hardware point of view, to attach a ISA or PCI planar chip, is there any requirement need to fulfill on a ARM bard? From Linux driver point of view, what are needed to support an ISA or PCI driver in ARM architecture? More important, is ISA or PCI device a platform device? If not, how to add these kind of devices in my board definition? I know my question might not be reasonable enough, if I messed concepts, please sort me out. Thanks in advance. -- woody I can't go back to yesterday - because I was a different person then. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Regarding ioctl()
Hi, When ioctl() is called from user space, how device driver related to it comes into picture ? What is flow from user space to kernel space ? Thanks, Rahul Bedarkar ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Regarding ioctl()
On Thu, 27 Dec 2012, Rahul Bedarkar wrote: Hi, When ioctl() is called from user space, how device driver related to it comes into picture ? What is flow from user space to kernel space ? You may want to just follow the calls down from the syscall handler in fs/ioctl.c. For special devices and non-handled ioctls you will end up in vfs_ioctl() which calls the -f_op-unlocked_ioctl() method of the backing struct file defined in the driver, supposedly. Regards, Tobi ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: What does ISA/PCI really mean to ARM architecture?
On Thu, 2012-12-27 at 10:51 +0100, Geert Uytterhoeven wrote: On Thu, Dec 27, 2012 at 9:27 AM, Woody Wu narkewo...@gmail.com wrote: Can a peripheral chip that claims to be ISA or PCI device be used in a ARM based embedded system? For these kind of chips, I only concern about the planar kind of devices, means they are not on a dedicated expansion card. From hardware point of view, to attach a ISA or PCI planar chip, is there any requirement need to fulfill on a ARM bard? arm AFAIK is only used in embedded system but ISA/PCI buses are generally part of 'big systems' and most of the times it refers to x86 PC. From Linux driver point of view, what are needed to support an ISA or PCI driver in ARM architecture? More important, is ISA or PCI device a platform device? If not, how to add these kind of devices in my board definition? AFAIK, Platform device is just a way to add a particular driver whose probe can't be called at runtime.Mostly platform device is part of system on chip. PCI devices probe function will be called by the PCI bus as and when it detects any activity on the bus.So you don't need PCI device to be a platform device. An ISA device is typically a platform device. For ARM, which uses device trees, Don't know much about ISA device to comment on this but people familiar with this can enlighten us as to the reason why it is platform device in detail. this means you define it in the device tree. A PCI device is not a platform device, as devices on a PCI bus can be probed automatically. The PCI host bridge is typically a platform device, though, so it it should be in your device tree. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say programmer or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: What does ISA/PCI really mean to ARM architecture?
On Thu, 2012-12-27 at 11:22 -0500, jonsm...@gmail.com wrote: On Thu, Dec 27, 2012 at 3:27 AM, Woody Wu narkewo...@gmail.com wrote: Hi, list I know this might be a very basic question. But I really don't clear at it. Can a peripheral chip that claims to be ISA or PCI device be used in a ARM based embedded system? For these kind of chips, I only concern about the planar kind of devices, means they are not on a dedicated expansion card. From hardware point of view, to attach a ISA or PCI planar chip, is there any requirement need to fulfill on a ARM board? See if your ARM CPU has an interface for SRAM (in addition to DRAM). You can use a SRAM chip select to access ISA type devices. But you may Would you mind explaining this in detail? need additional buffers/latches to do this. Another solution is to attach you peripherals using USB. Almost all Connect using USB what does this mean? embedded wifi chips are attached this way. The USB connectors aren't required, you can route USB around on your PCB. USB hub chips are $0.35 if you need more ports. USB Ethernet chips are available. Other options include SPI/I2C. It is worthwhile to investigate these Only chips which support SPI/I2C can be used but ISA/PCI is completely orthogonal to this AFAIK. serial solutions before doing a parallel solution. Parallel buses eat up a lot of PCB space. From Linux driver point of view, what are needed to support an ISA or PCI driver in ARM architecture? More important, is ISA or PCI device a platform device? If not, how to add these kind of devices in my board definition? I know my question might not be reasonable enough, if I messed concepts, please sort me out. Thanks in advance. -- woody I can't go back to yesterday - because I was a different person then. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
how to look for source code in kernel
can anybody tell me how to look into source code, as most are hidden in kernel. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: how to look for source code in kernel
http://lxr.linux.no/ is a really good linux cross referencing website for code reference. On Thu, Dec 27, 2012 at 10:40 AM, Jonathan Neuschäfer j.neuschae...@gmx.net wrote: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: can anybody tell me how to look into source code, as most are hidden in kernel. You can find the Linux source code at http://kernel.org/ . HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Henrique Rodrigues http://www.dcc.ufmg.br/~hsr ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Bad magic number and
Hi... On Wed, Dec 26, 2012 at 12:19 PM, sham pavman shampavman...@gmail.com wrote: SNIP mkfs -t ext4 /dev/sdb mke2fs 1.42 (29-Nov-2011) try using mkfs.ext4 instead -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Bad magic number and
I've tried that as well.. and the result is the same. I've little idea on how to start debugging. If you can provide some info it would be great. Thanks On Fri, Dec 28, 2012 at 6:37 AM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: Hi... On Wed, Dec 26, 2012 at 12:19 PM, sham pavman shampavman...@gmail.com wrote: SNIP mkfs -t ext4 /dev/sdb mke2fs 1.42 (29-Nov-2011) try using mkfs.ext4 instead -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: how to look for source code in kernel
On Fri, Dec 28, 2012 at 1:23 AM, Henrique Rodrigues henriquesil...@gmail.com wrote: http://lxr.linux.no/ is a really good linux cross referencing website for code reference. On Thu, Dec 27, 2012 at 10:40 AM, Jonathan Neuschäfer j.neuschae...@gmx.net wrote: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: can anybody tell me how to look into source code, as most are hidden in kernel. You can find the Linux source code at http://kernel.org/ . for browsing the code unfortunately there is no good tool as in windows we have source insight.We can use wine in linux but that sucks. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Henrique Rodrigues http://www.dcc.ufmg.br/~hsr ___ 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: how to look for source code in kernel
On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: can anybody tell me how to look into source code, as most are hidden in kernel. You can find the Linux source code at http://kernel.org/ . for browsing the code unfortunately there is no good tool as in windows we have source insight.We can use wine in linux but that sucks. Funny you say that! Never heard of cscope, ctags ? -Amit ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: how to look for source code in kernel
On Fri, Dec 28, 2012 at 10:42 AM, amit mehta gmate.a...@gmail.com wrote: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: can anybody tell me how to look into source code, as most are hidden in kernel. You can find the Linux source code at http://kernel.org/ . for browsing the code unfortunately there is no good tool as in windows we have source insight.We can use wine in linux but that sucks. Funny you say that! Never heard of cscope, ctags ? It is not as convenient as source insight or is it? -Amit ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Bad magic number and
On Thu, Dec 27, 2012 at 8:29 PM, sham pavman shampavman...@gmail.comwrote: I've tried that as well.. and the result is the same. I've little idea on how to start debugging. If you can provide some info it would be great. What does dumpe2fs -h give ? Thanks - Manish Thanks On Fri, Dec 28, 2012 at 6:37 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... On Wed, Dec 26, 2012 at 12:19 PM, sham pavman shampavman...@gmail.com wrote: SNIP mkfs -t ext4 /dev/sdb mke2fs 1.42 (29-Nov-2011) try using mkfs.ext4 instead -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Thanks - Manish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Bad magic number and
Hi, On Fri, Dec 28, 2012 at 10:57 AM, Manish Katiyar mkati...@gmail.com wrote: On Thu, Dec 27, 2012 at 8:29 PM, sham pavman shampavman...@gmail.com wrote: I've tried that as well.. and the result is the same. I've little idea on how to start debugging. If you can provide some info it would be great. Check your mkfs and mount commands. You have specified the whole disk instead of partition. It should be... mkfs -t ext4 /dev/sdb1 mount -t ext4 /dev/sdb1 /mnt/test Regards. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Bad magic number and
Here is the output # dumpe2fs -h /dev/sdb dumpe2fs 1.42 (29-Nov-2011) dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb Couldn't find valid filesystem superblock. On Fri, Dec 28, 2012 at 10:57 AM, Manish Katiyar mkati...@gmail.com wrote: On Thu, Dec 27, 2012 at 8:29 PM, sham pavman shampavman...@gmail.comwrote: I've tried that as well.. and the result is the same. I've little idea on how to start debugging. If you can provide some info it would be great. What does dumpe2fs -h give ? Thanks - Manish Thanks On Fri, Dec 28, 2012 at 6:37 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... On Wed, Dec 26, 2012 at 12:19 PM, sham pavman shampavman...@gmail.com wrote: SNIP mkfs -t ext4 /dev/sdb mke2fs 1.42 (29-Nov-2011) try using mkfs.ext4 instead -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Thanks - Manish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Bad magic number and
Hi, On Fri, Dec 28, 2012 at 11:35 AM, sham pavman shampavman...@gmail.com wrote: Here is the output # dumpe2fs -h /dev/sdb dumpe2fs 1.42 (29-Nov-2011) dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb Couldn't find valid filesystem superblock. Try $partprobe $fdisk -l Regards ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Bad magic number and
On Fri, Dec 28, 2012 at 11:44 AM, Prashant Shah pshah.mum...@gmail.comwrote: Hi, On Fri, Dec 28, 2012 at 11:35 AM, sham pavman shampavman...@gmail.com wrote: Here is the output # dumpe2fs -h /dev/sdb dumpe2fs 1.42 (29-Nov-2011) dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb Couldn't find valid filesystem superblock. Try $partprobe $fdisk -l No use.. # partprobe root@Not-Specified:/home/z# fdisk -l Disk /dev/sda: 60.0 GB, 60022480896 bytes 255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000539c8 Device Boot Start End Blocks Id System /dev/sda1 *20487812505539061504 83 Linux /dev/sda27812710282124799 19988495 Extended /dev/sda57812710482124799 1998848 82 Linux swap / Solaris Disk /dev/sdb: 300.1 GB, 300101401088 bytes 255 heads, 63 sectors/track, 36485 cylinders, total 586135549 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x --- Does this look fishy? Disk /dev/sdb doesn't contain a valid partition table Regards ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies