Skip to contentSkip to conversation

2.6.x with TQM860L

DISCUSSION Karim Yaghmour 3 participants 5 messages Apr 11, 2005 – Apr 21, 2005

lore
Share & tools
lore
#0 lore raw

I've been trying to get a 2.6.x kernel working with a TQM860L board with little success. I can get 2.6.11.6 to boot and _sometimes_ get to a shell, but most of the times it dies while starting init. From reading the archives, this looks very much like an SDRAM config issue (i.e. dies mostly when bursting.) Has anyone on this list got a 2.6.x kernel working with the TQM860L?

Thanks,

Karim

Signature · 3 lines
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || [email protected] || 1-866-677-4546
#1 lore raw
Quoted 10 lines · Karim Yaghmour

I've been trying to get a 2.6.x kernel working with a TQM860L board with little success. I can get 2.6.11.6 to boot and _sometimes_ get to a shell, but most of the times it dies while starting init. From reading the archives, this looks very much like an SDRAM config issue (i.e. dies mostly when bursting.) Has anyone on this list got a 2.6.x kernel working with the TQM860L?

Thanks,

Karim

Karim hi

You need the following small patch.

For all the gory details follow the thread
"8xx v2.6 TLB problems and suggested workaround"

Latest 2.6.12-rc2 works for me.

I don't know if there are any specific problems with TQM860L.

Please be aware that the serial driver has changed

    arch/ppc/8xx_io/uart.c -> drivers/serial/cpm_uart

Also if you use the FEC do give a whirl at drivers/net/fec_8xx.

Regards

Pantelis

arch/ppc/mm/init.c +4 -3
@@ -620,9 +620,10 @@
 		struct page *page = pfn_to_page(pfn);
 		if (!PageReserved(page)
 		    && !test_bit(PG_arch_1, &page->flags)) {
-			if (vma->vm_mm == current->active_mm)
-				__flush_dcache_icache((void *) address);
-			else
+			if (vma->vm_mm == current->active_mm) {
+				_tlbie(address);
+				__flush_dcache_icache((void *)address);
+			} else
 				flush_dcache_icache_page(page);
 			set_bit(PG_arch_1, &page->flags);
 		}
#2 lore raw
Quoted 4 lines · Pantelis Antoniou

You need the following small patch.

For all the gory details follow the thread
"8xx v2.6 TLB problems and suggested workaround"

Thanks. I haven't tried the actual patch you sent, but Marcelo's patch does work with the TQM860L.

Karim

Signature · 3 lines
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || [email protected] || 1-866-677-4546
#3 lore raw
In reply to Karim Yaghmour
Quoted 7 lines · In message <[email protected]> you wrote:

I've been trying to get a 2.6.x kernel working with a TQM860L board with little success. I can get 2.6.11.6 to boot and _sometimes_ get to a shell, but most of the times it dies while starting init. From reading the archives, this looks very much like an SDRAM config issue (i.e. dies mostly when bursting.) Has anyone on this list got a 2.6.x kernel working with the TQM860L?

No, in this case it is not a SDRAM issue. I understand that you're using U-Boot on the board, and this is one of our reference platforms and among the best tested systems with U-Boot.

Did you apply Marcelo's patch?

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Nobody goes to that restaurant anymore. It's too crowded.
#4 lore raw
Quoted 5 lines · Wolfgang Denk

No, in this case it is not a SDRAM issue. I understand that you're using U-Boot on the board, and this is one of our reference platforms and among the best tested systems with U-Boot.

Did you apply Marcelo's patch?

... Karim returns to mailing list with brown bag on his head ...

hmm... I keep telling newbies to read the archives ... lucky for me I actually got intelligent replies.

I figured the TQM board ought to not have that type of problem, but I just couldn't nail down the real problem. So yes, after having tried Marcelo's patch, things work fine. However, noe that 2.6.11.6 doesn't work out of the box for the board (i.e. doing "make TQM860L_defconfig" doesn't yield a functional config.) I had to manually hack a config together for it to actually work.

Thanks,

Karim

Signature · 3 lines
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || [email protected] || 1-866-677-4546