If your code is running on the bootblock then AGA is already disabled (more precisely it has not been enabled yet).
Your target doesn't run SetPatch, does it ? Does it have a startup-sequence at all anyway ?
And have you checked that it works fine if setting the chipset in the bootmenu ?
Perhaps you need to add this line to your startup, especially if it kills the OS :