mxs_spi_enc_pin_init() is not called although I enabled enc28j60 driver.
itmicro
Пункты: 2274
Регистрация: 20.10.2010
Hi,
I configure the ltib with network settings including enc28j60 driver. So enc28j60.c is compiled properly. After I boot up the board, I observe that mxs_spi_enc_pin_init() is not called. So the eth0 is not initialised properly.I get below output in console :
Цитата Setting up networking on loopback device:
Setting up networking on eth0:
ifconfig: SIOCSIFADDR: No such device
Starting inetd:
starting pid 831, tty '': '/sbin/getty -L ttyAM0 115200 vt100'
arm-none-linux-gnueabi-gcc (GCC) 4.1.2
root filesystem built on Mon, 31 Jan 2011 12:02:57 +0200
Freescale Semiconductor, Inc.
freescale login: root
What may be wrong with that?
Regards,
sasamy
Пункты: 83558
Регистрация: 14.08.2009
Цитата Hi,
I configure the ltib with network settings including enc28j60 driver. So enc28j60.c is compiled properly. After I boot up the board, I observe that mxs_spi_enc_pin_init() is not called.
You are using our patch? Check that the code is present
arch/arm/mach-mx23/mx23evk.c
static struct spi_board_info spi_board_info[] __initdata = {
#if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE)
{
.modalias = "enc28j60",
.max_speed_hz = 6 * 1000 * 1000,
.bus_num = 1,
.chip_select = 0
itmicro
Пункты: 2274
Регистрация: 20.10.2010
It is ok now. Thank you for your reply.
Цитата Цитата Hi,
I configure the ltib with network settings including enc28j60 driver. So enc28j60.c is compiled properly. After I boot up the board, I observe that mxs_spi_enc_pin_init() is not called.
You are using our patch? Check that the code is present
arch/arm/mach-mx23/mx23evk.c
static struct spi_board_info spi_board_info[] __initdata = {
#if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE)
{
.modalias = "enc28j60",
.max_speed_hz = 6 * 1000 * 1000,
.bus_num = 1,
.chip_select = 0