exFAT support packages released

282 views
Skip to first unread message

João Cardoso

unread,
May 25, 2022, 12:15:52 PM5/25/22
to Alt-F
Hi,

The exfat-linux, exfatprogs and e2fsprogs packages has been released and provide support for the exFAT filesystem found in many USB pen drives and camera SD cards.
exFAT was designed by MS to overcome some FAT limitations, namely bigger then 4GB files. exFAT was proprietary until 28 August 2019, when Microsoft published its specification.
Auto mounting and fs checking of exFAT is supported when all three packages are installed. Other webUI operations are not supported, the command line has to be used.

e2fsprogs contains  ext2/3/4 programs that should overcome some limitations of the previous package version; notice however that the previous version will be used (namely at boot time) until the Alt-F folder is discovered and made available, and that the new version can't be used on the filesystem where the Alt-F folder resides.

Enjoy

Jeremy Laidman

unread,
May 25, 2022, 8:47:13 PM5/25/22
to al...@googlegroups.com
Hi. I just did the update on the e2fsprogs package, and saw an error message about Python 2.7 (probably from a post-install script). The error message disappeared before I could see anything more. I can't find anything in the logs. Is there a logfile I can look at from CLI?

"python --version" shows v2.7.2.

The new package seems to have been installed, because the "Update" button is no longer present on the package list page. It shows the version as 1.42.13. Timestamps of files look recent (eg tune2fs mtime is 18th May).

Is there anything I should do now? Or should it all be OK?

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/4729e1e7-315f-4bca-9421-4bec97b4c058n%40googlegroups.com.

Jeremy Laidman

unread,
May 25, 2022, 10:53:29 PM5/25/22
to al...@googlegroups.com
Also, the package list page has two identical instances of (only) exfat-linux, and running "ipkg info exfat-linux" shows the package info twice.
image.png

Jeremy Laidman

unread,
May 26, 2022, 12:39:45 AM5/26/22
to al...@googlegroups.com
I installed exfatprogs and that gave the same error as with e2fsprogs:

Installing Alt-F package exfatprogs Installing exfatprogs (1.1.3) to /Alt-F...
Downloading https://downloads.sourceforge.net/project/alt-f/pkgs/unstable/exfatprogs_1.1.3_arm.ipk
Configuring exfatprogs
script=exfatprogs.postinst args="configure"
Configuring python
Downloading pip...
--2022-05-26 14:34:21--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io... 2a04:4e42:600::175, 151.101.0.175, 151.101.64.175, ...
Connecting to bootstrap.pypa.io|2a04:4e42:600::175|:443... failed: Address family not supported by protocol.
Connecting to bootstrap.pypa.io|151.101.0.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2680335 (2.6M) [text/x-python]
Saving to: '/tmp/get-pip.py.1'

     0K ........ ........ ........ ........ ........         100% 3.68M=0.7s

2022-05-26 14:34:22 (3.68 MB/s) - '/tmp/get-pip.py.1' saved [2680335/2680335]

Installing pip, please wait... ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead.
failed
postinst script returned status 1
ERROR: python.postinst returned 1
Successfully terminated.
Success

This could all be down to my Alt-F installation. I never did have the courage to reinstall after the installation on my USB flash drive started going weird. So I just left it running as is, with no USB flash drive.

João Cardoso

unread,
May 26, 2022, 10:43:54 AM5/26/22
to Alt-F
On Thursday, May 26, 2022 at 1:47:13 AM UTC+1 Jezzaaaa wrote:
Hi. I just did the update on the e2fsprogs package, and saw an error message about Python 2.7 (probably from a post-install script). The error message disappeared before I could see anything more. I can't find anything in the logs. Is there a logfile I can look at from CLI?

"python --version" shows v2.7.2.

The new package seems to have been installed, because the "Update" button is no longer present on the package list page. It shows the version as 1.42.13. Timestamps of files look recent (eg tune2fs mtime is 18th May).

Is there anything I should do now? Or should it all be OK?

I believe that the e2fsprogs install is OK.
You can try in the command line
   ipkg -force-reinstall install e2fsprogs
to see all the messages.

The python error message is unrelated. ipkg tries to complete previous installations that had not completed for some reason. That's what you see (in your third post)
 Configuring python
 Downloading pip...

  ...
