View unanswered posts | View active topics It is currently Tue May 21, 2013 1:04 pm



Reply to topic  [ 70 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
 [HOW TO] get free space on root with r2891++ for optware 
Author Message

Joined: Thu Nov 19, 2009 4:43 pm
Posts: 142
Post [HOW TO] get free space on root with r2891++ for optware
Those of you who use optware from @frater (viewtopic.php?f=41&t=2819&start=0) or @buzzkaido's PlugOnDevice (viewtopic.php?f=41&t=2491&start=0) and suffer, like me, from the frequent hangs and HDD corruption related with r2388 and older firmwares, surely have been disappointed with the latest betas and releases, based on the new SDK3.
This is because, despite the fact that these releases (r2510, r2891 and so on) solve a lot of issues, they don't let you install either @frater's or @buzzkaido's solutions, since there's no space available on the root filesystem:
Code:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 75008 75008 0 100% /
/dev/mtdblock/2 8192 1424 6768 17% /usr/local/etc
/dev/rd/0 40 40 0 100% /mnt/rd


Well,
If you're willing to test and tweak, here goes nothing:
Conditions:
- Use at your own risk!
- Tested with r2891 beta and @frater's optware. Required a few tweaks to get everything working.
- Reports came in that it also works with PlugOnDevice
- Many thanks to @vonck for the discovery and update for the latest ones with YAMJ

How:
a) Get the firmware
b) unzip it
c) the install.img file is a tar file. I'm using Linux, so:
Code:
# mkdir tmp
# cd tmp
# tar xvf ../install.img

d) edit the configuration.xml file, to include a line like
Code:
<sizeBytesMin>0x5000000</sizeBytesMin>
after the line that specifies the yaffs2 image to be mounted on root:
Code:
<mountPoint>/</mountPoint>

-----UPDATE---------
vonck wrote:
On the YAMJ trail firmwares kawakinho's original trick doesn't work anymore.

My solution: take some space from /usr/local/etc and move it to /:
XML fragment:

<image type="yaffs2">
<fileName>package2/yaffs2_1.img</fileName>
<mountPoint>/</mountPoint>
<sizeBytesMin>0x5500000</sizeBytesMin>
</image>
<image type="yaffs2">
<fileName>package2/usr.local.etc.tar.bz2</fileName>
<mountPoint>/usr/local/etc</mountPoint>
<sizeBytesMin>0x400000</sizeBytesMin>
</image>

Result of "df" on r3286:

Code:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 84480 77252 7228 91% /
/dev/mtdblock/2 4096 1336 2760 33% /usr/local/etc

------END UPDATE--------

f) pack the file again:
Code:
# tar cvf install.img *

g) copy this new file into a usb pen and flash the firmware

