public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users]  MTD update?
@ 2007-10-17 13:37 William Juul
  2007-10-17 14:21 ` Stefan Roese
  0 siblings, 1 reply; 8+ messages in thread
From: William Juul @ 2007-10-17 13:37 UTC (permalink / raw)
  To: u-boot

On two custom designs (ARM and PPC based) we are running YAFFS on NAND
devices in U-boot and Linux.

We had problems configuring YAFFS/MTD in such a way that we could use
the same partition in both U-boot and Linux. Additionaly we could not
find support for 4KB pages in the current MTD implementation in
U-boot. We also ran into (easily fixable) problems since nand_ids.c
contained two entries with the same ID.

Thus, we upgraded the MTD files in U-boot by using the corresponding
files in Linux 2.6.22.1, which we used at the time). This was a rather
large change of u-boot source, but it solved all problems we had with
NAND. The patch touched several files in drivers/nand, include,
include/linux, include/linux/mtd and common. The patch has a total
size of >300KB.

Currently this patch is based on 1.2.0 and it will require some work
before we submit a patch:
 - base the patch on 1.3.0
  - MAKEALL ppc/arm is currently breaking for some configurations
 - some code clean-up

We do not have the resources (time/HW) to test this patch on anything
else than our two custom boards. Thus we will have to rely on help
from the community after submitting the patch..

Comments?

Best regards
William

-------------------------------------------------
William Juul, Senior Development Engineer
Data Respons Norge AS
Sandviksveien 26
P.O. Box 489
NO-1323 H?vik, Norway

Tel: +47 67 11 20 00    Fax: +47 67 11 20 50
Dir: +47 67 11 20 26    Mob: +47 95 79 32 53

www.datarespons.no
-------------------------------------------------

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

* [U-Boot-Users] MTD update?
  2007-10-17 13:37 [U-Boot-Users] MTD update? William Juul
@ 2007-10-17 14:21 ` Stefan Roese
  2007-10-30 15:17   ` William Juul
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Roese @ 2007-10-17 14:21 UTC (permalink / raw)
  To: u-boot

Hi William,

On Wednesday 17 October 2007, William Juul wrote:
> On two custom designs (ARM and PPC based) we are running YAFFS on NAND
> devices in U-boot and Linux.
>
> We had problems configuring YAFFS/MTD in such a way that we could use
> the same partition in both U-boot and Linux. Additionaly we could not
> find support for 4KB pages in the current MTD implementation in
> U-boot. We also ran into (easily fixable) problems since nand_ids.c
> contained two entries with the same ID.
>
> Thus, we upgraded the MTD files in U-boot by using the corresponding
> files in Linux 2.6.22.1, which we used at the time). This was a rather
> large change of u-boot source, but it solved all problems we had with
> NAND. The patch touched several files in drivers/nand, include,
> include/linux, include/linux/mtd and common. The patch has a total
> size of >300KB.
>
> Currently this patch is based on 1.2.0 and it will require some work
> before we submit a patch:
>  - base the patch on 1.3.0
>   - MAKEALL ppc/arm is currently breaking for some configurations
>  - some code clean-up
>
> We do not have the resources (time/HW) to test this patch on anything
> else than our two custom boards. Thus we will have to rely on help
> from the community after submitting the patch..

I'll be glad to review the code (if time permits) and test it on some of my 
platforms (PPC based).

> Comments?

I think this is a necessary move. A lot changed in the Linux MTD code, since 
it was last ported from Linux to U-Boot. So I really appreciate your effort 
here.

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] MTD update?
  2007-10-17 14:21 ` Stefan Roese
