Daniel Tartavel 2 years ago
parent
commit
17cb092b9a

+ 6 - 5
create_arm_img_urpmi.sh

@@ -39,7 +39,8 @@ function error()
39 39
 SOURCE_PATH="$(/bin/dirname  "$(readlink -f "$0")")"
40 40
 INSTALL_PATH="$SOURCE_PATH/arm"
41 41
 FILES_PATH="$SOURCE_PATH/files"
42
-CMDNAME=$(/bin/basename -z "$0")
42
+info $0
43
+CMDNAME=$(/bin/basename "$0")
43 44
 
44 45
 #while read -r;do
45 46
 #	for MAGEIA_VERSION in $REPLY
@@ -71,7 +72,7 @@ function help()
71 72
 	echo "--target 				target system (for now rpi, odroid)"
72 73
 	echo "--target-version      version of the target (0, 1, 2, 3 for rpi, 3 or 4 for odroid)"
73 74
 	echo "--config				Path to config files"
74
-	echo "--bootfs              filesystem of boot partition (ext4 or vfat) default: etx4"
75
+	echo "--bootfs              filesystem of boot partition (ext4 or vfat) default: ext4"
75 76
 	echo -e "\nFor image size, make sure it fit on physical support. (Default size is 7 Go)"
76 77
 }
77 78
 
@@ -86,7 +87,7 @@ function clean()
86 87
 		umount "$BUILD_PATH/dev"
87 88
 		if ! [ $? -ne 0 ];then
88 89
 			error "line $LINENO can't unmount $BUILD_PATH/dev : exiting"
89
-			exit 1
90
+			#exit 1
90 91
 		fi
91 92
 	fi
92 93
 	if ! [ -z "$(mountpoint -qd "$BUILD_PATH/sys")" ];then
@@ -94,7 +95,7 @@ function clean()
94 95
 		umount "$BUILD_PATH/sys"
95 96
 		if ! [ $? -ne 0 ];then
96 97
 			error "line $LINENO can't unmount $BUILD_PATH/sys : exiting"
97
-			exit 1
98
+			#exit 1
98 99
 		fi
99 100
 	fi
100 101
 	if ! [ -z "$(mountpoint -qd "$BUILD_PATH/proc")" ];then
@@ -102,7 +103,7 @@ function clean()
102 103
 		umount "$BUILD_PATH/proc"
103 104
 		if ! [ $? -ne 0 ];then
104 105
 			error "line $LINENO can't unmount $BUILD_PATH/proc : exiting"
105
-			exit 1
106
+			#exit 1
106 107
 		fi
107 108
 	fi
108 109
 	# Removing old Build directory

+ 23 - 0
init.d/mandrake_firstime

@@ -0,0 +1,23 @@
1
+#!/bin/sh
2
+# Description: Launch Mageia Configuration for the first time.
3
+# (c) Mandriva, Chmouel Boudjnah <chmouel@mandriva.com>
4
+# 	$Id$	
5
+
6
+FLO=/var/log/first_boot_log
7
+touch $FLO
8
+
9
+. /etc/rc.d/init.d/functions
10
+
11
+# If fail erase the temporary file
12
+trap 'rm -f /var/lock/TMP_1ST' 1 2 3 15
13
+
14
+SYSTEM=
15
+
16
+
17
+
18
+
19
+
20
+[ -s $FLO ] || rm -f $FLO
21
+
22
+# Finish
23
+rm -f /var/lock/TMP_1ST

+ 6 - 4
rpi/mageia4arm.cfg

@@ -19,7 +19,7 @@ MAGEIA_VERSION="7"
19 19
 ARM_VERSION="armv7hl"
20 20
 
21 21
 #target plateform (xu3-4 or rpi)
22
-TARGET="rpi" 
22
+TARGET="rpi"
23 23
 #version of the target
24 24
 # 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
25 25
 TARGET_VERSION="3_32"
@@ -29,7 +29,7 @@ MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSI
29 29
 #MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
30 30
 # image will be created here
31 31
 
32
-INSTALL_PATH="/mnt/perso/raspi-test"    
32
+INSTALL_PATH="/mnt/perso/raspi-test"
33 33
 
34 34
 # Build directory will be created here
35 35
 BUILD_PATH="$INSTALL_PATH/build"
@@ -48,8 +48,8 @@ PASSWORD="raspberry"
48 48
 #root password
