Ник:
Пароль:

Контакты

E-mail: info@starterkit.ru
тел.: +7 922 680-21-73
тел.: +7 922 680-21-74
Телеграм: t.me/starterkit_ru
Партнеры:
otladka.com.ua - г.Киев

Способы оплаты

User Info


Добро пожаловать,
Guest

Регистрация или входРегистрация или вход
Потеряли пароль?Потеряли пароль?

Ник:
Пароль:

ПользователейПользователей:3
Поисковых ботовПоисковых ботов:2
ГостейГостей:1

ОбновитьПодробнееВсегоВсего:6
Форум » starterkit.ru » Embedded Linux
mxs_spi_enc_pin_init() is not called although I enabled enc28j60 driver.
itmicro
Добавлено 01.02.2011 00:31
0
Сообщение: 1
itmicro
0

Пункты: 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
Добавлено 01.02.2011 01:43 Сообщение: 2
sasamy
4.70

Пункты: 77023
Регистрация: 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
Добавлено 04.02.2011 10:55 Сообщение: 3
itmicro
0

Пункты: 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
Спуститься к концу Подняться к началу
Персональная информация
Форум » starterkit.ru » Embedded Linux