Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

u-boot EPCS16 negative value

Hi everyone

Hopefully someone will be able to help I have managed to get u-boot up and running on a new board and I am testing my EPCS16 but if I enter epcs info I get a negative value as shown below

EPCS16: 2048 kbytes (32 sectors x 64 kbytes, 256 bytes/page)

status: 0x00 (WIP:0, WEL:0, PROT':'off)

config:0xff7e7e7f (-8487297) bytes

0: 000000 data @ 0x000020

1: 010000 data @ 0x010000

2: 020000 data @ 0x020000

3: 030000 data @ 0x030000

4: 040000 data @ 0x040000

5: 050000 data @ 0x050000

6: 060000 data @ 0x060000

7: 070000 erased

8: 080000 erased

9: 090000 erased

To allow u-boot to access the EPCS I have added the following in epcs.c

static struct epcs_devinfo_t devinfo[] = {

{ "EPCS1 ", 0x10, 17, 4, 15, 8, 0x0c },

{ "EPCS4 ", 0x12, 19, 8, 16, 8, 0x1c },

{ "EPCS16", 0x14, 21, 32, 16, 8, 0x1c },

{ 0, 0, 0, 0, 0, 0 }

};

Hopefully someone else has done this, to save me spending hours stepping through the code to see were I have gone wrong

Many thanks :confused:
No RepliesBe the first to reply