TriForceX / MiyooCFW

Custom firmware source code and resources for BittBoy, PocketGo, PowKiddy V90-Q90-Q20 and third party handheld consoles
GNU General Public License v2.0
1.05k stars 106 forks source link

main partition is FAT-formatted #248

Closed agentroadkill closed 1 year ago

agentroadkill commented 2 years ago

I used dd (gdd from homebrew) to write the PowKiddy Q90 English firmware to my SD carD. The main partition on the card is FAT (not FAT32 or exFAT). The partition is limited to 1.5 GiB and can’t be resized: is this expected? Copying main off the card and changing the partition to a larger FAT32 or exFAT causes the console to not boot.

TriForceX commented 2 years ago

The firmware version included in the package SD cards are modified versions of our firmware, usually modified by the manufacturers, so the format, partitions, and the files there usually are not the same as the firmware stuff we provide. We cannot guarantee any functionallity with the stuff we dont provide (like the stuff that came with the console).

Also as we said on the wiki, is highly recommended to not use the included SD cards because the bad quality of them...

The SD must be FAT32, not FAT or exFAT. Writting the CFW image on the sd will create 4 partitions, the MAIN partition is the right one to expand after the image is written.

agentroadkill commented 2 years ago

Sorry I should have been more clear. I used a new 128 GiB SD card to flash, following the instructions and download link provided here for my PowKiddy V90. Agree FAT seems wrong - I was curious if using (g)dd rather than the Windows tool in the instructions could make a difference, or if there was a problem with the image I happened to download?

Rezzy-dev commented 2 years ago

Is it FAT for sure? Because that's very old (we're talking archaic, DOS era). Is it not FAT32, but for some reason it's being reported as just FAT? Where are you getting the indication that it is FAT? In Disk Utility?

35o125 commented 2 years ago

I have exactly the same issue. Disc Utility doesn't let me expand the main partition, so I can't load ROMs. I've tried inserting flashed SD card with the new firmware into a V90 and it works, just empty without ROMs. How to increase the space on the partition? Please!

Rezzy-dev commented 2 years ago

You'll need to use the GParted LiveCD to accomplish the resizing of the FAT32 partition on the SD card, since Mac OS does not have an advanced enough tool to live resize FAT32 partitions out of the box (Disk Utility can't do it).

https://gparted.org/

Just be careful when using GParted that you do not modify your Mac's internal hard drive -- that you select and make changes to the SD card only!

It's best to back up all your data on the computer before using GParted, just to be safe.

The way GParted works is that you make your changes, and when you're happy with the changes and sure this is what you want to do, you "apply" them, and that's when GParted actually operates on and reformats the partitions (not before that).

You boot into the GParted LiveCD in Mac OS by restarting or turning on the computer while holding down the C key on your keyboard.

Alternatively, there is another tool for Mac OS that supposedly lets you accomplish the same tasks, with a simpler, visual interface, but I don't know too much about this one:

https://www.tweaking4all.com/software/macosx-software/applepi-baker-v2/

See here for more information -- recommended by user @BryMD: https://github.com/TriForceX/MiyooCFW/issues/247

35o125 commented 2 years ago

Thank you. Installation process is a bit confusing for a noob like me. There are several links for download. Any clue which one to get?

Rezzy-dev commented 2 years ago

If you're on a modern Mac, you'll be wanting the amd64 one, as that means 64-bit: https://downloads.sourceforge.net/gparted/gparted-live-1.3.1-1-amd64.iso

i686 is 32-bit (which no new Mac can run, only old Macs with PowerPC processors).

Rezzy-dev commented 2 years ago

If your Mac has a CD drive, simply burn the ISO image with either Disk Utility or Toast to a CD: https://www.macinstruct.com/tutorials/how-to-burn-an-iso-disc-image-on-your-mac/

35o125 commented 2 years ago

I did that. Now I have a new CD. Have no idea how to run it.

