Giter VIP home page Giter VIP logo

burn-boot's Introduction

hisi-idt

A tool for downloading binaries to soc ram and ddr through serial port.

  1. Command

sudo python hisi-idt.py -d device --img1 --img2 or sudo python hisi-idt.py -d device --img1 <l-loader.bin>

  1. Download Steps

a. Insert USB cable and connect with PC; b. Enter force downloand mode:

For LCB board: short J15 / Pin 3-4;

For EVB board: press “Force Download” key + “Reset” key, and then
release “Reset” key then will enter into “force download” mode;

c. Check if there have the device node “/dev/ttyUSBx”, if there have device node that means the PC has detected the target board; d. Use command "sudo python hisi-idt.py" to run the script; after idt download binaries successfully, it will print out below log:

+----------------------+
 Serial:  /dev/ttyUSB1
 Image1:  fastboot1.img
 Image2:  fastboot2.img
+----------------------+

Sending fastboot1.img ...
Done

Sending fastboot2.img ...
Done
  1. Burn Images

After download fastboot1.img and fastboot2.img on the board, then can use fastboot command to burn images:

sudo fastboot flash fastboot1 fastboot1.img sudo fastboot flash fastboot fastboot2.img

  1. Troubleshooting

a. After enter the force download mode, if Ubuntu PC cannot recognize the device ttyUSBx; this issue can be fixed by input below commands: sudo echo 12D1 3609 > /sys/bus/usb-serial/drivers/option1/new_id sudo makenod /dev/ttyUSB0 c 188 0

b. Need supervisor permission for hisi-idt.py: "sudo python hisi-idt.py"

c. Need supervisor permission for fastboot: "sudo fastboot"

d. If download binaries failed with below message:

Sending fastboot1.img ...
failed
failed

Usually this means you are using the wrong ttyUSBx device; the reason
is when connect board with the uart cable and usb cable, then PC will
create two device nodes /dev/ttyUSB0 and /dev/ttyUSB1;

But the nodes which are randomly binding to uart and usb, so sometimes
/dev/ttyUSB0 is created for the uart and /dev/ttyUSB1 is for the usb
port, in this case should use /dev/ttyUSB1 for the idt; if PC exchanges
the nodes then should use /dev/ttyUSB0.

burn-boot's People

Contributors

fboudra avatar hzhuang1 avatar jforissier avatar windyan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.