|
|
|
Re: make command on target gives segmentation fault | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
Hello Russel, Thank you very much for the response. I am sorry for incomplete details. Here are details of my board and the changes what I did for my port. I am working on ARMv4 Compatible processor, FA526, ARM922 compatible. I have 16KB Instruction and Datacache, 2 way Assoctivity 4 ways Unified TLBS Linux kernel linux-2.6.16.11 Changes were made in 1. linux/arch/arm/mm/copypage-v4wb.S in function copyuser-page and clearuser-page, instead of clean and invalidating single entry for cache, I gave completely clean and Invalidating cache as shown below mcr p15, 0, ip, c7, c14, 0 . when I tried giving single entry I get segmentation fault often when I run any commands on shell. 2. linux/arch/arm/mm/proc-x.S (Here I used proc-arm922 as my refernce) i. in function flush_user_cache_all I couldn't do single entry clean and invalidating the cache, I have to again go for complete cache cleaning and invalidating, where I have to replace the entire loop to mcr p15, 0, ip, c7, c14, 0 ii. similarly in function cpu_x_switch_mm I had to replace the the loop of clean and invalidating the single entry I had to replace the whole cache as shown above. After doing above changes I was able to get console and shell prompt, even applications does runs which are compliled on the host, but when I tried compiling on target I get segmentation fault. Also am I need to do any changes to the functions given below related to clean and invalidating cache? arm922_coherent_kern_range, Now let me try the CONFIG_DEBUG_USER, and let you know the details for sure. Regards Subbu On 6/24/06, Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> wrote:
On Sat, Jun 24, 2006 at 02:13:32PM +0530, Subramani Venkatesh wrote: > Previously I mailed to the group with respect to cache problem, that is > switching my kernel to usr application program "/sbin/init" to get login > prompt , now after modifing cache related application in > linux/arch/arm/mm/*.S I am able to run /sbin/init and login prompt too, now > I am currently facing a problem related to segmentaion fault when I run some > of the applications like make command and other few in lmbench. > Can some one suggest me where could be the problem. Your message is soo vague that it's impossible to make any suggestions. There's no information on the CPU you're using, no information on the modifications, no information on what media you're using for userspace, etc. Also, check whether you get kernel output when your applications SEGV, and if you do, post that output as well. If not, enable CONFIG_DEBUG_USER and pass 'user_debug=31' to the kernel and reproduce.
------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |