Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/common.sh b/common.sh
- index 46fbb26..67f0fc4 100644
- --- a/common.sh
- +++ b/common.sh
- @@ -460,7 +460,7 @@ mv $DEST/output/tmprootfs.raw $DEST/output/$VERSION.raw
- sync
- sleep 2
- # let's shrint it
- -shrinking_raw_image "$DEST/output/$VERSION.raw"
- +# shrinking_raw_image "$DEST/output/$VERSION.raw"
- sleep 2
- cd $DEST/output/
- cp $SRC/lib/bin/imagewriter.exe .
- diff --git a/config/boot.cmd b/config/boot.cmd
- index 5aaae32..b41db4f 100644
- --- a/config/boot.cmd
- +++ b/config/boot.cmd
- @@ -1,13 +1,13 @@
- -setenv bootargs console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1
- +setenv bootargs console=tty1 root=/dev/mmcblk0p2 rootwait rootfstype=f2fs sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1
- #--------------------------------------------------------------------------------------------------------------------------------
- # Boot loader script to boot with different boot methods for old and new kernel
- #--------------------------------------------------------------------------------------------------------------------------------
- -if ext4load mmc 0 0x00000000 /boot/.next
- +if ext4load mmc 0 0x00000000 /.next
- then
- # sunxi mainline kernel
- #--------------------------------------------------------------------------------------------------------------------------------
- -ext4load mmc 0 0x49000000 /boot/dtb/${fdtfile}
- -ext4load mmc 0 0x46000000 /boot/zImage
- +ext4load mmc 0 0x49000000 /dtb/${fdtfile}
- +ext4load mmc 0 0x46000000 /zImage
- env set fdt_high ffffffff
- bootz 0x46000000 - 0x49000000
- #--------------------------------------------------------------------------------------------------------------------------------
- @@ -18,4 +18,4 @@ ext4load mmc 0 0x43000000 /boot/script.bin
- ext4load mmc 0 0x48000000 /boot/zImage
- bootz 0x48000000
- #--------------------------------------------------------------------------------------------------------------------------------
- -fi
- \ No newline at end of file
- +fi
- diff --git a/configuration.sh b/configuration.sh
- index 5ada405..59dbac5 100644
- --- a/configuration.sh
- +++ b/configuration.sh
- @@ -21,9 +21,9 @@ LINUXKERNEL="https://github.com/dan-and/linux-sunxi"
- LINUXSOURCE="linux-sunxi"
- LINUXCONFIG="linux-sunxi"
- CPUMIN="480000"
- -CPUMAX="1010000"
- +CPUMAX="1080000"
- OFFSET="1" # MB (1 x 2048 = default)
- -BOOTSIZE="0" # Mb size of boot partition
- +BOOTSIZE="16" # Mb size of boot partition
- DOCS=""
- DOCSDIR=""
- FIRMWARE="bin/ap6210.zip"
- diff --git a/deboostrap.sh b/deboostrap.sh
- index 35d9a5c..5d89635 100644
- --- a/deboostrap.sh
- +++ b/deboostrap.sh
- @@ -63,9 +63,9 @@ else
- parted -s $LOOP -- mkpart primary fat16 $BOOTSTART"s" $BOOTEND"s"
- parted -s $LOOP -- mkpart primary ext4 $ROOTSTART"s" -1s
- partprobe $LOOP
- - mkfs.vfat -n "$IMAGEVOLUME" $LOOP"p1" >/dev/null 2>&1
- - mkfs.ext4 -q $LOOP"p2"
- - mount $LOOP"p2" $DEST/output/sdcard/
- + mkfs.ext4 -q $LOOP"p1" >/dev/null 2>&1
- + mkfs.f2fs $LOOP"p2"
- + mount -tf2fs $LOOP"p2" $DEST/output/sdcard/
- mkdir -p $DEST/output/sdcard/boot
- mount $LOOP"p1" $DEST/output/sdcard/boot
- fi
- diff --git a/distributions.sh b/distributions.sh
- index f7445a1..72bd280 100644
- --- a/distributions.sh
- +++ b/distributions.sh
- @@ -102,7 +102,7 @@ chroot $DEST/output/sdcard /bin/bash -c "(echo $ROOTPWD;echo $ROOTPWD;) | passwd
- chroot $DEST/output/sdcard /bin/bash -c "chage -d 0 root"
- # add noatime to root FS
- -echo "/dev/mmcblk0p1 / ext4 defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro 0 0" >> $DEST/output/sdcard/etc/fstab
- +echo -e "/dev/mmcblk0p2 / f2fs defaults,noatime,nodiratime 0 0\n/dev/mmcblk0p1 /boot ext4 defaults,noatime,nodiratime 0 0" >> $DEST/output/sdcard/etc/fstab
- # flash media tunning
- if [ -f "$DEST/output/sdcard/etc/default/tmpfs" ]; then
- @@ -135,7 +135,7 @@ chmod 755 $DEST/output/rootfs/$CHOOSEN_ROOTFS/DEBIAN/postinst
- # scripts for autoresize at first boot
- mkdir -p $DEST/output/rootfs/$CHOOSEN_ROOTFS/etc/init.d
- mkdir -p $DEST/output/rootfs/$CHOOSEN_ROOTFS/etc/default
- -install -m 755 $SRC/lib/scripts/resize2fs $DEST/output/rootfs/$CHOOSEN_ROOTFS/etc/init.d
- +# install -m 755 $SRC/lib/scripts/resize2fs $DEST/output/rootfs/$CHOOSEN_ROOTFS/etc/init.d
- install -m 755 $SRC/lib/scripts/firstrun $DEST/output/rootfs/$CHOOSEN_ROOTFS/etc/init.d
- # install custom bashrc and hardware dependent motd
- @@ -169,4 +169,4 @@ sed -i "s/BOARD/$BOARD/" $DEST/output/rootfs/$CHOOSEN_ROOTFS/etc/hostapd.conf-rt
- # script to install to SATA
- mkdir -p $DEST/output/rootfs/$CHOOSEN_ROOTFS/root
- install -m 755 $SRC/lib/scripts/nand-sata-install $DEST/output/rootfs/$CHOOSEN_ROOTFS/root/nand-sata-install
- -}
- \ No newline at end of file
- +}
- diff --git a/patch/packaging-next.patch b/patch/packaging-next.patch
- index b1a8719..da0d9de 100644
- --- a/patch/packaging-next.patch
- +++ b/patch/packaging-next.patch
- @@ -83,7 +83,7 @@ index 5972624..272d558 100755
- +## Create sym link to kernel image
- +##
- +kernel_tmp_version="${installed_image_path////\\/}"
- -+sed -e "s/exit 0/ln -sf \/$kernel_tmp_version \/boot\/zImage/g" -i $tmpdir/DEBIAN/postinst
- ++sed -e "s/exit 0/cd \/boot\/ ; ln -sf ${kernel_tmp_version##*/} zImage/g" -i $tmpdir/DEBIAN/postinst
- +echo "touch /boot/.next" >> $tmpdir/DEBIAN/postinst
- +echo "exit 0" >> $tmpdir/DEBIAN/postinst
- +
- diff --git a/scripts/firstrun b/scripts/firstrun
- index 0b814b7..59924d0 100644
- --- a/scripts/firstrun
- +++ b/scripts/firstrun
- @@ -86,19 +86,6 @@ case "$1" in
- apt-get -y -qq autoremove >/dev/null 2>&1
- #apt-get -y -qq upgrade >/dev/null 2>&1
- fi
- - #
- - echo "Expanding rootfs..." >/dev/tty1
- - if do_expand_rootfs;then
- - echo "Expanding rootfs success, rebooting automatically." >/dev/tty1
- - update-rc.d resize2fs defaults >/dev/null 2>&1
- - reboot=true
- - else
- - echo "Expanding rootfs has failed, see log files." >/dev/tty1
- - fi
- - update-rc.d -f firstrun remove >/dev/null 2>&1
- - if $reboot;then
- - /sbin/reboot
- - fi
- ;;
- *)
- echo "Usage: $N {start}" >&2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement