data abort in paging_init call in kernel
I'm doing kernel porting to arm926 based FPGA board,very minimal setup. Only UART and timer devices are available as part of FPGA. Below are the details #define PLAT_PHYS_OFFSET 0x80000000 (with 128 MB SDRAM) #define CONFIG_PAGE_OFFSET 0xc0000000 Kernel command parameter has 64MB for mem (mem=64M) Memory layout: 0xc000_0000 - 0xc800_0000 (128MB virtual mapped SDRAM) initramfs from 0xC200_0000 - 0xC280_0000 (8MB) vmalloc is used from 0xc400_0000 - 0xc800_0000 CONFIG_HIGH_MEM not used device registers are accessed by using ioremap() calls If I enable data cache and debug with JTAG, Kernel ends up in data abort exception vector address after paging_init() call. I think there is some problem in memory setup.Can some one suggest how to overcome this... Thanks, pcuser
Hi, On Wed, Mar 14, 2012 at 8:51 AM, pcuser p <pcuser.mails@gmail.com> wrote:
I'm doing kernel porting to arm926 based FPGA board,very minimal setup. Only UART and timer devices are available as part of FPGA.
Below are the details #define PLAT_PHYS_OFFSET 0x80000000 (with 128 MB SDRAM) #define CONFIG_PAGE_OFFSET 0xc0000000
Kernel command parameter has 64MB for mem (mem=64M)
Memory layout:
0xc000_0000 - 0xc800_0000 (128MB virtual mapped SDRAM) initramfs from 0xC200_0000 - 0xC280_0000 (8MB) vmalloc is used from 0xc400_0000 - 0xc800_0000
CONFIG_HIGH_MEM not used
device registers are accessed by using ioremap() calls
If I enable data cache and debug with JTAG, Kernel ends up in data abort exception vector address after paging_init() call.
You should include the full output of the abort. What we really need to see is the address that the abort is complaining about. Generally, it's one of the device registers not being mapped in properly (either for your timer or your UART). If you let the code continue to run, it should write the exception message into the log buffer, which you can find in __log_buf -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com
Try to disable trace32 data abort trigger,when you are debugging linux,there will be many reasonable data abort generated, just ignore them. 在 2012-3-14,23:52,"pcuser p" <pcuser.mails@gmail.com> 写道:
I'm doing kernel porting to arm926 based FPGA board,very minimal setup. Only UART and timer devices are available as part of FPGA.
Below are the details #define PLAT_PHYS_OFFSET 0x80000000 (with 128 MB SDRAM) #define CONFIG_PAGE_OFFSET 0xc0000000
Kernel command parameter has 64MB for mem (mem=64M)
Memory layout:
0xc000_0000 - 0xc800_0000 (128MB virtual mapped SDRAM) initramfs from 0xC200_0000 - 0xC280_0000 (8MB) vmalloc is used from 0xc400_0000 - 0xc800_0000
CONFIG_HIGH_MEM not used
device registers are accessed by using ioremap() calls
If I enable data cache and debug with JTAG, Kernel ends up in data abort exception vector address after paging_init() call.
I think there is some problem in memory setup.Can some one suggest how to overcome this...
Thanks, pcuser
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (3)
-
Dave Hylands -
pcuser p -
弋天 卜