Re: about the dm9000 in mini2440

2012-12-07 Thread Juergen Beisert
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 |

Re: about the dm9000 in mini2440

2012-12-07 Thread Juergen Beisert
Yi Qingliang wrote: On Thursday, December 06, 2012 12:27:45 PM Eric Bénard wrote: Le Thu, 06 Dec 2012 15:55:23 +, Yi Qingliang niqingliang2...@gmail.com a écrit : the address of dm9000 is 0x2800, it should be cs5, but in function mini2440_devices_init, it set the cs4 instead,

Re: about the dm9000 in mini2440

2012-12-06 Thread Juergen Beisert
Yi Qingliang wrote: the address of dm9000 is 0x2800, 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.

Re: about the dm9000 in mini2440

2012-12-06 Thread Yi Qingliang
indeed, I encountered follow error when boot barebox (compiled with default cfg): dm9000@dm9: 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

Re: about the dm9000 in mini2440

2012-12-06 Thread Juergen Beisert
Yi Qingliang wrote: indeed, I encountered follow error when boot barebox (compiled with default cfg): dm9000@dm9: 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

Re: about the dm9000 in mini2440

2012-12-06 Thread Eric Bénard
Hi, Le Thu, 06 Dec 2012 15:55:23 +, Yi Qingliang niqingliang2...@gmail.com a écrit : the address of dm9000 is 0x2800, 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

Re: about the dm9000 in mini2440

2012-12-06 Thread Yi Qingliang
On Thursday, December 06, 2012 12:27:45 PM Eric Bénard wrote: Hi, Le Thu, 06 Dec 2012 15:55:23 +, Yi Qingliang niqingliang2...@gmail.com a écrit : the address of dm9000 is 0x2800, it should be cs5, but in function mini2440_devices_init, it set the cs4 instead, why?? The

Re: about the dm9000 in mini2440

2012-12-06 Thread Yi Qingliang
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

Re: about the dm9000 in mini2440

2012-12-06 Thread Yi Qingliang
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 0x2800, it should be cs5, but in

about the dm9000 in mini2440

2012-12-05 Thread Yi Qingliang
the address of dm9000 is 0x2800, 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