LTIB and linux-2.6.29

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LTIB and linux-2.6.29

1,374 Views
admin
Specialist II

I am using the LTIB iso (m53xxevb-20081215-ltib.iso) from Freescale.  The target is an MCF5329 EVB.  In an effort to get around the known issues with Gadgetfs in the 2.6.26 kernel, I am attempting to use the newer 2.6.29 (either .1, RC1 or RC2) kernel.  I have installed the source tree from kernel.org, and pointed LTIB at the local tree.  Everything compiles just fine, but vmlinux refuses to link giving:

 

/opt/freescale/usr/local/gcc-4.3.45-uclibc-0.9.45/m68k-uclinux/bin/m68k-uclinux-ld.real: error: no memory region specified for loadable section `.init.rodata'

 

as the error.  I have not applied any uClinux or MCFXXX patches to the tree, and was wondering if there were some that I needed?

 

Also, I get the same error when attempting to use any of the 2.6.28 kernels.

 

Any ideas?

 

Baring a solution to the 2.6.29 kernels, does anyone use gadgetfs with an older kernel they could recommend?

 

Thanks.

Labels (1)
0 Kudos
2 Replies

279 Views
fsl_linux_spt
Contributor III

Take a look at the spec file for the 2.6.26 kernel provided in the bsp (ltib_install/dist/lfs-5.1/kernel/kernel-2.6.26-uc0.spec.in).  It lists the patches applied to the kernel.org 2.6.26 kernel to add support for and fix issues with the coldfire targets.

 

The 0011--added-textunlikely-section-required-for-new-toolcha.patch may be what you need.

 

- Coray

0 Kudos

279 Views
admin
Specialist II

Thanks for the reply.  I've been unsuccessful at finding anything in the patch files that relates.  It would appear the textunlikely-section is already present in the 2.6.29 kernels, but there were some changes to the roinit section between 2.6.26 and 2.6.28/9.

 

A quick check at lx4.org shows the m68knommu configuration has had this issue since 2.6.27-git1, and looking at the diffs from 2.6.26 to 2.6.29 is just overwhelming.

 

In rethinking the actual goal, I've given up on gadgetfs, and decided to go ahead and write a kernel gadget driver.  We are shooting for a USBTMC compliant device, and g_serial, g_zero, and g_skeleton all seem like good starting points, and they all work with the 2.6.26-uc0 kernel as shipped.

 

Thanks again

 

0 Kudos