2008-05-05 05:26:08     wrong MAC when booting from NAND flash

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-05-05 05:26:08     wrong MAC when booting from NAND flash

Stefan Pledl (GERMANY)

Message: 55488   

 

Hi,

 

i have updated to u-boot 2008R1. When booting kernel and rootfs from nand flash the MAC address after starting linux is not the same as configured in u-boot (u-boot 2007R1 does not have this problem).

 

If i manually start some network traffic (e.g. ping) before booting the kernel, the MAC address in u-boot and linux is the same.

 

Do  you have any solutions for this problem.

 

 

 

regards

Stefan

 

 

QuoteReplyEditDelete

 

 

2008-05-05 09:20:45     Re: wrong MAC when booting from NAND flash

Mike Frysinger (UNITED STATES)

Message: 55507   

 

you didnt say what board you're using ... also, post the full boot output from your kernel

QuoteReplyEditDelete

 

 

2008-05-05 09:52:16     Re: wrong MAC when booting from NAND flash

Stefan Pledl (GERMANY)

Message: 55508   

 

I use a custom board witch is based on bf537-stamp.

MAC addres should be set by ethaddr env variable.

 

 

U-Boot 1.1.6 (ADI-2008R1) (May  5 2008 - 15:37:19)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

Board: BF537 Control Unit

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   32 MB

Flash:  1 MB

In:    serial

Out:   serial

Err:   serial

NAND:  64 MiB

Net:   Blackfin EMAC

MAC:   02:00:00:00:00:01

I2C:   ready

Hit any key to stop autoboot:  0

 

Loading from NAND 64MiB 3,3V 8-bit, offset 0x0

   Image Name:   Linux-2.6.22.18-ADI-2008R1-svn7

   Created:      2008-04-30  10:51:46 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    983270 Bytes = 960.2 kB

   Load Address: 00001000

   Entry Point:  0019c000

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.22.18-ADI-2008R1-svn7

   Created:      2008-04-30  10:51:46 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    983270 Bytes = 960.2 kB

   Load Address: 00001000

   Entry Point:  0019c000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 19c000

Linux version 2.6.22.18-ADI-2008R1-svn7 (root@ap58-linux) (gcc version 4.1.2 (ADI svn)) #1 Wed Apr 30 12:51:41 CES8

Hardware Trace Active and Enabled

Warning: limiting memory to 31MB due to hardware anomaly 05000263

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  text      = 0x00001000-0x0012e7a0

  rodata    = 0x0012f000-0x001868a8

  data      = 0x00187000-0x0019c000

    stack   = 0x00188000-0x0018a000

  init      = 0x0019c000-0x001b8000

  bss       = 0x001b8000-0x001cac24

  available = 0x001cac24-0x01eff000

  DMA Zone  = 0x01f00000-0x02000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 7874

Kernel command line: root=/dev/mtdblock1 rw ip=10.3.1.1:10.3.1.73:10.1.1.254:255.0.0.0:1:eth0:off

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 29608k/32768k RAM, (112k init code, 1205k kernel code, 514k data, 1024k dma, 308k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

bf537_mesu_cu_init(): registering device resources

bf537_mesu_cu_gpio_init(): init gpio

Generic PHY: Registered new driver

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

yaffs Apr 30 2008 12:47:16 Installing.

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

timer_initialize: module loaded

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

SMSC LAN83C185: Registered new driver

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:05, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

Scanning device for bad blocks

Bad eraseblock 1001 at 0x00fa4000

Bad eraseblock 2645 at 0x02954000

Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":

0x00000000-0x00400000 : "linux kernel"

0x00400000-0x04000000 : "file system"

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 2008-05-05 15:37:12 (1210001832)

IP-Config: Complete:

      device=eth0, addr=10.3.1.1, mask=255.0.0.0, gw=10.1.1.254,

     host=1, domain=, nis-domain=(none),

     bootserver=10.3.1.73, rootserver=10.3.1.73, rootpath=

yaffs: dev is 32505857 name is "mtdblock1"

yaffs: Attempting MTD mount on 31.1, "mtdblock1"

block 746 is bad

block 2390 is bad

PHY: 0:05 - Link is Up - 100/Full

VFS: Mounted root (yaffs filesystem).

Freeing unused kernel memory: 112k freed

dma_alloc_init: dma_page @ 0x0019c000 - 256 pages at 0x01f00000

 

 

BusyBox v1.4.1 (2008-04-30 12:54:21 CEST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 82:B1:D2:98:8A:E2

          inet addr:10.3.1.1  Bcast:10.255.255.255  Mask:255.0.0.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:260 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

 

root:/>

 

QuoteReplyEditDelete

 

 

2008-05-05 10:00:57     Re: wrong MAC when booting from NAND flash

Mike Frysinger (UNITED STATES)

Message: 55509   

 

if you want the mac programmed, you will need to call the function in your misc_init_r() in your u-boot board file

QuoteReplyEditDelete

 

 

2008-05-05 10:18:16     Re: wrong MAC when booting from NAND flash

Stefan Pledl (GERMANY)

Message: 55510   

 

thanks a lot, now it works

 

Stefan

Attachments

    Outcomes