Skip to contentSkip to conversation

help: network cannot startup from FLASH

DISCUSSION guo_zhenglin 3 participants 5 messages Mar 20, 2003 – Mar 24, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

1) I have a MBX860 board.
my linux kernel is 2.4.4

2) when I boot linux from MBX860 RAM,
BOOTP is ok. detail messages following:

.....
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8
CPM UART driver version 0.03
ttyS0 on SMC1 at 0x0280, BRG1
pty: 256 Unix98 ptys configured
block: queued sectors max/low 8186kB/2728kB, 64 slots per queue RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize

eth0: CPM ENET Version 0.2 on SCC1, 08:00:3e:2e:68:41

....
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)

Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 192.168.1.252, my address is 192.168.1.1

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

3) I ping 192.168.1.252 ,is success.
4) then I put linux's kernel file in MBX860 FLASH, boot it from FLASH,
BOOTP is NOT success . detail messages following:

....
eth0: CPM ENET Version 0.2 on SCC1, 03:94:80:82:9f:f9
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024) Sending BOOTP requests........timeout
5) eth0's MAC is different ???!!
and BOOTP timeout.

------------------------------
guo zhenglin
E-mail: guo_zl9 at hotmail.com
------------------------------

#1 lore raw
Quoted 4 lines · guo_zhenglin

4) then I put linux's kernel file in MBX860 FLASH, boot it from FLASH,
BOOTP is NOT success . detail messages following:

Quoted 9 lines

....
eth0: CPM ENET Version 0.2 on SCC1, 03:94:80:82:9f:f9
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024) Sending BOOTP requests........timeout
5) eth0's MAC is different ???!!
and BOOTP timeout.

A non-MTD related thought: Is the network switch upstream from the MBX860 configured with any kind of MAC layer security? If so, maybe the change in MAC address is stopping you. Also, some Cisco equipment may take a minute or two to renegotiate speed and duplex mode.

One other thing: Is your bootpd/dhcpd configured fro the correct MAC?

Bob...
---
Bob Chiodini
Senior Engineer
ASRC Aerospace
M/S ASRC-18
Kennedy Space Center, FL 32899
321-867-6313 (voice)
321-867-6300 (fax)
bob.chiodini at ksc.nasa.gov

#2 lore raw
Quoted 1 line · Bob Chiodini

One other thing: Is your bootpd/dhcpd configured fro the correct MAC?

I think the important question is why is the MAC address changing? Since the ethernet interface on a PowerQUICC design is actually provided by one of the four integrated interfaces that give the chip its name, it's hard to see how an ancillary part could be causing this.

My suspicion is that the QUICC registers are getting corrupted by the MTD code driving the NAND device in some way. That's making the MAC address come out wrong and also stopping the device producing any real ethernet packets.

I've seen similar problems with IDE interfaces on PowerQUICC devices in the past.

-Jas.

#3 lore raw

I modify file: arch/ppc/8xx_io/enet.c:
------original text ------------------------------------
int __init scc_enet_init(void)
{
......

#ifndef CONFIG_MBX
        for (i=5; i>=0; i--)
                *eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
#else
        for (i=5; i>=0; i--)
             dev->dev_addr[i] = *eap++;

#endif

------after modified ------------------------------------
int __init scc_enet_init(void)
{
......

#ifndef CONFIG_MBX
        for (i=5; i>=0; i--)
                *eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
#else
        for (i=5; i>=0; i--)
                *eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
             /*      dev->dev_addr[i] = *eap++; */

#endif

then network MAC can be recognised correctly ,and BOOTP can get IP address.
but I don't know that reason.

#4 lore raw
Quoted 1 line · guo_zhenglin

I modify file: arch/ppc/8xx_io/enet.c:

Looks like your bootloader's data area is different when you boot from Flash as opposed to booting from the RAM. Maybe
the bootloader is trashing the EAP when you boot from Flash? Or maybe you jsut skip the part of the setup routine that sets the Enet configuration? This would make sense if the bootloader had some kind boot-from-ethernet support that was causing it to get initialized when you boot via the RAM system but not when you are booting from flash directly.

-J.

Quoted 37 lines

------original text ------------------------------------
int __init scc_enet_init(void)
{
......

#ifndef CONFIG_MBX
        for (i=5; i>=0; i--)
                *eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
#else
        for (i=5; i>=0; i--)
             dev->dev_addr[i] = *eap++;

#endif

------after modified ------------------------------------
int __init scc_enet_init(void)
{
......

#ifndef CONFIG_MBX
        for (i=5; i>=0; i--)
                *eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
#else
        for (i=5; i>=0; i--)
                *eap++ = dev->dev_addr[i] = bd->bi_enetaddr[i];
             /*      dev->dev_addr[i] = *eap++; */

#endif

then network MAC can be recognised correctly ,and BOOTP can get IP address.
but I don't know that reason.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/