Was this page helpful?

使用 TTL 方式連接

    usb_to_ttl.jpgTTL 連接座 PIN 腳位

    • GND, RX, TX, 3.3V (左到右順序對應機上盒從AV端子上至下)
    • Baud 115200 8/N/1
       

    連接方式

    網樂通                           USB to TTL 板
    (莫士端子 4P 排座)                (杜邦接頭 1P x3)
    [GND] <-----------------------> [GND]
    [Rx]  <-----------------------> [Tx]
    [Tx]  <------------------------> [Rx] 

    U-Boot

    U-Boot: printenv

    PDK7105> printenv
    bootdelay=0
    baudrate=115200
    ethaddr=DE:EA:FF:FF:01:01
    board=pdk7105
    monitor_base=0xA4000000
    monitor_len=0x00040000
    monitor_sec=1:0-1
    load_addr=0x80000000
    ipaddr=192.9.150.61
    serverip=192.9.150.67
    bootdelay=0
    update_uboot=usb start;fatload usb 0 80000000 u-boot.bin;update_spi_uboot
    unprot=protect off $monitor_sec
    update=erase $monitor_sec;cp.b $load_addr $monitor_base $monitor_len;protect on $monitor_sec
    ethaddr=12:34:56:78:06:BD
    stdin=serial
    stdout=serial
    stderr=serial
    bootargs=console=ttyAS0,115200 root=8:2  rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:10:08:E2:12:06:BD phyaddr:0,watchdog:5000 mem=120M bigphysarea=2048
    bootcmd=ext2load usb 0:2 80000000 vmlinux.ub; bootm 80000000
    
    Environment size: 715/65532 bytes
    

    USB 相關

    PDK7105> help usb
    usb reset - reset (rescan) USB controller
    usb stop [f]  - stop USB [f]=force stop
    usb tree  - show USB device tree
    usb info [dev] - show available USB devices
    usb storage  - show details of USB storage devices
    usb dev [dev] - show or set current USB storage device
    usb part [dev] - print partition table of one or all USB storage devices
    usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
        to memory address `addr'
    
    PDK7105> usb dev
    
    USB device 0: Vendor: General  Prod.: USB Flash Disk   Rev: 1100
                Type: Removable Hard Disk
                Capacity: 7656.0 MiB = 7.4 GiB (15679488 x 512)
    
    PDK7105> usb part 0
    print_part of 0
    
    Partition Map for USB device 0  --   Partition Type: DOS
    
    Partition     Start Sector     Num Sectors     Type
        1                   19          617101      83
        2               617120          617120      83
        3              1234240        12585600      83
        4             13819840         1802720      83
    
    print_part of 1
    ## Unknown partition table
    
    print_part of 2
    ## Unknown partition table
    
    print_part of 3
    ## Unknown partition table
    
    print_part of 4
    ## Unknown partition table
    

    如何套用新的 linux kernel

    setenv bootcmd 'ext2load usb 0:2 80000000 vmlinux-1.ub; bootm 80000000'
    boot 
    

    TIPs:

    新編譯的 linux kernel: vmlinux-1.ub 必須放在 / 目錄下


    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core