Closed armando-basile closed 8 years ago
Looks like a weird android wget
behaviour. Could you try to create wget
ling to /data/local/busybox
and change PATH to use this wget
?:
mkdir -p /data/local/xbin
ln -s ../busybox /data/local/xbin/wget
export PATH=/data/local/xbin:$PATH
?
https://gist.github.com/armando-basile/a6a16bb897f17aadb1ac#file-stacktrace i saw that now if i try to download using wget in a folder already exists, work fine, es using /data/opt/tmp that i already have:
wget -P /data/opt/tmp http://optware-ng.zyxmon.org/buildroot-armeabihf/Packages.gz
if wget need to create a subfolder into, there is the problem
wget -P /data/opt/tmp/ipkg-qUiDHM http://optware-ng.zyxmon.org/buildroot-armeabihf/Packages.gz
i tryed also on another android device always with Android 6 and have the same problem. Could be an idea to split in ipkg mkdir command and after wget using already created folder ?
That's normal wget behaviour. That temp dir should've been created by ipkg beforehand, and judging from your ipkg strace, it is (attempted to be) created:
mkdir("/data/local/tmp/ipkg-5L9LTZ", 0700) = 0
But later on wget complains that the dir doesn't exist:
unlink("/data/local/tmp/ipkg-5L9LTZ/Packages.gz") = -1 ENOENT (No such file or directory)
So either mkdir syscal doesn't work properly, or something happens between these calls that removes the dir (given that wget works as you've described).
Oh i tryed also on Android 5.1 and also here there is problem :( the only Android where it's work is 4.x
could we try a workaround ?
BINGOOO
optware-ng on Android require also:
# mkdir /bin
# ln -s /system/bin/sh /bin/sh
to work
:) ok, tested with success on android 5 and also 6. This is my start.sh boot script :
#!/system/bin/sh
mount -o remount,rw rootfs /
ln -s /data/opt /opt
ln -s /data/opt/tmp /tmp
chmod 777 /data/opt/tmp
rm -rf /data/opt/tmp/*
mkdir /bin
ln -s /system/bin/sh /bin/sh
mount -o remount,ro /
# update PATH
export PATH=/data/opt/sbin:/data/opt/bin:/data/opt:$PATH
export TMPDIR=/data/opt/tmp
# openssh server
rm -rf /data/opt/var/run/dropbear.pid
/data/opt/sbin/dropbear -A -N root -U 0 -G 0 -C <password> -p 22
# transmission daemon
rm -rf /opt/var/run/transmission-daemon.pid
/data/opt/bin/transmission-daemon -g /data/opt/etc/transmission-daemon -e /data/opt/var/log/transmission-daemon.log --log-error
# minidlna server
rm -rf /data/opt/var/minidlna/minidlna.pid
(/data/opt/sbin/minidlnad -f /data/opt/etc/minidlna.conf -P /data/opt/var/minidlna/minidlna.pid -d /opt/etc/minidlna/minidlna.log) &
# update dtdns
(/data/opt/bin/udtdns >/dev/null) &
# update date
(ntpd -q -p 1.it.pool.ntp.org) &
# pyLoad
/opt/etc/init.d/S98Pyload start &
# start samba server
/opt/etc/init.d/S08samba start &
Hi, i trying to setup optware-ng on my android 6. first of all i installed busybox:
after i install static ipkg following buildroot-armeabihf-bootstrap.sh steps:
but i receive an error from ipkg:
this is strace ipkg update response
i saw that if i try:
wget don't save file, but if i use -O option, it do that:
seems that temporary random folder was created but with another name.
could you help me