that means that python is semi-installed and ipkg tries to complete the installation, independently of what it is currently doing. There is no hope to complete the python installation because the install script downloads 'pip', and the current pip version is not compatible with python-2.7. So the best way to stop that is to de-install python.

João Cardoso

unread,
May 26, 2022, 11:23:42 AM5/26/22
to Alt-F
On Thursday, May 26, 2022 at 3:53:29 AM UTC+1 Jezzaaaa wrote:
Also, the package list page has two identical instances of (only) exfat-linux, and running "ipkg info exfat-linux" shows the package info twice.
image.png

That is my fault.
exfat-linux is a kernel module, it depends on the CPU architecture, and as such there are two versions, one for the DNS-327L (armv7) and other (armv5) for the other boxes.
The package name is the same, but the contents are different and the architecture is internally coded; ipkg downloads and installs the right one if it is configured for that.

You have to append to /etc/ipkg.conf the following if you are not using a DNS-327L:

arch arm 100
arch armv5 200

or for a DNS-327L:

arch arm 100
arch armv7 200


now clicking on either exfat-linux line downloads and installs the right package.

I have to fix that. The attached script does the above automatically.
Download it to the box to whatever share, say to /Public/RW/ipkg-arch-fix.sh and execute it:
sh /Public/RW/ipkg-arch-fix.sh



 
ipkg-arch-fix.sh

João Cardoso

unread,
May 26, 2022, 1:43:02 PM5/26/22
to Alt-F
mhhh, the above fixes the issue just until the Install or Change Feeds buttons are pressed in the Packages->Alt-F webUI. Those actions remove the "arch arm..." lines. I have to release a real fix.
 
 

João Cardoso

unread,
May 26, 2022, 8:25:27 PM5/26/22
to Alt-F
I have just done it:

 1.0-005-fixes_ipkg_lack_of_arch_priorities.fix
         Fix the lack of arch priorities in ipkg.conf

From the webUI use System->Utilities->Fixes
From the command line use the 'fixup' script.

Fixes are stored and applied on disk, so they only take effect
after the Alt-F folder being recognized.

 
 

Jeremy Laidman

unread,
May 27, 2022, 1:35:07 AM5/27/22
to al...@googlegroups.com
Thanks for that. I've applied the patch (up after I clicked on "UpdateList" and it now shows as applied (with a tick in the pull-down list). My ipkg.conf has the update you showed appended to it:

arch arm 100
arch armv5 200

But I still get two of the same exfat-linux package showing. Can I just assume that the preferred package is installed, when I click either button?

My device is a  DNS-320L-Ax  , and the output of `uname -m` is "armv5tel".

J

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.

João Cardoso

unread,
May 27, 2022, 11:39:05 AM5/27/22
to Alt-F
On Friday, May 27, 2022 at 6:35:07 AM UTC+1 Jezzaaaa wrote:
Thanks for that. I've applied the patch (up after I clicked on "UpdateList" and it now shows as applied (with a tick in the pull-down list). My ipkg.conf has the update you showed appended to it:

arch arm 100
arch armv5 200

But I still get two of the same exfat-linux package showing. Can I just assume that the preferred package is installed, when I click either button?

Yes, that is the purpose of the arch priorities. If a package with the same name is available for both arm and armv5, the one with high priority (armv5) will be download and installed, otherwise the generic arm one will. Notice the architecture available for the recent exfat packages download to sourceforge:

exfat-linux_2.2.0-3arter97_armv5.ipk
exfat-linux_2.2.0-3arter97_armv7.ipk
exfatprogs_1.1.3_arm.ipk

The duplicate entries issue have not been addressed in the patch--there are two package with the same same, they are both displayed. A package name format is <name>_<version>_<arch>.ipk (of course, that info is also coded in the package, the name is only for user convenience)

Jeremy Laidman

unread,
May 29, 2022, 7:40:32 PM5/29/22
to al...@googlegroups.com
On Sat, 28 May 2022 at 01:39, João Cardoso <whoami...@gmail.com> wrote:

On Friday, May 27, 2022 at 6:35:07 AM UTC+1 Jezzaaaa wrote:

But I still get two of the same exfat-linux package showing. Can I just assume that the preferred package is installed, when I click either button?

Yes, that is the purpose of the arch priorities.

The duplicate entries issue have not been addressed in the patch

Ah, makes sense. I clicked one of the Install buttons and it installed just fine. Thanks!

Reply all
Reply to author
Forward
0 new messages