mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Jinyun Ye <jinyun.ye@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Ethernet does not work in EFM32 Giant Gecko
Date: Thu, 27 Jun 2013 17:46:05 +0800	[thread overview]
Message-ID: <CADe7rRdERr2q5onJ2zbTCjMSvzqBac3XS9TEKCe5nZQjhM8Khg@mail.gmail.com> (raw)
In-Reply-To: <20130627073827.GD27010@pengutronix.de>


[-- Attachment #1.1: Type: text/plain, Size: 8069 bytes --]

On Thu, Jun 27, 2013 at 3:38 PM, Uwe Kleine-König <
u.kleine-koenig@pengutronix.de> wrote:

> Hello Joey,
>
> On Thu, Jun 27, 2013 at 02:51:18PM +0800, Jinyun Ye wrote:
> > I'm trying to enable network on my EFM32 Giant Gecko (FPGA version
> > 0v1p1b148), but failed. Here is what I did:
> >
> > 1. Downgraded to board firmware 0v9p9b909
> not sure this is necessary. Anyhow, this is the version I do use, too.
>
> > 2. Enabled ping and route in busybox
> > 3. Built, burnt and boot uclinux successfully
> > 4. ping local eth0 but doesn't work:
> I assume you're using the BSP from
> http://git-public.pengutronix.de/?p=OSELAS.BSP-EnergyMicro-Gecko.git?
>
 Yes. I did use it.

>
> > / # /sbin/ifconfig
> > eth0      Link encap:Ethernet  HWaddr D6:C5:6F:EC:7B:F1
> >           inet addr:192.168.0.100  Bcast:192.168.0.255
>  Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >           Interrupt:4
> > / # ping 192.168.0.100
> > No response from 192.168.0.100
> > / # /sbin/ifconfig
> > eth0      Link encap:Ethernet  HWaddr D6:C5:6F:EC:7B:F1
> >           inet addr:192.168.0.100  Bcast:192.168.0.255
>  Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >           Interrupt:4
> >
> > Please share me some hint, if anyone have succeeded before.
> Full kernel log and the content of /proc/interrupts between all steps
> would be interesting.
>

 _____                            __  __ _
