Hi,
I have been toying around with a few projects. Now no installations happening from opkg says 'insufficient space' . Any means to use sd card as storage like how it works on raspberry pi.
Thank You
			
		Extra storage
- charliex
- Posts: 42
- Joined: Sun Nov 16, 2014 5:34 pm
- Location: los angeles
- Endat
- Posts: 44
- Joined: Mon Feb 02, 2015 6:29 pm
Re: Extra storage
I guess the short answer is no.. why does it even have a TF adaptor if it doesn't work?
Does anyone have any REAL instructions to make the microSD slot usable filesystem?
What filesystems can be supported?
			
		Does anyone have any REAL instructions to make the microSD slot usable filesystem?
What filesystems can be supported?
- Endat
- Posts: 44
- Joined: Mon Feb 02, 2015 6:29 pm
Re: Extra storage
Also.. why doesn't the USB on Vocore+Dock register flash drives?
			
		- Ruphobia
- Posts: 18
- Joined: Fri Jan 30, 2015 4:07 pm
Re: Extra storage
Endat
Please unplug the usb thumb drive and type: dmesg
then plug in the thumb drive and wait a few seconds then type dmesg again
and look at the end to see if it shows the thumb drive.
then repeat the process but instead to: ls /dev/sd*
if it shows up in /dev/ then you need to mount it.
Also; what formatting do you have on the thumb drive? - It's possible you don't have the correct modules installed for the format type of the thumb drive.
			
		Please unplug the usb thumb drive and type: dmesg
then plug in the thumb drive and wait a few seconds then type dmesg again
and look at the end to see if it shows the thumb drive.
then repeat the process but instead to: ls /dev/sd*
if it shows up in /dev/ then you need to mount it.
Also; what formatting do you have on the thumb drive? - It's possible you don't have the correct modules installed for the format type of the thumb drive.
- charliex
- Posts: 42
- Joined: Sun Nov 16, 2014 5:34 pm
- Location: los angeles
Re: Extra storage
you need to include the drivers for usb/filesystem etc to use USB sticks as a  FS. it is pretty easy to do and there a few posts in the forum with the howto.
i think its also posted on noblepeppers wiki.
Vonger got the sdcard to work i believe, but not sure if did a full FS or not.
charlie
			
		i think its also posted on noblepeppers wiki.
Vonger got the sdcard to work i believe, but not sure if did a full FS or not.
charlie
- noblepepper
- Posts: 240
- Joined: Sat Nov 29, 2014 3:22 pm
Re: Extra storage
Actually the wiki page is pretty much just a stub saying to follow the openwrt instructions. This post works as far as I know but I plan on fleshing out the wiki soon. 
After you follow the above post you just need to install block-mount, do a
			
		After you follow the above post you just need to install block-mount, do a
- Code: Select all
- block detect >/etc/config/fstab
- Code: Select all
- config 'mount'
 option target '/mnt/sda1'
 option uuid '548c-9a37'
 option enabled '1'
 config 'mount'
 option target '/mnt/sda2'
 option uuid 'd62e612a-d5ab-4064-98ec-a6d43723729e'
 option enabled '1'
- Code: Select all
- block mount
 df -h
 Filesystem Size Used Available Use% Mounted on
 rootfs 4.4M 1.1M 3.3M 25% /
 /dev/root 2.3M 2.3M 0 100% /rom
 tmpfs 14.2M 844.0K 13.3M 6% /tmp
 /dev/mtdblock6 4.4M 1.1M 3.3M 25% /overlay
 overlayfs:/overlay 4.4M 1.1M 3.3M 25% /
 tmpfs 512.0K 0 512.0K 0% /dev
 /dev/sda1 748.5M 4.0K 748.5M 0% /mnt/sda1
 /dev/sda2 210.8M 2.0M 193.7M 1% /mnt/sda2
 
