mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Re: about the dm9000 in mini2440
  2012-12-06 15:55 about the dm9000 in mini2440 Yi Qingliang
@ 2012-12-06  8:09 ` Juergen Beisert
  2012-12-06 16:24   ` Yi Qingliang
                     ` (2 more replies)
  2012-12-06 11:27 ` Eric Bénard
  1 sibling, 3 replies; 11+ messages in thread
From: Juergen Beisert @ 2012-12-06  8:09 UTC (permalink / raw)
  To: barebox

Yi Qingliang wrote:
> the address of dm9000 is 0x28000000, it should be cs5, but in function
> "mini2440_devices_init", it set the cs4 instead, why??

Hmm, the schematics of the Mini2440 board tells me, the processor's GCS4 (ball 
D3) is in use for the DM9000.

GCS5 is connected to the CON5 instead.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-06 16:24   ` Yi Qingliang
@ 2012-12-06 10:56     ` Juergen Beisert
  0 siblings, 0 replies; 11+ messages in thread
From: Juergen Beisert @ 2012-12-06 10:56 UTC (permalink / raw)
  To: barebox

Yi Qingliang wrote:
> indeed, I encountered follow error when boot barebox (compiled with default
> cfg):
> dm9000@dm90000: Wrong databus width defined at compile time
>
> and can't use it for tftp
>
> I have printed out the context, found that is 32bit in the dm9000 register
> (read only), but in mini2440 initialize code is 16bit.
>
> any suggestion?

This would mean the EED0 pin of the DM9000 has a pull up connected, which is 
not the case for the Mini2440. Are you sure, you are using an original 
Mini2440?

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-5121-206917-5128 |
Peiner Str. 6-8, 31137 Hildesheim, Germany    | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-06 15:55 about the dm9000 in mini2440 Yi Qingliang
  2012-12-06  8:09 ` Juergen Beisert
@ 2012-12-06 11:27 ` Eric Bénard
  2012-12-07  8:41   ` Yi Qingliang
  1 sibling, 1 reply; 11+ messages in thread
From: Eric Bénard @ 2012-12-06 11:27 UTC (permalink / raw)
  To: Yi Qingliang; +Cc: barebox

Hi,

Le Thu, 06 Dec 2012 15:55:23 +0000,
Yi Qingliang <niqingliang2003@gmail.com> a écrit :

> the address of dm9000 is 0x28000000, it should be cs5, but in function 
> "mini2440_devices_init", it set the cs4 instead, why??
> 
The mini2440 supported in Barebox is this one and maybe not the one
your are using ;-)
http://www.friendlyarm.net/products/mini2440

Eric

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* about the dm9000 in mini2440
@ 2012-12-06 15:55 Yi Qingliang
  2012-12-06  8:09 ` Juergen Beisert
  2012-12-06 11:27 ` Eric Bénard
  0 siblings, 2 replies; 11+ messages in thread
From: Yi Qingliang @ 2012-12-06 15:55 UTC (permalink / raw)
  To: barebox

the address of dm9000 is 0x28000000, it should be cs5, but in function 
"mini2440_devices_init", it set the cs4 instead, why??


Yi Qingliang
Nanjing Jilong




_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-06  8:09 ` Juergen Beisert
@ 2012-12-06 16:24   ` Yi Qingliang
  2012-12-06 10:56     ` Juergen Beisert
  2012-12-07 13:05   ` Yi Qingliang
  2012-12-07 13:10   ` Yi Qingliang
  2 siblings, 1 reply; 11+ messages in thread
From: Yi Qingliang @ 2012-12-06 16:24 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: barebox

indeed, I encountered follow error when boot barebox (compiled with default 
cfg):
dm9000@dm90000: Wrong databus width defined at compile time

and can't use it for tftp

I have printed out the context, found that is 32bit in the dm9000 register 
(read only), but in mini2440 initialize code is 16bit.

any suggestion?


On Thursday, December 06, 2012 09:09:10 AM Juergen Beisert wrote:
> Yi Qingliang wrote:
> > the address of dm9000 is 0x28000000, it should be cs5, but in function
> > "mini2440_devices_init", it set the cs4 instead, why??
> 
> Hmm, the schematics of the Mini2440 board tells me, the processor's GCS4
> (ball D3) is in use for the DM9000.
> 
> GCS5 is connected to the CON5 instead.
> 
> Regards,
> Juergen

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-07 13:05   ` Yi Qingliang
@ 2012-12-07  8:38     ` Juergen Beisert
  0 siblings, 0 replies; 11+ messages in thread
From: Juergen Beisert @ 2012-12-07  8:38 UTC (permalink / raw)
  To: barebox

