2008-10-01 05:08:46     Problem in editing rc file

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-10-01 05:08:46     Problem in editing rc file

Prathika R (INDIA)

Message: 62971   

 

Hi all,

 

I have got a driver module to be loaded on my uClinux board.These many days i used to copy those files to my board through ftp.And then say "insmod driver.ko" in the board.

 

I wanted to get rid of this and so i copied my driver modules to the path /root/'path to my uClinux dist'/vendors/Analog Devices/MyBoard folder.

 

I also edited the rc file in this folder like "insmod driver.ko"

 

I also added a line in Makefile :  $(ROMFSINST) /home/bfin/sys_soft/driver.ko

 

I recompiled my kernel.

 

While trying to insert driver.ko while booting, it comes out with an error like : module has no symbols.

 

When i checked, the actual file size of my driver is 65kB but on the board  after booting, when i checked in the path /home/bfin/sys_soft, the file size of my driver.ko is only 8kB.

 

Someone please help me in getting rid of this issue.

 

 

 

Regards,

 

Prathika

QuoteReplyEditDelete

 

 

2008-10-01 09:07:04     Re: Problem in editing rc file

Mike Frysinger (UNITED STATES)

Message: 62979   

 

ROMFSINST will automatically strip all files.  run `./tools/romfs-inst.sh` for usage help.

QuoteReplyEditDelete

 

 

2008-10-03 00:39:24     Re: Problem in editing rc file

Prathika R (INDIA)

Message: 63064   

 

hi Mike,

 

when i executed ./tools/romfs-inst.sh, in the help option it asks me specify the [options] and [src] and dst.

 

I think my options should be [-S] as it says there should be no stripping after installation.What should be my [src] and dst?

 

Please help in this regard.

 

 

 

Regards,

 

Prathika.R

QuoteReplyEditDelete

 

 

2008-10-03 02:41:23     Re: Problem in editing rc file

Mike Frysinger (UNITED STATES)

Message: 63067   

 

you wanted to know how to prevent stripping ... the help told you.  use the -S option.

QuoteReplyEditDelete

 

 

2008-10-03 04:33:15     Re: Problem in editing rc file

Prathika R (INDIA)

Message: 63089   

 

hi Mike,

 

these things are a bit new concepts for me(like linux and its concepts).thats y struggling  a bit.

 

when i tried executing ./tools/romfs-inst.sh -S

 

it again prints the help option for executing the romfs-inst.sh.

 

so i tried ./tools/romfs-inst.sh -S /"path to my board dir where i copied the driver.ko" -l /"path to romfs dir".

 

still it gives me only the help option for executin romfs-inst.sh.

 

I even tried recompiling the kernel after this.still my driver.ko is stripped.....

 

Can u please tell me where am i going wrong?

 

 

 

Regards,

 

Prathika.R

QuoteReplyEditDelete

 

 

2008-10-03 11:01:41     Re: Problem in editing rc file

Mike Frysinger (UNITED STATES)

Message: 63092   

 

you already had it working in your first post ... just add the -S option and be done

QuoteReplyEditDelete

Attachments

    Outcomes