Atmel website | ARM Community | AVR freaks | Technical Support
Banner
Welcome to AT91SAM Community Forum
http://www.at91.com/samphpbb/

Atmel u-boot port: Missing CONFIG_JFFS2_CMDLINE support
http://www.at91.com/samphpbb/viewtopic.php?f=12&t=19430
Page 1 of 1

Author:  please_work [ Fri Jul 30, 2010 5:54 am ]
Post subject:  Atmel u-boot port: Missing CONFIG_JFFS2_CMDLINE support

Hi there,

Has anyone else noticed certain functionality missing for the Atmel u-boot port?

For example, you can't compile with options:
CONFIG_JFFS2_CMDLINE
CONFIG_CMD_JFFS2

I need these defines to use do_jffs2_fsload, but enabling them causes a bunch of errors, i think because flash.c hasn't been ported for any of the Atmel boards.

Also functions like ioremap and virt_to_phys haven't been implemented in u-boot.

Has anyone had similar problems and found ways around implementing these functions, or is it just a case that these need implementing.

Author:  blue_z [ Fri Jul 30, 2010 8:56 am ]
Post subject:  Re: Atmel u-boot port: Missing CONFIG_JFFS2_CMDLINE support

please_work wrote:
Has anyone else noticed certain functionality missing for the Atmel u-boot port?


To which "port" and for which SoC are you referring?

To which version of U-Boot are you referring?

please_work wrote:
Also functions like ioremap and virt_to_phys haven't been implemented in u-boot.


The last time I looked at U-Boot, it didn't use virtual memory. So there is no need for those functions in U-Boot.

Regards

Author:  please_work [ Fri Jul 30, 2010 9:04 am ]
Post subject:  Re: Atmel u-boot port: Missing CONFIG_JFFS2_CMDLINE support

I think i partly answered my own question, its actually NOR flash that has not been implemented, and why it complains when building. I had to add the following defines/undefines to my board.h:

#define CONFIG_JFFS2_NAND 1
#define CONFIG_JFFS2_CMDLINE 1
#define CONFIG_CMD_JFFS2 1 // Required to include cmd_jffs2.c
#undef CONFIG_CMD_FLASH

/* NOR flash, if populated */
#define CFG_NO_FLASH 1 // No NOR flash is preset

Thanks for you reply blue_z, i couldn't really see a flash.c in any of the Atmel boards, which is why i generalized (also i'm using 1.3.4).

As for the remapping, i'm trying to port functionality from an older version of u-boot ported for a Samsung s3c2412, which made using of ioremap and virt_to_phys, which what made me think they were missing.

But i'll take another look at it, thanks for the help!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/