49 49
 ROOT_PWD="piroot"
50 50
 
51
-#Hostname 
52
-HOSTNAME="$TARGET.$ID_USER" 
51
+#Hostname
52
+HOSTNAME="$TARGET.$ID_USER"
53 53
 
54 54
 #Filesystem of boot partitions (default ext4 raspberry pi need vfat)
55 55
 BOOTFS="vfat"
@@ -57,3 +57,5 @@ BOOTFS="vfat"
57 57
 #Path where the raspberry pi firmware is/will be installed
58 58
 FIRMWARE_PATH="$INSTALL_PATH"
59 59
 FIRMWARE_DIR="firmware-stable"
60
+FIRMWARE_DOWNLOAD_URL="https://github.com/raspberrypi/firmware/archive/stable.zip"
61
+

+ 3 - 0
rpi2/10-monitor.conf

@@ -0,0 +1,3 @@
1
+Section "Extensions"
2
+    Option      "DPMS" "Disable"
3
+EndSection

+ 1 - 0
rpi2/10-vchiq-permissions.rules

@@ -0,0 +1 @@
1
+SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"

BIN
rpi2/bcm2836-rpi-2-b.dtb


BIN
rpi2/bcm2837-rpi-3-b-plus.dtb


BIN
rpi2/bcm2837-rpi-3-b.dtb


+ 5 - 0
rpi2/boot.cmd

@@ -0,0 +1,5 @@
1
+fatload mmc 0:1 ${kernel_addr_r} vmlinuz
2
+fatload mmc 0:1 ${fdt_addr} bcm2837-rpi-3-b.dtb
3
+fatload mmc 0:1 ${ramdisk_addr_r} initrd.img
4
+setenv bootargs console=ttyAMA0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10
5
+bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr}

+ 66 - 0
rpi2/brcmfmac43430-sdio.txt

@@ -0,0 +1,66 @@
1
+# NVRAM file for BCM943430WLPTH
2
+# 2.4 GHz, 20 MHz BW mode
3
+
4
+# The following parameter values are just placeholders, need to be updated.
5
+manfid=0x2d0
6
+prodid=0x0727
7
+vendid=0x14e4
8
+devid=0x43e2
9
+boardtype=0x0727
10
+boardrev=0x1101
11
+boardnum=22
12
+macaddr=00:90:4c:c5:12:38
13
+sromrev=11
14
+boardflags=0x00404201
15
+boardflags3=0x08000000
16
+xtalfreq=37400
17
+nocrc=1
18
+ag0=255
19
+aa2g=1
20
+ccode=ALL
21
+
22
+pa0itssit=0x20
23
+extpagain2g=0
24
+#PA parameters for 2.4GHz, measured at CHIP OUTPUT
25
+pa2ga0=-168,7161,-820
26
+AvVmid_c0=0x0,0xc8
27
+cckpwroffset0=5
28
+
29
+# PPR params
30
+maxp2ga0=84
31
+txpwrbckof=6
32
+cckbw202gpo=0
33
+legofdmbw202gpo=0x66111111
34
+mcsbw202gpo=0x77711111
35
+propbw202gpo=0xdd
36
+
37
+# OFDM IIR :
38
+ofdmdigfilttype=18
39
+ofdmdigfilttypebe=18
40
+# PAPD mode:
41
+papdmode=1
42
+papdvalidtest=1
43
+pacalidx2g=42
44
+papdepsoffset=-22
45
+papdendidx=58
46
+
47
+# LTECX flags
48
+ltecxmux=0
49
+ltecxpadnum=0x0102
50
+ltecxfnsel=0x44
51
+ltecxgcigpio=0x01
52
+
53
+il0macaddr=00:90:4c:c5:12:38
54
+wl0id=0x431b
55
+
56
+deadman_to=0xffffffff
57
+# muxenab: 0x1 for UART enable, 0x2 for GPIOs, 0x8 for JTAG
58
+muxenab=0x1
59
+# CLDO PWM voltage settings - 0x4 - 1.1 volt
60
+#cldo_pwm=0x4
61
+
62
+#VCO freq 326.4MHz
63
+spurconfig=0x3 
64
+
65
+edonthd20l=-75
66
+edoffthd20ul=-80

BIN
rpi2/brcmfmac43455-sdio.clm_blob


+ 92 - 0
rpi2/brcmfmac43455-sdio.txt

