Linux 2.6 port for M8260 PPC

Vijay Padiyar vijay_padiyar at hotmail.com
Tue Mar 8 01:49:09 EST 2005


Hi there

Ya I found that the code related to the MDIO implementation (CONFIG_MDIO)
hasn't been completely ported yet for the 2.6 kernel. Therefore, disabling
the option CONFIG_MDIO in menuconfig should solve the problem.

In case you wish to retain the option, you can copy the appropriate header
files from the 2.4 kernel source into the 2.6 tree. I think the relevant
file is kernel/context.c. Also, in another file, they're referring to a
structure tq_struct, which is defined in linux/tqueue.h. You can copy this
file to your 2.6 source tree as well.

However, this is not recommended, since we're mixing code from two separate
kernels. The tqueue.h header file is related to task queues, which have been
replaced in 2.6 with work queues. It's just that the file calling tq_struct
hasn't been ported yet, apparently. Therefore, it's best to omit the
erroneous code by not selecting the appropriate option in menuconfig. In
this case, all you need to do is disable CONFIG_MDIO.

Regards

Vijay Padiyar

http://www.vijaypadiyar.eu.tf
----- Original Message ----- 
From: "Ramsay, Jim" <jimr at artesyncp.com>
To: <vijay_padiyar at hotmail.com>
Sent: Monday, March 07, 2005 7:56 PM
Subject: Linux 2.6 port for M8260 PPC


> Hi,
>
> I found this using google, going through EXACTLY the same problems trying
to
> port some 2.4 code we have to 2.6.
>
> Did you find out how to get around these problems?
>
> Thanks,
>
> Jim
>
>
>
> Hi all I wish to discuss some strange issues that I faced with respect to
> the Linux 2.6.8 kernel (downloaded from kernel.org). Firstly, I wish to
know
> whether this has been known to work on an MPC8260 PowerPC target.
Secondly,
> when I tried to compile the Linux kernel with my toolchain (built with Dan
> Kegel's crosstool for the PowerPC 603e core, which is what my processor
> has), I got some errors which I found to rather queer after investigation.
> Firstly, let me state the errors that I got:
> ------------------------------------------------------ LD init/built-in.o
LD
> .tmp_vmlinux1 arch/ppc/8260_io/built-in.o(.text+0x103c): In function
> `mii_queue_relink': arch/ppc/8260_io/fcc_enet.c:1254: undefined reference
to
> `schedule_task' arch/ppc/8260_io/built-in.o(.text+0x1074): In function
> `mii_queue_config': arch/ppc/8260_io/fcc_enet.c:1263: undefined reference
to
> `schedule_task' ------------------------------------------------------ On
> further investigation, I find that 'schedule_task()' is simply not defined
> anywhere in the 2.6.8 kernel sources. This is quite wierd! However, it is
> defined in a file 'context.c' (linux-src/kernel) in the 2.4.27 kernel
> sources, which we were using earlier. How is it that a function is being
> called but its definition has been removed from the sources? Another such
> example is with the structure 'tq_struct'. It is referred to in the file
> 'fcc_enet.c' (linux-src/arch/ppc/8260_io) but it's not defined anywhere!
> Again, after checking in the 2.4.27 sources, I find that it's defined in
the
> file 'tqueue.h' (linux-src/include/linux)! A third thing is that the
2.4.27
> kernel source file 'uart.c' (linux-src/arch/ppc/cpm2_io) is not present in
> the corresponding folder in the 2.6.8 source (linux-src/arch/ppc/8260_io).
> There is one 'uart.c' in the folder '8xx_io', but it doesn't get compiled
> during the kernel build process. Will my UART work correctly with this
> build? Can someone please tell me if there's some explanation for this
that
> I'm unaware of? Which would be the proper forum to report this? Again I
> would like to ask: Has the 2.6.8 kernel been tested successfully on the
> MPC8260 PowerPC platform? Regards Vijay Padiyar
>
>
>
>
>



More information about the Linuxppc-embedded mailing list