Main > Raspberry Pi & Dev Board

How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400

<< < (67/83) > >>

J_K_M_A_N:
You may want to use disk Win32 Disk imager (or whatever you have to make an image of the card) to make a backup JUST IN CASE. :) I am not saying it will not work (VERY likely it will work) but if there is some kind of malfunction, you could at least load it back on the 128 and try again. Unfortunately, I am speaking from experience. :( I have rebuilt a few pi builds.

J_K_M_A_N

bbegin:

--- Quote from: javeryh on December 09, 2021, 06:59:58 pm ---Question… I finally got everything set up exactly how I want and it’s running great.  I used a 128GB memory card but do not need all that space.  Is there a way to compress the image somehow so I can copy it over to a 32GB card?  My current setup uses much less than 32GB.

When I did the initial installation I remember having to expand the image to account for the extra space in the memory card - so I guess now I want to reverse this process.  As usual assume I know nothing LOL.

Thanks!

--- End quote ---

This can be done, but we have to take some steps, as the data partition cannot be shrinked (current limitation of the F2FS filesystem). Please note that I did not tested these steps, they are given to the best of my knowledge, but should normally work.

From your Raspberry Pi, with original SD card:

--- Code: ---# Log in SSH (or from the console, if a keyboard is attached) to the Pi
# Put the system in Service Mode
servicemode
# Shutdown the system
sudo poweroff
# Remove the original SD card from your Raspberry Pi
--- End code ---

From a Linux host/PC:

--- Code: ---# Insert your original SD card
# Dump content to an image-file (assuming your SD card is allocated to /dev/sdd)
sudo dd if=/dev/sdd of=raspios.mame.img status=progress bs=4M
sync
# Switch the SD card, insert your 32GB card
# Write the first 32GB of the image-file to the 32GB SD card (assuming your SD card is allocated to /dev/sdd)
sudo dd if=raspios.mame.img of=/dev/sdd status=progress bs=1M count=32000
sync
rm raspios.mame.img
# Unplug the SD card from your host/PC and insert it in your Raspberry Pi
--- End code ---

From the Raspberry Pi in Service Mode:

--- Code: ---# Log in SSH (or from the console, if a keyboard is attached) to the Pi
# You should be in Service Mode
sudo umount /data
sudo fdisk /dev/mmcblk0p3
# Print the current partition table
p
# Delete the 3rd partition
d, 3
# Set the new size of the partition
First sector: specify previous Start value for the 3rd partition (see the partition table, above)
Last sector: accept the default (to use all remaining free space)
Do you want to remove the signature?   # Answer with Y
# Write the modified partition table
w

# Recreate the F2FS filesystem on the 3rd partition
sudo mkfs.f2fs -l data /dev/mmcblk0p3
# Mount the partition to /data mountpoint
sudo mount -t f2fs -o rw /dev/mmcblk0p3 /data
--- End code ---

From your Linux host/PC:

--- Code: ---# Insert the original SD card
# Identify the device allocated to your SD card
lsblk
# We will use /dev/sdd as an example of your SD card
# Find the mountpoint of the 3rd partition of your SD card
findmnt -S /dev/sdd3
# We use /mnt/data as an example mountpoint
# Copy the content of data partition recursively to your Raspberry Pi
scp -r /mnt/data/* pi@IP.ADDRESS.OF.YOUR.PI/data
--- End code ---

From the Raspberry Pi (still in Service Mode):

--- Code: ---# Make sure everything is there
ls -la /data
# Switch to Arcade Mode
arcademode
# Reboot
sudo reboot
--- End code ---

Enjoy! :)

bbegin:
Just to let you know the availability of the NEW disk image file with MAME 0.239 (please see the original post of this thread for the download link).  :cheers:

Also included in this release:
 - The Hypseus-Singe binary (for LaserDisc games emulation) has been updated to v2.6.21-RPi

wimpie3:
I've tried to install the latest version with MAME 0.239.

First thing I wanted to do was to activate the WIFI with raspi-config. Got the famous "could not communicate with wpa_suppliant" message. I thought this was an old bug that already has been fixed? When I wanted do install wpasupplicant with atp-get, the answer was that this module is already installed.

There also is a bug in mame-versionscheck.sh in line 10: [: -qt: unary operator expected
This error is shown after login.

bbegin:

--- Quote from: wimpie3 on January 03, 2022, 09:44:29 am ---I've tried to install the latest version with MAME 0.239.

There also is a bug in mame-versionscheck.sh in line 10: [: -qt: unary operator expected
This error is shown after login.

--- End quote ---

I fixed the script in the new version of the image. Upload to Google Drive in progress. Stay tuned. I will post once the upload is completed. Sorry about that.


--- Quote from: wimpie3 on January 03, 2022, 09:44:29 am ---First thing I wanted to do was to activate the WIFI with raspi-config. Got the famous "could not communicate with wpa_suppliant" message. I thought this was an old bug that already has been fixed? When I wanted do install wpasupplicant with atp-get, the answer was that this module is already installed.

--- End quote ---

Do you switch to read/write (just type: rw) mode before invvoking raspi-config?

Can you post me the result of those commands?


--- Code: ---sudo iwlist wlan0 scan
sudo ifconfig
sudo rfkill
--- End code ---

Thanks in advance!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version