diff options
Diffstat (limited to 'platforms/bananaPro/specialFunctions.sh')
-rw-r--r-- | platforms/bananaPro/specialFunctions.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/platforms/bananaPro/specialFunctions.sh b/platforms/bananaPro/specialFunctions.sh index 8ea8733..a26bc53 100644 --- a/platforms/bananaPro/specialFunctions.sh +++ b/platforms/bananaPro/specialFunctions.sh @@ -1,12 +1,14 @@ #!/bin/bash -#RPI partitionning : +#Fdisk partitionment commands : DEFAULT="" -NEW_PART=n -PRIMARY=p -CHANGE_TYPE=t -CHANGE_BOOTFLAG=a -APPLY=w +NEW_DOSTAB="o" +NEW_PART="n" +PRIMARY="p" +CHANGE_TYPE="t" +TYPE_FAT32LBA="c" +CHANGE_BOOTFLAG="a" +APPLY="w" # PART_BOOT=1 # PART_BOOT_FIRST_SECTOR=${DEFAULT} @@ -16,22 +18,19 @@ APPLY=w # PART_ROOT_FIRST_SECTOR=${DEFAULT} # PART_ROOT_SIZE=${DEFAULT} -PART_BOOTandROOT=1 -PART_BOOTandROOT_FIRST_SECTOR=${DEFAULT} -PART_BOOTandROOT_SIZE=${DEFAULT} +PART_BOOTandROOT="1" +PART_BOOTandROOT_FIRST_SECTOR="${DEFAULT}" +PART_BOOTandROOT_SIZE="${DEFAULT}" -TYPE_FAT32LBA=c - -#FDISK_SCRIPT="${NEW_PART}\n${PRIMARY}\n${PART_BOOT}\n${PART_BOOT_FIRST_SECTOR}\n${PART_BOOT_SIZE}\n${CHANGE_TYPE}\n${TYPE_FAT32LBA}\n${NEW_PART}\n${PRIMARY}\n${PART_ROOT}\n${PART_ROOT_FIRST_SECTOR}\n${PART_ROOT_SIZE}\n${CHANGE_BOOTFLAG}\n${PART_BOOT}\n${CHANGE_BOOTFLAG}\n${PART_ROOT}\n${APPLY}\n" -FDISK_SCRIPT="${NEW_PART}\n${PRIMARY}\n${PART_BOOTandROOT}\n${PART_BOOT_FIRST_SECTOR}\n${PART_PART_BOOTandROOT_SIZE}\n${CHANGE_BOOTFLAG}\n${PART_PART_BOOTandROOT}\n${APPLY}\n" +FDISK_SCRIPT="${NEW_PART}\n${PRIMARY}\n${PART_BOOTandROOT}\n${PART_BOOT_FIRST_SECTOR}\n${PART_BOOTandROOT_SIZE}\n${CHANGE_BOOTFLAG}\n${APPLY}\n" +# FDISK_SCRIPT="${NEW_PART}\n${PRIMARY}\n${PART_BOOT}\n${PART_BOOT_FIRST_SECTOR}\n${PART_BOOT_SIZE}\n${CHANGE_TYPE}\n${TYPE_FAT32LBA}\n${NEW_PART}\n${PRIMARY}\n${PART_ROOT}\n${PART_ROOT_FIRST_SECTOR}\n${PART_ROOT_SIZE}\n${CHANGE_BOOTFLAG}\n${PART_BOOT}\n${CHANGE_BOOTFLAG}\n${PART_ROOT}\n${APPLY}\n" function preImgCreation() { title "Creating Banana Pro image" #Nothing to download. -# mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr" return 0 } @@ -45,6 +44,7 @@ function postPrepareChroot() /usr/bin/cp --preserve=mode "${CONFIG_PATH}/u-boot.dtb" "${BUILD_PATH}/boot/" # /usr/bin/cp --preserve=mode "${CONFIG_PATH}/uboot.env" "${BUILD_PATH}/boot/" /usr/bin/cp --preserve=mode -d "${CONFIG_PATH}/vmlinuz" "${BUILD_PATH}/boot/" + /usr/bin/cp --preserve=mode -r "${CONFIG_PATH}/lib" "${BUILD_PATH}/" return 0 } @@ -65,6 +65,6 @@ function copyingCustomSystem() # /usr/bin/cp --preserve=mode "${CONFIG_PATH}/uboot.env" "${BOOT}/" # /usr/bin/cp --preserve=mode "${CONFIG_PATH}/uEnv.txt" "${BOOT}/" # /usr/bin/cp --preserve=mode -d "${CONFIG_PATH}/vmlinuz" "${BOOT}/" - cp --preserve=mode -R "${BUILD_PATH}/boot/extlinux" "${BOOT}/" +# cp --preserve=mode -R "${BUILD_PATH}/boot/extlinux" "${BOOT}/" return 0 } |