[linux-cirrus] Re: u-boot patch for edb9302
- From: Mustafa Cayır <mustafa.cayir@xxxxxxxxxxxxxx>
- To: "Dominic Rath" <Dominic.Rath@xxxxxx>, <linux-cirrus@xxxxxxxxxxxxx>
- Date: Fri, 15 Dec 2006 11:42:44 +0200
Dominic,
Thank you . it is working now.
Best Regards.
-----Original Message-----
From: Dominic Rath [mailto:Dominic.Rath@xxxxxx]
Sent: Tuesday, December 12, 2006 6:58 PM
To: linux-cirrus@xxxxxxxxxxxxx
Cc: Mustafa Cayır
Subject: Re: [linux-cirrus] Re: u-boot patch for edb9302
Hello Mustafa,
did you make sure that the machine ID passed by the u-boot matches your
current kernel? The cs-e9301 configuration from my patch uses the CS-E9301
machine ID I've registered. For your EDB9302 you'd have to use "538" instead
of "1168" in board/cs-e9301/cs-e9301.c.
Did you adjust the timings for your EP9302 processor? It can run at 200MHz
with a 100MHz bus clock, instead of the 166MHz (66MHz) of the EP9301.
Best regards,
Dominic
On Tuesday 12 December 2006 15:52, Mustafa Cayır wrote:
> Hi Dominic,
> I am using your patch for cs-e9301 board. And I applied the these patch on
> EDB9302. it is working wtihout any problem. Thanks to you. I am trying to
> run linux on it. Could you help me to solve following problem.
>
> The output i get is this:
>
> CS-EP9301>ttftpboot 1000000 uImage
> CS-EP9301>bootm 1000000
> ## Booting image at 01000000 ...
> Image Name: linux kernel
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 686952 Bytes = 670.9 kB
> Load Address: 00080000
> Entry Point: 00080000
> Verifying Checksum ... OK
> OK
>
> Starting kernel ...
>
> Uncompressing Linux.............................................. done,
> booting.
>
> [hangs here]
>
> There is no TX activity on serial line.
> Bootargs=root=/dev/ramdisk console=ttyAM0,57600
>
> Thanks.
>
> -----Original Message-----
> From: linux-cirrus-bounce@xxxxxxxxxxxxx
> [mailto:linux-cirrus-bounce@xxxxxxxxxxxxx] On Behalf Of Dominic Rath Sent:
> Wednesday, November 15, 2006 7:12 PM
> To: linux-cirrus@xxxxxxxxxxxxx
> Subject: [linux-cirrus] Re: u-boot patch for edb9302
>
> On Wednesday 15 November 2006 16:28, Cory T. Tusar wrote:
> > Mustafa Cayır wrote:
> > > Hi all,
> > >
> > > Is there an u-boot patch newer than located following link?
> > > http://www.freelists.org/archives/linux-cirrus/04-2006/msg00008.html
> >
> > I believe that's the last one I posted. I'm long overdue to sync with
> > the main u-boot repository and generate a newer patch, but it's a /very/
> > low priority task for me.
>
> When I was looking for u-boot patches a few weeks ago I found an additional
> patch for ethernet that goes on top of the patch from april:
> http://www.freelists.org/archives/linux-cirrus/07-2006/msg00026.html
>
> > > I have cirrus development board EDB9302. does this patch work on it? I
> > > tryied and couldn't succedded properly to work EDB9302 board with
> > > u-boot. I am getting errors such as Unknown Flash Type and saveenv
> > > command cannot save my settings.
> >
> > I do not have an EDB9302 board to verify, so any support was coded as my
> > best guess. You may have to fiddle around with the config file a bit,
> > but it shouldn't be too difficult.
>
> I tried it on a CS-E9301 from Olimex (very similar to the EDB9301), and
> found a few obstacles that made me rewrite part of it:
> - the patch treated memory as one single block, but the EP930[12] have a
> 16-bit external bus, and will never have a contiguous memory map. Depending
> on the size, an EP930x with a 32-bit bus wont have a contiguous memory map,
> either. On a 32MB EP930[12] for example, memory will appear as either 8x4MB
> (default) or 4x8MB (with SROMLL set).
> - the PLL1 setting violated the specs (PLL1_X1 output was ~470MHz, maximum
> according to spec is 368MHz)
> - the PLL was enabled after relocation, with code running from SDRAM. Not
> sure if this is really a problem, but I think refresh timing might be
> violated while running without the PLL enabled.
> - overall, with a single config .h and all setup in one board directory, I
> found it difficult to adjust for my particular board in a clean way
> - the uart is actually a PL010 as Lennert told me (iirc it was RMK who
> noticed it), so the separate serial.c isn't needed
> - the CRUS magic was placed at 0x0, moving all code in start.S four
> addresses towards the end
> - part of ep93xx.h carried a non-gpl copyright (not sure if this is really
> a problem)
> - sdramcfg.S carried a non-gpl copyright (not sure if this is really a
> problem)
>
> I've therefor rewritten the lowlevel setup stuff (currently only for the
> CS-EP9301), rewrote the parts of the header file that didn't carry a GPL
> notice, removed serial.c in favor of the generic pl010 support and fixed a
> few other minor issues like the signature placement.
>
> I've created a board directory and config file of its own for the cs-e9301,
> with timings optimized for the SDRAM running at 66MHz (allowing cas latency
> 2) and the fast flash (Intel -J3D75). I tried to comment as much as
> possible to make porting to other boards easier. The concept of a single
> board and config for all EDB93xx boards was rather elegant, so I'm not sure
> if my approach is really the best one.
>
> > When you do manage to get it to work, feel free to send any updates back
> > to me and I'll see about including them in the future.
>
> Attached is a patch against today's u-boot git. I've wanted to add support
> for the EDB93xx boards back in but haven't found enough time yet.
>
> > Thanks.
> >
> > -Cory
>
> Best regards,
>
> Dominic
Other related posts: