8
Netra CP3010 Board Programming Guide
• January
2006
Interface (Header) File
The flash header file is located in the following path:
/usr/
platform
/SUNW,Netra-CP3010/include/sys/uflash_if.h
Flash Memory
The Netra CP3010 board has a 16-megabyte flash chip that is logically divided into
two partitions:
■
2-megabyte system flash for storing copies of the OpenBoot PROM image. Users
do not have access to this partition.
■
14-megabyte user flash for storing any user data and performing operations such
as read and write. The user flash includes a flash PROM chip that can be
programmed. The physical address of the user flash is 1ff.f000.0000.
Accessing the Flash Device
You can access the flash device from the Solaris OS through an application or user C
program. No command-line tool is available. Access to the driver is carried out
through
open
,
read
,
write
,
pread
,
pwrite
and
ioctl
system interfaces. User
programs open the device file, then issue
read
,
write,
or
ioctl
commands.
System calls are listed in the following table.
TABLE
2-2
System Calls
Call
Description
read(), pread()
Reads device
write(),
pwrite()
Writes device
ioctl()
Erases device, queries device parameters