[原创] 三星内部指令

[复制链接]
  • TA的每日心情
    开心
    2018-9-8 09:42
  • 签到天数: 90 天

    [LV.6]五品郎中

    10

    主题

    268

    回帖

    608

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    608
    发表于 2017-7-22 11:11:24 | 显示全部楼层 |阅读模式
    HE -> Show a list of available commands.

    BT -> Enter BOOT> level (for downloading ROM, etc.).

    ESC KEY -> Go to debug (DBG>) mode.

    RT -> Software Reset.

    D start [size = 8] -> Read size words or bytes (depending on model) from RAM beginning from word/byte start and output them.

    DP start [size = 8] -> Read size words from ROM beginning from word start and output them in Big Endian (ROM dump flips every two bytes, so natural byte order seems to be the one output with this command). Working on old models.

    DB start [size = 8] -> Read size bytes from RAM beginning from byte start and output them.

    DW start [size = 8] -> Read size words from RAM beginning from word start and output them.

    DF start [size = 8] -> Read size words from ROM beginning from word start and output them. Working on old models.

    M start [data...] -> Edit RAM from start word/byte. Anter ENTER, write N bytes in hex format (e.g., F8). Press ENTER to move forward to next byte/word if needed without changes to current byte/word. Input a full stop (.) followed by an ENTER to finish.

    MD start [Wdata...] -> Edit RAM from start word/byte. Anter ENTER, write N bytes/words in hex format (e.g., F8). Press ENTER to move forward to next byte/word if needed without changes to current byte/word. Input a full stop (.) followed by an ENTER to finish.

    MB start [Bdata...] -> Edit RAM from start byte. Anter ENTER, write N bytes in hex format (e.g., F8). Press ENTER to move forward to next byte if needed without changes to current byte/word. Input a full stop (.) followed by an ENTER to finish. Example: MB 0 A0 12 FF

    MW start [Wdata...] -> Edit RAM from start word. Anter ENTER, write N words in hex format (e.g., F804). Press ENTER to move forward to next word if needed without changes to current word. Input a full stop (.) followed by an ENTER to finish.. Example: MB 0 A012 FFA0

    FB start pattern size -> 'Fill Bytes', fill size words/bytes of RAM from start with pattern. Example: FB 0 CAFE 20

    FW start pattern size -> 'Fill Words', fill size words of RAM from start with pattern.

    LW start size [z...] -> Write size words fromstart into RAM. If z exists, input is in hex. If not, input is ASCII text. Ends when size is reached. Example: LW 0 3 [ENTER] Hello! [ends].

    UW start size -> After hit ENTER and ^F, shows in ASCII text RAM from start to end.
    RS x Hd y z w -> Read using Head Hd. The command might specify a C H S address, but haven't understood it correctly yet.

    SK Hd Cyl [sector] -> Could be "Seek cylinder Cyl and set head Hd", but on newer model requires a third param. Outputs the time needed to complete in old models. Need to understand better.

    SD -> Spin down.

    SU -> Spin up.

    RN -> I don't know what it does, but causes my test drive to sweep a quite loud tone 4 times, 10 seconds each.

    RE -> Like RN, but sweeps once.

    DEBUG DBG> LEVEL

    You can use DBG> level to debug program code. My test drive can be debugged while online, and it permits up to 3 software breakpoints.

    GO -> Go back to ENG> level and exit debugging.

    BD -> Show current breakpoints.

    BS x -> Set a new breakpoint at x. Example: BS 92FA

    BC x -> Clear breakpoints. If x==0, it clears all breakpoints. Otherwise, x has to be the program memory address you want to clear the breakpoint from.

    R2 x -> Seems to be a "RETURN" instruction, but I have to go a bit deeper on this one. Goes back to ENG> on my tests.

    DA [x] -> Show code program in assembly from x with mnemonics (awesome). My test drive uses OakDSPCore instructions and mnemonics.

    DR [x] -> Show the contents of all current CPU registers, or just the x one.

    MR x y -> Load CPU register x with y value.

    TB x -> It seems to "Test Memory Block" X times, but must research a bit more.

    SS -> While debugging, it can be used to step forward to the next instruction.
  • TA的每日心情
    开心
    2018-9-8 09:42
  • 签到天数: 90 天

    [LV.6]五品郎中

    10

    主题

    268

    回帖

    608

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    608
     楼主| 发表于 2017-7-22 11:13:53 | 显示全部楼层
    HE: Help
    LB: View BIRSLT (Harddrive info, serial number, firmware version, ....)
    LD: View Zone Map
    L4: View ?
    LT: View Tlist
    LS: View Slip List
    LV: View Vlist
    LM: View Mlist
    LR: View Rlist
    LL: View Pending-list
    SU: Spin UP
    SD: Spin Down
    RT: Reset

    CMD with params :

    Error code :

    E:0001: Command doesn't exist ?
    E:0003: Bad command's arguments (THX hard2bit)
    E:0004: Command is not supported in the current level (ENG>, DBG>, etc.) (THX hard2bit)

    Switching Mode :

    Esc Key: Go in DBG Mode
    GO: Return in ENG Mode
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2018-9-8 09:42
  • 签到天数: 90 天

    [LV.6]五品郎中

    10

    主题

    268

    回帖

    608

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    608
     楼主| 发表于 2017-7-22 11:15:11 | 显示全部楼层
    本帖最后由 zslzylzy 于 2017-7-22 11:21 编辑

    RC .................... Hex data containing serial number, drive name, etc.
    RI .................... Servo Ready Information
    TI .................... Some Table
    PD .................... Hex data with IBR_SETL header
    ST .................... Servo Status
    OU .................... Parking and then Unlatch
    PK .................... Parking
    UV .................... Unlatch
    SG .................... CLASS OF SERVO SCANGRAY OPTION
    XC .................... Servo Spin Current Test
    XL .................... Test Latch Force (avoid using)
    XS .................... Servo Head Stiction Test
    SL .................... Look XL
    XT [x] ................        Show table of available servo tests or performs the test with ID x.
    XE .................... XT 4 (SEEK_TIME)
    XA .................... XT 10 (HEAD_MISALLIGN)
    XN .................... XT 80 (NOTCH_ID)

    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2018-9-8 09:42
  • 签到天数: 90 天

    [LV.6]五品郎中

    10

    主题

    268

    回帖

    608

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    608
     楼主| 发表于 2017-7-22 11:20:47 | 显示全部楼层
    千万小心”ZM“和“FE”它们是MC和flah清零
    Here is a command you should never ever EVER run:
    ZM - CmdZeroMC
    you have .... FE !!! You should NEVER use FE .... FE = Erase Flash !!!
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2019-4-15 10:10
  • 签到天数: 94 天

    [LV.6]五品郎中

    32

    主题

    221

    回帖

    5428

    积分

    [INTOHARD]团长

    Rank: 8Rank: 8

    积分
    5428
    发表于 2017-11-16 13:33:23 | 显示全部楼层
    Thanks very much.
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2012-11-19 07:29
  • 签到天数: 1 天

    [LV.1]布衣百姓

    29

    主题

    454

    回帖

    422

    积分

    [INTOHARD]排长

    Rank: 3Rank: 3

    积分
    422
    发表于 2017-11-17 21:32:31 | 显示全部楼层
    hello,friend, add my QQ: 1186046994
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2018-1-1 13:23
  • 签到天数: 86 天

    [LV.6]五品郎中

    1

    主题

    146

    回帖

    478

    积分

    [INTOHARD]排长

    Rank: 3Rank: 3

    积分
    478
    发表于 2017-11-21 21:11:19 | 显示全部楼层
    (1:虽然看不懂还是谢谢
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    无聊
    2018-1-13 23:13
  • 签到天数: 1 天

    [LV.1]布衣百姓

    0

    主题

    8

    回帖

    9

    积分

    [INTOHARD]工兵

    Rank: 1

    积分
    9
    发表于 2018-1-14 14:05:51 | 显示全部楼层
    请问有清空SMART表的命令吗?谢谢。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2018-9-8 09:42
  • 签到天数: 90 天

    [LV.6]五品郎中

    10

    主题

    268

    回帖

    608

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    608
     楼主| 发表于 2018-1-15 12:42:48 | 显示全部楼层
    本帖最后由 zslzylzy 于 2018-1-15 12:46 编辑

    还没找到,软件到是有,你自己去下吧:http://bbs.intohard.com/thread-262347-1-2.html
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    快速回复 返回顶部 返回列表