Jump to content


Photo

linux tools coming to MCR

- - - - -

  • Please log in to reply
215 replies to this topic

#181
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
# /data/xbin/opkg install /sdcard/opkg_0.1.7+svn519-2_arm.ipk
Collected errors:
 * opkg_conf_init: Couldn't stat /data/local/opkg.conf: No such file or directory.
This warning can be safely ignored.

# /data/xbin/opkg install /sdcard/opkg_0.1.7+svn519-2_arm.ipk
Installing opkg (0.1.7+svn519-2) to root...
Existing conffile /data/local/opkg.conf is different from the conffile in the new package. The new conffile will be placed at /data/local/opkg.conf-opkg.
Configuring opkg.
Everything's ok here.

# opkg update
opkg: not found
# su
# opkg update
opkg: not found
This means that /data/xbin is not in the PATH.
So, either update Villain's ROM /init.rc to add /data/xbin in the PATH definition (this one is tricky as you need to unpack the update zip file, then unpack the boot.img, edit init.rc, then repack boot.img, repack the update zip and finally resign it before flashing the whole thing).
Or remember to type
export PATH=/data/xbin:$PATH
every time you start a shell session.... Unless we can use a .profile file somewhere (well where ash believe the HOME directory is, and this might be again different between MCR and Villain).

btw. if this works, what feed should I use for this rom?

I think you should use the cyanogen feed + the common feed. Definitively not the mcr feed.

Edited by freeasabeer, 31 March 2010 - 08:30 AM.

  • 0

#182
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)
thanks a lot for your fast reply
kendon was so kind to provide an update.zip with the needed modifications and nprussel said it's include in VillainROM 5.03

it starts now but I get an error:
# opkg update
Downloading http://freeasabeer.byethost33.com/android/feed/common/Packages.gz.
wget: bad address 'freeasabeer.byethost33.com'
Downloading http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz.
wget: bad address 'freeasabeer.byethost33.com'
Collected errors:
 * opkg_download: Failed to download http://freeasabeer.byethost33.com/android/feed/common/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz, wget returned 1.

while searching this topic I found that it had something to do with resolv.conf or busybox
I did have to install another busybox than the one that was provided in the rom because Titanium Backup asked me to..

  • 0

#183
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
Oh dear... the egg and chicken story then...
you definitively need my version of busybox + a valid /etc/resolv.conf file !

Meanwhile, can you try try edit the opkg.conf file and replace all instances of freeasabeer.byethost33.com by 209.190.85.13 ?

  • 0

#184
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)
edited opkg.conf and now I get

# opkg update
Downloading http://209.190.85.13/android/feed/common/Packages.gz.
wget: bad address 'mybookface.net'
Downloading http://209.190.85.13/android/feed/cyanogen/Packages.gz.
wget: bad address 'mybookface.net'
Collected errors:
 * opkg_download: Failed to download http://209.190.85.13/android/feed/common/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://209.190.85.13/android/feed/cyanogen/Packages.gz, wget returned 1.

is there any way to install your version of busybox again after installing another one?

  • 0

#185
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
It was worth trying...

Download the busybox ipk (cyanogen variant): http://freeasabeer.b....16.0-2_arm.ipk on your sdcard and install it from there.

So you'll get the egg for the chicken :P

  • 0

#186
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)
thanks! I like my eggs fresh :P

I really hate but I still have to bug you :(
/sdcard # opkg install busybox_cyanogen_1.16.0-2_arm.ipk 
Installing busybox (1.16.0-2) to root...
Configuring busybox.
ln: ./resolv.conf: File exists
mount: mounting /dev/block/mtdblock3 on /system failed: Device or resource busy

update gives an error
/sdcard # opkg update
Downloading http://209.190.85.13/android/feed/common/Packages.gz.
Inflating http://209.190.85.13/android/feed/common/Packages.gz.
Updated list of available packages in /data/local/opkg/lib/opkg/lists/common.
Downloading http://209.190.85.13/android/feed/cyanogen/Packages.gz.
Inflating http://209.190.85.13/android/feed/cyanogen/Packages.gz.
Updated list of available packages in /data/local/opkg/lib/opkg/lists/cyanogen.
Collected errors:
 * unzip: Invalid gzip magic
 * unzip: Invalid gzip magic

installing rsync gives an error
/sdcard # opkg install rsync
Collected errors:
 * opkg_install_cmd: Cannot install package rsync.

but when I try to re-install opkg it sees that it has the current version installed so the listing of packages somehow seems ok
/sdcard # opkg install opkg
Package opkg (0.1.7+svn519-2) installed in root is up to date.

any more tips?
and thanks again for your continued help and patience

  • 0

#187
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero

mount: mounting /dev/block/mtdblock3 on /system failed: Device or resource busy[/code]

I don't really like that one. Busybox update might have actually failed.

* unzip: Invalid gzip magic
* unzip: Invalid gzip magic

Downloaded files are corrupted.
Can you try to revert the previous opkg.conf changes (e.g. revert to the former URL instead of the hard coded IP address) ?

Collected errors:
* opkg_install_cmd: Cannot install package rsync.[/code]

No idea about that one !

but when I try to re-install opkg it sees that it has the current version installed so the listing of packages somehow seems ok

/sdcard # opkg install opkg
Package opkg (0.1.7+svn519-2) installed in root is up to date.

If you really want to reinstall, then use the --force-reinstall option.

  • 0

#188
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)
yay, the egg turned into a chicken :P
it works now!

