I am trying to build a custom image for BPI using https://github.com/BPI-SINOVOIP/BPI-M64-bsp-4.4.First of all I ran this script with option 1. It compiled everything. But after compiling when I try to run the script using option 7 to flash image on SD card it gives some error message and ends with “Build Success” message. But my BPI board does not boot up with mentioned SD Card. I am attaching output for further reference. How to fix this issue to run custom image for BPI.
> $ ./build.sh
> top dir
> NOTICE:
> new build.sh default select BPI-R18-AVS-720P and pack all boards
> supported boards:
> BPI-M64-720P
> BPI-M64-LCD7
> BPI-R18-AVS-720P
>
> ./configure: line 96: env.sh: Permission denied
> This tool support following building mode(s):
> --------------------------------------------------------------------------------
> 1. Build all, uboot and kernel and pack to download images.
> 2. Build uboot only.
> 3. Build kernel only.
> 4. kernel configure.
> 5. Pack the builds to target download image, this step must execute after u-boot,
> kernel and rootfs build out
> 6. Create bsp update packages for BPI SD image
> 7. Update local build to SD with bpi image flashed
> 8. Clean all build.
> --------------------------------------------------------------------------------
> Please choose a mode(1-7): 7
>
> Now building...
>
> scripts/mk_install_sd.sh
> --------------------------------------------------------------------------------
> 1. HDMI 720P
> 2. LCD7 Panel
> --------------------------------------------------------------------------------
> Please choose a type to install(1-5): 1
>
> Please type the SD device(/dev/sdX): /dev/sdb
>
> 720P type will be intalled to /dev/sdb, [Y/n] Y
>
> Yes
>
> sudo gunzip -c SD/bpi-m64/100MB/BPI-M64-720P-linux4.4-8k.img.gz | dd of=/dev/sdb bs=1024 seek=8 status=progress
> [sudo] password for emumba:
> 102392+0 records in
> 102392+0 records out
> 104849408 bytes (105 MB, 100 MiB) copied, 56.1243 s, 1.9 MB/s
>
> bootloader download finished
>
> DEVICE=/dev/sdb
> umount device: /dev/sdb
> umount /dev/sdb1
> umount /dev/sdb2
>
> ######################
> update /dev/sdb1(vfat) with ./BPI-BOOT-bpi-m64-linux4.4.tgz
> ######################
>
>
> tar xf ./BPI-BOOT-bpi-m64-linux4.4.tgz --keep-directory-symlink -C /mnt
> total 5
> drwxr-xr-x 3 root root 512 Jun 25 19:27 .
> drwxr-xr-x 26 root root 4096 Jun 21 09:29 ..
> drwxr-xr-x 3 root root 512 Jun 25 19:27 bananapi
>
> ######################
> update /dev/sdb2(ext4) with ./4.4.89-BPI-M64-Kernel-net.tgz ./4.4.89-BPI-M64-Kernel.tgz ./BOOTLOADER-bpi-m64-linux4.4.tgz
> ######################
>
> mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error.
>
> tar xf ./4.4.89-BPI-M64-Kernel-net.tgz --keep-directory-symlink -C /mnt
> tar xf ./4.4.89-BPI-M64-Kernel.tgz --keep-directory-symlink -C /mnt
> tar xf ./BOOTLOADER-bpi-m64-linux4.4.tgz --keep-directory-symlink -C /mnt
> total 24
> drwxr-xr-x 6 root root 4096 Jun 26 09:54 .
> drwxr-xr-x 26 root root 4096 Jun 21 09:29 ..
> drwxr-xr-x 2 root root 4096 Jun 25 16:34 buildrootbpi
> drwxr-xr-x 3 root root 4096 Jun 20 15:44 lib
> drwxr-xr-x 2 root root 4096 Jun 26 09:54 temp
> drwxr-xr-x 4 root root 4096 Jun 20 15:44 usr
> umount: /mnt: not mounted.
> /home/emumba/bpi/BPI-M64-bsp-4.4
>
> Build success!