Ignoring *.img in git commit.

Small fixes for documentation of building an image in README.txt.
pull/25/head
Holger Wirtz 2 years ago
parent 0a4c01536d
commit aea79c35e0
  1. 1
      .gitignore
  2. 6
      README.md
  3. 0
      build.sh

1
.gitignore vendored

@ -39,3 +39,4 @@ kernel*
MiniDexed*
sdcard
*.zip
*.img

@ -86,10 +86,10 @@ zip -r MiniDexed_Raspberry_Pi_${RPI}.zip sdcard/*
sudo apt install --yes mount parted
IMG="`date +%Y-%m-%d`_minidexed-RPi${RPI}.img"
dd of="${IMG}" seek=50MiB bs=1 count=0
parted "${IMG}" mktable msdos
parted "${IMG}" mkpart primary fat32 2048s 49MiB
sudo parted "${IMG}" mktable msdos
sudo parted "${IMG}" mkpart primary fat32 2048s 100%
DEV=`sudo losetup --find --partscan --show "${IMG}"`
sudo mkfs.vfat -F 32 -n BOOT "${DEV}p0"
sudo mkfs.vfat -F 32 -n BOOT "${DEV}p1"
mkdir boot
sudo mount "${DEV}p1" boot
sudo cp sdcard/* boot

Loading…
Cancel
Save