How to debug linux kernel in bananapi board

0 3857
After changing the files of kernel, execute the following command to compile the kernel under the directory of "lichee" :
  1. $ ./build.sh -p sun7i_android
Copy the Code
Then execute the following command to pack the file "boot.img" under the directory of "android" :
  1. $ source build/envsetup.sh
  2. $ lunch    //choose your enviroment
  3. $ extract-bsp
  4. $ make bootimage
Copy the Code
After getting the boot.img file,you have to flash the img to your bananapi board by the tool "fastboot":
1. reboot your board,click any keybutton at your serial software interface,and then it will get into u-boot ;
2. Enter the command"fastboot" at the serial software interface,then it will get into the fastboot mode ;
3. Enter the windows command line: "cmd" ,execute "fastboot" at command line(You have to install the tool fastboot before),copy the boot.img file to the board.
  1. $ fastboot erase boot
  2. $ fastboot flash boot boot.img
Copy the Code
You have to log in before you can reply Login | Sign Up

Points Rules