Rezzy-dev commented 2 years ago

Then restart your computer, holding down the C key on your keyboard. Sometimes you need to shut down the computer and start it up from cold, as the boot process is a little buggy on Mac OS X. After you hear the chime, hold down C until the computer starts booting from the CD.

Rezzy-dev commented 2 years ago

When successful, you will see the computer boot into a light version of Linux that starts the GParted disk formatting and partitioning utility.

Make sure you back up your computer before you start using GParted to resize/reformat the SD card, and, again, make sure you are NOT making changes to the computer's internal hard drive, but only the inserted SD card.

Rezzy-dev commented 2 years ago

Find the FAT32 partition/volume on the SD card labelled "main", and resize/expand it using GParted to the full size of the card.

Then "apply all operations" (hit the green check button, or select Edit > Apply All Operations in the menu). At this point GParted will write the changes to the SD card and operate on the partition. (It will ask for a confirmation from you that this is really what you want to do before it does it. Here make sure, double-check that it is really the SD card you are messing with, NOT the internal hard drive of the computer.)

35o125 commented 2 years ago

Mac got frozen at 'don't touch keymap' stage (configuring console data).

Rezzy-dev commented 2 years ago

Mac got frozen at 'don't touch keymap' stage (configuring console data).

On booting from the CD?

Rezzy-dev commented 2 years ago

You need to select "don't touch keymap", and then hit the "OK" button: image

35o125 commented 2 years ago

it booted from the CD, showed some tiny text with commands. I've hit esc, and then enter for default. After a long script a windoe appeared with 'Don't touch keymap' line marked in red. I couldn't do anything at that point other than force shutdown. Couldn't hit the OK button.

Rezzy-dev commented 2 years ago

Did you try using the arrow keys on the keyboard or the Tab key?

Rezzy-dev commented 2 years ago

You just need to leave "don't touch keymap" selected and move to the "OK" button and hit the Enter key on your keyboard.

Rezzy-dev commented 2 years ago

Then go for the default language, mode and other settings and press Enter. After that it will start GParted.

35o125 commented 2 years ago

not sure if I tried Tab key. Did tried arrows though. Need to go to bed now. Might try again tmw. Feels intimidating I must admit. I might need to find some space to backup my sht first.

Rezzy-dev commented 2 years ago

Definitely back up your hard drive before you use GParted. It seems intimidating at first, because it's so different to Mac, but it works pretty much the same as Disk Utility once you get the hang of it. (Except it's a hundred times more useful than Disk Utility.)

35o125 commented 2 years ago

Yeah, one more reason to hate Mac. Thanks for staying with me! Will update.

Rezzy-dev commented 2 years ago

This is what GParted looks like: image

Rezzy-dev commented 2 years ago

Yeah, one more reason to hate Mac. Thanks for staying with me! Will update.

No worries. Let me know if you run into any issues. Better to ask questions than mess things up. ;)

35o125 commented 2 years ago

Will do :)

Rezzy-dev commented 2 years ago

Once you find the "main"-labelled, FAT32 partition on the SD card, simply select and right click it, and choose "Resize/Move" in the context menu. Then you'll get the resize visual interface above, where you can just drag the resize slider to the right.

And then you just need to apply the operations/changes (writing them to the SD card).

Rezzy-dev commented 2 years ago

You switch to the SD card with the top right selection button (in the GParted window). Be advised that by default the first disk that GParted loads is your internal hard drive. So you most definitely want to switch to the SD card before you change anything.

The SD card will have 4 partitions, labelled "boot", "rootfs", "swap", and "main".

If you've made changes to the wrong disk, don't panic, simply quit and shut down GParted and the computer without applying the changes. Then start over.

Rezzy-dev commented 2 years ago

Wireless/Bluetooth keyboard users, note that your Bluetooth keyboard may not work here (on the LiveCD). You may need to plug in a USB, wired keyboard.

