Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Atmel u-boot port: Missing CONFIG_JFFS2_CMDLINE support
PostPosted: Fri Jul 30, 2010 5:54 am 
Offline

Joined: Fri Jul 30, 2010 4:34 am
Posts: 19
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.


Top
 Profile  
 
 Post subject: Re: Atmel u-boot port: Missing CONFIG_JFFS2_CMDLINE support
PostPosted: Fri Jul 30, 2010 8:56 am 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
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


Top
 Profile  
 
 Post subject: Re: Atmel u-boot port: Missing CONFIG_JFFS2_CMDLINE support
PostPosted: Fri Jul 30, 2010 9:04 am 
Offline

Joined: Fri Jul 30, 2010 4:34 am
Posts: 19
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: