mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Ethernet does not work in EFM32 Giant Gecko
@ 2013-06-27  6:51 Jinyun Ye
  2013-06-27  7:38 ` Uwe Kleine-König
  0 siblings, 1 reply; 7+ messages in thread
From: Jinyun Ye @ 2013-06-27  6:51 UTC (permalink / raw)
  To: ptxdist


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

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
2. Enabled ping and route in busybox
3. Built, burnt and boot uclinux successfully
4. ping local eth0 but doesn't work:

/ # /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.

Thanks,
Joey

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

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ethernet does not work in EFM32 Giant Gecko
  2013-06-27  6:51 [ptxdist] Ethernet does not work in EFM32 Giant Gecko Jinyun Ye
@ 2013-06-27  7:38 ` Uwe Kleine-König
  2013-06-27  9:46   ` Jinyun Ye
  0 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2013-06-27  7:38 UTC (permalink / raw)
  To: ptxdist

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?

> / # /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.

Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ethernet does not work in EFM32 Giant Gecko
  2013-06-27  7:38 ` Uwe Kleine-König
@ 2013-06-27  9:46   ` Jinyun Ye
  2013-06-27  9:53     ` Marc Kleine-Budde
  2013-06-27 20:10     ` Uwe Kleine-König
  0 siblings, 2 replies; 7+ messages in thread
From: Jinyun Ye @ 2013-06-27  9:46 UTC (permalink / raw)
  To: ptxdist


[-- 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ethernet does not work in EFM32 Giant Gecko
  2013-06-27  9:46   ` Jinyun Ye
@ 2013-06-27  9:53     ` Marc Kleine-Budde
  2013-06-27 20:10     ` Uwe Kleine-König
  1 sibling, 0 replies; 7+ messages in thread
From: Marc Kleine-Budde @ 2013-06-27  9:53 UTC (permalink / raw)
  To: ptxdist; +Cc: Jinyun Ye


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

On 06/27/2013 11:46 AM, Jinyun Ye wrote:
> 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
[...]

> / # ping 192.168.0.100
> No response from 192.168.0.100

Why do you ping your own ip address?

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ethernet does not work in EFM32 Giant Gecko
  2013-06-27  9:46   ` Jinyun Ye
  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
  1 sibling, 2 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2013-06-27 20:10 UTC (permalink / raw)
  To: ptxdist

Hello Joey,

I retested ethernet on my board and it doesn't work there either.
Probably the problem is the irq controller implemented in the board's
FPGA being buggy. I already talked to my contact at Energy Micro about
that and they are aware of the problem, just didn't find the time yet to
address it. I just pinged the problem. (In the hope this ping works
better than the efm32's :-)

The workaround is to connect the phy's irq line to a gpio of the Gecko.
Then the FPGA is out of the loop. That's how we at Pengutronix did it
for our Embedded World demo back then.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ethernet does not work in EFM32 Giant Gecko
  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
  1 sibling, 0 replies; 7+ messages in thread
From: Jinyun Ye @ 2013-06-28  1:05 UTC (permalink / raw)
  To: ptxdist


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

Thanks Kleine!
On Jun 28, 2013 4:11 AM, "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
wrote:

> Hello Joey,
>
> I retested ethernet on my board and it doesn't work there either.
> Probably the problem is the irq controller implemented in the board's
> FPGA being buggy. I already talked to my contact at Energy Micro about
> that and they are aware of the problem, just didn't find the time yet to
> address it. I just pinged the problem. (In the hope this ping works
> better than the efm32's :-)
>
> The workaround is to connect the phy's irq line to a gpio of the Gecko.
> Then the FPGA is out of the loop. That's how we at Pengutronix did it
> for our Embedded World demo back then.
>
> Best regards
> 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: 1378 bytes --]

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ethernet does not work in EFM32 Giant Gecko
  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
  1 sibling, 0 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2013-07-16 21:20 UTC (permalink / raw)
  To: Jinyun Ye; +Cc: ptxdist

Hello again,

On Thu, Jun 27, 2013 at 10:10:30PM +0200, Uwe Kleine-König wrote:
> I retested ethernet on my board and it doesn't work there either.
> Probably the problem is the irq controller implemented in the board's
> FPGA being buggy. I already talked to my contact at Energy Micro about
> that and they are aware of the problem, just didn't find the time yet to
> address it. I just pinged the problem. (In the hope this ping works
> better than the efm32's :-)
I found something that made ethernet reliably work three times in a row
for me.
I already added it to the repository, so you might want to retry it.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-07-16 21:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27  6:51 [ptxdist] Ethernet does not work in EFM32 Giant Gecko Jinyun Ye
2013-06-27  7:38 ` Uwe Kleine-König
2013-06-27  9:46   ` Jinyun Ye
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox