hard coded value for idcode field in struct cpu_table

2011-03-04 Thread Madhavi Manchala
Dear All,

I do not understand the value of idcode field in the struct cpu_table
i.e. the value is hard coded. I did not find that value in the user
manuals, also. The code is available at
linux/arch/arm/plat-s3c24xx/cpu.c file. Currently, I am trying to
implement the code for Samsung S3C2510A processor which is not
available in the current sources. Where can I find the idcode value
for Samsung S3C2510A processor?

Any ideas will be appreciated.

Thanks and  Regards,
Madhavi M.

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


Re: Network Drivers Master Slave

2011-03-04 Thread Alice Chan
Hi,

Have a look at bonding driver. This might help.

Best Regards,
Alice

2011/3/4 sugnan prabhu sugnan.pra...@gmail.com:

 Hello All,
          I have written two network drivers master0 and slave0, where the
 packets received by master0 interface will be forwarded to the slave0
 interface and vice versa. I have further linked the master0 interface to a
 usb driver in such way that, interface registered only on connecting the usb
 device. My requirement is that, when ever the master interface is up, slave
 interface should be brought up automatically and when the master device is
 disconnected then even the slave interface should be disconnected, so that
 the slave interface drops the data. Can some one give some pointer for doing
 this in a right way.
  I have been trying to understand the pernet device framework, can someone
 please explain it briefly.

 Thanks in advance,
 ___
 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: Any tool under linux to parsing BPB/Bs/FAT table?

2011-03-04 Thread loody
hi:
2011/3/4 Beraldo Leal bera...@beraldoleal.com:
 On Fri, Mar 04, 2011 at 10:28:58AM +0800, loody wrote:
 hi :

 But the disk did have dirs and files
 # mount
 /dev/sdc1 on /media/disk type vfat (rw)
 # ls /media/disk
 ifrename  iwconfig  iwevent  iwgetid  iwlist  iwpriv  iwspy  strace
 strace.output  strace.output.tar.bz2
 #
 Please, print the ./fat-util info /dev/sdc1 output
here it is :

# ./fat-util info /dev/sdc1
JMP opcodes: EB 58 90
OEM Name:  mkdosfs
Bytes per sector: 512
Sectors per cluster: 8
# reserved sectors: 32
# FATs on volume: 2
# root directory entries: 0
Sectors in volume: 0
Media descriptor type: 248
Sectors per FAT: 0
Sectors per Track: 62
# heads: 63
# hidden sectors: 0
Huge sectors in volume: 3941092
FAT Type: 32
Drive number: 0
Signature: 29
Volume ID: -1598503492
Volume Label:
FAT Type: FAT32
Root Cluster: 2
#

appreciate your help,
miloody

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


Re: what is the kernel symbol for user space grant access driver

2011-03-04 Thread tbartcz
I'm not sure if I got your point, but I guess you want to make sure that code 
activated by your configuration option is included into the kernel image.
Let me illustrate that by example: PC parallel port.  (Device Drivers- 
Parallel Port - PC-style hardware). This option is associated with 
CONFIG_PARPORT_PC configuration option. This option includes the following 
source file drivers/parport/parport_pc.c. Looking at this file you will see 
that it exports parport_pc_probe_port method. 
We can run the following command to see if it was included into the kernel 
image:
nm vmlinux | grep  parport_pc_unregister_port
and you will get:
8187b5fe r __kstrtab_parport_pc_unregister_port
81860080 r __ksymtab_parport_pc_unregister_port
81283b58 T parport_pc_unregister_port

when we turn off this option for the  command
nm vmlinux | grep  parport_pc_unregister_port
is null

Regards
Tomasz Bartczak




Mozesz kupic dom juz nawet za 120 tys. zl
Sprawdz  http://linkint.pl/f2937


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


Re: what is the kernel symbol for user space grant access driver

2011-03-04 Thread Tapas Mishra
On Fri, Mar 4, 2011 at 11:19 PM,  tbar...@interia.pl wrote:
 I'm not sure if I got your point, but I guess you want to make sure that code 
 activated by your configuration option is included into the kernel image.
 Let me illustrate that by example: PC parallel port.  (Device Drivers- 
 Parallel Port - PC-style hardware). This option is associated with 
 CONFIG_PARPORT_PC configuration option. This option includes the following 
 source file drivers/parport/parport_pc.c. Looking at this file you will see 
 that it exports parport_pc_probe_port method.
 We can run the following command to see if it was included into the kernel 
 image:
 nm vmlinux | grep  parport_pc_unregister_port
 and you will get:
 8187b5fe r __kstrtab_parport_pc_unregister_port
 81860080 r __ksymtab_parport_pc_unregister_port
 81283b58 T parport_pc_unregister_port

 when we turn off this option for the  command
 nm vmlinux | grep  parport_pc_unregister_port
 is null

See what you mentioned can be done only if one knows the option
parport_pc_unregister_port
or is aware if where it exists.
Just imagine if the person does not knows the file name or variable
name then how will he get it.
That is what I mentioned.I finally think that I got solution for it.
Just go the concerned option and press a question mark over it.
It will show you in background the variable associated with it.

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


Re: Any tool under linux to parsing BPB/Bs/FAT table?

2011-03-04 Thread loody
hi Beraldo:
 On Fri, Mar 04, 2011 at 08:09:17PM +0800, loody wrote:
 hi:
 # ./fat-util info /dev/sdc1
 JMP opcodes: EB 58 90
 OEM Name:  mkdosfs
 Bytes per sector: 512
 Sectors per cluster: 8
 # reserved sectors: 32
 # FATs on volume: 2
 # root directory entries: 0
 Sectors in volume: 0
 Media descriptor type: 248
 Sectors per FAT: 0
 Sectors per Track: 62
 # heads: 63
 # hidden sectors: 0
 Huge sectors in volume: 3941092
 FAT Type: 32
 Drive number: 0
 Signature: 29
 Volume ID: -1598503492
 Volume Label:
 FAT Type: FAT32
 Root Cluster: 2
 #

 Hi loody, I think this is a bug.

 I never try this tool with a real partition, just with img files:

  $ dd if=/dev/zero of=/tmp/img2 bs=521 count=10
  $ mkdosfs /tmp/img2
  $ mount -o loop /tmp/img2 /media/fat
  $ mkdir /media/fat/teste2
  $  /media/fat/teste
  $ cp /etc/passwd /media/fat/
  $ umount /media/fat
  $ ./fat-util list / /tmp/img2
    2 file(s), 1 dir(s)
    -a        0 2011 Mar 04 TESTE
    d-        0 2011 Mar 04 TESTE2
    -a     2869 2011 Mar 04 PASSWD

 Maybe the tool is not ready for real partitions! Sorry...
Actually I think you did a great job, at least you provide a tool for
newbies like me to have a chance to learn file system.


What is the difference between real partition and image?
for kernel, they are nothing but a place to write file systems, right?
Appreciate your help,
miloody
it is fine.

what is the diff

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