35o125 commented 2 years ago

Thank you. I actually had to go and buy a wired mouse. Anyways, managed to get in, but can't see my SD card in the top right corner. It only shows my HD.

Rezzy-dev commented 2 years ago

Anyways, managed to get in, but can't see my SD card in the top right corner. It only shows my HD.

That's odd. Hmm... how is the SD card plugged into the computer? Try plugging the SD card in only after you load GParted. See if that makes a difference in terms of it showing up. I suspect that Mac OS may have hijacked (or temporarily turned off) the SD card on boot.

35o125 commented 2 years ago

plugged at the back. it can be seen in finder. tried inserting several times while in GParted, no change. Tried refreshing device, nothing..

35o125 commented 2 years ago

This is what GParted looks like: image

how do you have 931Gb drive selected top right, and yet you can see those 4 partitions on the left side, plus resizing?

Rezzy-dev commented 2 years ago

plugged at the back. it can be seen in finder. tried inserting several times while in GParted, no change. Tried refreshing device, nothing..

Hmm... can you share a screenshot with me of what Disk Utility shows you about the SD card's partitioning in Mac OS?

When you say you plugged it in in the back of the computer, do you mean you're using a USB adapter for the SD card?

Rezzy-dev commented 2 years ago

how do you have 931Gb drive selected top right, and yet you can see those 4 partitions on the left side, plus resizing?

This is just an example screenshot I shared with you just to show you what GParted looks like, and it's showing the computer's hard drive, not the SD card. It's also not my computer.

35o125 commented 2 years ago

No, I am just using adapter for micro card. I have a slot at the back of my mac.

35o125 commented 2 years ago
Screen Shot 2021-12-09 at 10 47 05 pm
Rezzy-dev commented 2 years ago

This is how GParted actually looks like with the SD card loaded in it on my Linux computer: Screenshot from 2021-12-09 23-47-34

35o125 commented 2 years ago

This is how GParted actually looks like with the SD card loaded in it on my Linux computer

I envy :)

Rezzy-dev commented 2 years ago
Screen Shot 2021-12-09 at 10 47 05 pm

Hmm... looks to be in order. Mac OS can't read the rootfs partition, because that's a Linux formatted (EXT4) partition, and the swap partition (that's why it's displaying those funny "disk" names), but your SD card seems to be fine.

35o125 commented 2 years ago

new firmware works in the console, it's just ROMs free : l

Rezzy-dev commented 2 years ago

I wonder why the SD card is not showing up on the GParted LiveCD. I'm guessing it would be a driver issue -- a missing driver for the internal SD card reader for the Mac. Although that's very rare to happen on Linux, and something that would only really happen when running Linux on a Mac.

Do you happen to have a USB reader/adapter for the SD card lying about?

35o125 commented 2 years ago

nope.

Rezzy-dev commented 2 years ago

Hmm... :/

Rezzy-dev commented 2 years ago

What about giving that other utility a go, on Mac OS?

Because we'll have a tough time getting a driver for the Mac SD card reader running on the LiveCD.

Rezzy-dev commented 2 years ago

Alternatively, you could always install Linux on a USB flash drive, and boot from it on your Mac. That will allow you to install the necessary drivers, and you'll have a version of Linux you can just take with you.

GParted is a part of practically every Linux distribution.

35o125 commented 2 years ago

I've tried reading through it and I don't understand much of it

Rezzy-dev commented 2 years ago

I've tried reading through it and I don't understand much of it

On how to install Linux to a USB thumb drive? Or the Mac utility?

35o125 commented 2 years ago

I've tried reading through it and I don't understand much of it

On how to install Linux to a USB thumb drive? Or the Mac utility?

ApplePi-Baker

Rezzy-dev commented 2 years ago

ApplePi-Baker

Ah. Yeah, I've never tried it, but it seems simple enough to use from the screenshots.

35o125 commented 2 years ago

I've never worked with Linux