Skip to content

Commit

Permalink
fix ipxbox
Browse files Browse the repository at this point in the history
  • Loading branch information
weese committed Sep 3, 2023
1 parent c84e920 commit b36efa0
Show file tree
Hide file tree
Showing 8 changed files with 2,534 additions and 500 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ WORKDIR /build/dosbox-x
RUN sed -i -e 's@--prefix=/usr@--prefix=/mnt/ext4/usr CPPFLAGS="-march=armv8-a+simd+crypto+crc+sb -mtune=cortex-a53"@g' build-debug-sdl2
RUN ./build-debug-sdl2

RUN wget https://go.dev/dl/go1.17.linux-arm64.tar.gz
RUN tar -C /usr/local -xzf go1.17.linux-arm64.tar.gz
ENV PATH="/usr/local/go/bin:${PATH}"
ENV GOPATH=/build/go
RUN go env -w GO111MODULE=off
RUN go get github.com/fragglet/ipxbox
RUN go build github.com/fragglet/ipxbox


WORKDIR /build

CMD ["bash"]
Expand Down
2 changes: 0 additions & 2 deletions fs/etc/systemd/system/[email protected]/noclear.conf

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[Service]
#ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM
ExecStart=
ExecStart=-/sbin/agetty --skip-login --noclear --noissue --login-options "-f pi" %I $TERM
ExecStart=-/sbin/agetty --skip-login --noclear --noissue --login-options "-f pi" %I $TERM
1,501 changes: 1,256 additions & 245 deletions fs/home/pi/backup/launchbox.conf

Large diffs are not rendered by default.

1,501 changes: 1,256 additions & 245 deletions fs/home/pi/dosbian/programs/launchbx/launchbox.conf

Large diffs are not rendered by default.

Binary file removed fs/usr/local/bin/ipxbox
Binary file not shown.
2 changes: 1 addition & 1 deletion fs/usr/local/bin/menu
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ case $CHOICE in

sudo sed -i '2c/usr/bin/dosbox-x >/dev/null 2>&1' /usr/local/bin/bootmachine
sudo chmod +x /usr/local/bin/bootmachine
dialog --backtitle "$BACKTITLE" --title "Information" --msgbox '\n\nDosbox ECE set successfully!\n\nNext time you reboot, you will be brought straightly to the Dosbox Shell. ' 18 40
dialog --backtitle "$BACKTITLE" --title "Information" --msgbox '\n\nDOSBox-X set successfully!\n\nNext time you reboot, you will be brought straightly to the Dosbox Shell. ' 18 40
;;

7)
Expand Down
16 changes: 11 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ exists() { #FILE
# LOGIC!
echo "INSTALLING.."

execute "chroot $DEST systemctl enable [email protected]"

#####################################################################
# Copy all files
execute "rsync -av --exclude=.* $REPODIR/fs/ $DEST/"
Expand All @@ -172,6 +174,9 @@ execute "chroot $DEST systemctl enable ipxbox.service"
# Install Dosbox-X
execute "cd ../dosbox-x; make install"

# Install ipxbox
execute "cp $REPODIR/go/bin/ipxbox $DEST/usr/local/bin/"

# Install Dosbox-X dependencies
execute "chroot $DEST apt-get update"
execute "chroot $DEST apt-get install -y \
Expand Down Expand Up @@ -208,17 +213,18 @@ execute "chroot $DEST systemctl disable bluetooth.service avahi-daemon.service d

# boot config
cat << EOF >> $DESTBOOT/config.txt
# Use 1080p
hdmi_group=1
hdmi_mode=16
disable_splash=1
boot_delay=0
dtoverlay=sdtweak,overclock_50=100
gpu_mem=64
EOF

# # Use 1080p
# cat << EOF >> $DESTBOOT/config.txt
# hdmi_group=1
# hdmi_mode=16
# EOF

# disable terminal on serial
# execute "sed -i 's/console=serial0,115200//' $DESTBOOT/cmdline.txt"

Expand Down

0 comments on commit b36efa0

Please sign in to comment.