From 47e85a6d3a727cbe86208e3ae5a69a24b6e818c2 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 13 Dec 2018 23:18:14 +0100 Subject: [PATCH] modifications for booting with mageia stock kernel --- create_arm_img_urpmi.sh | 132 +++++++++++++++++++++-------------- mageia4arm.cfg.template | 3 +- rpi/bcm2836-rpi-2-b.dtb | Bin 0 -> 13018 bytes rpi/bcm2837-rpi-3-b-plus.dtb | Bin 0 -> 14348 bytes rpi/bcm2837-rpi-3-b.dtb | Bin 0 -> 14096 bytes rpi/extlinux.conf | 10 +++ rpi/mageia4arm.cfg | 13 ++-- rpi/second_stage_install.sh | 5 +- 8 files changed, 105 insertions(+), 58 deletions(-) create mode 100755 rpi/bcm2836-rpi-2-b.dtb create mode 100755 rpi/bcm2837-rpi-3-b-plus.dtb create mode 100755 rpi/bcm2837-rpi-3-b.dtb create mode 100644 rpi/extlinux.conf diff --git a/create_arm_img_urpmi.sh b/create_arm_img_urpmi.sh index 2e18568..836905e 100755 --- a/create_arm_img_urpmi.sh +++ b/create_arm_img_urpmi.sh @@ -68,7 +68,8 @@ function help() echo "--chroot chroot to arm directory and launch packages installation" echo "--create-image Create the image of Mageia $MAGEIA_VERSION" echo "--build-path Path to the build directory of the image of Mageia $MAGEIA_VERSION" -# echo "--target target system (for now rpi, xu3, xu4)" + echo "--target target system (for now rpi, odroid)" + echo "--target-version version of the taget (0, 1, 2, 3 for rpi, 3 or 4 for odroid)" echo "--config Path to config files" echo "--bootfs filesystem of boot partition (ext4 or vfat) default: etx4" echo -e "\nFor image size, make sure it fit on physical support. (Default size is 7 Go)" @@ -245,32 +246,9 @@ function installbasesystem() fi } -function jumpchroot() +function preparechroot() { title "Preparing chrooting in $BUILD_PATH" - info "mounting dev, sys, proc directories in chroot" - /bin/mount -B /dev "$BUILD_PATH/dev" - if [ $? -ne 0 ];then - error "line $LINENO error mounting $BUILD_PATH/dev : exiting" - exit 1 - fi - /bin/mount -B /sys "$BUILD_PATH/sys" - if [ $? -ne 0 ];then - error "line $LINENO error mounting $BUILD_PATH/sys : exiting" - exit 1 - fi - /bin/mount -B /proc "$BUILD_PATH/proc" - if [ $? -ne 0 ];then - error "line $LINENO error mounting $BUILD_PATH/proc : exiting" - exit 1 - fi - info "Copying resolv.conf" - /bin/cp -a /etc/resolv.conf "$BUILD_PATH/etc/" - if [ $? -ne 0 ];then - error "line $LINENO error copying $BUILD_PATH/etc : exiting" - exit 1 - fi - info "making /etc/hostname" echo "$HOSTNAME" > "$BUILD_PATH/etc/hostname" @@ -300,7 +278,7 @@ EOF" >>"$BUILD_PATH/second_stage_install.sh" case $TARGET in - xu3|xu4) + ODROID) #TEMPORARY CODE #copying kernel odroid not existing in mageia repos info "copying kernel-odroid rpm in $BUILD_PATH/root" @@ -314,26 +292,55 @@ EOF" >>"$BUILD_PATH/second_stage_install.sh" rpi) ;; esac - +} + +function jumpchroot() +{ title "chrooting to $BUILD_PATH" - /sbin/chroot --userspec root:root "$BUILD_PATH" /bin/bash -v -c 'sh /second_stage_install.sh' + info "mounting dev, sys, proc directories in chroot" + /bin/mount -B /dev "$BUILD_PATH/dev" + if [ $? -ne 0 ];then + error "line $LINENO error mounting $BUILD_PATH/dev : exiting" + exit 1 + fi + /bin/mount -B /sys "$BUILD_PATH/sys" + if [ $? -ne 0 ];then + error "line $LINENO error mounting $BUILD_PATH/sys : exiting" + exit 1 + fi + /bin/mount -B /proc "$BUILD_PATH/proc" + if [ $? -ne 0 ];then + error "line $LINENO error mounting $BUILD_PATH/proc : exiting" + exit 1 + fi + info "Copying resolv.conf" + /bin/cp -a /etc/resolv.conf "$BUILD_PATH/etc/" + if [ $? -ne 0 ];then + error "line $LINENO error copying $BUILD_PATH/etc/resolv.conf : exiting" + exit 1 + fi + if [ "$OPT" = "chroot" ];then + /sbin/chroot "$BUILD_PATH" + else + /sbin/chroot --userspec root:root "$BUILD_PATH" /bin/bash -v -c 'sh /second_stage_install.sh' + fi RET=$? if [ $RET -ne 0 ];then error "line $LINENO Warning : chrooting to $BUILD_PATH retrurn an error $RET" ERRORN=$((ERRORN++)) fi info "unmounting dev, sys, proc" - /bin/umount "$BUILD_PATH/dev" + /bin/umount -lf "$BUILD_PATH/dev" if [ $? -ne 0 ];then warning "line $LINENO Warning : error unmounting $BUILD_PATH/dev, continuing anyway" ERRORN=$((ERRORN++)) fi - /bin/umount "$BUILD_PATH/sys" + /bin/umount -lf "$BUILD_PATH/sys" if [ $? -ne 0 ];then warning "line $LINENO Warning : error unmounting $BUILD_PATH/sys, continuing anyway" ERRORN=$((ERRORN++)) fi - /bin/umount "$BUILD_PATH/proc" + /bin/umount -lf "$BUILD_PATH/proc" if [ $? -ne 0 ];then warning "line $LINENO Warning : error unmounting $BUILD_PATH/proc, continuing anyway" ERRORN=$((ERRORN++)) @@ -505,16 +512,8 @@ UUID=$ROOT_UUID / ext4 defaults 0 0" > "$BUILD_PA case $TARGET in rpi) -# info "copying raspberry firmware in /boot" -# /bin/rsync -rlptDH "$FIRMWARE_PATH/$FIRMWARE_DIR/boot/" "$BOOT" -#TODO copy to bootstrap /boot - cp -a "$FIRMWARE_PATH/$FIRMWARE_DIR/boot/start*" "$BOOT" - cp -a "$FIRMWARE_PATH/$FIRMWARE_DIR/boot/fixup*" "$BOOT" - #cp -a "$FIRMWARE_PATH/$FIRMWARE_DIR/extra/uname_string" "$BOOT" - #cp -a "$FIRMWARE_PATH/$FIRMWARE_DIR/extra/uname_string7" "$BOOT" + info "copying config.txt, boot.cmd and 10-vchiq-permissions.rules" - cp "$SOURCE_PATH/$CONFIG_PATH/config.txt" "$BOOT" - cp "$SOURCE_PATH/$CONFIG_PATH/boot.cmd" "$BOOT" cp "$SOURCE_PATH/$CONFIG_PATH/10-vchiq-permissions.rules" "$BUILD_PATH/etc/udev/rules.d/" # Making /etc/modules echo "vchiq @@ -526,11 +525,37 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules /bin/cp -a "$SOURCE_PATH/$CONFIG_PATH/modprobe.conf" "$BUILD_PATH/etc/" chown root:root "$BUILD_PATH/etc/modprobe.conf" - #info "making /boot/cmdline.txt" - #echo "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait fsck.repair=1" > "$BOOT/cmdline.txt" -# info "copying raspberry modules in /lib/modules" -# /bin/rsync -rlptDH "$FIRMWARE_PATH/$FIRMWARE_DIR/modules/" "$BUILD_PATH/lib/modules/" -# info "copying raspberry optionals files in opt" + info "making /boot/extlinux/extlinux.conf" + mkdir "$BUILD_PATH/boot/extlinux" + sed -e s/\/$BOOT_UUID/g $SOURCE_PATH/$CONFIG_PATH/extlinux.conf >"$BUILD_PATH/boot/extlinux/extlinux.conf" + + info "copying firmware, overlays and dtb in /boot" + cp -a "$BUILD_PATH/usr/lib/linux-"* "$BOOT/dtb" + cp -a "$FIRMWARE_PATH/$FIRMWARE_DIR/boot/start"* "$BUILD_PATH/boot/" + cp -a "$FIRMWARE_PATH/$FIRMWARE_DIR/boot/fixup"* "$BUILD_PATH/boot/" + cp -a "$FIRMWARE_PATH/$FIRMWARE_DIR/boot/overlays" "$BUILD_PATH/boot/" + + info "copying u-boot binary to /boot" + case $TARGET_VERSION in + 2) + info "copying u-boot for $TARGET 2" + cp "$BUILD_PATH/usr/lib/u-boot/rpi_2/u-boot.bin" "$BUILD_PATH/boot/kernel7" + ;; + 0) + info "copying u-boot for $TARGET 0" + cp "$BUILD_PATH/usr/lib/u-boot/rpi_0_w/u-boot.bin" "$BUILD_PATH/boot/kernel7" + ;; + 1) + info "copying u-boot for $TARGET 1" + cp "$BUILD_PATH/usr/lib/u-boot/rpi/u-boot.bin" "$BUILD_PATH/boot/kernel7" + ;; + 3_32) + info "copying u-boot for $TARGET 3 32 bits" + cp "$BUILD_PATH/usr/lib/u-boot/rpi_3_32b/u-boot.bin" "$BUILD_PATH/boot/kernel7" + ;; + esac + + info "copying raspberry optionals files in opt" # /bin/rsync -rlptDH "$FIRMWARE_PATH/$FIRMWARE_DIR/opt/" "$BUILD_PATH/opt/" info "copying wifi firmware file missing in kernel-firmware-nonfree" @@ -550,7 +575,7 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules fi info "copying " ;; - xu3 | xu4) + ODROID) ;; esac @@ -593,7 +618,7 @@ fi # parsing commandline -TEMP=$(getopt -o h,a --long all,help,clean,create-chroot,addmedia,create-image,,config:,target:,chroot,bootfs:,install-basesystem,update-mirror,build-path:,size: -n $CMDNAME -- "$@") +TEMP=$(getopt -o h,a --long all,help,clean,create-chroot,addmedia,create-image,,config:,target:,target-version:,chroot,bootfs:,install-basesystem,update-mirror,build-path:,size: -n $CMDNAME -- "$@") if [ $? -ne 0 ] ; then error "line $LINENO Failed parsing options." >&2 ; exit 1 ; fi eval set -- "$TEMP" @@ -659,8 +684,12 @@ do fi shift ;; - --system) - SYSTEM=$2 + --target) + TARGET=$2 + shift 2 + ;; + --target-version) + TARGET_VERSION=$2 shift 2 ;; --config) @@ -684,7 +713,7 @@ done info "Option: "$OPT -IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET.img" +IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET$TARGET_VERSION.img" BOOT="/mnt/boot" ROOT="/mnt/root" BUILD_PATH="$INSTALL_PATH/build" @@ -722,7 +751,7 @@ fi # assign function for building image of TARGET ( rpi, xu3 or xu4 ) case $TARGET in -xu3|xu4) +odroid) CREATEIMG="createxu3image" ;; rpi) @@ -788,6 +817,7 @@ case $OPT in addmedia updatemirror installbasesystem + preparechroot jumpchroot $CREATEIMG ;; diff --git a/mageia4arm.cfg.template b/mageia4arm.cfg.template index 5432f98..8db59e0 100644 --- a/mageia4arm.cfg.template +++ b/mageia4arm.cfg.template @@ -19,7 +19,8 @@ MAGEIA_VERSION="6" ARM_VERSION="armv7hl" #target plateform (xu3-4 or rpi) -TARGET="xu3-4" +TARGET="odroid" +TARGET_VERSION="4" # 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" diff --git a/rpi/bcm2836-rpi-2-b.dtb b/rpi/bcm2836-rpi-2-b.dtb new file mode 100755 index 0000000000000000000000000000000000000000..06ba65bad463994aeeccbefb32c8b2304278a837 GIT binary patch literal 13018 zcmcgzJ&Ytr749Az!(nV6#y$)f*xNnq!(4MSvp=_oggh7_kyu(;NRH56Z+G8rbMw>g zp4lG<%SuR)7|97>AqNB|1%wEUAh-Y>L`x|WCtJ!ED;#Y_r0oDQ#~_#v**Ai zRd@Zo|M%)ubx+S<9{Arsf}s7kAPBx01egDW`$g1`qn<@Yx#wYwA4$_)?3C+EBedOn za9?7(jH_ZRE6al-ztoO;gEZ?#TftVD^e$~Bz4rR@nqUzAlc@JUr|=6K`9gc)St2Yv z<6!PZi*k_Ty<82F%T-q9akq0NYd2fXW|IIYq(_)< zOu)2On=3xd1;9KjFr#V2#5$IKQszU9vnc*+LAZY8^?$`l6waSP{T*@gB<^w$g}jW;gF!d% zZ%4gYS-3fwhZ_h_I`^|t<-MYtMOz~ykn&%|l<#ZxE$1IYy?Kbs(-x?MJF5*_!h8(% zk2i5)Ask9L%zN<9m8{uZR__z`)134ob2X|Cs$tfP1fG*)J02ef42iQkwt&VPs2cyg zYZZObCl6No?RN0cGacMzZn$5FG%G5Nfn%K1DepM{i-Rr`po@2-0NMYI`jV)MK|MAjP>!zdZ_hvlH#wIR2K801{W_+CW?F zY;-?M;tQw(vx4bwqfK2t#6c9^iNibj--pV=JI8tFxbj#;`=fR&Ec-_7x$6&rz+v(9 z?yye*b&R$qug}_h*o*V-)?i=O;MV$j6XPs|=bEY8wg*TKj_F|yzJ7#$#~ULL7PS*& zAT>iZ9l5qBOSoO+0|NpLBTV+UK2qCM-%= z;KDX#Ji?vxI(JeG!|&lsX?8sxb%y{Kc&x4Pr)Yl|m2tuSN9iu2eGWBDi+qzRSR->D z{KMC9XQ926Kje{kVQly`85hi*T+0ujK8VT$covoVQdjCp9hu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LyC{G%5@+SaE425zTAKYY@q2W zC0ICy50Md&&u4CxCGypY_quLmg;*V{~8@XaEp2m?AU zw>@IVXrm1Rpr~$VK%0HXD?vcrFsC%a@ZI9wd@D%sP-t|P*(MEHbJy|CC5>c8$03ib zWx`l_rsW${i4T7}yzn2dA1%=&SD`wt^?0*BD3}})%XK1ghMR)XMMs@Pj4O7 z-a{hKHU8{<3%V9ny#nwoq}6Gfww1B*rWfmC@0yKju#7P-FSU1Y`|>YoCMT!ec69!( zY5O`&(QcEI<9*k(X-oCX6m3~yZvL)mlkP0q;=f+j8aPk z@5Vmnd2YH)0w^MTu~)L~=x;p#oc4X3B@UtxZWdqUzQ()uo49Du7g*BQdL|k4ig=jg zHGd!<+6Uv0Pz!8<{b8^aLb$s()4azD=2HExNd6GkbD!}*DMOMbc5w_$V zeqIf6att5frDYlSxADO{KG2P9v&^=~N`MkKgXnshy)er9$-#Ik>c>4`E)mtJCTmx^ zJ8{2{KOOYq>PAqYlfpb>!;HVq4VJu7V;;lL5R^7p@cT^5L*mFMU_Q1w=%8kBY@>_rpQ~2@Uxy_YVepv3jM(^g5mOFCr{xK7*GsltYv`l?R>PCr|^;? z0jCx4o0Wj)k0>4Bd;s1{bst%M=*{iEZi`h=@53iU+88gfEPR?K!A_AzRJ($059DGQ zrsXDsFrdAF=FV12a>B8aSVBv{RT;W_@j=D#&ieepD(WE+2WgOIyLpmrN}P1#t*na? Z`8qVBF|q(rIoiLZWB6yo_BPI2{|710O-}#- literal 0 HcmV?d00001 diff --git a/rpi/bcm2837-rpi-3-b-plus.dtb b/rpi/bcm2837-rpi-3-b-plus.dtb new file mode 100755 index 0000000000000000000000000000000000000000..9fa2dd4be0b7742089bc60c2ee02dfc775642f7c GIT binary patch literal 14348 zcmcgzU5q5xRj%rB48g=1Okzw3W<0Yb3v9{V(=)rXAVk|H36cCWvK<+aqH#@i&2(kE zyDC-H^W%qM9-<&5KSVr`2;~8x72+|n63G%Pu@VpA388(6cmn(a@dHwLLm&v>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lm?h9lfz32!+)Um_HZsj%BPj}!T$pj>*^Z- literal 0 HcmV?d00001 diff --git a/rpi/extlinux.conf b/rpi/extlinux.conf new file mode 100644 index 0000000..7f6b846 --- /dev/null +++ b/rpi/extlinux.conf @@ -0,0 +1,10 @@ +menu autoboot Welcome to Mageia-Minimal. +timeout 20 +default Mageia + +label Mageia + kernel /vmlinuz + append root=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" + fdtdir /dtb/ + initrd /initrd + diff --git a/rpi/mageia4arm.cfg b/rpi/mageia4arm.cfg index e1b78d9..5bea977 100644 --- a/rpi/mageia4arm.cfg +++ b/rpi/mageia4arm.cfg @@ -1,5 +1,5 @@ -# Copyright (C) 2017-2018 Daniel Tartavel-jeannot +# Copyright (C) 2017-2018 Daniel Tartavel-jeannot # # 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 @@ -20,11 +20,16 @@ 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" +#MIRROR="/mnt/STOCK/mageia/distrib/$MAGEIA_VERSION/$ARM_VERSION" # image will be created here -INSTALL_PATH="" + +INSTALL_PATH="/mnt/perso/raspi-test" # Build directory will be created here BUILD_PATH="$INSTALL_PATH/build" @@ -33,7 +38,6 @@ BUILD_PATH="$INSTALL_PATH/build" IMAGE="Mageia-${MAGEIA_VERSION}-$TARGET.img" #Mount point of image's partitions -#no need to be changed BOOT="/mnt/boot" ROOT="/mnt/root" @@ -48,9 +52,8 @@ ROOT_PWD="piroot" 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 +#Path where the raspberry pi firmware is/will be installed FIRMWARE_PATH="$INSTALL_PATH" FIRMWARE_DIR="firmware-stable" diff --git a/rpi/second_stage_install.sh b/rpi/second_stage_install.sh index d8d92ef..a22a8fe 100644 --- a/rpi/second_stage_install.sh +++ b/rpi/second_stage_install.sh @@ -23,7 +23,7 @@ #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 dracut u-boot-tools bcm283x-firmware rsync +/usr/sbin/urpmi --auto --no-verify-rpm basesystem chrony rng-tools man openssh-server rfkill wireless-tools bluez wpa_supplicant make dracut u-boot rsync kernel-desktop-latest /usr/bin/chown :chrony -R /etc/chrony.keys /var/log/chrony @@ -36,3 +36,6 @@ KV=`basename /boot/vmlinuz-*` KV=${KV#vmlinuz-} dracut --kver $KV +rm -f $0 +cp /boot/vmlinuz-* /boot/vmlinuz +cp /boot/initrd-* /boot/initrd