#1 Some cleanups and more AllWinner boards
Merged 2 years ago by pbrobinson. Opened 2 years ago by hrw.
hrw/arm-image-installer master  into  master

file modified
+15 -14

@@ -114,6 +114,7 @@ 

  # check to make sure populated

  if [ "$MEDIA" = "" ] ; then

    usage

+   exit 1

  fi

  

  # change cubietruck target to uppercase

@@ -201,49 +202,49 @@ 

  	fi

  fi

  # umount before starting

- sudo umount $MEDIA* &> /dev/null

+ umount $MEDIA* &> /dev/null

  

  # Write the disk image to media

  if [ "$IMAGE" != "" ] ; then

  	echo "= Writing: "

  	echo "= $IMAGE "

  	echo "= To: $MEDIA ...."

- 	xzcat $IMAGE | sudo dd of=$MEDIA bs=4M; sync; sleep 3

+ 	xzcat $IMAGE | dd of=$MEDIA bs=4M; sync; sleep 3

  	echo "= Writing image complete!"

  # read the new partition table

- 	sudo partprobe "$MEDIA"

+ 	partprobe "$MEDIA"

  fi

  

  # resize root filesystem before mounting

  if [ "$RESIZEFS" != "" ] ; then

  	echo "= Resizing $MEDIA ...."

  	sync

- 	echo ", +" | sudo sfdisk -N 3 "$MEDIA"

- 	sudo fsck.ext4 -fy "$ROOTPART"

- 	sudo partprobe "$MEDIA"

- 	sudo resize2fs "$ROOTPART"

+ 	echo ", +" | sfdisk -N 3 "$MEDIA"

+ 	fsck.ext4 -fy "$ROOTPART"

+ 	partprobe "$MEDIA"

+ 	resize2fs "$ROOTPART"

  fi

  

  # make temp mount points

  mkdir /tmp/{boot,root} &> /dev/null

- sudo mount "$BOOTPART" /tmp/boot &> /dev/null

- sudo mount "$ROOTPART" /tmp/root &> /dev/null

+ mount "$BOOTPART" /tmp/boot &> /dev/null

+ mount "$ROOTPART" /tmp/root &> /dev/null

  

  # turn off selinux

  if [ "$SELINUX" != "" ] ; then

  	if [ "$(echo ${SELINUX} | tr [:lower:] [:upper:])" = "OFF" ] ; then

        		echo "= Turning SELinux off ..."

- 	        sudo sed -i 's/append/& enforcing=0/' /tmp/boot/extlinux/extlinux.conf

+ 	        sed -i 's/append/& enforcing=0/' /tmp/boot/extlinux/extlinux.conf

  # turn on selinux

  	elif [ "$(echo ${SELINUX} | tr [:lower:] [:upper:])" = "ON" ] ; then

      		echo "= Turning SELinux on ..."

- 		sudo sed -i 's/ enforcing=0//' /tmp/boot/extlinux/extlinux.conf

+ 		sed -i 's/ enforcing=0//' /tmp/boot/extlinux/extlinux.conf

  	fi

  fi

  # Remove root password

  if [ "$NOROOTPASS" = "1" ] ; then

          	echo "= Removing the root password."

- 	        sudo sed -i 's/root:x:/root::/' /tmp/root/etc/passwd

+ 	        sed -i 's/root:x:/root::/' /tmp/root/etc/passwd

  fi

  # determine uboot and write to disk 

  if [ "$TARGET" = "" ]; then

@@ -255,12 +256,12 @@ 

  	# Add console

          if [ "$CONSOLE" = "1" ] && [ "$SYSCON" != "" ] ; then

                  echo "= Adding console $SYSCON to extlinux.conf ..."

-                 sudo sed -i "s|append|& console=$SYSCON|" /tmp/boot/extlinux/extlinux.conf

+                 sed -i "s|append|& console=$SYSCON|" /tmp/boot/extlinux/extlinux.conf

          fi

  

  fi

  

- sudo umount $ROOTPART $BOOTPART &> /dev/null

+ umount $ROOTPART $BOOTPART &> /dev/null

  

  echo ""

  echo "= Installation Complete! Insert into the "$TARGET" and boot."

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

file added
+1

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

@@ -0,0 +1,1 @@ 

+ ../socs.d/AllWinner 

\ No newline at end of file

I took quick look and noticed that many boards supported by Fedora U-Boot package are missing.

Also cleaned up sudo use (no need to call sudo when whole script runs as root) and got rid of error message when script called without arguments.

Pull-Request has been merged by pbrobinson

2 years ago
Metadata
Changes Summary 57
+15 -14
file changed
arm-image-installer
+1
file added
boards.d/A10s-OLinuXino-M
+1
file added
boards.d/A13-OLinuXino
+1
file added
boards.d/A13-OLinuXinoM
+1
file added
boards.d/A20-Olimex-SOM-EVB
+1
file added
boards.d/Ampe_A76
+1
file added
boards.d/Auxtek-T003
+1
file added
boards.d/Auxtek-T004
+1
file added
boards.d/CHIP
+1
file added
boards.d/CSQ_CS908
+1
file added
boards.d/Chuwi_V7_CW0825
+1
file added
boards.d/Colombus
+1
file added
boards.d/Cubietruck_plus
+1
file added
boards.d/Hummingbird_A31
+1
file added
boards.d/Hyundai_A7HD
+1
file added
boards.d/Itead_Ibox_A20
+1
file added
boards.d/Lamobo_R1
+1
file added
boards.d/MK808C
+1
file added
boards.d/MSI_Primo73
+1
file added
boards.d/MSI_Primo81
+1
file added
boards.d/Marsboard_A10
+1
file added
boards.d/Mele_A1000G_quad
+1
file added
boards.d/Mele_I7
+1
file added
boards.d/Mele_M3
+1
file added
boards.d/Mele_M5
+1
file added
boards.d/Mele_M9
+1
file added
boards.d/Orangepi
+1
file added
boards.d/Orangepi_mini
+1
file added
boards.d/Sinlinx_SinA31s
+1
file added
boards.d/UTOO_P66
+1
file added
boards.d/Wexler_TAB7200
+1
file added
boards.d/Wits_Pro_A20_DKT
+1
file added
boards.d/Yones_Toptech_BS1078_V2
+1
file added
boards.d/ba10_tv_box
+1
file added
boards.d/colorfly_e708_q1
+1
file added
boards.d/difrnce_dit4350
+1
file added
boards.d/dserve_dsrv9703c
+1
file added
boards.d/i12-tvbox
+1
file added
boards.d/iNet_86VS
+1
file added
boards.d/icnova-a20-swac
+1
file added
boards.d/inet86dz
+1
file added
boards.d/jesurun_q5
+1
file added
boards.d/mk802
+1
file added
boards.d/mk802_a10s
+1
file added
boards.d/mk802ii
+1
file added
boards.d/orangepi_2
+1
file added
boards.d/orangepi_lite
+1
file added
boards.d/orangepi_pc
+1
file added
boards.d/orangepi_plus
+1
file added
boards.d/polaroid_mid2809pxe04
+1
file added
boards.d/pov_protab2_ips9
+1
file added
boards.d/q8_a13_tablet
+1
file added
boards.d/q8_a23_tablet_800x480
+1
file added
boards.d/q8_a33_tablet_1024x600
+1
file added
boards.d/q8_a33_tablet_800x480
+1
file added
boards.d/r7-tv-dongle
+1
file added
boards.d/sunxi_Gemei_G9