Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: Eibwen on March 01, 2010, 07:09:23 PM

Title: Fuze V1 - Undefined instruction at 0x00000474
Post by: Eibwen on March 01, 2010, 07:09:23 PM
I tried installing with the 3.5 installer on a Fuze V1 2GB
I believe it would show the RockBox logo screen, then almost immediately show:

Undefined instruction at 0x00000474

It definitely did not show any UI.

I tried installing with both Firmware 01.02.26 and 01.02.31

Holding the arrow button to boot normal firmware worked, and flashing with original firmware restored it to working order

I did all of it on Windows 7 64bit.
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: saratoga on March 01, 2010, 07:15:41 PM
Could you try downloading the latest build (from the download link on the left side of the screen) and unzipping it to your player?
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: Eibwen on March 02, 2010, 12:41:26 PM
I remembered slightly incorrectly, the error is "Undefined instruction at 00000474" (no 0x)

And it flashes the boot screen for less than a second, it is apparently "Boot Ver 1.0RC" then goes to that error message

Extracting .rockbox from build r24992 did nothing at all.


Using the manual bootloader install process (the versions linked to by this page http://www.rockbox.org/wiki/SansaAMS#Installation_for_Stable_e200v2_F):
Original firmware 01.02.31 gave an error message (the install program did not give any errors and seemed to patch it)
01.02.26 it says patched succeeded

But putting that firmware on still resulted in the same error
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: funman on March 02, 2010, 04:09:06 PM
Try removing the .rockbox directory:

If the error is still there the problem is in the bootloader

If instead you see something like "no .rockbox directory" then the error is in the build, and you can try using a current build to see if it fixes the problem.
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: Eibwen on March 02, 2010, 04:43:39 PM
The error is still there when there is no .rockbox directory, so the boot loader is not working on mine
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: funman on March 02, 2010, 04:59:15 PM
Dunno what happens there, bootloader is using 0x81000000 as base address, not 0x0.

This address is inside irq stack (minus 0x81000000).

Can you build a bootloader from current svn and install it manually with mkamsboot ?

Also what happens if you keep pressing the power button (or any other one but left) while powering on ?
The logo should disappear faster and perhaps text could be printed, depending on when the bootloader fails.
Title: Re: Fuze V1 - Undefined instruction at 00000474
Post by: Eibwen on March 02, 2010, 05:31:38 PM
If i hold down any button other than left it just restarts immediately after flashing the error message
Otherwise it pauses on the error message until i press a button, then restarts


What would be the quickest way to be able to build it? A knoppix live cd perhaps?  Or would it not take much to get it to build in windows?
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: Riffer on March 02, 2010, 07:17:01 PM
For how to build have a look here: http://www.rockbox.org/wiki/DevelopmentGuide#Set_Up_Your_Environment

There are many options to do it.  The Wiki contains all you must have to know.
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: Eibwen on March 03, 2010, 02:54:59 PM
Okay i built it just now, using the VM

I now have bootloader r25003-100303

And it goes directly to a white error screen with:
Undefined instruction at 0000048C
Title: Re: Fuze V1 - Undefined instruction at 0x00000474
Post by: gevaerts on March 03, 2010, 04:02:17 PM
A wild guess, maybe the filesystem is corrupted? Can you run chkdsk on the fuze?
Title: Re: Fuze V1 - Undefined instruction at 0x00000474 [SOLVED]
Post by: Eibwen on March 03, 2010, 04:56:29 PM
That did help a little

With the firmware i built i get:
Data abort at 810014B0

(ran chkdsk again here, and it found some more of the same problems as below)

Flashed with the manually created bootloader, said couldn't find firmware or something, using the current build

So i deleted the .rockbox that was there
Then used the 3.5 installer and it works


Thank all of you so much!


The installer works with offical firmware 01.02.31, but the mkamsboot.exe seemed to refuse it, that seems very odd to me.



Code: [Select]
J:\>chkdsk /F
The type of the file system is FAT.
Cannot lock current drive.

Chkdsk cannot run because the volume is in use by another
process.  Chkdsk may run if this volume is dismounted first.
ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
Would you like to force a dismount on this volume? (Y/N) y
Volume dismounted.  All opened handles to this volume are now invalid.
Volume SANSA FUZE created 1/1/1980 12:00 AM
Volume Serial Number is 0123-4567
Windows is verifying files and folders...
Removing nonvalid long folder entry from \...
Removing nonvalid long folder entry from \...
Removing nonvalid long folder entry from \...
Removing nonvalid long folder entry from \...
File and folder verification is complete.
Convert lost chains to files (Y/N)? y
884736 bytes in 27 recovered files.
Windows has made corrections to the file system.

2,022,932,480 bytes total disk space.
       65,536 bytes in 2 hidden files.
    1,441,792 bytes in 44 folders.
1,761,443,840 bytes in 260 files.
  259,948,544 bytes available on disk.

       32,768 bytes in each allocation unit.
       61,735 total allocation units on disk.
        7,933 allocation units available on disk.

J:\>chkdsk
The type of the file system is FAT.
The volume is in use by another process. Chkdsk
might report errors when no corruption is present.
Volume SANSA FUZE created 1/1/1980 12:00 AM
Volume Serial Number is 0123-4567
Windows is verifying files and folders...
File and folder verification is complete.
Windows has checked the file system and found no problems.

2,022,932,480 bytes total disk space.
       98,304 bytes in 3 hidden files.
    1,409,024 bytes in 43 folders.
1,761,443,840 bytes in 260 files.
  259,948,544 bytes available on disk.

       32,768 bytes in each allocation unit.
       61,735 total allocation units on disk.
        7,933 allocation units available on disk.
Title: Re: Fuze V1 - Undefined instruction at 0x00000474 [SOLVED]
Post by: funman on March 03, 2010, 09:37:11 PM
The installer works with offical firmware 01.02.31, but the mkamsboot.exe seemed to refuse it, that seems very odd to me.

This is because mkamsboot.exe is older than Rockbox Utility, and doesn't know about the recently release firmware