2018-07-20 20:15:41 +02:00
|
|
|
|
2018-12-13 23:18:14 +01:00
|
|
|
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
2018-07-20 20:15:41 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
2018-12-08 00:04:32 +01:00
|
|
|
MAGEIA_VERSION="7"
|
2018-07-20 20:15:41 +02:00
|
|
|
ARM_VERSION="armv7hl"
|
|
|
|
|
|
|
|
#target plateform (xu3-4 or rpi)
|
2018-07-21 13:02:00 +02:00
|
|
|
TARGET="rpi"
|
2018-12-13 23:18:14 +01:00
|
|
|
#version of the target
|
|
|
|
# 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
|
|
|
|
TARGET_VERSION="3_32"
|
2018-07-20 20:15:41 +02:00
|
|
|
|
|
|
|
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
2018-10-12 11:06:31 +02:00
|
|
|
MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
2018-12-13 23:18:14 +01:00
|
|
|
#MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
2018-07-20 20:15:41 +02:00
|
|
|
# image will be created here
|
2018-12-13 23:18:14 +01:00
|
|
|
|
|
|
|
INSTALL_PATH="/mnt/perso/raspi-test"
|
2018-07-20 20:15:41 +02:00
|
|
|
|
|
|
|
# Build directory will be created here
|
|
|
|
BUILD_PATH="$INSTALL_PATH/build"
|
|
|
|
|
|
|
|
#name of the image
|
|
|
|
IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET.img"
|
|
|
|
|
|
|
|
#Mount point of image's partitions
|
|
|
|
BOOT="/mnt/boot"
|
|
|
|
ROOT="/mnt/root"
|
|
|
|
|
|
|
|
#Default user
|
2018-07-21 13:02:00 +02:00
|
|
|
ID_USER="pi"
|
|
|
|
PASSWORD="raspberry"
|
2018-07-20 20:15:41 +02:00
|
|
|
|
|
|
|
#root password
|
2018-07-21 13:02:00 +02:00
|
|
|
ROOT_PWD="piroot"
|
2018-07-20 20:15:41 +02:00
|
|
|
|
|
|
|
#Hostname
|
|
|
|
HOSTNAME="$TARGET.$ID_USER"
|
|
|
|
|
|
|
|
#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
|
2018-07-21 13:02:00 +02:00
|
|
|
BOOTFS="vfat"
|
2018-07-20 20:15:41 +02:00
|
|
|
|
2018-12-13 23:18:14 +01:00
|
|
|
#Path where the raspberry pi firmware is/will be installed
|
2018-12-07 20:46:33 +01:00
|
|
|
FIRMWARE_PATH="$INSTALL_PATH"
|
|
|
|
FIRMWARE_DIR="firmware-stable"
|