@@ -0,0 +1,92 @@
1
+# Cloned from bcm94345wlpagb_p2xx.txt 
2
+NVRAMRev=$Rev: 498373 $
3
+sromrev=11
4
+vendid=0x14e4
5
+devid=0x43ab
6
+manfid=0x2d0
7
+prodid=0x06e4
8
+#macaddr=00:90:4c:c5:12:38
9
+macaddr=b8:27:eb:74:f2:6c
10
+nocrc=1
11
+boardtype=0x6e4
12
+boardrev=0x1304
13
+
14
+#XTAL 37.4MHz
15
+xtalfreq=37400
16
+
17
+btc_mode=1
18
+#------------------------------------------------------
19
+#boardflags: 5GHz eTR switch by default
20
+#            2.4GHz eTR switch by default
21
+#            bit1 for btcoex
22
+boardflags=0x00480201
23
+boardflags2=0x40800000
24
+boardflags3=0x48200100
25
+phycal_tempdelta=15
26
+rxchain=1
27
+txchain=1
28
+aa2g=1
29
+aa5g=1
30
+tssipos5g=1
31
+tssipos2g=1
32
+femctrl=0
33
+AvVmid_c0=1,165,2,100,2,100,2,100,2,100
34
+pa2ga0=-129,6525,-718
35
+pa2ga1=-149,4408,-601
36
+pa5ga0=-185,6836,-815,-186,6838,-815,-184,6859,-815,-184,6882,-818
37
+pa5ga1=-202,4285,-574,-201,4312,-578,-196,4391,-586,-201,4294,-575
38
+itrsw=1
39
+pdoffsetcckma0=2
40
+pdoffset2gperchan=0,-2,1,0,1,0,1,1,1,0,0,-1,-1,0
41
+pdoffset2g40ma0=16
42
+pdoffset40ma0=0x8888
43
+pdoffset80ma0=0x8888
44
+extpagain5g=2
45
+extpagain2g=2
46
+tworangetssi2g=1
47
+tworangetssi5g=1
48
+# LTECX flags
49
+# WCI2
50
+ltecxmux=0
51
+ltecxpadnum=0x0504
52
+ltecxfnsel=0x22
53
+ltecxgcigpio=0x32
54
+
55
+maxp2ga0=80
56
+ofdmlrbw202gpo=0x0022
57
+dot11agofdmhrbw202gpo=0x4442
58
+mcsbw202gpo=0x98444422
59
+mcsbw402gpo=0x98444422
60
+maxp5ga0=82,82,82,82
61
+mcsbw205glpo=0xb9555000
62
+mcsbw205gmpo=0xb9555000
63
+mcsbw205ghpo=0xb9555000
64
+mcsbw405glpo=0xb9555000
65
+mcsbw405gmpo=0xb9555000
66
+mcsbw405ghpo=0xb9555000
67
+mcsbw805glpo=0xb9555000
68
+mcsbw805gmpo=0xb9555000
69
+mcsbw805ghpo=0xb9555000
70
+
71
+swctrlmap_2g=0x00000000,0x00000000,0x00000000,0x010000,0x3ff
72
+swctrlmap_5g=0x00100010,0x00200020,0x00200020,0x010000,0x3fe
73
+swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x3
74
+swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x3
75
+
76
+vcodivmode=1
77
+deadman_to=481500000
78
+
79
+ed_thresh2g=-54
80
+ed_thresh5g=-54
81
+eu_edthresh2g=-54
82
+eu_edthresh5g=-54
83
+ldo1=4
84
+rawtempsense=0x1ff
85
+cckPwrIdxCorr=3
86
+cckTssiDelay=150
87
+ofdmTssiDelay=150
88
+txpwr2gAdcScale=1
89
+txpwr5gAdcScale=1
90
+dot11b_opts=0x3aa85
91
+cbfilttype=1
92
+fdsslevel_ch11=6

File diff suppressed because it is too large
+ 1193 - 0
rpi2/config.txt


+ 10 - 0
rpi2/extlinux.conf

@@ -0,0 +1,10 @@
1
+menu Welcome to Mageia-Minimal.
2
+timeout 20
3
+default Mageia
4
+
5
+label Mageia
6
+	kernel /boot/vmlinuz
7
+	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
8
+	fdtdir /usr/lib/<FDTDIR>
9
+	initrd /boot/initrd
10
+

+ 60 - 0
rpi2/mageia4arm.cfg

