Alt-F-0.1RC5 DNS-323-C1 - Where is ipkg?

已查看 1,124 次
跳至第一个未读帖子

Matt Kasdorf

未读,
2016年7月2日 13:50:542016/7/2
收件人 al...@googlegroups.com

Total noob to Alt-F.


Alt-F Package Manager

  Package Feeds

    UpdatePackageList


+------------------------------------------------+

| This is a frontend to ipkg. Use it always!     |
| Usage:                                         |
|     ipkg -install [<mount_point>]              |
|     ipkg -clean                                |
|     ipkg -help                                 |
|     ipkg standard ipkg command                 |
|                                                |
| ipkg is not installed, install using the webUI |

+------------------------------------------------+


But I am using the webUI via FireFox.



Should I be setting up a packages directory first?


  Packages Installed On
    No Alt-F package instalation found, install in...


Shouldn't:
  https://downloads.sourceforge.net/project/alt-f/pkgs/stable
  https://downloads.sourceforge.net/project/alt-f/pkgs/unstable
actually be:
  https://sourceforge.net/projects/alt-f/files/pkgs/stable/
  https://sourceforge.net/projects/alt-f/files/pkgs/unstable/


PS
  Also note you've spelt "instalation" incorrectly, there's two "L's", not one.

João Cardoso

未读,
2016年7月2日 18:35:182016/7/2
收件人 Alt-F


On Saturday, 2 July 2016 18:50:54 UTC+1, Matt Kasdorf wrote:

Total noob to Alt-F.


Alt-F Package Manager

  Package Feeds

    UpdatePackageList


+------------------------------------------------+

| This is a frontend to ipkg. Use it always!     |
| Usage:                                         |
|     ipkg -install [<mount_point>]              |
|     ipkg -clean                                |
|     ipkg -help                                 |
|     ipkg standard ipkg command                 |
|                                                |
| ipkg is not installed, install using the webUI |

+------------------------------------------------+


But I am using the webUI via FireFox.



Should I be setting up a packages directory first?


Yes, specify a existing filesystem such as sda2, sdb4, md0,... first
 


  Packages Installed On
    No Alt-F package instalation found, install in...


Shouldn't:
  https://downloads.sourceforge.net/project/alt-f/pkgs/stable
  https://downloads.sourceforge.net/project/alt-f/pkgs/unstable
actually be:
  https://sourceforge.net/projects/alt-f/files/pkgs/stable/
  https://sourceforge.net/projects/alt-f/files/pkgs/unstable/

That's equivalent.
 

PS
  Also note you've spelt "instalation" incorrectly, there's two "L's", not one.

Thanks, there should exist a lot of typos, worse grammar and unclear messages... feel free to point all you find.

Oddly 'ispell', and old unix cmdline spellchecker doesn't complain ;-)


Matt Kasdorf

未读,
2016年7月2日 18:45:002016/7/2
收件人 Alt-F

Installing Alt-F

When done you must save settings help
Installing Alt-F in /mnt/sdb2
Installing ipkg
Trying sourceforge.net... Segmentation fault
fail, no Packages file.
You don't seem to have a name server configured, or a working internet connection, and no /tmp/ipkg_*_arm.ipk file found. Exiting
An error occurred

Matt Kasdorf

未读,
2016年7月2日 18:55:002016/7/2
收件人 Alt-F
I can ping from the DNS, so internet is working:

[root@DNS323c1]# ping google.ca
PING google.ca (216.123.194.108): 56 data bytes
64 bytes from 216.123.194.108: seq=0 ttl=60 time 9.874 ms
.
.
.
--- google.ca ping statistics ---
# packets transmitted, # packets received, 0% packet loss

Matt Kasdorf

未读,
2016年7月2日 19:08:312016/7/2
收件人 Alt-F
[root@DNS323c1]# ping sourceforge.net
PING sourceforge.net (216.34.181.60): 56 data bytes
64 bytes from 216.34.181.60: seq=0 ttl=245 time 65.225 ms
.
.
.
--- sourceforge.net ping statistics ---

