aboutsummaryrefslogtreecommitdiffstats
path: root/rpi3+
diff options
context:
space:
mode:
authorDaniel Tartavel <contact@librepc.com>2019-03-30 22:43:08 +0100
committerDaniel Tartavel <contact@librepc.com>2019-03-30 22:43:08 +0100
commit8e14a565c73f394e9b7298d394a2d7d7dc693d70 (patch)
tree07d446ab8c5e68ddb3d0491cac238448e9d588eb /rpi3+
parent9a2af3260038ce09d77f1b4b056ef317e36926d6 (diff)
downloadmageia4arm-8e14a565c73f394e9b7298d394a2d7d7dc693d70.tar
mageia4arm-8e14a565c73f394e9b7298d394a2d7d7dc693d70.tar.gz
mageia4arm-8e14a565c73f394e9b7298d394a2d7d7dc693d70.tar.bz2
mageia4arm-8e14a565c73f394e9b7298d394a2d7d7dc693d70.tar.xz
mageia4arm-8e14a565c73f394e9b7298d394a2d7d7dc693d70.zip
deleting some old files no more needed
Diffstat (limited to 'rpi3+')
-rw-r--r--rpi3+/10-vchiq-permissions.rules1
-rw-r--r--rpi3+/mageia4arm.cfg.original56
-rw-r--r--rpi3+/modprobe.conf3
-rw-r--r--rpi3+/second_stage_install.sh41
4 files changed, 101 insertions, 0 deletions
diff --git a/rpi3+/10-vchiq-permissions.rules b/rpi3+/10-vchiq-permissions.rules
new file mode 100644
index 0000000..bacea0e
--- /dev/null
+++ b/rpi3+/10-vchiq-permissions.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"
diff --git a/rpi3+/mageia4arm.cfg.original b/rpi3+/mageia4arm.cfg.original
new file mode 100644
index 0000000..e1b78d9
--- /dev/null
+++ b/rpi3+/mageia4arm.cfg.original
@@ -0,0 +1,56 @@
+
+# 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"
+
+# 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 downloaded
+FIRMWARE_PATH="$INSTALL_PATH"
+FIRMWARE_DIR="firmware-stable"
diff --git a/rpi3+/modprobe.conf b/rpi3+/modprobe.conf
new file mode 100644
index 0000000..7725dae
--- /dev/null
+++ b/rpi3+/modprobe.conf
@@ -0,0 +1,3 @@
+alias wlan0 brcmfmac
+alias eth0 smsc95xx
+alias usb0 rndis_host
diff --git a/rpi3+/second_stage_install.sh b/rpi3+/second_stage_install.sh
new file mode 100644
index 0000000..1848789
--- /dev/null
+++ b/rpi3+/second_stage_install.sh
@@ -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