maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Jolla1 & TOH (https://talk.maemo.org/forumdisplay.php?f=56)
-   -   64GB microSD & Jolla (https://talk.maemo.org/showthread.php?t=92490)

nieldk 2014-01-22 10:20

Re: 64GB microSD & Jolla
 
Quote:

Originally Posted by willi6868 (Post 1408136)
Could someone please provide a rpm-package or a How-To for this? :D

create a .spec file and use rpmbuild -ba /rpmbuild/SPECS/fuse-exfat.spec

fuse-exfat.spec (example)

Code:


Name:          fuse-exfat
Version:      1.0.1
Release:      0
Summary:      Free exFAT file system implementation
Group:        System/Tools
Vendor:        Samsung
Distribution:  SailfisfOS
URL:          http://code.google.com/p/exfat/
Source:        http://exfat.googlecode.com/files/fu...ersion}.tar.gz
License:      GPL
BuildRequires: glibc-devel
BuildRequires: libfuse-devel
BuildRequires: scons
BuildRoot:    %{_tmppath}/%{name}-%{version}-root
%debug_package
%description
A full-featured exFAT file system implementation for GNU/Linux other Unix-like systems as a FUSE module.
%prep
%setup -q
%build
scons
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
scons install DESTDIR=%{buildroot}/sbin
install -d %{buildroot}%{_mandir}/man8
install -m 644 fuse/mount.exfat-fuse.8 \
  %{buildroot}%{_mandir}/man8/mount.exfat-fuse.8
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
/sbin/mount.exfat
/sbin/mount.exfat-fuse
%{_mandir}/man8/mount.exfat-fuse.*
%doc COPYING
%changelog
* Wed Jan 22 2014 Builder <builder@...> 1.0.1
- To be done


cvp 2014-01-22 11:16

Re: 64GB microSD & Jolla
 
Quote:

Originally Posted by nieldk (Post 1408148)
create a .spec file and use rpmbuild -ba /rpmbuild/SPECS/fuse-exfat.spec

I copy past and correct the second link and save this as fuse-exfat.spec and put it to the phone in Downloads folder.

I start Terminal an write this command:
rpmbuild -ba /home/nemo/Downloads/fuse-exfat.spec

after than i get this:
command not found

do i have install a rpmbulider over terminal?

nieldk 2014-01-22 12:46

Re: 64GB microSD & Jolla
 
Well, I suggest googling building RPMs'
But, short, you need C development tools and libraries etc install.
Then, you need the tool rpmbuild (pkcon install rpm-build)
setup a directory structure like this

mkdir -p ~/rpmbuild/SPECS
mkdir ~/rpmbuild/SOURCES
mkdir ~/rpmbuild/RPMS
mkdir ~/rpmbuild/SRPMS

create .spec files in ~/rpmbuild/SPECS folder (ie. fuse-utils.spec goes here)
download source tarballs to ~/rpmbuild/SOURCES folder

run rpmbuild -ba rpmbuild/SPECS/fuse-utils.spec
once, and if, it finish without errors, rpms will be created in rpmbuild/RPMS folder and source rpms in rpmbuild/SRPMS folder

EDIT: and oh, probably, it might not work with my spec file ;) then you will need to investigate the errors outputted by rpmbuild, make changes, and try again :)

nieldk 2014-01-22 13:07

Re: 64GB microSD & Jolla
 
You may try these I guess
ftp://fr.rpmfind.net/linux/rpmfusion...20.armv7hl.rpm

ftp://fr.rpmfind.net/linux/rpmfusion...20.armv7hl.rpm

Since they are compiled for armv7hl they may work, or, download the SRPMS from

ftp://fr.rpmfind.net/linux/rpmfusion...1.fc20.src.rpm
ftp://fr.rpmfind.net/linux/rpmfusion...1.fc20.src.rpm

Raim 2014-01-22 13:33

Re: 64GB microSD & Jolla
 