Note:
The @frater script for installing optware failed to create the usual dirs on the internal HDD:
Code:
mkdir: Cannot create directory `/mnt/C/': No such file or directory

So, after the install and a reboot, I recreated the /mnt/C link to point to the correct place:
Code:
[root@playa /]# mount -o remount,rw /
[root@playa /]# rm /mnt/C
[root@playa /]# ln -s /tmp/hdd/volumes/HDD1 /mnt/C

This could probably have been done beforehand...
----UPDATE-----
I believe @frater has changed the script and this has been solved. Please confirm
----END UPDATE-----

After this, you can create the dirs, or, if you're like me, disable the watchdog and reconfigure transmission's dirs in settings.json (my downloads are going to a fourth partition on the disk, 50GB in size, ext3 filesystem)

Enjoy!

Edit: If you're too chicken to do this yourself, or if you're not getting anywhere, you can download the image I used from here:
http://www.plugondevice.com/downloads/r2891hacked.zip
Thanks to @buzzkaido for hosting the file!

_________________
Playon!HD Firmware r4824
Samsung SpinPoint F1 - 1 TB - SATA-300 (HD103UJ)
100Mbit/s wired Ethernet
Panasonic Viera P42G15 via HDMI
NAD receiver via Coaxial


Last edited by kawakinho on Tue Feb 09, 2010 7:17 pm, edited 4 times in total.



Wed Dec 30, 2009 4:53 am
Profile

Joined: Thu Dec 24, 2009 8:09 am
Posts: 190
Post Re: [HOW TO] get free space on root with r2891 for optware
Thanks kawakinho,
But I'm not shure where to add the size, and i don't want to break anything.
edit: figured it out, I didn't read verry wel...
Image

_________________
- Metafeeds.com RSS portal - |Extra space on root fs | optware | ext3 data partition
Metafeeds Installer


Last edited by vonck on Tue Feb 09, 2010 7:20 pm, edited 5 times in total.



Wed Dec 30, 2009 8:23 am
Profile

Joined: Mon Dec 28, 2009 8:45 pm
Posts: 37
Post Re: [HOW TO] get free space on root with r2891 for optware
This does allow usage of Plugondevice. I had not realised the firmware image was essentially a Tarfile. Thanks.


Thu Dec 31, 2009 1:13 pm
Profile

Joined: Tue Sep 01, 2009 1:02 pm
Posts: 161
Location: Rennes, France
Post Re: [HOW TO] get free space on root with r2891 for optware
Thanks a lot about this tip !


Fri Jan 01, 2010 9:55 pm
Profile

Joined: Thu Nov 19, 2009 4:43 pm
Posts: 142
Post Re: [HOW TO] get free space on root with r2891 for optware
Glad I could be of help :)
Thank you and @efw for confirming that PlugOnDevice works.

I hope the official release makes this topic obsolete.

_________________
Playon!HD Firmware r4824
Samsung SpinPoint F1 - 1 TB - SATA-300 (HD103UJ)
100Mbit/s wired Ethernet
Panasonic Viera P42G15 via HDMI
NAD receiver via Coaxial


Fri Jan 01, 2010 11:34 pm
Profile

Joined: Sat Jan 02, 2010 10:43 am
Posts: 6
Post Re: [HOW TO] get free space on root with r2891 for optware
Hi Kawakinho,
Is it possible you sent me the HACKED 2891 install.img ?
Kind regards,
Toon


Sat Jan 02, 2010 10:48 am
Profile

Joined: Thu Nov 19, 2009 4:43 pm
Posts: 142
Post Re: [HOW TO] get free space on root with r2891 for optware
I don't believe it infringes any rights or rules, so yes, of course. Unless AC Ryan tells me otherwise...
I am outside my place and don't have it here, but I'll post it tonight and tell you where then. Ok?

_________________
Playon!HD Firmware r4824
Samsung SpinPoint F1 - 1 TB - SATA-300 (HD103UJ)
100Mbit/s wired Ethernet
Panasonic Viera P42G15 via HDMI
NAD receiver via Coaxial


Last edited by kawakinho on Sat Jan 02, 2010 2:51 pm, edited 1 time in total.



Sat Jan 02, 2010 2:11 pm
Profile

Joined: Sat Jan 02, 2010 10:43 am
Posts: 6
Post Re: [HOW TO] get free space on root with r2891 for optware
Thanks Kawakinho.
OK!


Sat Jan 02, 2010 2:33 pm
Profile

Joined: Thu Nov 19, 2009 4:43 pm
Posts: 142
Post Re: [HOW TO] get free space on root with r2891 for optware
Here it is: http://www.sendspace.com/file/fy9isj
Lucky for you I left the PHD on and the usb pen plugged in...

_________________
Playon!HD Firmware r4824
Samsung SpinPoint F1 - 1 TB - SATA-300 (HD103UJ)
100Mbit/s wired Ethernet
Panasonic Viera P42G15 via HDMI
NAD receiver via Coaxial


Last edited by kawakinho on Sun Jan 03, 2010 8:27 pm, edited 1 time in total.



Sat Jan 02, 2010 3:22 pm
Profile

Joined: Mon Aug 03, 2009 5:54 pm
Posts: 110
Post Re: [HOW TO] get free space on root with r2891 for optware
I tried to modify the image as suggested and got my optware working again. However, I found that my transmission crashed more often. I notice the /dev/root is now at 96% compared to 80% in firmware 2388. Could this be the reason? Did I do something wrong?

PS. I'm still using NTFS disk for transmission.


Sat Jan 02, 2010 4:10 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 70 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

Who is online

Users browsing this forum: IBM Research [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.