@@ -0,0 +1,60 @@
1
+
2
+# Copyright (C) 2017-2018 Daniel Tartavel-jeannot   <contact@librepc.com>
3
+#
4
+# This program is free software; you can redistribute it and/or modify
5
+# it under the terms of the GNU General Public License as published by
6
+# the Free Software Foundation; either version 2 of the License, or
7
+# (at your option) any later version.
8
+#
9
+# This program is distributed in the hope that it will be useful,
10
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+# GNU General Public License for more details.
13
+#
14
+# You should have received a copy of the GNU General Public License
15
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+
17
+
18
+MAGEIA_VERSION="6"
19
+ARM_VERSION="armv7hl"
20
+
21
+#target plateform (xu3-4 or rpi)
22
+TARGET="rpi"
23
+#version of the target
24
+# 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
25
+TARGET_VERSION="2"
26
+
27
+# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
28
+MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
29
+#MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
30
+# image will be created here
31
+
32
+INSTALL_PATH="/mnt/perso/raspi2"
33
+
34
+# Build directory will be created here
35
+BUILD_PATH="$INSTALL_PATH/build"
36
+
37
+#name of the image
38
+IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET$TARGET_VERSION.img"
39
+
40
+#Mount point of image's partitions
41
+BOOT="/mnt/boot"
42
+ROOT="/mnt/root"
43
+
44
+#Default user
45
+ID_USER="pi"
46
+PASSWORD="raspberry"
47
+
48
+#root password
49
+ROOT_PWD="piroot"
50
+
51
+#Hostname
52
+HOSTNAME="$TARGET.$ID_USER"
53
+
54
+#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
55
+BOOTFS="vfat"
56
+
57
+#Path where the raspberry pi firmware is/will be installed
58
+FIRMWARE_PATH="$INSTALL_PATH"
59
+FIRMWARE_DIR="firmware-stable"
60
+FIRMWARE_DOWNLOAD_URL="https://github.com/raspberrypi/firmware/archive/stable.zip"

+ 59 - 0
rpi2/mageia4arm.cfg.original

@@ -0,0 +1,59 @@
1
+
2
+# Copyright (C) 2017-2018 Daniel Tartavel-jeannot   <dtux@free.fr>
3
+#
4
+# This program is free software; you can redistribute it and/or modify
5
+# it under the terms of the GNU General Public License as published by
6
+# the Free Software Foundation; either version 2 of the License, or
7
+# (at your option) any later version.
8
+#
9
+# This program is distributed in the hope that it will be useful,
10
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+# GNU General Public License for more details.
13
+#
14
+# You should have received a copy of the GNU General Public License
15
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+
17
+
18
+MAGEIA_VERSION="7"
19
+ARM_VERSION="armv7hl"
20
+
21
+#target plateform (xu3-4 or rpi)
22
+TARGET="rpi" 
23
+#version of the target
24
+# 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
25
+TARGET_VERSION="3_32"
26
+
27
+# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
28
+MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
29
+# image will be created here
30
+INSTALL_PATH="<change this>"
31
+
32
+# Build directory will be created here
33
+BUILD_PATH="$INSTALL_PATH/build"
34
+
35
+#name of the image
36
+IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET.img"
37
+
38
+#Mount point of image's partitions
39
+#no need to be changed
40
+BOOT="/mnt/boot"
41
+ROOT="/mnt/root"
42
+
43
+#Default user
44
+ID_USER="pi"
45
+PASSWORD="raspberry"
46
+
47
+#root password
48
+ROOT_PWD="piroot"
49
+
50
+#Hostname 
51
+HOSTNAME="$TARGET.$ID_USER" 
52
+
53
+#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
54
+#DO NOT CHANGE THIS
55
+BOOTFS="vfat"
56
+
57
+#Path where the raspberry pi firmware is/will be installed
58
+FIRMWARE_PATH="$INSTALL_PATH"
59
+FIRMWARE_DIR="firmware-stable"

+ 57 - 0
rpi2/mageia4arm.cfg~

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

+ 3 - 0
rpi2/modprobe.conf

@@ -0,0 +1,3 @@
1
+alias wlan0 brcmfmac
2
+alias eth0 smsc95xx
3
+alias usb0 rndis_host

+ 41 - 0
rpi2/second_stage_install.sh

