browsing OBP device tree -- question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers browsing OBP device tree -- question
# 1  
Old 03-11-2003
browsing OBP device tree -- question

Does anyone know the difference between these two OBP commands?

dev device-path
Chooses the indicated device node, making it the current node.

" device-path" select-dev
Selects the specified device and make it the active node.



I am a bit confused about this...Thanks.
# 2  
Old 03-12-2003
dev device-path

It looks like "dev" is another name for the "cd" command. In recent versions on the OpenBoot Command Reference Manual, "cd" is no longer mentioned and "dev" is used in its place. So you can do stuff like:
dev /zs
dev ..
and it will be just like you did a "dev /". I think that Sun got tired of explaining that they borrowed the cd command from unix where it means "change directory" but in OBP it doesn't mean directories on disk.

But "cd" and/or "dev" make a device the "current node". And the "device-end" command will discard the "current node", leaving no device selected as the current node.

For one thing, the current node will obviously decide what a command like "dev .." will do. Also devices have some data associated with them. The ".attributes" command will show this data for the current node. And there are usually some special commands for a device. The "words" command will show these. Be careful with this stuff. I only use it when I am following step-for-step some docs that I got from Sun.

" device-path" select-dev
Whoa, I had to read up on this one. I'll try to explain this... but it's going to be rough...

Computer have physical memory and virtual memory. A virtual address get translated into a phyisical address by a memory management unit. And programs just use virtual addresses. It may be a little surprising that this applies even to OBP itself. Not all computers bother to turn on the MMU prior to boot.

Also, not all physical addresses actually point to memory. OBP itself resides somewhere in the physical address space. Also most devices have a presence in the phyisical address space.

What select-dev does is figure out exactly where in physical memory a particular device resides. Subsequent memory mapping commands can then just use an offset which is automatically added to the starting phyisical address of the device.

This is used to map all or part of a device's memory in the virtual address space of OBP.

My advice is to stay away from this stuff. Unless you're writing a device driver I doubt that you will ever need to fiddle with OBP's virtual address space.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Browsing to files under cursor

hi all, I am using cntrl w f for this But now the new file is displayed in half of the screen...and the old file in the other half... how can ichange this default behaviour ... say for eg:80% to 1 file and remaining 20 % to the other file.... (4 Replies)
Discussion started by: dll_fpga
4 Replies

2. Solaris

Internet browsing on Solaris 10?

Hello sir, Can any one guide step by step way of configuration for internet browsing on solaris 10 using BSNL broadband connection in brief way about which configuartion file to edit etc. Regards, Amar (1 Reply)
Discussion started by: amarnathbasis8
1 Replies

3. Solaris

question about opb boot device

hi all: I have a sun blade-1000 for labs only, with 73G hd loaded, which boot block installed on slice 0. I'm confused by setting "boot-device" value in obp, which my question as follow: in ok mode, I got device alias like this: disk0: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@2,0 as I know the... (4 Replies)
Discussion started by: netshu
4 Replies

4. Linux

Squid Browsing problem

Configured Squid2.0 on linux9. Browsing is very slow in client side. takes atleast 1min to open the page. can anybody tell me what to do Thaks in Advance (0 Replies)
Discussion started by: teenasuresh
0 Replies

5. HP-UX

Question about the hareware path and device name

# ioscan -f | grep disk Class I H/W Path Driver S/W State H/W Type Description disk 3 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC ... (1 Reply)
Discussion started by: bluepluto
1 Replies

6. Post Here to Contact Site Administrators and Moderators

Thread browsing during search

Hi Mods, Next Thread link available at the bottom, doesn't seem to be working accurately during a search, it goes to nextnewest thread relative to the thread we are viewing. Hope this can be fixed. Regards, Tayyab (4 Replies)
Discussion started by: tayyabq8
4 Replies

7. UNIX for Dummies Questions & Answers

apache directory browsing

How do i prevent clients from browsing directory structures if there is no index.html in a directory? For example, lets say that i dynamically create directories on in my doc root of an apache based web server. I know if i type the url and there is no index or default page in there, then apache... (1 Reply)
Discussion started by: ezekiel61
1 Replies

8. UNIX for Advanced & Expert Users

Sun Solaris OBP Question

Hi, Does anyone know where i can find information on openboot prompt. My machine boot up with the number 1 ok. What does that mean? Any kind of help will be nice. Thanks in advance (4 Replies)
Discussion started by: souldier
4 Replies
Login or Register to Ask a Question