toolchain used for distributed kernel on ls2

35 views
Skip to first unread message

Niall Parker

unread,
Mar 28, 2012, 4:00:00 PM3/28/12
to linux...@googlegroups.com
Hello,

I'm trying to add a few extra modules to my ls2 but I'm getting a seg
fault when I load them after building the kernel source from the ftp
site with the default arm-linux-gnueabi-gcc cross compiler available
from the emdebian repos (arm-linux-gnueabi-gcc (Debian 4.3.2-1.1) 4.3.2)

I suspect incompatibility between my cross compiler and that used for
the original build.

Is there a way to find out what gcc version was used on original kernel
supplied ? (uname -a gives
Linux ls2 2.6.36-rc3+ #39 Sat Jun 25 21:15:26 MST 2011 armv5tejl GNU/Linux
) ? The ftp site doesn't include the toolchain, just refers to
crosstool-ng.

I realize I could just update the kernel and all existing modules on my
board but at present I have only remote access via ssh, no serial
console/u-boot etc.

any suggestions appreciated, thanks ...

... Niall

Paul Thomas

unread,
Mar 28, 2012, 4:09:57 PM3/28/12
to linux...@googlegroups.com
I think this is what you want:
http://linuxstamp.budgetdedicated.com/index.php?dir=&file=arm-unknown-linux-gnueabi-20090309.tar.bz2

thanks,
Paul

> --
> You received this message because you are subscribed to the Google Groups
> "linuxstamp" group.
> To post to this group, send email to linux...@googlegroups.com.
> To unsubscribe from this group, send email to
> linuxstamp+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/linuxstamp?hl=en.
>

Niall Parker

unread,
Mar 29, 2012, 1:53:29 PM3/29/12
to linux...@googlegroups.com
On 12-03-28 01:09 PM, Paul Thomas wrote:
> I think this is what you want:
> http://linuxstamp.budgetdedicated.com/index.php?dir=&file=arm-unknown-linux-gnueabi-20090309.tar.bz2
I tried the toolchain above and after installing the freshly compiled
modules using insmod, modprobe or lsmod all hang (device wait according
to ps) instead of a segfault. Comparing the modules just compiled with
those already on the ls2, there is an additional flag set (SYSV) but
otherwise they appear to be equivalent.

I have been assuming that the .config provided with the kernel source on
the ftp site was the correct starting point (just added the extra
modules I was looking for) but perhaps there are multiple configs
possible ? Unfortunately the /proc/config.gz wasn't included (no doubt
to save spave) or I could have just pulled it from the running kernel.

If you have any other thoughts please let me know, otherwise this will
probably have to wait a couple months till I can get u-boot access to
replace the kernel.

Thanks.

... Niall

Paul Thomas

unread,
Mar 29, 2012, 2:04:29 PM3/29/12
to linux...@googlegroups.com
That should work. Are you doing the normal options i.e. 'make ARCH=arm
CROSS_COMPILE=arm-unknown-linux-gnueabi- uImage' ?

Niall Parker

unread,
Apr 4, 2012, 5:00:57 PM4/4/12
to linux...@googlegroups.com
On 12-03-29 11:04 AM, Paul Thomas wrote:
> That should work. Are you doing the normal options i.e. 'make ARCH=arm
> CROSS_COMPILE=arm-unknown-linux-gnueabi- uImage' ?
I tried that and still got segfaults (was using the default make target
previously) but after starting again from scratch (kernel tarball from
ftp site) I got it working ... thanks for the help!

... Niall

Reply all
Reply to author
Forward
0 new messages