LS Mini: Serial Port Output - U-Boot

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
Linkstation Mini

Contents

Version

Marvell>> version

U-Boot 1.1.1 (Feb 22 2008 - 18:48:54) Marvell version: 1.12.1 - TINY

List of commands

Marvell>> help
?       - alias for 'help'
base    - print or set address offset
board_info   -show board information.
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootend - with micon. send bootend.
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
bubt    - Burn an image on the Boot Flash.
buzzer          - with micon. buzzer command.
cmp     - memory compare
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
diskboot- boot from IDE device
echo    - echo args to console
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls- list files in a directory (default /)
fan_control     - with micon. fan control  .
fan_rpm         - with micon. fan get rpm.
flinfo  - print FLASH memory information
get_sw          - without micon. get switch status.
go      - start application at address 'addr'
hdd_power       - hdd power control  .
help    - print online help
ide     - IDE sub-system
led             - without micon. call led control routine(for debug).
led_blink       - with micon. led blink control setting.
led_cpu_mcon    - with micon. led cpu micon control setting.
led_on_off      - with micon. led on off control setting.
loop    - infinite loop on address range
md      - memory display
micon           - with micon. command(2byte hex) -data(witin 32byte hex) 
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
pci     - list and access PCI Configuraton Space
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
resetenv        - Return all environment variable to default.
saveenv - save environment variables to persistent storage
security -device -command -options -password 
setenv  - set environment variables
shutdown        - with micon. Poff .
sw_power        - with micon. software power control interface
tftpboot- boot image via network using TFTP protocol
usb_power       - without micon. usb power control  .
version - print monitor version

Some commands are not supported, because there is no micon:

Marvell>> shutdown

Sorry, this board does not support this command

Flash chip

Marvell>> flinfo

Bank # 1: SST SST39VF020 (2 Mbit)
Size: 256 kB,Bus Width: 1, device Width: 1.
Flash base: 0xfffc0000,Number of Sectors: 64 Type: REGULAR.
  Sector Start Addresses:
    00000000 (RO) 00001000 (RO) 00002000 (RO) 00003000 (RO) 00004000 (RO)
    00005000 (RO) 00006000 (RO) 00007000 (RO) 00008000 (RO) 00009000 (RO)
    0000a000 (RO) 0000b000 (RO) 0000c000 (RO) 0000d000 (RO) 0000e000 (RO)
    0000f000 (RO) 00010000 (RO) 00011000 (RO) 00012000 (RO) 00013000 (RO)
    00014000 (RO) 00015000 (RO) 00016000 (RO) 00017000 (RO) 00018000 (RO)
    00019000 (RO) 0001a000 (RO) 0001b000 (RO) 0001c000 (RO) 0001d000 (RO)
    0001e000 (RO) 0001f000 (RO) 00020000 (RO) 00021000 (RO) 00022000 (RO)
    00023000 (RO) 00024000 (RO) 00025000 (RO) 00026000 (RO) 00027000 (RO)
    00028000 (RO) 00029000 (RO) 0002a000 (RO) 0002b000 (RO) 0002c000 (RO)
    0002d000 (RO) 0002e000 (RO) 0002f000 (RO) 00030000 (RO) 00031000 (RO)
    00032000 (RO) 00033000 (RO) 00034000 (RO) 00035000 (RO) 00036000 (RO)
    00037000 (RO) 00038000 (RO) 00039000 (RO) 0003a000 (RO) 0003b000 (RO)
    0003c000 (RO) 0003d000 (RO) 0003e000 (RO) 0003f000     

GPIO and board

Marvell>> board_info
board configuration
        VGPP_CONFIG_NUM=   4
        BoardId        =  26    (0x001a)
        gBoardId       =  26    (0x001a)

power control bit
        hdd_power      =   1    (0x0002)
        usb_power      =  16    (0x10000)

led control bit
        led_info       =   3    (0x0008)
        led_power      =  14    (0x4000)
        led_alarm      =   2    (0x0004)
        led_func       =   9    (0x0200)

fan control bit
        fan_full       = N_A
        fan_lock       = N_A

sw control bit
        sw_init        =   7    (0x0080)
        sw_power       =  18    (0x40000)
        sw_raid        = N_A
        sw_auto_power  =  17    (0x20000)

Switches

Marvell>> get_sw
sw_status = 0x0000 // off
sw_status = 0x40000 // power
sw_status = 0x20000 // auto-power

PCI bus

Marvell>> pci
Scanning PCI devices on bus 0
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.00.00   0x11ab     0x5182     Memory controller       0x80

Environment

Marvell>> printenv
ethaddr=00:XX:XX:XX:XX:XX
bootargs=$(bootargs_base) $(bootargs_root)
baudrate=115200
loads_echo=0
ipaddr=192.168.11.150
serverip=192.168.11.1
rootpath=/nfs/arm
cpuName=926
CASset=min
MALLOC_len=4
bootargs_end=:::DB88FXX81:eth0:none
buffalo_ver=BOOTVER=1.13
buffalo_minor_ver=BOOT_MINOR_VER=1.00
build_time=18:48:49
initrd=initrd.buffalo
kernel=uImage.buffalo
bootargs_base=console=ttyS0,115200
bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5
def_tftp=tftp 0x00100000 $(kernel); tftp 0x00800000 $(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes; bootm 0x00100000 0x00800000
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
ethprime=egiga0
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=host
bootargs_func=func=0
filesize=52AA09
bootcmd= ext2load ide 0:1 0x00100000 /$(kernel); ext2load ide 1:1 0x00800000 /$(initrd); setenv bootargs $(bootargs_base) $(bootargs_root) $(bootargs_func) $(bootargs_debug) $(buffalo_ver); bootm 0x00100000 0x00800000

Environment size: 1065/4092 bytes

Default boot image

Marvell>> tftp 0
*** Warning: no boot file name; using '960BA8C0.img'