| ____|_ __   ___ _ __ __ _ _   _|  `/  (_) ___ _ __ ___
|  _| | '_ ` / _ ` '__/ _` | | | | |`/| | |/ __| '__/ _ `
| |___| | | |  __/ | | (_| | |_| | |  | | | (__| | | (_) |
|_____|_| |_|`___|_|  `__, |`__, |_|  |_|_|`___|_|  `___/
                      |___/ |___/

OSELAS(R)-Gecko-2012.10.0+ / energymicro-efm32gg-dk3750-2012.10.0+
ptxdist-2013.01.0/2013-06-08T14:52:01+0800
/ # /sbin/ifconfig eth0 192.168.0.100 netmask 255.255.255.0 up
/ # /sbin/route add default gw 192.168.0.1
/ # cat /proc/interrupts
           CPU0
  1:          0         -  efm32board
  4:          0  efm32board  eth0
 17:          0      NVIC  efm32-gpio
 27:          0      NVIC  efm32-gpio
 28:       6681      NVIC  efm32 clockevent
 31:        102      NVIC  efm32-spi
 32:         54      NVIC  efm32-spi
 38:         17      NVIC  efm32-uart
 39:        196      NVIC  efm32-uart
Err:          0
/ # /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr D6:C5:6F:EC:7B:F1
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4
/ # ping 192.168.0.100
No response from 192.168.0.100
/ # cat /proc/interrupts
           CPU0
  1:          0         -  efm32board
  4:          0  efm32board  eth0
 17:          0      NVIC  efm32-gpio
 27:          0      NVIC  efm32-gpio
 28:       9853      NVIC  efm32 clockevent
 31:        102      NVIC  efm32-spi
 32:         54      NVIC  efm32-spi
 38:         67      NVIC  efm32-uart
 39:        570      NVIC  efm32-uart
Err:          0
/ # dmesg
<4>[    0.000000] CPU: ARMv7-M Processor [412fc231] revision 1 (ARMv7M),
cr=00000000
<4>[    0.000000] CPU: unknown data cache, unknown instruction cache
<6>[    0.000000] Machine: EFM32 (Device Tree Support), model: Energy Micro
Giant Gecko Development Kit
<6>[    0.000000] debug: ignoring loglevel setting.
<7>[    0.000000] On node 0 totalpages: 1024
<7>[    0.000000] free_area_init_node: node 0, pgdat 8802103c, node_mem_map
88000000
<7>[    0.000000]   Normal zone: 8 pages used for memmap
<7>[    0.000000]   Normal zone: 0 pages reserved
<7>[    0.000000]   Normal zone: 1024 pages, LIFO batch:0
<7>[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
<7>[    0.000000] pcpu-alloc: [0] 0
<4>[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.
Total pages: 1016
<5>[    0.000000] Kernel command line: console=ttyefm4,115200 init=/linuxrc
ignore_loglevel ihash_entries=64 dhash_entries=64 earlyprintk
uclinux.physaddr=0x8c400000 root=/dev/mtdblock0
<6>[    0.000000] PID hash table entries: 16 (order: -6, 64 bytes)
<6>[    0.000000] Dentry cache hash table entries: 64 (order: -4, 256 bytes)
<6>[    0.000000] Inode-cache hash table entries: 64 (order: -4, 256 bytes)
<6>[    0.000000] Memory: 4MB = 4MB total
<5>[    0.000000] Memory: 3888k/3888k available, 208k reserved, 0K highmem
<5>[    0.000000] Virtual kernel memory layout:
<5>[    0.000000]     vector  : 0x00000000 - 0x00001000   (   4 kB)
<5>[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
<5>[    0.000000]     vmalloc : 0x00000000 - 0xffffffff   (4095 MB)
<5>[    0.000000]     lowmem  : 0x88000000 - 0x88400000   (   4 MB)
<5>[    0.000000]       .text : 0x8c000000 - 0x8c134cfc   (1236 kB)
<5>[    0.000000]       .init : 0x8800a000 - 0x8800d000   (  12 kB)
<5>[    0.000000]       .data : 0x88008000 - 0x88021640   ( 102 kB)
<5>[    0.000000]        .bss : 0x88021640 - 0x88028d5c   (  30 kB)
<6>[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
<6>[    0.000000] Preemptible hierarchical RCU implementation.
<6>[    0.000000] NR_IRQS:82
<6>[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns,
wraps every 4294967286ms
<6>[    0.140000] Calibrating delay loop... 1.36 BogoMIPS (lpj=6816)
<6>[    0.150000] pid_max: default: 4096 minimum: 301
<6>[    0.170000] Mount-cache hash table entries: 512
<6>[    0.530000] NET: Registered protocol family 16
<6>[    1.030000] bio: create slab <bio-0> at 0
<6>[    1.130000] Switching to clocksource efm32 timer
<6>[    1.250000] NET: Registered protocol family 2
<6>[    1.360000] TCP established hash table entries: 512 (order: 0, 4096
bytes)
<6>[    1.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
<6>[    1.370000] TCP: Hash tables configured (established 512 bind 512)
<6>[    1.380000] TCP: reno registered
<6>[    1.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>[    1.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>[    1.430000] NET: Registered protocol family 1
<6>[    2.470000] ROMFS MTD (C) 2007 Red Hat, Inc.
<6>[    2.510000] io scheduler noop registered (default)
<6>[    2.520000] 4000e400.uart: ttyefm4 at MMIO 0x4000e400 (irq = 38) is a
efm32-uart
<6>[    2.940000] console [ttyefm4] enabled
<6>[    3.000000] EFM32 UART/USART driver
<4>[    3.120000] uclinux[mtd]: probe address=0x8c400000 size=0x29000
<5>[    3.130000] Creating 1 MTD partitions on "rom":
<5>[    3.140000] 0x000000000000-0x000000029000 : "ROMfs"
<6>[    3.330000] efm32-spi 4000c400.spi: master is unqueued, this is
deprecated
<6>[    3.380000] ks8851 spi32766.0: message enable is 0
<6>[    3.610000] ks8851 spi32766.0 eth0: revision 1, MAC
d6:c5:6f:ec:7b:f1, IRQ 4, has EEPROM
<6>[    3.720000] TCP: cubic registered
<6>[    3.720000] NET: Registered protocol family 17
<6>[    3.910000] VFS: Mounted root (romfs filesystem) readonly on device
31:0.
<6>[    3.940000] Freeing init memory: 12K


>
> Uwe
>
> --
> Pengutronix e.K.                           | Uwe Kleine-König            |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>

[-- Attachment #1.2: Type: text/html, Size: 9995 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2013-06-27  9:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-27  6:51 Jinyun Ye
2013-06-27  7:38 ` Uwe Kleine-König
2013-06-27  9:46   ` Jinyun Ye [this message]
2013-06-27  9:53     ` Marc Kleine-Budde
2013-06-27 20:10     ` Uwe Kleine-König
2013-06-28  1:05       ` Jinyun Ye
2013-07-16 21:20       ` Uwe Kleine-König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADe7rRdERr2q5onJ2zbTCjMSvzqBac3XS9TEKCe5nZQjhM8Khg@mail.gmail.com \
    --to=jinyun.ye@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox