ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] PowerPC: Build fs_enet as module


From: Stuart Hughes
Subject: Re: [Ltib] PowerPC: Build fs_enet as module
Date: Fri, 18 Dec 2009 09:19:09 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Nirmala,

This is a kernel question not really an LTIB question.

As far as ltib goes, run: ./ltib -p kernel -c -f and that will unpack the kernel and allow you to configure it.

Regards, Stuart

Nirmala wrote:
Hi Stuart,
The kernel (2.6.25) is from kernel.org . Please see my earlier thread for more info:
http://lists.gnu.org/archive/html/ltib/2009-05/msg00044.html

In fact We did some u-boot code changes to make the second interface work. Now both eth0 and eth1 are enabled and works fine. However we have some performance issue while running SIP calls through asterisk in out embedded system. for some extent we nailed it down to the network inface problem , so to debug issue we need to build Ethernet driver as a module through ltib. as i mentioned earlier , building fs_enet fails with below errors, I would appreciate if you could guide me in building interface driver as module.

Thank You
Nirmala


Stuart Hughes wrote:
Hi Nirmala,

There is no kernel-2.6.25-mpc8272ads in the bitshrine/savannah in ltib-8-1-2-sv.tar.gz. It looks like it's from Freescale. To work around this you could re-configure the kernel and de-select the failing module (so it doesn't try to build it).

Regards, Stuart

Nirmala wrote:
Hi ,
I'm trying to build Ethernet driver fs_enet as module, but build
was not success.

Build environment has Linux Kernel Version 2.6.25 and Ltib Version 8.1.2 ( from bitshrine)

options selected from ltib configuration - > kernel config
-> Device Drivers
-> Network Device support
-> Ethernet (10 or 100Mbit)
M - Generic MII device support
M - FreeScale Ethernet Device
* - Chip has FCC Enable for ethernet
M - MDIO Driver for FCC


Below is the build snippet with error messages :
------------------------------------------------
Image Name: Linux-2.6.25
Created: Fri Dec 4 09:27:11 2009
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1192213 Bytes = 1164.27 kB = 1.14 MB
Load Address: 0x00000000
Entry Point: 0x00000000
+ grep -q '^CONFIG_MODULES=' ./.config
+ make ARCH=powerpc CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//'
modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CC [M] drivers/net/mii.o
CC [M] drivers/net/fs_enet/fs_enet-main.o
CC [M] drivers/net/fs_enet/mac-fcc.o
LD [M] drivers/net/fs_enet/fs_enet.o
CC [M] drivers/net/fs_enet/mii-bitbang.o
Building modules, stage 2.
MODPOST 32 modules
ERROR: "alloc_mdio_bitbang" [drivers/net/fs_enet/mii-bitbang.ko] undefined! ERROR: "free_mdio_bitbang" [drivers/net/fs_enet/mii-bitbang.ko] undefined!
ERROR: "cpm2_immr" [drivers/net/fs_enet/fs_enet.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
error: Bad exit status from
/home/nirmala/ltib-mpc8272ads-20080623/tmp/rpm-tmp.22420 (%build)

RPM build errors:
Bad exit status from
/home/nirmala/ltib-mpc8272ads-20080623/tmp/rpm-tmp.22420 (%build)
Build time for kernel-2.6.25-mpc8272ads: 392 seconds
Failed building kernel-2.6.25-mpc8272ads
f_buildrpms() returned an error, exiting
traceback:
main:501
---------------------------------------------------------------------------------------------------------------
Any advice would be appreciated.

Thank You,
Nirmala









reply via email to

[Prev in Thread] Current Thread [Next in Thread]