Quote from: philmoz on 30 / June / 2017, 04:36:35Will this work or am I still missing something?This will probably work, but will be of little to no use as far as CHIMP is concerned, due to the fact that the latter still has to support existing versions. This also applies to my patch, albeit with one distinction: mine was a relatively small and isolated change.
Will this work or am I still missing something?
Can you not check the build number?
Quote from: philmoz on 30 / June / 2017, 05:48:40Can you not check the build number? If get_partitionInfo() returns nil, the card isn't partitioned.Otherwise, if count == 1, the card isn't partitioned.Otherwise, if active == 1, the card is partitioned, and the service partition is active.Otherwise, the card is partitioned, and the photos partition is active.Aren't these correct regardless of the build number?
Yes, but prior to the build with any changes (either yours or mine), the type and size values may be wrong - I thought you needed these values?
Technically, if get_partitionInfo returns nil, then the port does not support partitioned cards in CHDK. The card could still be partitioned outside CHDK; but there is no way to tell in the CHDK code. This applies to post 2011 cameras that can boot from FAT32 partitions - these don't need to implement partitioning support.
It is also possible to have up to four partitions on the card - the swap_partitions function allows the user to rotate though them.
Quote from: philmoz on 30 / June / 2017, 06:28:31Yes, but prior to the build with any changes (either yours or mine), the type and size values may be wrong - I thought you needed these values?They could be handy, but since they are unreliable, I can do just fine without them.
Better yet, if type != 1, I may safely assume that there is no service partition.
QuoteTechnically, if get_partitionInfo returns nil, then the port does not support partitioned cards in CHDK. The card could still be partitioned outside CHDK; but there is no way to tell in the CHDK code. This applies to post 2011 cameras that can boot from FAT32 partitions - these don't need to implement partitioning support.I thought they did regardless. I'll have to add a check to the install logic.QuoteIt is also possible to have up to four partitions on the card - the swap_partitions function allows the user to rotate though them.Presumably the CHDK directory is either on the first or on the second one, depending on the "active" value?
So none of these changes are really needed then?
QuoteBetter yet, if type != 1, I may safely assume that there is no service partition.Umm no - most cameras can autoboot from FAT12 and FAT16 partitions. So at least types 1 and 6 and probably 4, possibly others.
QuotePresumably the CHDK directory is either on the first or on the second one, depending on the "active" value?Or could be all partitions - to use partition swapping on a dual partition card you need to copy at least the firmware update file to all partitions that you want to swap to. That way when the camera is restarted you can use the firmware update boot method to get back into CHDK.The 'active' value could be anything from 1 - 4 depending on how many partitions and how may swaps have been done.
Presumably the CHDK directory is either on the first or on the second one, depending on the "active" value?
By "service partition" I was referring to a partition that should get the files from / and _HDKMETA/PS/, but not from CHDK/.
Patch to add m3_120f to camera_list.csv.
NHSTUB(GetDrive_FreeClusters, 0xFF871E90 -> 0xff871e90
NHSTUB(DoAFLock, 0xFF87A910 -> 0xff8382e4NHSTUB(UnlockAF, 0xFF87A920 -> 0xff83831cNHSTUB(PutInNdFilter, 0xFFB2056C -> 0xffab69c8NHSTUB(PutOutNdFilter, 0xFFB205A4 -> 0xffab69ecNHSTUB(ScreenLock, 0xFFA1356C -> 0xffa13354NHSTUB(GetImageFolder, 0xFF94337C -> 0xff94345cNHSTUB(MoveFocusLensToDistance, 0xFFB2289C -> 0xffb228b0NHSTUB(SetScriptMode, 0xFF810F6C -> 0xff895904DEF(zoom_status, 0x0000315B -> 0x0000cea4DEF(recreview_hold, 0x0000780E -> 0x00003a20
Started by andre117 General Discussion and Assistance
Started by Bernd R General Discussion and Assistance
Started by quid « 1 2 » General Discussion and Assistance
Started by zell « 1 2 » General Discussion and Assistance
Started by srsa_4c « 1 2 » General Discussion and Assistance