@ 2007-10-30 15:17   ` William Juul
  2007-10-31  7:17     ` Stefan Roese
  2007-11-02 10:18     ` [U-Boot-Users] MTD update? Marcel Ziswiler
  0 siblings, 2 replies; 8+ messages in thread
From: William Juul @ 2007-10-30 15:17 UTC (permalink / raw)
  To: u-boot

> I'll be glad to review the code (if time permits) and test it on some of my
> platforms (PPC based).
>
> I think this is a necessary move. A lot changed in the Linux MTD code, since
> it was last ported from Linux to U-Boot. So I really appreciate your effort
> here.

Status:
 - The patch is still based on MTD from Linux 2.6.22.1
 - I have now rebased the patch to u-boot 1.3.0-rc3
 - I regard code clean-up to be done
 - MAKEALL ppc/arm still has some issues:
* DOC/OneNand/nand_spl is not building ( I have not tried porting this
part, and since I do not have any HW and I am not familiar with this
code/HW I think its best someone else is porting this code.)

Except for the issues mentioned above, I have ported all drivers
necessary to run MAKEALL ppc/arm without errors and warnings. Many
drivers were trivial to port, but some were not so trivial. The
following drivers must be examined carefully and maybe rewritten to
some degree:
  cpu/ppc4xx/ndfc.c
  cpu/arm926ejs/davinci/nand.c
  board/delta/nand.c
  board/zylonite/nand.c

Below is an overview of which files have been patched and how big the
diffs are for each file (in bytes).
What should I do with the large patches? And should I send one patch
for each file for the small ones?

Best regards
William

   2626  board/bf537-stamp/nand.c
   3001  board/dave/PPChameleonEVB/nand.c
   3394  board/delta/nand.c
   2190  board/esd/common/esd405ep_nand.c
   1863  board/freescale/m5329evb/nand.c
   3731  board/nc650/nand.c
   1431  board/netstar/nand.c
   2112  board/prodrive/alpr/nand.c
   2248  board/prodrive/pdnb3/nand.c
   2111  board/sc3/sc3nand.c
   1401  board/tqm8272/tqm8272.c
   3656  board/zylonite/nand.c
    509  common/cmd_doc.c
  51227  common/cmd_nand.c
   3273  cpu/arm926ejs/davinci/nand.c
   2107  cpu/ppc4xx/ndfc.c
  45988  drivers/nand/diskonchip.c
 133627  drivers/nand/nand_base.c
  34909  drivers/nand/nand_bbt.c
   1329  drivers/nand/nand_ecc.c
  10645  drivers/nand/nand_ids.c
  17273  drivers/nand/nand_util.c
    568  include/common.h
   1037  include/linux/err.h
   2277  include/linux/mtd/blktrans.h
    571  include/linux/mtd/compat.h
   8677  include/linux/mtd/doc2000.h
   1966  include/linux/mtd/inftl-user.h
   1133  include/linux/mtd/jffs2-user.h
   6976  include/linux/mtd/mtd-abi.h
  10082  include/linux/mtd/mtd.h
  25966  include/linux/mtd/nand.h
   3250  include/linux/mtd/nftl.h
   1676  include/linux/mtd/nftl-user.h
  15777  include/linux/mtd/ubi-header.h
   5979  include/linux/mtd/ubi-user.h
    816  include/nand.h

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

* [U-Boot-Users] MTD update?
  2007-10-30 15:17   ` William Juul
@ 2007-10-31  7:17     ` Stefan Roese
  2007-10-31 21:05       ` William Juul
  2007-11-02 10:18     ` [U-Boot-Users] MTD update? Marcel Ziswiler
  1 sibling, 1 reply; 8+ messages in thread
From: Stefan Roese @ 2007-10-31  7:17 UTC (permalink / raw)
  To: u-boot

On Tuesday 30 October 2007, William Juul wrote:
> > I'll be glad to review the code (if time permits) and test it on some of
> > my platforms (PPC based).
> >
> > I think this is a necessary move. A lot changed in the Linux MTD code,
> > since it was last ported from Linux to U-Boot. So I really appreciate
> > your effort here.
>
> Status:
>  - The patch is still based on MTD from Linux 2.6.22.1
>  - I have now rebased the patch to u-boot 1.3.0-rc3
>  - I regard code clean-up to be done
>  - MAKEALL ppc/arm still has some issues:
> * DOC/OneNand/nand_spl is not building ( I have not tried porting this
> part, and since I do not have any HW and I am not familiar with this
> code/HW I think its best someone else is porting this code.)
>
> Except for the issues mentioned above, I have ported all drivers
> necessary to run MAKEALL ppc/arm without errors and warnings. Many
> drivers were trivial to port, but some were not so trivial. The
> following drivers must be examined carefully and maybe rewritten to
> some degree:
>   cpu/ppc4xx/ndfc.c
>   cpu/arm926ejs/davinci/nand.c
>   board/delta/nand.c
>   board/zylonite/nand.c
>
> Below is an overview of which files have been patched and how big the
> diffs are for each file (in bytes).
> What should I do with the large patches? And should I send one patch
> for each file for the small ones?

Best would be if you could provide a link to a git repository, so that we can 
review and perhaps pull this stuff from there. Is this possible?

Otherwise, please try to combine patches into logical chunks. And for pieces 
that are too big for the list (40k), please provide a URL (link) pointing to 
your patch instead.

Please see:

http://www.denx.de/wiki/UBoot/Patches

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] MTD update?
  2007-10-31  7:17     ` Stefan Roese
@ 2007-10-31 21:05       ` William Juul
  2007-11-01  0:12         ` [U-Boot-Users] Interrupt in u-boot standalone application Leonid
  0 siblings, 1 reply; 8+ messages in thread
From: William Juul @ 2007-10-31 21:05 UTC (permalink / raw)
  To: u-boot

