banana pi BPI-M2 Ultra/Berry allwinner R40/V40 SBC
  • About BPI-M2 Ultra/BPI-M2 Berry
  • BPI-M2 Berry hardware
    • BPI-M2 Berry hardware interface
    • BPI-M2 Berry hardware spec
    • BPI-M2 Berry GPIO Pin define
    • BPI-M2 Berry SATA interface
    • BPI-M2 Berry micro SD card slot
    • BPI-M2 Berry GigE LAN
    • BPI-M2 Berry WIFI interface
    • BPI-M2 Berry wifi antenna slot
    • BPI-M2 Berry HDMI interface
    • BPI-M2 Berry USB interface
    • BPI-M2 Berry OTG interface
    • BPI-M2 Berry bluetooth interface
    • BPI-M2 Berry UART port
    • BPI-M2 Berry MIPI DSI interface
    • BPI-M2 Berry CSI camera interface
    • BPI-M2 Berry Power interface
    • BPI-M2 Berry DXF and 3D design
    • BPI-M2 Berry schematic diagram
  • BPI-M2 Ultra hardware
    • BPI-M2 Ultra hardware interface
    • BPI-M2 Ultra hardware spec
    • BPI-M2 Ultra GPIO Pin define
    • BPI-M2 Ultra SATA interface
    • BPI-M2 Ultra micro SD card slot
    • BPI-M2 Ultra GigE LAN
    • BPI-M2 Ultra eMMC flash
    • BPI-M2 Ultra WIFI interface
    • BPI-M2 Ultra wifi antenna slot
    • BPI-M2 Ultra IR interface
    • BPI-M2 Ultra HDMI interface
    • BPI-M2 Ultra USB interface
    • BPI-M2 Ultra OTG interface
    • BPI-M2 Ultra bluetooth interface
    • BPI-M2 Ultra UART port
    • BPI-M2 Ultra MIPI DSI interface
    • BPI-M2 Ultra CSI camera interface
    • BPI-M2 Ultra 3.7V lithium battery interface
    • BPI-M2 Ultra Power interface
    • BPI-M2 Ultra schematic diagram
    • BPI-M2 Utra DXF and 3D design
  • BPI-M2 Ultra/Berry software
    • Android image
    • Linux software image
    • Tina-IoT os
    • BPI-tools
      • bpi-bootsel command
      • bpi-get command
      • bpi-copy command
      • bpi-update
    • WiringPi for BPI-M2 Ultra
  • BPI-M2 Ultra /Berry source code on github
    • BPI-Berry/BPI-Ultra How to alter Uboot、Kernel from github
    • how to boot from emmc with SD data
    • How to rebuild bootloader BPI_M2U_720P-emmc.img.gz
    • BPI-M2 Ultra/Berry TinaLinux github
  • Reference documents
    • Allwinner R40/V40 chip datasheet
    • linux-sunxi document
  • BPI-M2 Ultra quality guarantee
    • BPI-M2 Ultra WIFI &BT4.0 Lab test
    • BPI-M2 Ultra validation test report
    • BPI-M2 Ultra CE,FCC RoHS Certification
    • BPI-M2 Berry CE,FCC RoHS Certification
  • All Banana Pi SBC Comparison
  • All banana pi product
  • Getting Started with M1P - Banana Pi Wiki
Powered by GitBook
On this page

Was this helpful?

  1. BPI-M2 Ultra /Berry source code on github

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

PreviousBPI-M2 Ultra /Berry source code on githubNexthow to boot from emmc with SD data

Last updated 5 years ago

Was this helpful?

Banana Pi BPI-M2 Ultra / BPI-M2 Berry How to alter Uboot、Kernel

1,Click , 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

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

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>

Supplement

Change kernel setting,switch to / linux-sunxi category,execute order

make ARCH=arm menuconfig

Go to BPI-GitHub ,note: BPI-M2 berry and BPI-M2 Ultra use the same code.

Grab BPI-M2Ultra-bsp Source Code; execute grabing source code order

https://github.com/BPI-SINOVOIP/BPI-M2U-bsp
http://www.banana-pi.org/download.html
https://github.com/BPI-SINOVOIP/bpi-tools