BPI-Berry/BPI-Ultra How to alter Uboot、Kernel from github

Banana Pi BPI-M2 Ultra / BPI-M2 Berry How to alter Uboot、Kernel
1,Click http://www.banana-pi.org/download.html, download relatively BPI-M2 Ultra Image ;and burn images to SD card.
2,Install tool-chain
sudo apt-get install build-essential libncurses5-dev u-boot-tools qemu-user-static debootstrap git binfmt-support libusb-1.0-0-dev pkg-config gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc-arm-linux-gnueabi g++-arm-linux-gnueabi libssl-dev
3,Install BPI-Tools ,to BPI-GitHub https://github.com/BPI-SINOVOIP/bpi-tools
git clone https://github.com/BPI-SINOVOIP/BPI-M2U-bsp.git
4,Put Download done BPI-Tools copy to under /usr/bin
sudo cp -a bpi-* /usr/bin/
Execute bpi-tools -u order,install successfully after appear belows screen
Go to BPI-GitHub https://github.com/BPI-SINOVOIP/BPI-M2U-bsp ,note: BPI-M2 berry and BPI-M2 Ultra use the same code.
Grab BPI-M2Ultra-bsp Source Code; execute grabing source code order
git clone https://github.com/BPI-SINOVOIP/BPI-M2U-bsp.git
switch to BPI-M2U-bsp category after carried out,execute ./build.sh order
Can see BPI-M2 Ultra/BPI-M2 Berry configuration,choose BPI-M2U’s resolution what you wanted.:default compile 720P:
Choose mode what you need compile (advise choose 1 option first time compile)
5,Compile done can seen under generate new SD folder BPI-M2U-bsp
Later Enter into SD folder seen below files
These files represent information one by one
100MB --> BPI-M2Ultra uboot relative file
BPI-BOOT-bpi-m2u.tgz --> BPI-M2Ultra uEnv.txt & uImage relative file
3.10.65-BPI-M2U-Kernel.tgz --> BPI-M2Ultra kernel relative file
6,Use command to see the SD card current position.
sudo fdisk -l
This example can be seen SD Card’s position in /dev/sdb
Can be seen BPI-M2Ultra system has two partition,one FAT32 partition,another one EXT4 partition,represent gradually.
7,Change BPI-M2Ultra Uboot ,switch to /SD/100MB category;execute bpi-bootsel order:
sudo bpi-bootsel <file source> <SD route>
8, Change BPI-M2Ultra uImage ,switch to /SD/ category;carry out relative command.
sudo tar –xvf <file source> -C <SD Boot route >
Belowinformation after execute,successfully done.
9, Change BPI-M2Ultra Kernel,switch to /SD/ category;execute relative order
sudo tar -xvf <file source> -C <SD Boot route>
Change kernel setting,switch to / linux-sunxi category,execute order
make ARCH=arm menuconfig