Skip to content

Commit

Permalink
update build script to building m2p and m2z separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Dangku committed Sep 20, 2018
1 parent 010abc8 commit 509babf
Show file tree
Hide file tree
Showing 16 changed files with 9,223 additions and 375 deletions.
4 changes: 0 additions & 4 deletions Makefile
Expand Up @@ -32,10 +32,6 @@ u-boot:
u-boot-clean:
$(Q)$(MAKE) -C u-boot-sunxi CROSS_COMPILE=$(U_CROSS_COMPILE) -j$J distclean

## linux
$(K_DOT_CONFIG): linux-sunxi
mkdir -p linux-sunxi/output/lib/firmware

kernel:
$(Q)$(MAKE) -C linux-sunxi ARCH=arm $(KERNEL_CONFIG)
$(Q)$(MAKE) -C linux-sunxi ARCH=arm CROSS_COMPILE=${K_CROSS_COMPILE} -j$J INSTALL_MOD_PATH=output uImage dtbs modules
Expand Down
259 changes: 0 additions & 259 deletions build-uboot.sh

This file was deleted.

10 changes: 4 additions & 6 deletions build.sh
Expand Up @@ -33,7 +33,7 @@ R="${SD}/BPI-ROOT"
#
## copy files to 100MB
#
cp -a $T/out/100MB/* $U
cp -a $T/out/100MB/${BOARD}-linux4.4-8k.img.gz $U
#cp -a $T/u-boot-sunxi/out/*.img.gz $U
#
## copy files to BPI-BOOT
Expand Down Expand Up @@ -107,15 +107,14 @@ T="$TOPDIR"
case $BOARD in
BPI-M2P*)
board="bpi-m2p"
# kernel="3.4.113-BPI-M2P-Kernel"
kernel="4.4.55-BPI-M2P-Kernel"
headers="linux-headers-4.4.55-BPI-M2P-Kernel"
BOOT_PACK_P=$T/sunxi-pack/chips/${MACH}/configs/default/linux4.4
BOOT_PACK_P=$T/sunxi-pack/chips/${MACH}/configs/${BOARD}/linux4.4
;;
BPI-M2Z*)
board="bpi-m2z"
# kernel="3.4.113-BPI-M2Z-Kernel"
kernel="4.4.55-BPI-M2P-Kernel"
kernel="4.4.55-BPI-M2Z-Kernel"
headers="linux-headers-4.4.55-BPI-M2Z-Kernel"
BOOT_PACK_P=$T/sunxi-pack/chips/${MACH}/configs/${BOARD}/linux4.4
;;
BPI-M2U*)
Expand All @@ -125,7 +124,6 @@ case $BOARD in
;;
*)
board=$(echo $BOARD | tr '[A-Z]' '[a-z]')
# kernel="3.4.113-${BOARD}-Kernel"
kernel="4.4.55-${BOARD}-Kernel"
BOOT_PACK_P=$T/sunxi-pack/chips/${MACH}/configs/${BOARD}/linux4.4
;;
Expand Down
7 changes: 3 additions & 4 deletions configure
Expand Up @@ -74,15 +74,14 @@ BOARD=$1

case $BOARD in
BPI-M2P*)
board="bpi"
board="bpi-m2p"
;;
BPI-M2Z*)
# board="bpi-m2z"
board="bpi"
board="bpi-m2z"
;;
BPI-M2U*)
MACH=sun8iw11p1
board="bpi"
board="bpi-m2u"
;;
*)
board=$(echo $BOARD | tr '[A-Z]' '[a-z]')
Expand Down
4 changes: 4 additions & 0 deletions dd_download.sh
@@ -0,0 +1,4 @@
sudo gunzip -c SD/bpi-m2z/100MB/BPI-M2Z-720P-linux4.4-8k.img.gz | dd of=$1 bs=1024 seek=8
sync
cd SD/bpi-m2z
sudo bpi-update -d $1

0 comments on commit 509babf

Please sign in to comment.