On 10/31/07, Stefan Roese <sr@denx.de> wrote:
> On Tuesday 30 October 2007, William Juul wrote:
> > > I'll be glad to review the code (if time permits) and test it on some of
> > > my platforms (PPC based).
> > >
> > > I think this is a necessary move. A lot changed in the Linux MTD code,
> > > since it was last ported from Linux to U-Boot. So I really appreciate
> > > your effort here.
> >
> > Status:
> >  - The patch is still based on MTD from Linux 2.6.22.1
> >  - I have now rebased the patch to u-boot 1.3.0-rc3
> >  - I regard code clean-up to be done
> >  - MAKEALL ppc/arm still has some issues:
> > * DOC/OneNand/nand_spl is not building ( I have not tried porting this
> > part, and since I do not have any HW and I am not familiar with this
> > code/HW I think its best someone else is porting this code.)
> >
> > Except for the issues mentioned above, I have ported all drivers
> > necessary to run MAKEALL ppc/arm without errors and warnings. Many
> > drivers were trivial to port, but some were not so trivial. The
> > following drivers must be examined carefully and maybe rewritten to
> > some degree:
> >   cpu/ppc4xx/ndfc.c
> >   cpu/arm926ejs/davinci/nand.c
> >   board/delta/nand.c
> >   board/zylonite/nand.c
> >
> > Below is an overview of which files have been patched and how big the
> > diffs are for each file (in bytes).
> > What should I do with the large patches? And should I send one patch
> > for each file for the small ones?
>
> Best would be if you could provide a link to a git repository, so that we can
> review and perhaps pull this stuff from there. Is this possible?
>
Yes, we are setting up a public available git repository.

I will post a patch message to the mailing list when its all done. It
will probably be early next week as I am going away for the rest of
the week.

Best regards
William

> Otherwise, please try to combine patches into logical chunks. And for pieces
> that are too big for the list (40k), please provide a URL (link) pointing to
> your patch instead.
>
> Please see:
>
> http://www.denx.de/wiki/UBoot/Patches
>
> Thanks.
>
> Best regards,
> Stefan
>
> =====================================================================
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
> =====================================================================
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>

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

* [U-Boot-Users] Interrupt in u-boot standalone application.
  2007-10-31 21:05       ` William Juul
@ 2007-11-01  0:12         ` Leonid
  0 siblings, 0 replies; 8+ messages in thread
From: Leonid @ 2007-11-01  0:12 UTC (permalink / raw)
  To: u-boot

Hi:

I am trying to use interrupts (from serial DBGU port) in my u-boot
standalone application, running on at91rm9200. I initialize AIC using
examples from romboot but don't see any interrupts. Looks like
interrupts are not enabled in u-boot. 

When I try to enable interupts in u-boot startup code

#define ARM_MODE_SYS    0x1F

#define I_BIT           0x80
#define F_BIT           0x40
.....................

/* Enable interrupts */
                msr     CPSR_c, #ARM_MODE_SYS | F_BIT 

system doesn't come up.

What should I do to enable intrrupts and to get DBGU RX interrupt?

Thanks,

Leonid.

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

* [U-Boot-Users] MTD update?
  2007-10-30 15:17   ` William Juul
  2007-10-31  7:17     ` Stefan Roese
@ 2007-11-02 10:18     ` Marcel Ziswiler
  2007-11-02 10:43       ` Stefan Roese
  1 sibling, 1 reply; 8+ messages in thread
From: Marcel Ziswiler @ 2007-11-02 10:18 UTC (permalink / raw)
  To: u-boot

Hi William

William Juul <william.juul <at> datarespons.no> writes:
> Except for the issues mentioned above, I have ported all drivers
> necessary to run MAKEALL ppc/arm without errors and warnings. Many
> drivers were trivial to port, but some were not so trivial. The
> following drivers must be examined carefully and maybe rewritten to
> some degree:
>   cpu/ppc4xx/ndfc.c
>   cpu/arm926ejs/davinci/nand.c
>   board/delta/nand.c
>   board/zylonite/nand.c

I am more than happy to review your code and can help to port it onto the PXA320
NAND controller used on the delta/zylonite. I do have two custom PXA320 based
boards (one with small and the other with large page NANDs) on which I can test
it.
I am currently working on a port of the nand_spl to the PXA320 architecture. So
far it boots-up fine from NAND on the small page variant. The large page stuff
can probably benefit from your work.

Cheers

Marcel

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

* [U-Boot-Users] MTD update?
  2007-11-02 10:18     ` [U-Boot-Users] MTD update? Marcel Ziswiler
@ 2007-11-02 10:43       ` Stefan Roese
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Roese @ 2007-11-02 10:43 UTC (permalink / raw)
  To: u-boot

Hi Marcel,

On Friday 02 November 2007, Marcel Ziswiler wrote:
> I am currently working on a port of the nand_spl to the PXA320
> architecture. So far it boots-up fine from NAND on the small page variant.
> The large page stuff can probably benefit from your work.

That's good news. It would really be great to have other platforms use this 
nand_spl infrastructure too.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

end of thread, other threads:[~2007-11-02 10:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 13:37 [U-Boot-Users] MTD update? William Juul
2007-10-17 14:21 ` Stefan Roese
2007-10-30 15:17   ` William Juul
2007-10-31  7:17     ` Stefan Roese
2007-10-31 21:05       ` William Juul
2007-11-01  0:12         ` [U-Boot-Users] Interrupt in u-boot standalone application Leonid
2007-11-02 10:18     ` [U-Boot-Users] MTD update? Marcel Ziswiler
2007-11-02 10:43       ` Stefan Roese

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