@@ -0,0 +1,41 @@
1
+#!/bin/bash
2
+
3
+# Copyright (C) 2017-2018 Daniel Tartavel-jeannot   <contact@librepc.com>
4
+#
5
+
6
+# This program is free software; you can redistribute it and/or modify
7
+# it under the terms of the GNU General Public License as published by
8
+# the Free Software Foundation; either version 2 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU General Public License
17
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+/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
20
+
21
+/usr/bin/chown :systemd-journal -R /var/log/journal
22
+
23
+#Install all packages you need
24
+# No verifying rpm due to a bug in packages, some are not signed
25
+
26
+/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
27
+
28
+
29
+/usr/bin/chown :chrony -R /etc/chrony.keys /var/log/chrony
30
+/usr/bin/chown :daemon /etc/wpa_supplicant.conf
31
+/usr/bin/chown :tty /bin/write /bin/wall
32
+/usr/bin/chown :lock /sbin/lockdev
33
+/usr/bin/chown :bin /sbin/traceroute
34
+/usr/bin/chown polkitd /etc/polkit-1/rules.d
35
+
36
+KV=`basename /boot/vmlinuz-*`
37
+KV=${KV#vmlinuz-}
38
+dracut --kver $KV
39
+rm -f $0
40
+cp /boot/vmlinuz-* /boot/vmlinuz
41
+cp /boot/initrd-* /boot/initrd

+ 61 - 0
rpi3+/mageia4arm.cfg

@@ -0,0 +1,61 @@
1
+
2
+# Copyright (C) 2017-2018 Daniel Tartavel-jeannot   <contact@librepc.com>
3
+#
4
+# This program is free software; you can redistribute it and/or modify
5
+# it under the terms of the GNU General Public License as published by
6
+# the Free Software Foundation; either version 2 of the License, or
7
+# (at your option) any later version.
8
+#
9
+# This program is distributed in the hope that it will be useful,
10
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+# GNU General Public License for more details.
13
+#
14
+# You should have received a copy of the GNU General Public License
15
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+
17
+
18
+MAGEIA_VERSION="7"
19
+ARM_VERSION="armv7hl"
20
+
21
+#target plateform (xu3-4 or rpi)
22
+TARGET="rpi"
23
+#version of the target
24
+# 0, 1, 2 ,3_32 for rpi and 3 or 4 for odroid
25
+TARGET_VERSION="3+"
26
+
27
+# URL of the Mageia mirror used to install ( see mirrors.mageia.org )
28
+MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
29
+#MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
30
+# image will be created here
31
+
32
+INSTALL_PATH="/mnt/perso/raspi-test"
33
+
34
+# Build directory will be created here
35
+BUILD_PATH="$INSTALL_PATH/build"
36
+
37
+#name of the image
38
+IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET.img"
39
+
40
+#Mount point of image's partitions
41
+BOOT="/mnt/boot"
42
+ROOT="/mnt/root"
43
+
44
+#Default user
45
+ID_USER="pi"
46
+PASSWORD="raspberry"
47
+
48
+#root password
49
+ROOT_PWD="piroot"
50
+
51
+#Hostname
52
+HOSTNAME="$TARGET.$ID_USER"
53
+
54
+#Filesystem of boot partitions (default ext4 raspberry pi need vfat)
55
+BOOTFS="vfat"
56
+
57
+#Path where the raspberry pi firmware is/will be installed
58
+FIRMWARE_PATH="$INSTALL_PATH"
59
+FIRMWARE_DIR="firmware-stable"
60
+FIRMWARE_DOWNLOAD_URL="https://github.com/raspberrypi/firmware/archive/stable.zip"
61
+

+ 3 - 3
xu4/mageia4arm.cfg

@@ -15,14 +15,14 @@
15 15
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16
 
17 17
 
18
-MAGEIA_VERSION="cauldron"
18
+MAGEIA_VERSION="7"
19 19
 ARM_VERSION="armv7hl"
20 20
 TARGET="odroid"
21 21
 TARGET_VERSION="xu4"
22 22
 
23 23
 # URL of the Mageia mirror used to install ( see mirrors.mageia.org )
24
-MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
25
-
24
+#MIRROR="http://ftp.free.fr/mirrors/mageia.org/distrib/$MAGEIA_VERSION/$ARM_VERSION"
25
+MIRROR="http://192.168.1.252/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION"
26 26
 # image will be created here
27 27
 INSTALL_PATH="/mnt/perso/xu4-test/"
28 28