I opened SUFBS and mounted system and data as RW and the installed busybox again
# opkg install busybox_cyanogen_1.16.0-2_arm.ipk
Installing busybox (1.16.0-2) to root...
Configuring busybox.
ln: ./resolv.conf: File exists

then first tried with the IP in the .conf but got the same error
# opkg update
Downloading http://209.190.85.13/android/feed/common/Packages.gz.
Inflating http://209.190.85.13/android/feed/common/Packages.gz.
Updated list of available packages in /data/local/opkg/lib/opkg/lists/common.
Downloading http://209.190.85.13/android/feed/cyanogen/Packages.gz.
Inflating http://209.190.85.13/android/feed/cyanogen/Packages.gz.
Updated list of available packages in /data/local/opkg/lib/opkg/lists/cyanogen.
Collected errors:
 * unzip: Invalid gzip magic
 * unzip: Invalid gzip magic

then changed IP back to URL and this worked great
# opkg update
Downloading http://freeasabeer.byethost33.com/android/feed/common/Packages.gz.
Inflating http://freeasabeer.byethost33.com/android/feed/common/Packages.gz.
Updated list of available packages in /data/local/opkg/lib/opkg/lists/common.
Downloading http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz.
Inflating http://freeasabeer.byethost33.com/android/feed/cyanogen/Packages.gz.
Updated list of available packages in /data/local/opkg/lib/opkg/lists/cyanogen.

and now installed rsync just fine
# opkg install rsync
Installing rsync (3.0.6-1) to root...
Downloading http://freeasabeer.byethost33.com/android/feed/common/rsync_3.0.6-1_arm.ipk.
Installing dropbear (0.52-1) to root...
Downloading http://freeasabeer.byethost33.com/android/feed/cyanogen/dropbear_cyanogen_0.52-1_arm.ipk.
Configuring dropbear.
Configuring rsync.

thanks for all the help!
gonna keep this text for future references in case I mess up again :(

  • 0

#189
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
Excellent !

Your painfull attempt to get opkg properly working on your rom led me to start developping a very basic (and very ugly as well) android application that will do all the boostrap and initial egg & chicken stuff for you...

Stay tuned, it should arrive soon here...
Attached File  device.png   15.95KB   14 downloads

  • 0

#190
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)

Your painfull attempt to get opkg properly working on your rom led me to start developping a very basic (and very ugly as well) android application that will do all the boostrap and initial egg & chicken stuff for you...


oh my, that's cool!
I'm sure this will come in handy in the near future for me and for a lot of other users

  • 0

#191
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
if there are brave enough people to test the babe... here it is Attached File  bootstrap.zip   12.58KB   33 downloads !
The apk is inside the zip file, so just unzip and install with
adb install bootstrap.apk
Then I hope it should be straithforward.... (just don't forget to have an internet connection ON before starting the bootstrap)!

  • 0

#192
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)
I flashed the Semi-Vanillain 1.0, connected to wifi and installed the .apk through SUFBS on my phone instead of adb
install went fine, it started ok
it downloaded busybox, opkg and installed then ok but in the end I got the message

Writing a default opkg config file in: /data/local/opkg.conf: Parent directory of file is not writable: /data/local/opkg.conf
All done !


when I then opened SUFBS and typed

su
opkg

I got the message not found

I rebooted but that didn't change anything
then I opened SUFBS and remounted system and data as RW and installed and ran the application again but the result was the same

perhaps I'm just cursed :P
it does look like a great tool, and easy!

  • 0

#193
cowai

cowai

    Newbie

  • Members
  • Pip
  • 32 posts
  • Devices:HTC Hero
Andcr: try running /data/xbin/opkg instead.

  • 0