# packets transmitted, # packets received, 0% packet loss

[root@DNS323c1]# ping downloads.sourceforge.net
PING downloads.sourceforge.net (216.34.181.59): 56 data bytes
64 bytes from 216.34.181.59: seq=0 ttl=245 time 53.866 ms
.
.
.
--- downloads.sourceforge.net ping statistics ---

Matt Kasdorf

未读,
2016年7月4日 19:46:342016/7/4
收件人 Alt-F
Bump.

WebUI does not appear to be able to access the Internet. Ping works great, so I know I something works.

Will install ipkg manually to /tmp/ and try again.

João Cardoso

未读,
2016年7月5日 11:06:502016/7/5
收件人 Alt-F


On Tuesday, 5 July 2016 00:46:34 UTC+1, Matt Kasdorf wrote:
Bump.

WebUI does not appear to be able to access the Internet.  Ping works great, so I know I something works.


Do you have the nameserver correctly setup? Does 'nslookup google.com' succeeds?
 

Will install ipkg manually to /tmp/ and try again.


Do you need a proxy? Does a plain  'wget http://sourceforge.net/projects/alt-f/files/pkgs/stable/Packages' succeeds?

If you hare having issues with 'https' you can replace it with 'http' in the Feeds section

Matt Kasdorf

未读,
2016年7月5日 18:03:582016/7/5
收件人 Alt-F
Yes nslookup works.

Yes wget works...

... but gives two:
301 Moved Permanently
and three:
302 Found
warnings before the successful:
200 OK.
However wget HTTPS:// seg faults.

Tried Alt-F Package Manager, Packages Installed On: No Alt-F... But seg faulted.


Odd... something has changed... tried again in terminal... always seg faulting now!

