Bläddra i källkod

Build 338:

- Update:
    -    fehlende user werden angelegt falls nicht vorhanden
    -    /run umgestellt von link auf tmpfs in eigenem bereich (fall notwendig)
    -    Berechtigungen von /tmp und /run werden wieder richtig gesetzt.
    -    TIVA Binaries werden nicht mehr gelöscht
    -    usernamen und passworte werden nicht mehr überschrieben

CopySDtoEmmc:
    -    /media/usb<x> werden wieder erstellt. (wo das untergegangen ist weiss ich nicht mehr !)

Kernel:
-    Aktueller Stand der gepatchten Grafiktreiber (Bildschirversatz)
-    aktueller Stand es Touchtreibers (erkennt M12 Treiber für neue Glyn Displays)
Reinhard Russinger 8 år sedan
förälder
incheckning
d2ba7f0258

+ 2 - 2
GfA-buildroot-changes.patch

@@ -313,7 +313,7 @@ index 0000000..4706719
 +mount $bootpart /mnt
 +
 +## -- alte Firmwarebinaries löschen
-+rm /root/btm*.bin
++#rm /root/btm*.bin
 +
 +#--- Kernel MLO und Rootfs-Tarball entpacken
 +untar_payload
@@ -326,7 +326,7 @@ index 0000000..4706719
 +cp $TMP_PATH/*.dtb /mnt
 +
 +#rootfs auspacken
-+tar -C / --exclude=./opt --exclude=./etc/inittab --exclude=./etc/network/interfaces --exclude=./etc/hosts --exclude=./etc/hostname -xzvf $TMP_PATH/rootfs.tar.gz
++tar -C / --exclude=./opt --exclude=./tmp --exclude=./etc/inittab --exclude=./etc/network/interfaces --exclude=./etc/hosts --exclude=./etc/hostname --exclude=./etc/passwd --exclude=./etc/shadow --exclude=./etc/vncpwd --exclude=./etc/init.d/S99tincd --exclude=./etc/init.d/M99tincd --exclude=./var/GfA/Display_GSM.ini -xzvf $TMP_PATH/rootfs.tar.gz
 +
 +echo "sync mmc be patient ...."
 +sync

+ 48 - 0
GfA-buildroot_mysql_posgres_update_fixes.patch

@@ -0,0 +1,48 @@
+diff --git a/UpdateRootfs.sh.in b/UpdateRootfs.sh.in
+index e5fe800..b2ede0c 100644
+--- a/UpdateRootfs.sh.in
++++ b/UpdateRootfs.sh.in
+@@ -71,6 +71,43 @@ fi
+ #echo ".."
+ #echo "Update Firmware Done"
+ #/root/gfa_spi -v
++#================================
++#--create mountable run folder insted of link
++RUNDIR=/run
++if [ -L $RUNDIR ]; then
++  mv $RUNDIR $RUNDIR'_WRK'
++  mkdir $RUNDIR
++  mount -t tmpfs tmpfs $RUNDIR
++  WRKDIR=`pwd`
++  cd $RUNDIR'_WRK'
++  cp -a ./* $RUNDIR
++  cd $WRKDIR
++  rm $RUNDIR'_WRK' 
++fi
++#--- craete missing nogroup group
++GID_NOGROUP=`awk -F\: '/nogroup/ {print $3}' /etc/group`
++if [ -z "$GID_NOGROUP" ]; then
++  addgroup -S -g 65534 nogroup
++fi
++#--create missing users for mysql,
++if [ -z `awk -F\: '/mysql/ {print $3}' /etc/passwd` ]; then
++  UID_MY=`awk -F: '{uid[$3]=1}END{for(x=1000; x<=1500; x++) {if(uid[x] != ""){}else{print x; exit;}}}' /etc/passwd`
++  echo "mysql:x:$UID_MY:65534:MySQL daemon:/var/mysql:/bin/false" >> /etc/passwd
++fi
++#--create missing users for postgresql,
++if [ -z `awk -F\: '/postgres/ {print $3}' /etc/passwd` ]; then
++  UID_PG=`awk -F: '{uid[$3]=1}END{for(x=1000; x<=1500; x++) {if(uid[x] != ""){}else{print x; exit;}}}' /etc/passwd`
++  GID_PG=`awk -F\: '/postgres/ {print $3}' /etc/group`
++  if [ -z "$GID_PG" ]; then
++    GID_PG=`awk -F: '{uid[$3]=1}END{for(x=1000; x<=1500; x++) {if(uid[x] != ""){}else{print x; exit;}}}' /etc/group`
++    echo "postgres:x:$GID_PG:" >> /etc/group
++    fi
++  echo "postgres:x:$UID_PG:$GID_PG:PostgreSQL Server:/var/lib/pgsql:/bin/sh" >> /etc/passwd
++fi
++#------------------
++chown -Rv mysql:nogroup /var/mysql
++chown -Rv postgres:postgres /var/lib/pgsql
++#==============================================================================
+ echo "Update Done, pls. reboot System"
+ umount /mnt
+ echo "."

+ 1 - 0
MakeBuildrootEnv.sh

@@ -9,6 +9,7 @@ patch -p1 < ../GfA/GfA-buildroot-changes.patch
 patch -p1 < ../GfA/GfA-buildroot_revert_S80ti-gfx_frambuffersettings.patch
 patch -p1 < ../GfA/GfA-buildroot_MapImage_build_path.patch
 patch -p1 < ../GfA/GfA-buildroot-LegalInfo_zip_in_separate_script.patch
+patch -p1 < ../GfA/GfA-buildroot_mysql_posgres_update_fixes.patch
 chmod a+x *.sh
 cp ../GfA/configs/* ./configs
 git add .

+ 1 - 1
board/GfA/Display001/BUILD

@@ -1 +1 @@
-335
+338

+ 4 - 1
board/GfA/Display001/rootfs/root/CopySDtoEMMC.sh

@@ -48,7 +48,10 @@ WRKDIR=`pwd`
 cd /tmp/rootfs/dev
 ln -s ../tmp/log ./log
 cd $WRKDIR
-mkdir -p /tmp/rootfs/media
+for i in `seq 0 7` ; do 
+  echo "usb$i"
+  mkdir -p /tmp/rootfs/media/usb$i
+done
 mkdir -p /tmp/rootfs/mnt
 #--- copy rootfs from SD
 cd /