Hi,
I'm porting u-boot to a Moxa UC7420 box. This device uses two 16Bit
Intel CFI 28F128 (16MB) flashes on CS0 and CS1. Both devices have
adjected address space and used as a single logical unit of 32MB from
linux.
In u-boot the CFI driver detects them as two banks each 16MB.
The root partition is starting on the first flash and ends somewhere on
the second being about 30MB in size.
The mtdparts command doesn't like this setup.
I tried disabling the common CFI driver, and fake-aranged a single flash
bank setup. Now mtdparts works perfect, but I have to use the board
supplied flash stubs and add special handling for the baseaddress
selection of some CFI commands. Right now this is really unsatisfying.
Is there some proposed and recommended way to configure u-boot for such
a setup? Is there a way to map two adjected flash chips to a single
mtd-dev name?
Regards
Carsten
____________
Virus checked by G DATA AntiVirusKit
Version: AVK 17.5071 from 01.06.2007
____________
Virus checked by G DATA AntiVirus
Version: AVK 17.5071 from 01.06.2007
Virus news: www.antiviruslab.com
-----Mensaje original-----
De: u-boot-users-bounces(a)lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] En nombre de Midhun Agnihotram
Enviado el: jueves, 31 de mayo de 2007 15:25
Para: TXEMA LOPEZ; u-boot-users(a)lists.sourceforge.net
Asunto: Re: [U-Boot-Users] Porting U-Boot on to Cogent CSB535FS
Hi Txema,
I will indeed use your patch. But I would also like to have some
pointers as to how to develop this patch. I am new to the embedded
world although not that new to Linux. I want to fully port U-boot to
CSB535FS as we require the support for SD card and Compact Flash.
Hi Midhun,
The support for the SD Card an CompactFlash is needed in U-Boot or only in Linux? If your really need it in U-Boot one good starting point could be the Linux existing drivers.
How do I start porting U-Boot to a new board? I have read the README
of U-Boot. And I know that I need to set a lot of parameters - but
they are Greek and Latin for me. How do I start off? Any web sites??
Books?? Links?? Were do I get these parameters from?? From the board
manufacturer / supplier??
Usually, you can use a porting done to a board similar to your new board. You need a new configuration file and a new directory where you must put the board related code. But in your case this work is done in my patch: I got the IMX porting as a reference. But my tree structure was not accepted and this is what Wolfgang suggested:
"So if you have a IMX serial driver that should go to
drivers/serial/imx.c
and an ethernet driver to
drivers/net/imx.c
and your I2C driver to
drivers/i2c/imx.c
As a minimum, you should start this new directory structure and use it for the IMX related code (and leave the cleanup of the other, already existing code in the drivers/ directory to others). Even better, you would include this restructuring of the existing code, too.
[And ideally, you would clean up all the U-Boot code, merge all open patches and fix all the remaining bugs as well. But I guess I'm asking for too much :-) ]
Best regards,
Wolfgang Denk "
So the code I put in cpu/arm926ejs/imx21 was in the wrong place. And it was very similar to the IMX related code and another suggestion was to use only one source file for both boards with some ifdef's.
I don't know where you can find some information about the porting of U-Boot to a new board. My experience is that all the documentation is in the U-Boot source code. Good luck.
Best Regards,
Txema.
Thanks and Regards,
Midhun Agnihotram.
On 5/30/07, Txema Lopez <tlopez(a)aotek.es> wrote:
> Midhun Agnihotram wrote:
>
> > Hi Txema,
> >
> > I got the patch and I have gone through the conversation - when you
> > submitted the patch. But I did not really understand the "threats".
> > What is all about.
>
> The discussion was about how the patch must be done to be accepted and
> more exactly where to put the porting related code in the U-Boot
> directory tree.
>
> > Is porting U-Boot to CSB535 not advised??
>
> I don't think so. We have developped a CSB535 based custom board and
> U-Boot is working fine.
>
> > Or is it
> > that there is more work to be done??
>
> The patch has not support for USB, SD Card or CF, but you can launch a
> linux kernel from flash or tftp.
>
> >
> > Thanks & Regards,
> > Midhun Agnihotram,
> >
> > On 5/30/07, TXEMA LOPEZ <tlopez(a)aotek.es> wrote:
> >
> >> Hi Midhun,
> >>
> >> I sent a patch for a U-Boot 1.2.0 version but It was not accepted.
> >> See the threats "Support for csb535fs / i.MX21 LiteKit" and "arm SoC
> >> code in U-Boot". I pushed this work in my "todo stack" but
> >> unfortunately it's still there (And I'm afraid It will be for long
> >> time). The patch It's working fine and you can get it from the U-Boot
> >> users mailing list or I can resend it to you.
> >>
> >> Best Regards
> >>
> >> J.M. Lopez.
> >>
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users