#194
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
@Andcr: thanks for the feedback... and as a result an updated version that should fix the
Parent directory of file is not writable: /data/local/opkg.conf
issue.
Attached File  bootstrap.zip   12.88KB   20 downloads

  • 0

#195
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)
I tried the new version on the VillainROM 5 and VanillainROM (both based on CDMA port) and both give the same not found error
also both seem to already have rsync installed but not opkg
I did try /data/xbin/opkg as cowai suggested but only tried it on the VillainROM but forgot it on the Vanillain, on the Villain it didn't make any difference

for me it's all ok because rsync seems to be pre-installed but if you need someone to test this application I would very much like to do so :P

  • 0

#196
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
I've finally installed Villain 5.2 on my Hero to be able to debug the whole thing myself!
1) it appears that V(an)illain ROMs should be considered as Modaco like ROMs and not as Cyanogen like ROMs from an ipk point of view. So I have added V(an)illain as a new option.
2) I have an updated boostrap (v 1.2) Attached File  bootstrap_1.2.zip   14.89KB   32 downloads that really works on my phone with a Villain ROM. (It was already working with MCR 3.2).

  • 0

#197
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)

I've finally installed Villain 5.2 on my Hero to be able to debug the whole thing myself!
1) it appears that V(an)illain ROMs should be considered as Modaco like ROMs and not as Cyanogen like ROMs from an ipk point of view. So I have added V(an)illain as a new option.
2) I have an updated boostrap (v 1.2) Attached File  bootstrap_1.2.zip   14.89KB   32 downloads that really works on my phone with a Villain ROM. (It was already working with MCR 3.2).


I still have the "not found" on my current VillainROM
I have 5.1 and I think you have installed 5.02 as 5.1 is the highest number available now

When I install and click run the app, everything gives the message OK but when I type
opkg
or
su
opkg
I still get not found
even after a reboot..

I tried from SUFBS and adb..

  • 0

#198
freeasabeer

freeasabeer

    Regular

  • Members
  • PipPip
  • 88 posts
  • Location:Paris, France
  • Devices:HTC Hero
Yeah, it was 5.1..
Until nprussell does add /data/xbin into the PATH definition, you'll still have the "not found" issue.
But if you call opkg explicitely (e.g. /data/xbin/opkg) it should work as expected (at least it did on my phone yesterday).

  • 0

#199
Andcr

Andcr

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:HCT Hero (Euro)

But if you call opkg explicitely (e.g. /data/xbin/opkg) it should work as expected (at least it did on my phone yesterday).


:P oops :(
I forgot about the path as he said he added it in 5.01 I thought it would also be included in 5.1.
Or I might have messed up myself by trying to install OpenVPN which might have changed the boot..
anyways thanks :(

this is working great now!

  • 0

#200
Pitel

Pitel

    Newbie

  • Members
  • Pip
  • 41 posts
  • Location:Brno
  • Devices:HTC Hero
  • Twitter:@Pitlik
I have following problems with installing mc:
Installing mc (4.6.2-1) to root...Downloading [url="http://freeasabeer.byethost33.com/android/feed/common/mc_4.6.2-1_arm.ipk"]http://freeasabeer.byethost33.com/android/...4.6.2-1_arm.ipk[/url].Installing terminfo (5.6-1) to root...Downloading [url="http://freeasabeer.byethost33.com/android/feed/common/terminfo_5.6-1_arm.ipk"]http://freeasabeer.byethost33.com/android/...o_5.6-1_arm.ipk[/url].Configuring terminfo.Configuring mc.Collected errors: * extract_archive: Cannot make dir /system/etc/terminfo/x/: Read-only file system. * wfopen: /system/etc/terminfo/x/xterm-xfree86: No such file or directory. * wfopen: /system/etc/terminfo/x/xterm: No such file or directory. * wfopen: /system/etc/terminfo/x/xterm-color: No such file or directory. * extract_archive: Cannot make dir /system/etc/terminfo/a/: Read-only file system. * wfopen: /system/etc/terminfo/a/ansi: No such file or directory. * extract_archive: Cannot make dir /system/etc/terminfo/d/: Read-only file system. * wfopen: /system/etc/terminfo/d/dumb: No such file or directory. * extract_archive: Cannot make dir /system/etc/terminfo/v/: Read-only file system. * wfopen: /system/etc/terminfo/v/vt220: No such file or directory. * wfopen: /system/etc/terminfo/v/vt100: No such file or directory. * wfopen: /system/etc/terminfo/v/vt102: No such file or directory. * extract_archive: Cannot create symlink from ./system/etc/terminfo/v/vt200 to 'vt220': No such file or directory.

  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users