Quote:

Originally Posted by ZogG (Post 1408113)
Anyone tried to use samsung's driver? http://www.phoronix.com/scan.php?pag...tem&px=MTQzODQ

Yes, I got it to compile with a minimal fix. For testing purposes on my Jolla I only used it against a loop device and not a real SD card yet. But it works fine. :-)

https://github.com/raimue/exfat-nofu...master...jolla

stefanmohl 2014-01-22 14:38

Re: 64GB microSD & Jolla
 
Quote:

Originally Posted by aegis (Post 1408065)
Format it to FAT32. You'll need to use command line tools on Windows as the GUI will insist on exFAT.

A quick trick to fool Windows into enabling FAT32 in the GUI is to enable caching on the USB-memory:
  1. Right-click the USB-drive and select "Properties"
  2. Select the "Hardware"-tab
  3. Find and select your USB-memory in the list
  4. Click the "Properties"-button below
  5. Select the "Policies"-tab on the new requester
  6. Choose "Optimize for performance"
  7. Click "OK" on the requesters
This should allow you to use FAT32-formatting on your USB-drive, but don't forget to repeat the process and set it back to "Optimize for quick removal" once you are done formatting!

But remember, FAT32 only allows files up to 4GB in size and can't handle soft-links or permissions. Trasferring files over network and formatting as ext3/4 makes the microSD much more useful.

Thoke 2014-01-22 15:47

Re: 64GB microSD & Jolla
 
Anyone know how to make music & pictures in a btrfs-formatted microsd to show in Jolla's gallery and media player app? Manually mounting it (/dev/mmcblk1p1) to run/user/100000/media/sdcard doesn't work, so the apps must fetch their data from somewhere else, or there's another problem somewhere. The card doesn't automatically mount to anything.

My microsd has a ms-dos partition table and has no file-permission restrictions in it currently (chmod 777). Any help will be appreciated, as I really don't have that much linux command-line knowledge, it just started accumulating recently :)

nieldk 2014-01-22 16:09

Re: 64GB microSD & Jolla
 
Quote:

Originally Posted by Thoke (Post 1408222)
Anyone know how to make music & pictures in a btrfs-formatted microsd to show in Jolla's gallery and media player app? Manually mounting it (/dev/mmcblk1p1) to run/user/100000/media/sdcard doesn't work, so the apps must fetch their data from somewhere else, or there's another problem somewhere. The card doesn't automatically mount to anything.

My microsd has a ms-dos partition table and has no file-permission restrictions in it currently (chmod 777). Any help will be appreciated, as I really don't have that much linux command-line knowledge, it just started accumulating recently :)

http://talk.maemo.org/showthread.php...86#post1407186

rannari 2014-01-22 16:16

Re: 64GB microSD & Jolla
 
Quote:

Originally Posted by Thoke (Post 1408222)
Anyone know how to make music & pictures in a btrfs-formatted microsd to show in Jolla's gallery and media player app? Manually mounting it (/dev/mmcblk1p1) to run/user/100000/media/sdcard doesn't work, so the apps must fetch their data from somewhere else, or there's another problem somewhere.

I have made three symlinks:
- one from /run/user/100000/media/sdcard to /home/nemo to be able to access the sdcard with PC connection
- for music I have a symlink from my music folder in sdcard to /home/nemo/Music
- and a symlink to /home/nemo/Pictures to handle images

Works just fine. No problems.
Card is 64 Gb btrfs-formatted...

Mitrigol 2014-01-22 16:44

Re: 64GB microSD & Jolla
 
To add media on sdcard to libraries, i manually created a folder "sdcard" in /home/nemo and then mount /dev/mmcblk1p1 to it.
Then add the command into fstab to make it permanent.

Now you can even copy files from windows on it! (if you are successfull on installing the phone on the computer, of course)


All times are GMT. The time now is 12:44.

vBulletin® Version 3.8.8