Browse Source

tweaky mctweakface

tags/2020-06-05
mntmn 9 months ago
parent
commit
5d546324ea
5 changed files with 8 additions and 12 deletions
  1. +1
    -1
      mkdeps.sh
  2. +0
    -1
      mkkernel.sh
  3. +4
    -9
      mkreform.sh
  4. +2
    -0
      mkuserland.sh
  5. +1
    -1
      multistrap.conf

+ 1
- 1
mkdeps.sh View File

@@ -3,6 +3,6 @@
set -x
set -e

sudo apt install parted multistrap udisks2 g++-arm-linux-gnueabihf
sudo apt install parted multistrap udisks2 gcc-aarch64-linux-gnu

git submodule update --init --recursive

+ 0
- 1
mkkernel.sh View File

@@ -29,7 +29,6 @@ do
else
echo "\e[1mKernel patch already applied or cannot apply: $PATCHFILE"
fi
read dummy
done

make -j16 Image freescale/imx8mq-mnt-reform2.dtb


+ 4
- 9
mkreform.sh View File

@@ -14,14 +14,14 @@ mkdir -p target

# change 16000 below to the number of megabytes your image file should have
if [ ! -f reform-system.img ]; then
dd if=/dev/zero of=reform-system.img bs=1M count=16000
dd if=/dev/zero of=reform-system.img bs=1M count=0 seek=4000
else
echo "reform-system.img already exists. Delete it if you want to change the image size."
fi

# can/should we use non-mbr? GPT?
/sbin/parted -s reform-system.img "mklabel msdos"
/sbin/parted -s reform-system.img "mkpart primary ext4 1 -1"
/sbin/parted -s reform-system.img "mkpart primary ext4 4MiB -1"
/sbin/parted -s reform-system.img print

LOOPDISK=$(udisksctl loop-setup -f ./reform-system.img)
@@ -31,14 +31,9 @@ echo LOOPDISK: $LOOPDISK

# format the partition
echo "About to format ${LOOPDISK}p1!"
read -p "Are you sure? " -n 1 -r
#read -p "Are you sure? " -n 1 -r

if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo /sbin/mkfs.ext4 -q ${LOOPDISK}p1
else
exit 1
fi
sudo /sbin/mkfs.ext4 -q ${LOOPDISK}p1

# print the finished partition table
/sbin/parted -s reform-system.img print


+ 2
- 0
mkuserland.sh View File

@@ -3,6 +3,8 @@
rm -rf ./target-userland
mkdir ./target-userland

set -e

# create debian userland
/usr/sbin/multistrap -d target-userland -f multistrap.conf
cp target-userland/usr/share/base-passwd/group.master target-userland/etc/group


+ 1
- 1
multistrap.conf View File

@@ -7,7 +7,7 @@ aptsources=Debian
allowrecommends=false

[Debian]
packages=adduser apt apt-utils apt-file bsdmainutils procps gpgv debian-archive-keyring readline-common gnupg cpio init-system-helpers cron netbase groff-base iproute2 ifupdown isc-dhcp-common isc-dhcp-client iptables iputils-ping kmod less logrotate man-db manpages nano net-tools netcat-traditional nfacct rsyslog tasksel-data tasksel traceroute vim-common vim emacs wget whiptail ssh wicd-curses wicd-gtk wpasupplicant zsh htop build-essential sysvinit-core xterm elinks ntpdate ntp usbutils fbset screen tmux brightnessctl curl coreutils xorg weston sway suckless-tools alsa-utils sudo ca-certificates parted file locales git make ed mesa-utils console-setup console-data unicode-data unifont ttf-unifont kbd kmscube gpm blackbox mplayer pciutils gparted grafx2 mupdf lxappearance faenza-icon-theme pcmanfm cryptsetup meshlab libgtk-3-0 libvte-2.91-0 usb-modeswitch wvdial pmount wicd-gtk unzip gtk2-engines gdb telnet sxiv kicad inkscape gimp gedit gnumeric vim-gtk3 claws-mail netsurf-gtk firefox irssi busybox libllvm6.0 strace bc milkytracker dfu-programmer gcc-avr binutils-avr avrdude arduino-mk feh zathura meson ninja-build libudev-dev libmtdev-dev libevdev-dev libxshmfence-dev xutils-dev autoconf autogen libtool pkg-config python3-mako zlib1g-dev expat valgrind bison llvm flex libunwind-dev libwayland-dev wayland-protocols libwayland-egl-backend-dev libx11-dev libx11-xcb-dev libxdamage-dev libxfixes-dev libxcb-dri3-dev libxcb-xfixes0-dev libxcb-sync-dev libxrandr-dev libxext-dev libxcb-glx0-dev libxcb-present-dev libxcb-dri2-0-dev gettext libpixman-1-dev libbsd-dev libxkbfile-dev libxfont-dev nettle-dev libdbus-1-dev libsystemd-dev libpciaccess-dev autopoint figlet intltool lm-sensors
packages=adduser apt apt-utils apt-file bsdmainutils procps gpgv debian-archive-keyring readline-common gnupg cpio init-system-helpers cron netbase groff-base iproute2 ifupdown isc-dhcp-common isc-dhcp-client iptables iputils-ping kmod less logrotate man-db manpages nano net-tools netcat-traditional nfacct rsyslog tasksel-data tasksel traceroute vim-common vim emacs wget whiptail ssh network-manager wpasupplicant zsh htop build-essential xterm elinks ntpdate ntp usbutils fbset screen tmux brightnessctl curl coreutils xorg weston sway suckless-tools alsa-utils sudo ca-certificates parted file locales git make ed mesa-utils console-setup console-data unicode-data unifont ttf-unifont kbd kmscube gpm blackbox mplayer pciutils gparted grafx2 mupdf lxappearance faenza-icon-theme pcmanfm cryptsetup meshlab libgtk-3-0 libvte-2.91-0 usb-modeswitch wvdial pmount unzip gtk2-engines gdb telnet sxiv kicad inkscape gimp gedit gnumeric vim-gtk3 claws-mail irssi busybox libllvm6.0 strace bc milkytracker dfu-programmer gcc-avr binutils-avr avrdude arduino-mk feh zathura meson ninja-build libudev-dev libmtdev-dev libevdev-dev libxshmfence-dev xutils-dev autoconf autogen libtool pkg-config python3-mako zlib1g-dev expat valgrind bison llvm flex libunwind-dev libwayland-dev wayland-protocols libwayland-egl-backend-dev libx11-dev libx11-xcb-dev libxdamage-dev libxfixes-dev libxcb-dri3-dev libxcb-xfixes0-dev libxcb-sync-dev libxrandr-dev libxext-dev libxcb-glx0-dev libxcb-present-dev libxcb-dri2-0-dev gettext libpixman-1-dev libbsd-dev libxkbfile-dev libxfont-dev nettle-dev libdbus-1-dev libsystemd-dev libpciaccess-dev autopoint figlet intltool lm-sensors policykit-1 systemd libpam-systemd systemd-sysv
source=http://http.debian.net/debian
keyring=debian-archive-keyring
suite=bullseye


Loading…
Cancel
Save