Yi Qingliang wrote:
> I got it finally, but not root cause.
> reproduce:
>
> 1. connect jtag with openjtag(not the official openjtag, but 100ask.net
> produced based on openmoko's).
> 2. use ON/OFF switch on the board
>
> then I got "Wrong databus"
> but if I disconnect the power line, and reconnect it, everything OK.
> and if not connect jtager, and use ON/OFF switch, everyghing OK.
>
> what's the fuck problem?

Good question. The DM9000 uses the EED0 pin to decide if a 16 or 32 bit data 
bus is in use, when the reset signal is gone. Maybe your system does 
not "see" a correct reset.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-07 13:10   ` Yi Qingliang
@ 2012-12-07  8:39     ` Juergen Beisert
  0 siblings, 0 replies; 11+ messages in thread
From: Juergen Beisert @ 2012-12-07  8:39 UTC (permalink / raw)
  To: barebox

Yi Qingliang wrote:
> and if connected jtager, the ON switch does not work some time.

Seems your jtager powers the system by accident.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-06 11:27 ` Eric Bénard
@ 2012-12-07  8:41   ` Yi Qingliang
  2012-12-07  8:45     ` Juergen Beisert
  0 siblings, 1 reply; 11+ messages in thread
From: Yi Qingliang @ 2012-12-07  8:41 UTC (permalink / raw)
  To: Eric Bénard; +Cc: barebox

On Thursday, December 06, 2012 12:27:45 PM Eric Bénard wrote:
> Hi,
> 
> Le Thu, 06 Dec 2012 15:55:23 +0000,
> 
> Yi Qingliang <niqingliang2003@gmail.com> a écrit :
> > the address of dm9000 is 0x28000000, it should be cs5, but in function
> > "mini2440_devices_init", it set the cs4 instead, why??
> 
> The mini2440 supported in Barebox is this one and maybe not the one
> your are using ;-)
> http://www.friendlyarm.net/products/mini2440

there is "mini2440 friendlyARM" on my board, whose color is white.
blue pcb, maybe friendlyARM has multi version mini2440?

I downloaded the latest iso of mini2440: mini2440-20110421.iso.


I say the 0x28000000 is cs5, based on the memory layout picture in the manual.
although the schematics is same as Juergen Beisert's.

I can't get the original disk, only the board. So how to check the EED0?
ps: In the manual of dm9000, it said that EED0 is pulled down internaly.


> Eric

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-07  8:41   ` Yi Qingliang
@ 2012-12-07  8:45     ` Juergen Beisert
  0 siblings, 0 replies; 11+ messages in thread
From: Juergen Beisert @ 2012-12-07  8:45 UTC (permalink / raw)
  To: barebox

Yi Qingliang wrote:
> On Thursday, December 06, 2012 12:27:45 PM Eric Bénard wrote:
> > Le Thu, 06 Dec 2012 15:55:23 +0000,
> >
> > Yi Qingliang <niqingliang2003@gmail.com> a écrit :
> > > the address of dm9000 is 0x28000000, it should be cs5, but in function
> > > "mini2440_devices_init", it set the cs4 instead, why??
> >
> > The mini2440 supported in Barebox is this one and maybe not the one
> > your are using ;-)
> > http://www.friendlyarm.net/products/mini2440
>
> there is "mini2440 friendlyARM" on my board, whose color is white.
> blue pcb, maybe friendlyARM has multi version mini2440?

FriendlyARM has some copyist. A blue PCB I have never seen yet.

> I say the 0x28000000 is cs5, based on the memory layout picture in the
> manual. although the schematics is same as Juergen Beisert's.

And the schematics says it is CS4.

> I can't get the original disk, only the board. So how to check the EED0?
> ps: In the manual of dm9000, it said that EED0 is pulled down internaly.

Sure. But if you have some power floating around your board the chip might 
detect a high level at system start. But this idea is just a shot into the 
dark.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-06  8:09 ` Juergen Beisert
  2012-12-06 16:24   ` Yi Qingliang
@ 2012-12-07 13:05   ` Yi Qingliang
  2012-12-07  8:38     ` Juergen Beisert
  2012-12-07 13:10   ` Yi Qingliang
  2 siblings, 1 reply; 11+ messages in thread
From: Yi Qingliang @ 2012-12-07 13:05 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: barebox

I got it finally, but not root cause.


reproduce:

1. connect jtag with openjtag(not the official openjtag, but 100ask.net produced 
based on openmoko's).
2. use ON/OFF switch on the board

then I got "Wrong databus"
but if I disconnect the power line, and reconnect it, everything OK.
and if not connect jtager, and use ON/OFF switch, everyghing OK.

what's the fuck problem?


On Thursday, December 06, 2012 09:09:10 AM Juergen Beisert wrote:
> Yi Qingliang wrote:
> > the address of dm9000 is 0x28000000, it should be cs5, but in function
> > "mini2440_devices_init", it set the cs4 instead, why??
> 
> Hmm, the schematics of the Mini2440 board tells me, the processor's GCS4
> (ball D3) is in use for the DM9000.
> 
> GCS5 is connected to the CON5 instead.
> 
> Regards,
> Juergen

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: about the dm9000 in mini2440
  2012-12-06  8:09 ` Juergen Beisert
  2012-12-06 16:24   ` Yi Qingliang
  2012-12-07 13:05   ` Yi Qingliang
@ 2012-12-07 13:10   ` Yi Qingliang
  2012-12-07  8:39     ` Juergen Beisert
  2 siblings, 1 reply; 11+ messages in thread
From: Yi Qingliang @ 2012-12-07 13:10 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: barebox

and if connected jtager, the ON switch does not work some time.

of cause the jtagger is connected to PC, but I have not use it with 'openocd'.

On Thursday, December 06, 2012 09:09:10 AM Juergen Beisert wrote:
> Yi Qingliang wrote:
> > the address of dm9000 is 0x28000000, it should be cs5, but in function
> > "mini2440_devices_init", it set the cs4 instead, why??
> 
> Hmm, the schematics of the Mini2440 board tells me, the processor's GCS4
> (ball D3) is in use for the DM9000.
> 
> GCS5 is connected to the CON5 instead.
> 
> Regards,
> Juergen

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-12-07  8:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-06 15:55 about the dm9000 in mini2440 Yi Qingliang
2012-12-06  8:09 ` Juergen Beisert
2012-12-06 16:24   ` Yi Qingliang
2012-12-06 10:56     ` Juergen Beisert
2012-12-07 13:05   ` Yi Qingliang
2012-12-07  8:38     ` Juergen Beisert
2012-12-07 13:10   ` Yi Qingliang
2012-12-07  8:39     ` Juergen Beisert
2012-12-06 11:27 ` Eric Bénard
2012-12-07  8:41   ` Yi Qingliang
2012-12-07  8:45     ` Juergen Beisert

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