nslookup fails, wget fails :-(

Rebooting...

Matt Kasdorf

未读,
2016年7月5日 18:17:402016/7/5
收件人 Alt-F
OK rebooted...

nslookup worked

wget worked

nslookup fails!

wget fails!

something about wget is messing the system up!

Rebooting again.

Matt Kasdorf

未读,
2016年7月5日 18:25:412016/7/5
收件人 Alt-F
Something unstable, nslookup google.ca seg faulted, then nslookup google.com worked, then nslookup google.com failed...

Powering down.

João Cardoso

未读,
2016年7月5日 20:10:012016/7/5
收件人 Alt-F


On Tuesday, 5 July 2016 23:25:41 UTC+1, Matt Kasdorf wrote:
Something unstable, nslookup google.ca seg faulted, then nslookup google.com worked, then nslookup google.com failed...

Such a simple program erratic behaviour (and it was not changed in any way in the last years) makes me believe that your box is dying -- RAM issues?

Powering down.

Matt Kasdorf

未读,
2016年7月5日 22:40:222016/7/5
收件人 Alt-F

Hi  João,


Such a simple program erratic behaviour (and it was not changed in any way in the last years) makes me believe that your box is dying -- RAM issues?

   :-(  I hope not, it was functional under original firmware.  Only real difference now is that sdb is 4TB instead of 2TB, sda is still a 2TB drive.

   Placed ipkg in /tmp and managed to create an Alt-F directory.
   Now when I try to update the Packages I get:

Segmentation fault
Segmentation fault
Segmentation fault
HTTP/1.0 200 OK
Content-Type: text/html; charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="icon" type="image/png" href="../dns-323.png">
<style type="text/css">
html { height: 100%; }
body { height: 100%; font-family: arial,verdana; }
</style>
<link rel="stylesheet" type="text/css" href="/scripts/dull/dull.css">
<script type="text/javascript" src="/scripts/dull/dull.js"></script>	
<title></title></head>
<body>

<script type=text/javascript>
	alert("Downloading http://downloads.sourceforge.net/project/alt-f/pkgs/stable/Packages\nDownloading http://downloads.sourceforge.net/project/alt-f/pkgs/unstable/Packages\nDownloading http://sourceforge.net/projects/alt-f/files/pkgs/unstable//Packages\nAn error ocurred, return value: 3.\nCollected errors:\nipkg_download: ERROR: Command failed with return value 139: `wget --passive-ftp    -q -P /tmp/ipkg-Yo4k8E http://downloads.sourceforge.net/project/alt-f/pkgs/stable/Packages'\nipkg_download: ERROR: Command failed with return value 139: `wget --passive-ftp    -q -P /tmp/ipkg-Yo4k8E http://downloads.sourceforge.net/project/alt-f/pkgs/unstable/Packages'\nipkg_download: ERROR: Command failed with return value 139: `wget --passive-ftp    -q -P /tmp/ipkg-Yo4k8E http://sourceforge.net/projects/alt-f/files/pkgs/unstable//Packages'\n")
	window.location.assign(document.referrer)
	</script>
	</body></html>


also note that ipkg is in /tmp but I'm unable to install it via webUI; I get the same 139 exit code error.


Matt Kasdorf

未读,
2016年7月5日 22:51:572016/7/5
收件人 Alt-F

João Cardoso

未读,
2016年7月6日 11:42:342016/7/6
收件人 Alt-F


On Wednesday, 6 July 2016 03:51:57 UTC+1, Matt Kasdorf wrote:
Hmm...

My comments were about nslookup, not wget. While nslookup is a simple program (part of busybox, which hasn't change in Alt-F in the last years, wget is a complex program that were updated in RC5.

The erratic behaviour of such program (in your box!, not on other users boxes nor on mine 5 boxes) points to hardware fault, possibly RAM. 
Of course you can always flash D-Link fw back (or reflash Alt-F from within itself; in that case download also the fw sha1 file to verify file download integrity)

On a DNS-321/323, by default Alt-F runs from flash memory, saving 6MB of the box meager 64MB of RAM.
It is possible to run entirely in RAM (thus ruling out flash memory issues) by using the "SpecialReboot" button in the Firmware Upgrade webUI. After the Special reboot the box behaves as usual, except that a further 6MB of memory RAM are used.

Although unlikely, as the box boots OK from flash, it is possible that flash access timings for your box are degrading.

Luck!

Matt Kasdorf

未读,
2016年7月7日 23:21:342016/7/7
收件人 Alt-F
Apologies, just frustrated, and trying anything I can.

Did as you suggested and reflashed my DNS-323-C1, sha1 verified... no change :-(

Ran from RAM... no change :-(

Memory:
Flashed RAM
memTotal 60688kB 60688kB
memAvailable 48548kB 42276kB
memFree 23320kB 19860kB


nslookup sometimes seg faults the first time.
But always seg faults the second time you try the same site.

nslookup google.ca
works

nslookup google.ca
seg faults

nslookup google.com
works

nslookup google.com
seg faults

:-(


ipkg (v163-3) ... /Packages
seg faults
:-(

João Cardoso

未读,
2016年7月8日 13:38:162016/7/8
收件人 Alt-F
A "segmentation fault" occurs when a program tries to access data that does not belong to itself. It can be a program error or an hardware fault.
In this case it is certainly not a programmatic error, as the nslookup program is "very old" and stable and nobody else complains.
As you have excluded a possible flash memory issue when you run the box in the SpecialReboot mode, only RAM is left as the culprit.
I can only advise you do one more test without any disk attached before flashing back D-Link firmware and seeing if there are any issues.

There is a serious issue with networking under investigation (that you had already tersely reported), so you might be interested following it. It is very unlikely that the issue results in a seg fault in nslookup, but you can try turning off TSO (tcp segmentation offload)
but that involves manually downloading and installing ethtools



回复全部
回复作者
转发
0 个新帖子