View unanswered posts | View active topics It is currently Wed May 22, 2013 3:47 am



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

Joined: Mon Nov 08, 2010 2:23 pm
Posts: 1
Post Re: [HOW TO] get free space on root with r2891++ for optware
This doesnt work with the PV73100 v7.3.X.r4368 firmware. The new firmware uses squashfs instead of yaffs2 which is read only. Doing this I still end up with root using 100%. And even if there's somehow some free space, its read only so it can't be modified anyway.

Is it possible to create a symbolic link for the required directory for optware in root to another directory with write access? I'm unsure how to modify the upg file for the squashfs directory.


Mon Nov 08, 2010 2:38 pm
Profile

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Re: [HOW TO] get free space on root with r2891++ for optware
Neziak wrote:
Is it possible to create a symbolic link for the required directory for optware in root to another directory with write access? I'm unsure how to modify the upg file for the squashfs directory.


In order to create a symbolic link to the root you would have to be able to write to the root which you can not. It would be very nice if the POHD firmware would provide a symbolic link to let say /usr/local/etc/ from /opt in their firmware. Until they do this you are pretty stuck unless you can modify the upg file yourself. The big problem with that is that the POHD firmware is also encrypted so there's one more obstacle. So just using unsquash on the upg file does not work you first must removed the encryption that has been applied to the upg file first.

Unfortunately optware expect to be installed under the /opt directory as well as there dependencies hence you really need a /opt directory unless you fell like recompiling the software you want to use into a stand alone app. using static libraries.


Mon Nov 08, 2010 5:52 pm
Profile

Joined: Wed May 12, 2010 7:39 pm
Posts: 43
Post Re: [HOW TO] get free space on root with r2891++ for optware
Those with a squashfs who aren't averse to trying some command line shenanigans but don't want to repack the firmware could try the following:

This is called fun with chroot:
mkdir /usr/local/etc/newroot
cd /usr/local/etc/newroot
mkdir bin dev etc lib mnt proc sbin sys tmp tmp_orig usr var opt
touch Test.fat
touch linuxrc
mount -o bind /bin bin
mount -o bind /dev dev
mount -o bind /etc etc
mount -o bind /lib lib
mount -o bind /mnt mnt
mount -o bind /proc proc
mount -o bind /sbin sbin
mount -o bind /sys sys
mount -o bind /tmp tmp
mount -o bind /tmp_orig tmp_orig
mount -o bind /usr usr
mount -o bind /var var
mount -o bind /Test.fat Test.fat
mount -o bind /linuxrc linuxrc
mount -o bind opt /path/to/you/opt/location

cd /usr/local/etc
chroot newroot

And voila, you have /opt on the root of your chroot-ed filesystem
Do a
stopall
AND rexecute:
/usr/local/etc/rcS

And everything *should* work as it did before, but with your opt stuff available to you.
and if you like that you could script the whole thing to happen at startup.

-wigout

_________________
minimodding.com- a place for open discussion of modifications to embedded linux devices


Wed Nov 10, 2010 3:13 am
Profile

Joined: Mon Nov 22, 2010 2:17 pm
Posts: 3
Post Re: [HOW TO] get free space on root with r2891++ for optware
I think I'm in the process of getting optware to work on r4368 without modding the firmware (I havn't actually seen any guides for this, except the mount commands from wigout.

I also did a:
Code:
mount -o bind /usr/local/etc usr/local/etc

as this path is mounted to a different dev

Additionally, I needed to download the ipkg-cl, as this wasn't at the system (never done this on earlier versions, so don't really know if its supposed to be there).


Attachments:
File comment: ipkg-cl binary, put this in some writeable location in $PATH
ipkg-cl.zip [85.04 KiB]
Downloaded 94 times
Sun Nov 28, 2010 9:15 pm
Profile

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Re: [HOW TO] get free space on root with r2891++ for optware
Oiphink wrote:
I think I'm in the process of getting optware to work on r4368 without modding the firmware (I havn't actually seen any guides for this, except the mount commands from wigout.

I also did a:
Code:
mount -o bind /usr/local/etc usr/local/etc

as this path is mounted to a different dev

Additionally, I needed to download the ipkg-cl, as this wasn't at the system (never done this on earlier versions, so don't really know if its supposed to be there).


I am not sure why you are overmounting your /usr/local/etc since it is already writable and your new root system is mounted on that directory. Oh well if this works for you.

You are correct ipkg-cl is no longer available on the new firmware. You will need that to install it's big brother ipkg and ipkg-opt.

Here's the next commands you are going to need after you are done with the overmount stuff in case you have not figure that out yet: Disregard the underscore in "w_get"


Code:
mkdir /opt/tmp
cd /opt/tmp
w_get  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
ipkg-cl install uclibc-opt_0.9.28-13_mipsel.ipk
w_get  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
ipkg-cl install ipkg-opt_0.99.163-10_mipsel.ip
rm *.ipk


Now you can install any optware by using the command:

/opt/bin/ipkg update
/opt/bin/ipkg install "whatever you want" that is in this specific repository.

Good luck!


Mon Nov 29, 2010 1:47 am
Profile

Joined: Mon Nov 22, 2010 2:17 pm
Posts: 3
Post Re: [HOW TO] get free space on root with r2891++ for optware
snappy46 wrote:
I am not sure why you are overmounting your /usr/local/etc since it is already writable and your new root system is mounted on that directory. Oh well if this works for you.


Well, the idea is, i noticed that /usr/local/etc was mounted from some other location, didn't note the exact one, but was some memblock. When then bind-mounting /usr into our root jail, this will only map the paths from that file system, in other words, if not mounting /usr/local/etc as well, we will not find what files we expect to find, as well as the location being read only (and yeah, I tried ;) )


snappy46 wrote:
Good luck!


Thanks! Had some time to play around yesterday, and things seem to work like a charm!


Mon Nov 29, 2010 9:24 am
Profile

Joined: Sat May 08, 2010 5:07 am
Posts: 335
Post Re: [HOW TO] get free space on root with r2891++ for optware
Oiphink wrote:

Thanks! Had some time to play around yesterday, and things seem to work like a charm!


Glad you have this working this could be useful to many people.

Cheers!!!


Mon Nov 29, 2010 4:50 pm
Profile

Joined: Wed May 12, 2010 7:39 pm
Posts: 43
Post Re: [HOW TO] get free space on root with r2891++ for optware
Olphink-

It would be great if you'd start a new thread and put all of the exact steps you found necessary to get this going, including all the downloads, mount variations, etc.

I'm glad it worked for you,
wigout

_________________
minimodding.com- a place for open discussion of modifications to embedded linux devices


Mon Nov 29, 2010 10:07 pm
Profile

Joined: Mon Nov 22, 2010 2:17 pm
Posts: 3
Post Re: [HOW TO] get free space on root with r2891++ for optware
wigout wrote:
It would be great if you'd start a new thread and put all of the exact steps you found necessary to get this going, including all the downloads, mount variations, etc.


I'll probably try to cook something together when I have the time.

Great help/activity in this forum, I'd love to give something back :)


Mon Nov 29, 2010 10:38 pm
Profile

Joined: Tue Jan 18, 2011 9:30 am
Posts: 14
Post Re: [HOW TO] get free space on root with r2891++ for optware
Hi

After I install the hacked firmware, I can install the POD successfully. Now, I have one question now. If I upgrade my firmware to the latest, will the driver still be there? I am so new in the playOnHD.

Thank you.


Mon Jan 31, 2011 2:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 70 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

Who is online

Users browsing this forum: No registered users 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.