Skip to contentSkip to conversation

YAMON: go

DISCUSSION Ashlesha Shintre 3 participants 3 messages Jul 26, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

I compiled an 2.6 kernel for the db1500 board and used the load command in YAMON to write the srec image to the RAM using tftp. Now I want to start the kernel and so I issued the go command. It gives me the following error:

* Exception (user) : Reserved instruction *

CAUSE    = 0x00808028  STATUS   = 0x00000002
EPC      = 0x80404004  ERROREPC = 0x00000000

BADVADDR = 0x00000000

Also another query is this: How does one know whether the load command has written to the RAM or the Flash? The help load says that this depends on the address. However, upon issuing the load command without any options, YAMON outputs the following as the location of the load:

Start = 0x80404000, range = (0x80100000,0x80423084), format = SREC

Thanks & Regards,

Ashlesha Shintre.
Intern
Kenati Technologies
800W California Ave.
Sunnyvale, CA

#1 lore raw
Quoted 11 lines · Ashlesha Shintre

Hi,

I compiled an 2.6 kernel for the db1500 board and used the load command in YAMON to write the srec image to the RAM using tftp. Now I want to start the kernel and so I issued the go command. It gives me the following error:

* Exception (user) : Reserved instruction *

CAUSE    = 0x00808028  STATUS   = 0x00000002
EPC      = 0x80404004  ERROREPC = 0x00000000
Quoted 8 lines

BADVADDR = 0x00000000

Also another query is this: How does one know whether the load command has written to the RAM or the Flash? The help load says that this depends on the address. However, upon issuing the load command without any options, YAMON outputs the following as the location of the load:

Start = 0x80404000, range = (0x80100000,0x80423084), format = SREC

... which is a ram address. SRECs have the load address embedded in them and the kernel is linked to run from ram.

Are you sure the jumpers on the board are setup to match the kernel endianness you have compiled? Looks like your kernel crashed pretty quickly.

Pete

#2 lore raw
In reply to Ashlesha Shintre
Quoted 7 lines · Ashlesha Shintre

Hi,

I compiled an 2.6 kernel for the db1500 board and used the load command in YAMON to write the srec image to the RAM using tftp. Now I want to start the kernel and so I issued the go command. It gives me the following error:

Quoted 5 lines

* Exception (user) : Reserved instruction *

CAUSE    = 0x00808028  STATUS   = 0x00000002
EPC      = 0x80404004  ERROREPC = 0x00000000

BADVADDR = 0x00000000

I think the command should be
go .

the period tells it to use the start address from the last "load" command.

Quoted 3 lines

Also another query is this: How does one know whether the load command has written to the RAM or the Flash?

The address the srec file is loaded to is dependent upon the address used when building the srec file. I believe it defaults to ram memory. I use the --adjust-vma option with objcopy to adjust the address to a flash memory location. Yamon will put that in flash if the address parameter is correct.

Quoted 15 lines

The help load says that this
depends on the address. However, upon issuing the load command without any options, YAMON outputs the following as the location of the load:

Start = 0x80404000, range = (0x80100000,0x80423084), format = SREC

Thanks & Regards,

Ashlesha Shintre.
Intern
Kenati Technologies
800W California Ave.
Sunnyvale, CA