/proc/device-tree is working

Mitch Bradley wmb at firmworks.com
Mon Dec 25 05:42:05 EST 2006


-bash-3.1# cd /proc/device-tree/
-bash-3.1# ls
#address-cells  chosen          memory at 0            null-nvram  pci
aliases         cpus            mmu                 openprom
architecture    dma-ranges      model               options
banner-name     flash at fff20000  nandflash at 20000000  packages
-bash-3.1# ls -l
total 0
-r--------  1 root root  4 Nov 29 16:34 #address-cells
dr-xr-xr-x  2 root root  0 Nov 29 16:34 aliases
-r--------  1 root root  5 Nov 29 16:34 architecture
-r--------  1 root root 12 Nov 29 16:34 banner-name
dr-xr-xr-x  2 root root  0 Nov 29 16:34 chosen
dr-xr-xr-x  3 root root  0 Nov 29 16:34 cpus
-r--------  1 root root  8 Nov 29 16:34 dma-ranges
dr-xr-xr-x  2 root root  0 Nov 29 16:34 flash at fff20000
dr-xr-xr-x  2 root root  0 Nov 29 16:34 memory at 0
dr-xr-xr-x  2 root root  0 Nov 29 16:34 mmu
-r--------  1 root root 11 Nov 29 16:34 model
dr-xr-xr-x  2 root root  0 Nov 29 16:34 nandflash at 20000000
dr-xr-xr-x  2 root root  0 Nov 29 16:34 null-nvram
dr-xr-xr-x  2 root root  0 Nov 29 16:34 openprom
dr-xr-xr-x  2 root root  0 Nov 29 16:34 options
dr-xr-xr-x 21 root root  0 Nov 29 16:34 packages
dr-xr-xr-x  8 root root  0 Nov 29 16:34 pci
-bash-3.1# more banner-name
OLPC A-test
-bash-3.1# more model
OLPC-Dev1A
-bash-3.1# cd pci
-bash-3.1# ls
#address-cells  device_type  isa at f              slave-only  usb at f,4
#size-cells     display at 1,1  name               slot-names  usb at f,5
bus-range       ide at f,2      scsi-initiator-id  sound at f,3
-bash-3.1# ls -l
total 0
-r--------  1 root root  4 Nov 29 16:35 #address-cells
-r--------  1 root root  4 Nov 29 16:35 #size-cells
-r--------  1 root root  8 Nov 29 16:35 bus-range
-r--------  1 root root  4 Nov 29 16:35 device_type
dr-xr-xr-x  2 root root  0 Nov 29 16:35 display at 1,1
dr-xr-xr-x  2 root root  0 Nov 29 16:35 ide at f,2
dr-xr-xr-x 10 root root  0 Nov 29 16:35 isa at f
-r--------  1 root root  4 Nov 29 16:35 name
-r--------  1 root root  4 Nov 29 16:35 scsi-initiator-id
-r--------  1 root root  4 Nov 29 16:35 slave-only
-r--------  1 root root 22 Nov 29 16:35 slot-names
dr-xr-xr-x  2 root root  0 Nov 29 16:35 sound at f,3
dr-xr-xr-x  2 root root  0 Nov 29 16:35 usb at f,4
dr-xr-xr-x  4 root root  0 Nov 29 16:35 usb at f,5
-bash-3.1# more device_type
pci
-bash-3.1# od -x \#address-cells
0000000 0000 0300
0000004
-bash-3.1# od -c \#address-cells
0000000  \0  \0  \0 003
0000004
-bash-3.1# dev display\@1\,1/
-bash: dev: command not found
-bash-3.1# cd display\@1\,1/
-bash-3.1# ls
address        depth        height               linebytes  reg
character-set  device_type  iso6429-1983-colors  name       width
-bash-3.1# ls
address        depth        height               linebytes  reg
character-set  device_type  iso6429-1983-colors  name       width
-bash-3.1# ls -l
total 0
-r-------- 1 root root   4 Nov 29 16:36 address
-r-------- 1 root root  10 Nov 29 16:36 character-set
-r-------- 1 root root   4 Nov 29 16:36 depth
-r-------- 1 root root   8 Nov 29 16:36 device_type
-r-------- 1 root root   4 Nov 29 16:36 height
-r-------- 1 root root   0 Nov 29 16:36 iso6429-1983-colors
-r-------- 1 root root   4 Nov 29 16:36 linebytes
-r-------- 1 root root   8 Nov 29 16:36 name
-r-------- 1 root root 100 Nov 29 16:36 reg
-r-------- 1 root root   4 Nov 29 16:36 width
-bash-3.1# more character-set
ISO8859-1
-bash-3.1# od -x reg
0000000 0000 0009 0000 0000 0000 0000 0000 0000
0000020 0000 0001 0002 1009 0000 0000 0000 0000
0000040 0000 0000 0001 0000 0002 1409 0000 0000
0000060 0000 0000 0000 0000 0000 0040 0002 1809
0000100 0000 0000 0000 0000 0000 0000 0000 0040
0000120 0002 1c09 0000 0000 0000 0000 0000 0000
0000140 0000 0040
0000144
-bash-3.1#



More information about the Devel mailing list