UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor nicoa
Visitor
4,125 Views
Registered: ‎06-15-2011

Problems with Linux (2.6.37 kernel) on microblaze 8.10.a/spartan6

Hello there,

 

I'd like to report the following problems which occur on (at least) the platform and core mentioned above.

 

1. There is a problem with the lib optimised memcpy (Platform options -> Optimalized lib function), which results in seriously mangled strings that are copied with the strlcpy() function in the kernel. I can only guess what happens elsewhere, but I'm guessing it's not pretty. I've not had (nor am I likely to have any later) time to look into this.

 

2. Using CONFIG_EARLY_PRINTK (Kernel hacking -> Early printk function for kernel) breaks the system.

This is due to the reservation of TLB slot 63 by setup_early_printk() in arch/microblaze/kernel/early_printk.c with the function early_console_reg_tlb_alloc(). After more than 62 TLB misses, this gets overwritten and results in a kernel panic which cannot be displayed because the kernel has not yet initialised the console.

 

These things will have to be fixed sooner or later, but don't hold your breath for me to do it. I'm already running late in this project due to the bugs mentioned above.

 

Best regards,

 

Nico Augustijn,

Embedded software engineer,

Adeas.

0 Kudos
4 Replies
Xilinx Employee
Xilinx Employee
4,122 Views
Registered: ‎07-29-2011

Re: Problems with Linux (2.6.37 kernel) on microblaze 8.10.a/spartan6

Hi,

To do a quick check, I enabled CONFIG_EARLY_PRINTK and ONFIG_OPT_LIB_FUNCTION in the config file.I did not see any issue with Spartan6 (microblaze 8.10a).It would be great if you give more details of this problem that you had seen.

I tried this on the AXI based system.

 

Regards

Madhubala

 

 

0 Kudos
Visitor nicoa
Visitor
4,120 Views
Registered: ‎06-15-2011

Re: Problems with Linux (2.6.37 kernel) on microblaze 8.10.a/spartan6

Additional core configuration options (from my .config):
#
# Definitions for MICROBLAZE0
#
CONFIG_KERNEL_BASE_ADDR=0xc0000000
CONFIG_XILINX_MICROBLAZE0_FAMILY="spartan6"
CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1
CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
CONFIG_XILINX_MICROBLAZE0_USE_DIV=1
CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1
CONFIG_XILINX_MICROBLAZE0_USE_FPU=0
CONFIG_XILINX_MICROBLAZE0_HW_VER="8.10.a"
0 Kudos
Visitor nicoa
Visitor
4,118 Views
Registered: ‎06-15-2011

Re: Problems with Linux (2.6.37 kernel) on microblaze 8.10.a/spartan6

I should also add that mem is @ 0xC0000000 and all I/O in the 0x40000000 area.
0 Kudos
Xilinx Employee
Xilinx Employee
4,114 Views
Registered: ‎11-12-2007

Re: Problems with Linux (2.6.37 kernel) on microblaze 8.10.a/spartan6

Hi Nico,

 

Thanks for reporting this; we'll take a look and get it fixed.

 

Thanks,

Rob

0 Kudos