Hello,

Here are few things that you might want to check :

Le samedi 29 mars 2008, RHS Linux User a écrit :
> Hi All,
>
>    I am pretty sure that the OpenWRT is still NOT compiling the Linux
> kernel and modules for mips1 when the main menuconfig "Advanced
> configuration options (for developers)"  "-mips1 -march=r3000
> -mtune=r3000" flag is given.
>
>    The packages seem to compiled correctly for mips1, but when I reverse
> assemble the Linux binary I still see non-mips1 instructions such as MOVN,
> etc.

Make sure you did not choose MIPS32R1 as the default CPU in your kernel 
configuration. Your arhictecture should select CPU_R3000 with additionnal 
options.

>
>    So far I haven't discovered where this problem is actually coming from.
> I have tried changing various Config.in, etc. but still have yet to really
> change things.
>
>    ANY further suggestions would be greatly appreciated!

Please also make sure that the compiler is using the right CFLAGS, you should 
add an entry in toolchain/Config.in for your target to define the right 
CFLAGS :

--- toolchain/Config.in (revision 10685)
+++ toolchain/Config.in (working copy)
@@ -56,6 +56,7 @@
        default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_rdc
        default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if 
mipsel || mips
        default "-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time" if 
armeb || arm
+       default "-Os -pipe -mips1 -mtune=r3k" if TARGET_r3000
        default "-Os -pipe -funit-at-a-time"
        help
          Optimizations to use when building for the target host.

By the way, which MIPS core from opencores do you use ? 

Would be highly interesting to support your target when it is ready.

Thanks.


>    Thanks in advance for your time and help.
>
>    wiz
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



-- 
Best regards, Florian Fainelli
Email : [EMAIL PROTECTED]
http://openwrt.org
-------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to