debug
This commit is contained in:
parent
1c3749325b
commit
17cb092b9a
@ -39,7 +39,8 @@ function error()
|
|||||||
SOURCE_PATH="$(/bin/dirname "$(readlink -f "$0")")"
|
SOURCE_PATH="$(/bin/dirname "$(readlink -f "$0")")"
|
||||||
INSTALL_PATH="$SOURCE_PATH/arm"
|
INSTALL_PATH="$SOURCE_PATH/arm"
|
||||||
FILES_PATH="$SOURCE_PATH/files"
|
FILES_PATH="$SOURCE_PATH/files"
|
||||||
CMDNAME=$(/bin/basename -z "$0")
|
info $0
|
||||||
|
CMDNAME=$(/bin/basename "$0")
|
||||||
|
|
||||||
#while read -r;do
|
#while read -r;do
|
||||||
# for MAGEIA_VERSION in $REPLY
|
# for MAGEIA_VERSION in $REPLY
|
||||||
@ -71,7 +72,7 @@ function help()
|
|||||||
echo "--target target system (for now rpi, odroid)"
|
echo "--target target system (for now rpi, odroid)"
|
||||||
echo "--target-version version of the target (0, 1, 2, 3 for rpi, 3 or 4 for odroid)"
|
echo "--target-version version of the target (0, 1, 2, 3 for rpi, 3 or 4 for odroid)"
|
||||||
echo "--config Path to config files"
|
echo "--config Path to config files"
|
||||||
echo "--bootfs filesystem of boot partition (ext4 or vfat) default: etx4"
|
echo "--bootfs filesystem of boot partition (ext4 or vfat) default: ext4"
|
||||||
echo -e "\nFor image size, make sure it fit on physical support. (Default size is 7 Go)"
|
echo -e "\nFor image size, make sure it fit on physical support. (Default size is 7 Go)"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ function clean()
|
|||||||
umount "$BUILD_PATH/dev"
|
umount "$BUILD_PATH/dev"
|
||||||
if ! [ $? -ne 0 ];then
|
if ! [ $? -ne 0 ];then
|
||||||
error "line $LINENO can't unmount $BUILD_PATH/dev : exiting"
|
error "line $LINENO can't unmount $BUILD_PATH/dev : exiting"
|
||||||
exit 1
|
#exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if ! [ -z "$(mountpoint -qd "$BUILD_PATH/sys")" ];then
|
if ! [ -z "$(mountpoint -qd "$BUILD_PATH/sys")" ];then
|
||||||
@ -94,7 +95,7 @@ function clean()
|
|||||||
umount "$BUILD_PATH/sys"
|
umount "$BUILD_PATH/sys"
|
||||||
if ! [ $? -ne 0 ];then
|
if ! [ $? -ne 0 ];then
|
||||||
error "line $LINENO can't unmount $BUILD_PATH/sys : exiting"
|
error "line $LINENO can't unmount $BUILD_PATH/sys : exiting"
|
||||||
exit 1
|
#exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if ! [ -z "$(mountpoint -qd "$BUILD_PATH/proc")" ];then
|
if ! [ -z "$(mountpoint -qd "$BUILD_PATH/proc")" ];then
|
||||||
@ -102,7 +103,7 @@ function clean()
|
|||||||
umount "$BUILD_PATH/proc"
|
umount "$BUILD_PATH/proc"
|
||||||
if ! [ $? -ne 0 ];then
|
if ! [ $? -ne 0 ];then
|
||||||
error "line $LINENO can't unmount $BUILD_PATH/proc : exiting"
|
error "line $LINENO can't unmount $BUILD_PATH/proc : exiting"
|
||||||
exit 1
|
#exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Removing old Build directory
|
# Removing old Build directory
|
||||||
|
23
init.d/mandrake_firstime
Normal file
23
init.d/mandrake_firstime
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Description: Launch Mageia Configuration for the first time.
|
||||||
|
# (c) Mandriva, Chmouel Boudjnah <chmouel@mandriva.com>
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
FLO=/var/log/first_boot_log
|
||||||
|
touch $FLO
|
||||||
|
|
||||||
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
|
# If fail erase the temporary file
|
||||||
|
trap 'rm -f /var/lock/TMP_1ST' 1 2 3 15
|
||||||
|
|
||||||
|
SYSTEM=
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[ -s $FLO ] || rm -f $FLO
|
||||||
|
|
||||||
|
# Finish
|
||||||
|
rm -f /var/lock/TMP_1ST
|
@ -57,3 +57,5 @@ BOOTFS="vfat"
|
|||||||
#Path where the raspberry pi firmware is/will be installed
|
#Path where the raspberry pi firmware is/will be installed
|
||||||
FIRMWARE_PATH="$INSTALL_PATH"
|
FIRMWARE_PATH="$INSTALL_PATH"
|
||||||
FIRMWARE_DIR="firmware-stable"
|
FIRMWARE_DIR="firmware-stable"
|
||||||
|
FIRMWARE_DOWNLOAD_URL="https://github.com/raspberrypi/firmware/archive/stable.zip"
|
||||||
|
|
||||||
|
3
rpi2/10-monitor.conf
Normal file
3
rpi2/10-monitor.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Section "Extensions"
|
||||||
|
Option "DPMS" "Disable"
|
||||||
|
EndSection
|
1
rpi2/10-vchiq-permissions.rules
Normal file
1
rpi2/10-vchiq-permissions.rules
Normal file
@ -0,0 +1 @@
|
|||||||
|
SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"
|
BIN
rpi2/bcm2836-rpi-2-b.dtb
Executable file
BIN
rpi2/bcm2836-rpi-2-b.dtb
Executable file
Binary file not shown.
BIN
rpi2/bcm2837-rpi-3-b-plus.dtb
Executable file
BIN
rpi2/bcm2837-rpi-3-b-plus.dtb
Executable file
Binary file not shown.
BIN
rpi2/bcm2837-rpi-3-b.dtb
Executable file
BIN
rpi2/bcm2837-rpi-3-b.dtb
Executable file
Binary file not shown.
5
rpi2/boot.cmd
Normal file
5
rpi2/boot.cmd
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
fatload mmc 0:1 ${kernel_addr_r} vmlinuz
|
||||||
|
fatload mmc 0:1 ${fdt_addr} bcm2837-rpi-3-b.dtb
|
||||||
|
fatload mmc 0:1 ${ramdisk_addr_r} initrd.img
|
||||||
|
setenv bootargs console=ttyAMA0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10
|
||||||
|
bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr}
|
66
rpi2/brcmfmac43430-sdio.txt
Normal file
66
rpi2/brcmfmac43430-sdio.txt
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# NVRAM file for BCM943430WLPTH
|
||||||
|
# 2.4 GHz, 20 MHz BW mode
|
||||||
|
|
||||||
|
# The following parameter values are just placeholders, need to be updated.
|
||||||
|
manfid=0x2d0
|
||||||
|
prodid=0x0727
|
||||||
|
vendid=0x14e4
|
||||||
|
devid=0x43e2
|
||||||
|
boardtype=0x0727
|
||||||
|
boardrev=0x1101
|
||||||
|
boardnum=22
|
||||||
|
macaddr=00:90:4c:c5:12:38
|
||||||
|
sromrev=11
|
||||||
|
boardflags=0x00404201
|
||||||
|
boardflags3=0x08000000
|
||||||
|
xtalfreq=37400
|
||||||
|
nocrc=1
|
||||||
|
ag0=255
|
||||||
|
aa2g=1
|
||||||
|
ccode=ALL
|
||||||
|
|
||||||
|
pa0itssit=0x20
|
||||||
|
extpagain2g=0
|
||||||
|
#PA parameters for 2.4GHz, measured at CHIP OUTPUT
|
||||||
|
pa2ga0=-168,7161,-820
|
||||||
|
AvVmid_c0=0x0,0xc8
|
||||||
|
cckpwroffset0=5
|
||||||
|
|
||||||
|
# PPR params
|
||||||
|
maxp2ga0=84
|
||||||
|
txpwrbckof=6
|
||||||
|
cckbw202gpo=0
|
||||||
|
legofdmbw202gpo=0x66111111
|
||||||
|
mcsbw202gpo=0x77711111
|
||||||
|
propbw202gpo=0xdd
|
||||||
|
|
||||||
|
# OFDM IIR :
|
||||||
|
ofdmdigfilttype=18
|
||||||
|
ofdmdigfilttypebe=18
|
||||||
|
# PAPD mode:
|
||||||
|
papdmode=1
|
||||||
|
papdvalidtest=1
|
||||||
|
pacalidx2g=42
|
||||||
|
papdepsoffset=-22
|
||||||
|
papdendidx=58
|
||||||
|
|
||||||
|
# LTECX flags
|
||||||
|
ltecxmux=0
|
||||||
|
ltecxpadnum=0x0102
|
||||||
|
ltecxfnsel=0x44
|
||||||
|
ltecxgcigpio=0x01
|
||||||
|
|
||||||
|
il0macaddr=00:90:4c:c5:12:38
|
||||||
|
wl0id=0x431b
|
||||||
|
|
||||||
|
deadman_to=0xffffffff
|
||||||
|
# muxenab: 0x1 for UART enable, 0x2 for GPIOs, 0x8 for JTAG
|
||||||
|
muxenab=0x1
|
||||||
|
# CLDO PWM voltage settings - 0x4 - 1.1 volt
|
||||||
|
#cldo_pwm=0x4
|
||||||
|
|
||||||
|
#VCO freq 326.4MHz
|
||||||
|
spurconfig=0x3
|
||||||
|
|
||||||
|
edonthd20l=-75
|
||||||
|
edoffthd20ul=-80
|
BIN
rpi2/brcmfmac43455-sdio.clm_blob
Normal file
BIN
rpi2/brcmfmac43455-sdio.clm_blob
Normal file
Binary file not shown.
92
rpi2/brcmfmac43455-sdio.txt
Normal file
92
rpi2/brcmfmac43455-sdio.txt
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
# Cloned from bcm94345wlpagb_p2xx.txt
|
||||||
|
NVRAMRev=$Rev: 498373 $
|
||||||
|
sromrev=11
|
||||||
|
vendid=0x14e4
|
||||||
|
devid=0x43ab
|
||||||
|
manfid=0x2d0
|
||||||
|
prodid=0x06e4
|
||||||
|
#macaddr=00:90:4c:c5:12:38
|
||||||
|
macaddr=b8:27:eb:74:f2:6c
|
||||||
|
nocrc=1
|
||||||
|
boardtype=0x6e4
|
||||||
|
boardrev=0x1304
|
||||||
|
|
||||||
|
#XTAL 37.4MHz
|
||||||
|
xtalfreq=37400
|
||||||
|
|
||||||
|
btc_mode=1
|
||||||
|
#------------------------------------------------------
|
||||||
|
#boardflags: 5GHz eTR switch by default
|
||||||
|
# 2.4GHz eTR switch by default
|
||||||
|
# bit1 for btcoex
|
||||||
|
boardflags=0x00480201
|
||||||
|
boardflags2=0x40800000
|
||||||
|
boardflags3=0x48200100
|
||||||
|
phycal_tempdelta=15
|
||||||
|
rxchain=1
|
||||||
|
txchain=1
|
||||||
|
aa2g=1
|
||||||
|
aa5g=1
|
||||||
|
tssipos5g=1
|
||||||
|
tssipos2g=1
|
||||||
|
femctrl=0
|
||||||
|
AvVmid_c0=1,165,2,100,2,100,2,100,2,100
|
||||||
|
pa2ga0=-129,6525,-718
|
||||||
|
pa2ga1=-149,4408,-601
|
||||||
|
pa5ga0=-185,6836,-815,-186,6838,-815,-184,6859,-815,-184,6882,-818
|
||||||
|
pa5ga1=-202,4285,-574,-201,4312,-578,-196,4391,-586,-201,4294,-575
|
||||||
|
itrsw=1
|
||||||
|
pdoffsetcckma0=2
|
||||||
|
pdoffset2gperchan=0,-2,1,0,1,0,1,1,1,0,0,-1,-1,0
|
||||||
|
pdoffset2g40ma0=16
|
||||||
|
pdoffset40ma0=0x8888
|
||||||
|
pdoffset80ma0=0x8888
|
||||||
|
extpagain5g=2
|
||||||
|
extpagain2g=2
|
||||||
|
tworangetssi2g=1
|
||||||
|
tworangetssi5g=1
|
||||||
|
# LTECX flags
|
||||||
|
# WCI2
|
||||||
|
ltecxmux=0
|
||||||
|
ltecxpadnum=0x0504
|
||||||
|
ltecxfnsel=0x22
|
||||||
|
ltecxgcigpio=0x32
|
||||||
|
|
||||||
|
maxp2ga0=80
|
||||||
|
ofdmlrbw202gpo=0x0022
|
||||||
|
dot11agofdmhrbw202gpo=0x4442
|
||||||
|
mcsbw202gpo=0x98444422
|
||||||
|
mcsbw402gpo=0x98444422
|
||||||
|
maxp5ga0=82,82,82,82
|
||||||
|
mcsbw205glpo=0xb9555000
|
||||||
|
mcsbw205gmpo=0xb9555000
|
||||||
|
mcsbw205ghpo=0xb9555000
|
||||||
|
mcsbw405glpo=0xb9555000
|
||||||
|
mcsbw405gmpo=0xb9555000
|
||||||
|
mcsbw405ghpo=0xb9555000
|
||||||
|
mcsbw805glpo=0xb9555000
|
||||||
|
mcsbw805gmpo=0xb9555000
|
||||||
|
mcsbw805ghpo=0xb9555000
|
||||||
|
|
||||||
|
swctrlmap_2g=0x00000000,0x00000000,0x00000000,0x010000,0x3ff
|
||||||
|
swctrlmap_5g=0x00100010,0x00200020,0x00200020,0x010000,0x3fe
|
||||||
|
swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x3
|
||||||
|
swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x3
|
||||||
|
|
||||||
|
vcodivmode=1
|
||||||
|
deadman_to=481500000
|
||||||
|
|
||||||
|
ed_thresh2g=-54
|
||||||
|
ed_thresh5g=-54
|
||||||
|
eu_edthresh2g=-54
|
||||||
|
eu_edthresh5g=-54
|
||||||
|
ldo1=4
|
||||||
|
rawtempsense=0x1ff
|
||||||
|
cckPwrIdxCorr=3
|
||||||
|
cckTssiDelay=150
|
||||||
|
ofdmTssiDelay=150
|
||||||
|
txpwr2gAdcScale=1
|
||||||
|
txpwr5gAdcScale=1
|
||||||
|
dot11b_opts=0x3aa85
|
||||||
|
cbfilttype=1
|
||||||
|
fdsslevel_ch11=6
|
1193
rpi2/config.txt
Normal file
1193
rpi2/config.txt
Normal file
File diff suppressed because it is too large
Load Diff
10
rpi2/extlinux.conf
Normal file
10
rpi2/extlinux.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
menu Welcome to Mageia-Minimal.
|
||||||
|
timeout 20
|
||||||
|
default Mageia
|
||||||
|
|
||||||
|
label Mageia
|
||||||
|
kernel /boot/vmlinuz
|
||||||
|
append root=UUID=<UUID> dwc_otg.lpm_enable=0 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 rootwait fsck.repair=1 8250.nr_uarts=1 elevator=deadline cma=256M\@512M audit=0
|
||||||
|
fdtdir /usr/lib/<FDTDIR>
|
||||||
|
initrd /boot/initrd
|
||||||
|
|
60
rpi2/mageia4arm.cfg
Normal file
60
rpi2/mageia4arm.cfg
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
|
||||||
|
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
||||||
|
#
|
||||||
|
# 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/>.
|
||||||
|
|
||||||
|
|
||||||
|
MAGEIA_VERSION="6"
|
||||||
|
ARM_VERSION="armv7hl"
|
||||||
|
|
||||||
|
#target plateform (xu3-4 or rpi)
|
||||||
|
TARGET="rpi"
|
||||||
|
#version of the target
|
||||||
|
# 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
|
||||||
|
TARGET_VERSION="2"
|
||||||
|
|
||||||
|
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
||||||
|
MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
#MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
# image will be created here
|
||||||
|
|
||||||
|
INSTALL_PATH="/mnt/perso/raspi2"
|
||||||
|
|
||||||
|
# Build directory will be created here
|
||||||
|
BUILD_PATH="$INSTALL_PATH/build"
|
||||||
|
|
||||||
|
#name of the image
|
||||||
|
IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET$TARGET_VERSION.img"
|
||||||
|
|
||||||
|
#Mount point of image's partitions
|
||||||
|
BOOT="/mnt/boot"
|
||||||
|
ROOT="/mnt/root"
|
||||||
|
|
||||||
|
#Default user
|
||||||
|
ID_USER="pi"
|
||||||
|
PASSWORD="raspberry"
|
||||||
|
|
||||||
|
#root password
|
||||||
|
ROOT_PWD="piroot"
|
||||||
|
|
||||||
|
#Hostname
|
||||||
|
HOSTNAME="$TARGET.$ID_USER"
|
||||||
|
|
||||||
|
#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
|
||||||
|
BOOTFS="vfat"
|
||||||
|
|
||||||
|
#Path where the raspberry pi firmware is/will be installed
|
||||||
|
FIRMWARE_PATH="$INSTALL_PATH"
|
||||||
|
FIRMWARE_DIR="firmware-stable"
|
||||||
|
FIRMWARE_DOWNLOAD_URL="https://github.com/raspberrypi/firmware/archive/stable.zip"
|
59
rpi2/mageia4arm.cfg.original
Normal file
59
rpi2/mageia4arm.cfg.original
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
|
||||||
|
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <dtux@free.fr>
|
||||||
|
#
|
||||||
|
# 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/>.
|
||||||
|
|
||||||
|
|
||||||
|
MAGEIA_VERSION="7"
|
||||||
|
ARM_VERSION="armv7hl"
|
||||||
|
|
||||||
|
#target plateform (xu3-4 or rpi)
|
||||||
|
TARGET="rpi"
|
||||||
|
#version of the target
|
||||||
|
# 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
|
||||||
|
TARGET_VERSION="3_32"
|
||||||
|
|
||||||
|
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
||||||
|
MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
# image will be created here
|
||||||
|
INSTALL_PATH="<change this>"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
#no need to be changed
|
||||||
|
BOOT="/mnt/boot"
|
||||||
|
ROOT="/mnt/root"
|
||||||
|
|
||||||
|
#Default user
|
||||||
|
ID_USER="pi"
|
||||||
|
PASSWORD="raspberry"
|
||||||
|
|
||||||
|
#root password
|
||||||
|
ROOT_PWD="piroot"
|
||||||
|
|
||||||
|
#Hostname
|
||||||
|
HOSTNAME="$TARGET.$ID_USER"
|
||||||
|
|
||||||
|
#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
|
||||||
|
#DO NOT CHANGE THIS
|
||||||
|
BOOTFS="vfat"
|
||||||
|
|
||||||
|
#Path where the raspberry pi firmware is/will be installed
|
||||||
|
FIRMWARE_PATH="$INSTALL_PATH"
|
||||||
|
FIRMWARE_DIR="firmware-stable"
|
57
rpi2/mageia4arm.cfg~
Normal file
57
rpi2/mageia4arm.cfg~
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
||||||
|
#
|
||||||
|
# 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/>.
|
||||||
|
|
||||||
|
|
||||||
|
MAGEIA_VERSION="7"
|
||||||
|
ARM_VERSION="armv7hl"
|
||||||
|
|
||||||
|
#target plateform (xu3-4 or rpi)
|
||||||
|
TARGET="rpi"
|
||||||
|
TARGET_VERSION="3"
|
||||||
|
|
||||||
|
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
||||||
|
MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
#MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
# image will be created here
|
||||||
|
|
||||||
|
INSTALL_PATH="/mnt/perso/raspi-test"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
ID_USER="pi"
|
||||||
|
PASSWORD="raspberry"
|
||||||
|
|
||||||
|
#root password
|
||||||
|
ROOT_PWD="piroot"
|
||||||
|
|
||||||
|
#Hostname
|
||||||
|
HOSTNAME="$TARGET.$ID_USER"
|
||||||
|
|
||||||
|
#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
|
||||||
|
BOOTFS="vfat"
|
||||||
|
|
||||||
|
#Path where the raspberry pi firmware is/will be installed
|
||||||
|
FIRMWARE_PATH="$INSTALL_PATH"
|
||||||
|
FIRMWARE_DIR="firmware-stable"
|
3
rpi2/modprobe.conf
Normal file
3
rpi2/modprobe.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
alias wlan0 brcmfmac
|
||||||
|
alias eth0 smsc95xx
|
||||||
|
alias usb0 rndis_host
|
41
rpi2/second_stage_install.sh
Normal file
41
rpi2/second_stage_install.sh
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
||||||
|
#
|
||||||
|
|
||||||
|
# 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/>.
|
||||||
|
|
||||||
|
/usr/bin/chown :shadow /etc/shadow /etc/gshadow /etc/login.defs /etc/pam.d/chage-chfn-chsh /etc/pam.d/chpasswd-newusers /etc/pam.d/system-auth /etc/pam.d/user-group-mod /bin/passwd /bin/chage
|
||||||
|
|
||||||
|
/usr/bin/chown :systemd-journal -R /var/log/journal
|
||||||
|
|
||||||
|
#Install all packages you need
|
||||||
|
# No verifying rpm due to a bug in packages, some are not signed
|
||||||
|
|
||||||
|
/usr/sbin/urpmi --auto --no-verify-rpm basesystem chrony rng-tools man openssh-server rfkill wireless-tools bluez wpa_supplicant make binutils dracut u-boot rsync kernel-desktop-latest mlocate drakx-kbd-mouse-x11
|
||||||
|
|
||||||
|
|
||||||
|
/usr/bin/chown :chrony -R /etc/chrony.keys /var/log/chrony
|
||||||
|
/usr/bin/chown :daemon /etc/wpa_supplicant.conf
|
||||||
|
/usr/bin/chown :tty /bin/write /bin/wall
|
||||||
|
/usr/bin/chown :lock /sbin/lockdev
|
||||||
|
/usr/bin/chown :bin /sbin/traceroute
|
||||||
|
/usr/bin/chown polkitd /etc/polkit-1/rules.d
|
||||||
|
|
||||||
|
KV=`basename /boot/vmlinuz-*`
|
||||||
|
KV=${KV#vmlinuz-}
|
||||||
|
dracut --kver $KV
|
||||||
|
rm -f $0
|
||||||
|
cp /boot/vmlinuz-* /boot/vmlinuz
|
||||||
|
cp /boot/initrd-* /boot/initrd
|
61
rpi3+/mageia4arm.cfg
Normal file
61
rpi3+/mageia4arm.cfg
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
|
||||||
|
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
||||||
|
#
|
||||||
|
# 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/>.
|
||||||
|
|
||||||
|
|
||||||
|
MAGEIA_VERSION="7"
|
||||||
|
ARM_VERSION="armv7hl"
|
||||||
|
|
||||||
|
#target plateform (xu3-4 or rpi)
|
||||||
|
TARGET="rpi"
|
||||||
|
#version of the target
|
||||||
|
# 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
|
||||||
|
TARGET_VERSION="3+"
|
||||||
|
|
||||||
|
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
||||||
|
MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
#MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
# image will be created here
|
||||||
|
|
||||||
|
INSTALL_PATH="/mnt/perso/raspi-test"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
ID_USER="pi"
|
||||||
|
PASSWORD="raspberry"
|
||||||
|
|
||||||
|
#root password
|
||||||
|
ROOT_PWD="piroot"
|
||||||
|
|
||||||
|
#Hostname
|
||||||
|
HOSTNAME="$TARGET.$ID_USER"
|
||||||
|
|
||||||
|
#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
|
||||||
|
BOOTFS="vfat"
|
||||||
|
|
||||||
|
#Path where the raspberry pi firmware is/will be installed
|
||||||
|
FIRMWARE_PATH="$INSTALL_PATH"
|
||||||
|
FIRMWARE_DIR="firmware-stable"
|
||||||
|
FIRMWARE_DOWNLOAD_URL="https://github.com/raspberrypi/firmware/archive/stable.zip"
|
||||||
|
|
@ -15,14 +15,14 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
MAGEIA_VERSION="cauldron"
|
MAGEIA_VERSION="7"
|
||||||
ARM_VERSION="armv7hl"
|
ARM_VERSION="armv7hl"
|
||||||
TARGET="odroid"
|
TARGET="odroid"
|
||||||
TARGET_VERSION="xu4"
|
TARGET_VERSION="xu4"
|
||||||
|
|
||||||
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
|
||||||
MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
#MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
|
MIRROR="http://192.168.1.252/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
|
||||||
# image will be created here
|
# image will be created here
|
||||||
INSTALL_PATH="/mnt/perso/xu4-test/"
|
INSTALL_PATH="/mnt/perso/xu4-test/"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user