Eurotech ZEUS Manual de usuario Pagina 63

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 72
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 62
Arcom Embedded Linux Technical Manual RedBoot
Updating the entire Flash
As well as updating individual portions of the Flash, it may also be desirable to reload
the entire Flash array, for example to reload the Flash image the board shipped with.
To update the entire Flash you must first load the image into RAM as described in the
section Loading images into RAM
on page 57. Once the image is in RAM you may
need to unlock the Flash, as described above, before using the fis write command to
write the image into Flash.
RedBoot> load –r –b %{FREEMEMLO} flash.img
RedBoot> fis unlock –f 0 –l <FLASH_SIZE>
RedBoot> fis write –f 0x0 –b %{FREEMEMLO} –l <FLASH_SIZE>
FLASH_SIZE is the size of the Flash in bytes. For an F16 board this would be
0x1000000.
Executing an image
There are two commands that can be used to execute an application or another
operating system under RedBoot. They are go and exec. Typically the go command is
used to execute an application while exec is primarily designed to launch Linux.
go
The go command jumps directly to the supplied virtual address. If no address is given,
it either jumps to the entry address of the most recently loaded image (which could be
specified by the FIS table entry), or it may default to the load address of the image.
The MMU is left enabled and set up and the processor is left in privileged mode. For
example, if your application binary is loaded and linked to run at virtual address
0x200000, the following command jumps to the application:
RedBoot> go 0x200000
At this point, control is transferred directly to your application at 0x200000. The
application may choose to continue using the existing MMU settings or may tear down
the current configuration and reinitialize using the desired options.
exec
The exec command disables the MMU before jumping to the physical address supplied.
The primary purpose of this command is to execute a Linux kernel image, but it could
be used to launch any application that has been designed to be launched in this way.
When entering the exec command, you can specify the following parameters:
exec [-b <virtual address>] [-l <length>] [-c “command line”] [<entry point>]
© 2006 Arcom Issue G 63
Vista de pagina 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 71 72

Comentarios a estos manuales

Sin comentarios