How to get Squeezeplay working without a wi-fi connection.

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Let me get this right - it's the Kingston usb stick? Only 2 GB of space for music files?
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

castalla wrote:Let me get this right - it's the Kingston usb stick? Only 2 GB of space for music files?
Yes just for now.The USB socket is inside the old ciggie lighter socket in my car and the older narrow ones like the Kingston only just about fit in there.All of the modern ones are just a bit too wide to fit in there,hence a new surface mount USB socket is on it's way so I can use the higher capacity ones.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Okay.

let's try this:


Login. Type:

sudo mkdir /mnt/usbdrive

then

sudo mount -t vfat -o rw,users /dev/sda1 /mnt/usbdrive

then, if no errors returned

sudo ls /mnt/usbdrive

You should see a listing of the usb drive contents
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

Image

It lists all the music folders and a couple of images I've been trying as wallpapers.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Good. Now it gets a bit more complicated!

What we are trying to do is to get the usb stick mounted independently of the wifi and drive wizard.

So, to move on:

Step 1. Get root access.

Type

sudo passwd root

This will ask you to enter a new root password - no confirmation so make it easy to type!

If successful then login again as root (to check it works).

Step 2.

Install WinSCP on your PC - we'll need this to edit a file. Check you can use it to get access as root.

It gives a sort of win explorer interface - the joggler is on the right hand pane.

Step 3. We move on once you have the above working.
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

Image
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Okay - go to /etc

Look for a FILE called fstab (there's also a dir called fstab)

Double click on the fstab file icon - post the file contents here
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
none /tmp tmpfs noatime,size=192M 0 0
none /var/cache/apt tmpfs noatime,size=256M 0 0
none /var/lib/apt/lists tmpfs noatime,size=256M 0 0
none /var/log tmpfs noatime,size=16M 0 0

/dev/mmcblk0p2 / ext2 errors=remount-ro,noatime,noacl 0 1
/dev/mmcblk0p1 /boot vfat defaults 0 0
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Add to the fstab file as a last line:

/dev/sda1 /mnt/usbdrive vfat defaults 0 0

add a return at the end of this line, save the file

Reboot - login and do

sudo ls /mnt/usbdrive

Files listed?
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

I get this,but not sure what you mean by 'add a return',do you mean I just hit the return key and shut it down?

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
none /tmp tmpfs noatime,size=192M 0 0
none /var/cache/apt tmpfs noatime,size=256M 0 0
none /var/lib/apt/lists tmpfs noatime,size=256M 0 0
none /var/log tmpfs noatime,size=16M 0 0

/dev/mmcblk0p2 / ext2 errors=remount-ro,noatime,noacl 0 1
/dev/mmcblk0p1 /boot vfat defaults 0 0
/dev/sda1 /mnt/usbdrive vfat defaults 0 0


Then I log in with Putty as joggler or root?
User avatar
hawsey
Posts: 2077
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Best music only player for Joggler.

Post by hawsey »

Xbmc would work :-)
Happy Joggling
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Yes - make sure the cursor is on the next line - by ending the line with a return.

Login as either joggler or root

sudo ls /mnt/usbdrive (joggler login)

or

ls /mnt/usbdrive (root login)
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

hawsey wrote:Xbmc would work :-)

True! Over to you!
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

Now it's stuck on the Squeezeplay boot screen.

edit......unless I boot it up with a flash drive in the onboard USB port.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Oh dear! Gulp!

Try again. If no luck - remove the usb drive. Try again. Hope it's not buggered!

edit: confused. So, it boots with usb in the hub? or only in the main usb port?
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

Yes it boots up fine with the USB drive directly into the Joggler.
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

Took the new line out and it boots up as it's supposed to.

Did 'sudo ls /mnt/usbdrive' and nothing listed.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

Let's rewind.

You're not trying to have a hotplug system, are you? I mean one where you want to switch usb sticks while squeezeplay is running? As far as I know, LMS 7.8 can't handle that.

In any event - when it boots successfully with usb in - do you see the files in /mnt/usbdrive ?

ps: for this to work there has to be a usb drive available on boot.
Imagewerx
Posts: 168
Joined: Thu Jul 31, 2014 10:42 pm

Re: Best music only player for Joggler.

Post by Imagewerx »

No I always power down to swap USB flash drives,and no files where asked even when it's booted up and is running properly.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: Best music only player for Joggler.

Post by castalla »

I'm still not clear on this.

With edited fstab active

1. usb in socket
2. joggler boots successfully
3. no files listed in /mnt/usbdrive ????

Also, be aware that if you swap the usb drive, then you'll have to force LMS to do a new complete scan to rebuild the datqabase.
Post Reply