- noblepepper
- Posts: 240
- Joined: Sat Nov 29, 2014 3:22 pm
Re: Extra storage
Since chaos calmer rc1 is out this got a lot easier. Here is how I just did it:
Upgrade to the rc1 image I put together for the VoCore, if you use the official openwrt image you may need to install a couple more packages.
Wait until the VoCore reboots
Use these commands in vim to enable the partitions and save the file (the \t is tab, I can't figure out how to do that in this forum)
Then mount the drive's partitions
			
		Upgrade to the rc1 image I put together for the VoCore, if you use the official openwrt image you may need to install a couple more packages.
- Code: Select all
- cd /tmp
 wget http://noblepepper.com/wp/wp-content/VoCore-rc1/openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin
 sysupgrade openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin
Wait until the VoCore reboots
- Code: Select all
- opkg update
 opkg install kmod-fs-ext4 kmod-nls-cp437 kmod-nls-iso8859-1 block-mount
 block detect >/etc/config/fstab
 vim /etc/config/fstab
Use these commands in vim to enable the partitions and save the file (the \t is tab, I can't figure out how to do that in this forum)
- Code: Select all
- :%s/enabled\t'0'/enabled\t'1'/g
 :x
Then mount the drive's partitions
- Code: Select all
- block mount
- Magic
- Posts: 6
- Joined: Wed Dec 30, 2015 12:16 pm
Re: Extra storage
Hello,
I can't get my USB flash working. Installed everything from https://wiki.openwrt.org/doc/howto/extroot
This works fine on other routers I've flashed with OpenWRT.
root@OpenWrt:~# opkg list-installed |grep usb
kmod-usb-core - 3.18.20-1
kmod-usb-ohci - 3.18.20-1
kmod-usb-storage - 3.18.20-1
kmod-usb-storage-extras - 3.18.20-1
kmod-usb-uhci - 3.18.20-1
kmod-usb2 - 3.18.20-1
libusb-1.0 - 1.0.19-1
usbutils - 007-1
root@OpenWrt:~# opkg list-installed |grep kmod-fs
kmod-fs-ext4 - 3.18.20-1
root@OpenWrt:~# opkg list-installed |grep nls
kmod-nls-base - 3.18.20-1
kmod-nls-cp437 - 3.18.20-1
kmod-nls-iso8859-1 - 3.18.20-1
root@OpenWrt:~#
root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
but no any new records in dmesg after USB with ext4 file system connected
I have tried other USB flash drives... but same..
Is there any way to test USB port working?
			
		I can't get my USB flash working. Installed everything from https://wiki.openwrt.org/doc/howto/extroot
This works fine on other routers I've flashed with OpenWRT.
root@OpenWrt:~# opkg list-installed |grep usb
kmod-usb-core - 3.18.20-1
kmod-usb-ohci - 3.18.20-1
kmod-usb-storage - 3.18.20-1
kmod-usb-storage-extras - 3.18.20-1
kmod-usb-uhci - 3.18.20-1
kmod-usb2 - 3.18.20-1
libusb-1.0 - 1.0.19-1
usbutils - 007-1
root@OpenWrt:~# opkg list-installed |grep kmod-fs
kmod-fs-ext4 - 3.18.20-1
root@OpenWrt:~# opkg list-installed |grep nls
kmod-nls-base - 3.18.20-1
kmod-nls-cp437 - 3.18.20-1
kmod-nls-iso8859-1 - 3.18.20-1
root@OpenWrt:~#
root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
but no any new records in dmesg after USB with ext4 file system connected
I have tried other USB flash drives... but same..
Is there any way to test USB port working?
- Vonger
- Posts: 912
- Joined: Sun Oct 19, 2014 6:00 am
Re: Extra storage
As I remember, once you connect USB storage, there will be a node in dev, named 'sda0'. You can cat or hexdump that device and it will show the raw data in USB device. If there is any data output, it means usb device works well just need to check the drivers.
			
		Who is online
Users browsing this forum: No registered users and 167 guests
