How to building a Minimal system for BPI-M2
Last updated
Last updated
1, Format microSD card
Prepare one Class 10 SD card,and cut into two parts; the first partition is FAT32、the second partition is EXT4;but SD card’s front end should be reserve space more than 100MB which as Bootloader,Kernel storage area.we use Ubuntu provided by GParted tool to help us cut SD card.
Front end reserve 100MB,first part file system is FAT32,space is 50MB
Second partition file system is EXT4;size is remaining space from SD card
2,Install tool-chain
3,To BPI-GitHub https://github.com/BPI-SINOVOIP/BPI-M2-bsp
After running,please switch to BPI-M2-bsp directory,run ./build.sh order to know support what development board currently:
can see BPI-M2 re-configuration profile; select the resolution what you want to compile the BPI-M2,it is assumed that BPI_M2_720P
Select model what you need compile(Here suggest choose (1) option when you compile first time)
4,After compilation,can see produce new download folder under /BPI-M2-bsp
5,Go to ArmHf official website
http://www.armhf.com/download/download Root File Systems-Debian Wheezy 7.5
6,Install Root File Systems
extract the files which was download compressed to SD second partition EXT4; please note that the decompressed instructions
sudo tar --strip-components=1 -pJxvf< file source > -C < Extract storage location >
7,Install BootLoader;please use order to see current SD card position
sudo fdisk -l
After run order,can see the example SD card’s position in /dev/sdb
Please refer to fourth tips,after compilation will have Bananapi folder;then youwill see bootload/ Kernel these file from download/BPI_M2_720P folder。Please write in former 100MB of SD card Individually。
Step 1: BPI-M2 we will use first partition FAT32 don’t need to copy any file,for compatible with Kernel4.1.X in the near future
Step 2: Copy modules to Second partition EXT4 of lib catalog from /BPI-M2-bsp/download/BPI_M2_720P/lib directory
Step 3:Please building wifi-firmware read’s directory (/system/vendor)and building Link from Second partition,because BPI-M2 loading bcmdhd.ko will go to relative path searching WiFi-firmware,so we need building one link:
$sudo mkdir system
Go to system/vendor directory building relative link
$ sudo ln -s /lib/modules/3.11.0-15-generic/ modules
8.Finished above steps
please insert maked-SD card into Banana Pi,please try to Boot。
git clone https://github.com/BPI-SINOVOIP/BPI-M2-bsp.git