User manual
U-Boot for MPL SBC
User Manual
2003 by MPL AG
19
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.3.30 nboot - boot from NAND device
Used to load the image residing in the NAND flash. To write an image into the NAND flash, refer to the previous chapter.
Abbreviation:
nb
=> help nboot
nboot loadAddr dev
=>
Example:
=> nboot 33000000 0
Loading from device 0: <NULL> at 0x4E000000 (offset 0x0)
Image Name: Linux-2.4.19-rmk4-swl6-dm1
Created: 2003-04-17 14:49:55 UTC
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 778401 Bytes = 760.2 kB
Load Address: 30008000
Entry Point: 30008000
=>
3.3.31 nm - memory modify (constant address)
With the nm command you can write to a constant memory location. It works like the mm command with the difference,
that the address is not incremented.
Abbreviation: nm
=> help nm
nm [.b, .w, .l] address
- memory modify, read and keep address
=>
Example:
=> nm.b 400000
00400000: 00 ? 80
00400000: 80 ? 81
00400000: 81 ? 01
00400000: 01 ? 40
00400000: 40 ? .
=> md.b 400000 1
00400000: 40 @
=>
3.3.32 pci - list and access PCI Configuration Space
Abbreviation:
pci
=> help pci
pci [bus] [long]
- short or long list of PCI devices on bus 'bus'
pci header b.d.f
- show header of PCI device 'bus.device.function'
pci display[.b, .w, .l] b.d.f [address] [# of objects]
- display PCI configuration space (CFG)
pci next[.b, .w, .l] b.d.f address
- modify, read and keep CFG address
pci modify[.b, .w, .l] b.d.f address
- modify, auto increment CFG address
pci write[.b, .w, .l] b.d.f address value
- write to CFG address
Example for a PIP405:
=> pci
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1014 0x0156 Bridge device 0x00
00.06.00 0x8086 0x7110 Bridge device 0x01
00.06.01 0x8086 0x7111 Mass storage controller 0x01
00.06.02 0x8086 0x7112 Serial bus controller 0x03
00.06.03 0x8086 0x7113 Bridge device 0x80
00.07.00 0x102c 0x00c0 Display controller 0x00
00.08.00 0x1000 0x0001 Mass storage controller 0x00