From: Prakash kanthi <pkanthi@yahoo.com>
To: brian.auld@adic.com, linuxppc-embedded@lists.linuxppc.org
Subject: Re: Kernel build: not recognizing 'tlbre' instruction
Date: Fri, 7 Feb 2003 09:02:13 -0800 (PST) [thread overview]
Message-ID: <20030207170213.99854.qmail@web41203.mail.yahoo.com> (raw)
In-Reply-To: <995FF289C9D69747A09E42992644595405B23656@penguin.adic.com>
Brian,
Following could be the problems.
1. Compiler flags.
2. 'mmu' pin is not grounded in PPC configuration.
GoodLuck,
Prakash
--- brian.auld@adic.com wrote:
>
> Using ELDK to run embedded linux on 440GP eval
> board.
>
> After getting the above running, I decided to test
> the waters with a custom
> kernel another group in our company has used on a
> custom 440GP board
> (Ultimately, the directive from mgmt is to leverage
> the work done on this
> other custom board). This group used a Mac as their
> development server as
> opposed to cross-developing on an x86.
>
> When I try to build this 'custom kernel', I get the
> following error:
>
> ...
> Unrecognized opcode: 'tlbre' in the file
> arch/ppc/kernel/misc.S
> ...
>
> I diffed the custom kernel against the kernel I'm
> successfully running on
> ebony (ELDK kernel), and have attached it below. It
> seems the the previous
> version of misc.S (1.76) had a smattering of 'tlbre'
> commands, but in 1.77
> they are gone.
>
> Any thoughts or background? I read some background
> info on the mailing list
> about the use of mcpu=403/405 for ppc_4xx. I also
> read the documentation for
> the 405 and compared it to the 440GP, and they both
> support the tlbre
> opcode.
>
> Why is the ELDK not recognizing this opcode? I also
> tried cross-compiling
> this kernel with a backup 'made by hand' gnu
> tool-chain and I got the same
> error.
>
> General question: Is there a way to get previous
> versions of
> linuxppc_2_4_devel kernels?
>
>
==========================================================================
> --- linuxppc/arch/ppc/kernel/misc.S 2003-02-04
> 10:02:50.000000000 -0500
> +++ custom-kernel/arch/ppc/kernel/misc.S 2003-02-06
> 06:56:16.000000000 -0500
> @@ -1,5 +1,5 @@
> /*
> - * BK Id: SCCS/s.misc.S 1.77 10/09/02 10:47:02
> paulus
> + * BK Id: SCCS/s.misc.S 1.76 09/20/02 07:53:45
> trini
> */
> /*
> * This file contains miscellaneous low-level
> functions.
> @@ -478,6 +478,42 @@
> #endif /* CONFIG_40x */
> blr
>
> +
> +/*
> + * invalidate_dcache_range(unsigned long start,
> unsigned long stop)
> + */
> +_GLOBAL(invalidate_icache_range)
> + li r5,L1_CACHE_LINE_SIZE-1
> + andc r3,r3,r5
> + subf r4,r3,r4
> + add r4,r4,r5
> + srwi. r4,r4,LG_L1_CACHE_LINE_SIZE
> + beqlr
> + mtctr r4
> +
> +1: icbi 0,r3
> + addi r3,r3,L1_CACHE_LINE_SIZE
> + bdnz 1b
> + sync /* wait for icbi's to get to ram */
> + blr
> +
> +
> +/*
> + * void get_tlb(int* entry, int index)
> + */
> +_GLOBAL(get_tlb)
> + tlbre r0, r4, 0
> + stw r0, 4(r3)
> + mfspr r0, SPRN_MMUCR
> + andi. r0, r0, PPC440_MMUCR_TID
> + stw r0, 0(r3)
> + tlbre r0, r4, 1
> + stw r0, 8(r3)
> + tlbre r0, r4, 2
> + stw r0, 12(r3)
> + blr
> +
> +
> /*
> * Flush instruction cache.
> * This is a no-op on the 601.
>
============================================================================
>
> Thanks
>
> -- Brian
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-02-07 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-07 16:23 Kernel build: not recognizing 'tlbre' instruction brian.auld
2003-02-07 17:02 ` Prakash kanthi [this message]
2003-02-07 17:33 ` Matt Porter
-- strict thread matches above, loose matches on Subject: below --
2003-02-07 19:03 brian.auld
2003-02-07 21:01 ` Matt Porter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030207170213.99854.qmail@web41203.mail.yahoo.com \
--to=pkanthi@yahoo.com \
--cc=brian.auld@adic.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).