On 03/25/10 07:06 AM, ?? wrote:
Hi all,

I am new in solaris. May be my question is not merely solaris related.

I am using Simics(a full system simulator) to simulate a sparc machine, under which I installed the Solaris 10 OS. In the simulator configuration, I added a small ram(configure the simulator) size of 1MB by the script and mapped it at the address range of 0x20100000 to 0x20200000 since the main memory capacity of the simulation is 512MB. However, I can't find the newly added ram image in solaris. I just wonder if a newly added device such as a ram could be identified by the OS? Can anyone familiar with the OS tell me how I can find it? If a device driver is a must, then how I can bind the driver with a ram?

P.S. The ram here is going to be an on-chip memory like scratchpad memory in embedded processors.

Thank you for your attention!

For a device (such as memory) like this, the system OBP must enumerate it and provide it in the PROM device tree for Solaris. Solaris won't see anything not in the device tree.

Note that OBP automatically enumerates PCI and Sbus devices, so making the RAM live in PCI memory space (with PCI configuration space) might be the easiest. Otherwise, you'll have to supply changes to the system's OBP code to find and enumerate that device.

I'm not an OBP expert (I don't know Fcode, which is developed in Forth), but there are books written on the topic.

    -- Garrett


--
Regards
Ning Deng

School Of Computer Science and Technology
Beijng Institute of Technology, China, 100081
dunning2...@gmail.com <mailto:dunning2...@gmail.com>


_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to