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  [ 4 posts ] 
Author Message
 Post subject: Problem with saveenv in U-Boot (and some others problems)
PostPosted: Sun Apr 05, 2009 1:25 pm 
Offline

Joined: Sun Mar 08, 2009 2:50 am
Posts: 1
Location: Poland
Hi All,

I'm a newbie, so (and) I've a lots of problems with at91sam9260.

I bought a MMnet1002 Evaluation Board (http://www.propox.com/download/docs/MMnet1002_sch.pdf) and I couldn't start with it.
This board have 1GB NandFlash, 64MB SDRAM and I'd like to run Linux on it.

So:
- I upgraded AT91 Bootstrap to my Flash memory (modified NandFlash_InitInfo struct) - Bootstrap works fine.
- I program U-Boot and ...

1. When I programed u-boot-1.1.5_atmel_1.7-at91sam9260ek-nandflash.bin (downloaded from linux4sam project) U-Boot started and I got
Code:
U-Boot 1.1.5 (Jun 12 2008 - 16:20:46)                                 

DRAM:  64 MB                                                         
NAND:  NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)                                               
NAND: Pagesize: 2048, Blocksize: 256K, OOBsize: 64 1024 MiB                                                             
*** Warning - bad CRC or NAND, using default environment             
                                                                     
In:    serial                                                         
Out:   serial                                                         
Err:   serial                                                         
DM9161A PHY Detected                                                 
No link                                                               
MAC: error during RMII initialization


Everything is ok, but when I put (for example)
Code:
setenv ethaddr 3a:1f:34:08:54:54
saveenv

I got
Code:
Saving Environment to NAND...                                         
Erasing Nand...Erasing redundant Nand...U-Boot>

And thats all. When i restart uC environment variables isn't restore, I still get
Code:
*** Warning - bad CRC or NAND, using default environment


2. When I programed u-boot-1.3.4-exp-at91sam9260ek-nandflash.bin (also downloaded from linux4sam project) I got
Code:
U-Boot 1.3.4 (Dec 12 2008 - 12:13:47)                                 
                                                                     
DRAM:  64 MB                                                         
NAND:  1024 MiB                                                       
No Valid Environment Area Found                                       
No Valid Reundant Environment Area Found                             
*** Warning - bad CRC or NAND, using default environment

and U-Boot hang. I couldn't do anything.

3. I try to compile U-Boot source, but I've got errors (under Cygwin and GNU ARM toolchain)
Code:
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:191: error: parse error before "ulong"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:193: error: parse error before "load"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:195: error: parse error before '}' token
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:209: error: parse error before "ulong"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:262: error: parse error before '}' token
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:380: error: parse error before "image_get_data"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h: In function `image_get_data':
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:382: error: `ulong' undeclared (first use in this function)
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:382: error: (Each undeclared identifier is reported only once
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:382: error: for each function it appears in.)
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:382: error: parse error before "hdr"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h: At top level:
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:389: error: parse error before "image_get_image_end"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h: In function `image_get_image_end':
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:391: error: `ulong' undeclared (first use in this function)
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:391: error: parse error before "hdr"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h: At top level:
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:448: error: parse error before "image_multi_count"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:449: error: parse error before "ulong"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:523: error: parse error before "ulong"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:525: error: parse error before "ulong"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:539: error: parse error before "fit_get_size"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:551: error: parse error before "fit_get_end"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h: In function `fit_get_end':
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:553: error: `ulong' undeclared (first use in this function)
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:553: error: parse error before "fit"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h: At top level:
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:578: error: parse error before "ulong"
/cygdrive/d/Projects/temp/u-boot-2009.03/include/image.h:579: error: parse error before "ulong"
make[1]: *** [mkimage.o] Error 1
make: *** [tools] Error 2


Is there anybody who could say me what I doing wrong?

_________________
filug*

*) sorry for my terrible english.


Top
 Profile  
 
 Post subject: Re: Problem with saveenv in U-Boot (and some others problems)
PostPosted: Fri Apr 09, 2010 7:36 pm 
Offline

Joined: Sat Oct 17, 2009 10:39 pm
Posts: 9
Hi,

I've a MMNET1002 too and the same your problem.

In the original CD there are u-boot image and u-boot-enviroment image.

How can I build the enviroment?

In linux4sam there is only the u-boot image

Thanks in advance

Luigi


Top
 Profile  
 
 Post subject: Re: Problem with saveenv in U-Boot (and some others problems)
PostPosted: Fri Apr 09, 2010 8:15 pm 
Offline

Joined: Wed Jan 09, 2008 5:09 pm
Posts: 186
Location: Mounds View, MN
Have you tried the code that propox supplies for this board? The version of uboot you are trying to use is about 3 years old. Uboot went from version to release date tracking in 2008. The link is:

http://www.propox.com/download/software/MMnet1000

Software version 20090601 is based on:
• U-Boot-2009.01
• linux-2.6.29.3
• OpenWrt KAMIKAZE r13340

_________________
Tim Barr
Multitech Inc.


Top
 Profile  
 
 Post subject: Re: Problem with saveenv in U-Boot (and some others problems)
PostPosted: Sat Apr 10, 2010 12:00 pm 
Offline

Joined: Sat Oct 17, 2009 10:39 pm
Posts: 9
With u-boot from propox-CD it's OK,

u-boot version is 1.1.5,

but I've a problem with TFTP timeout.

I try to update u-boot to solve this problem.

Thanks.

Luigi


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: