Re: Zsun OpenWRT April 08, 2016 09:36AM |
Re: Zsun OpenWRT April 22, 2016 01:19PM |
Registered: 8 years ago Posts: 34 |
Re: Zsun OpenWRT April 22, 2016 11:46PM |
Registered: 9 years ago Posts: 181 |
Re: Zsun OpenWRT May 04, 2016 01:40PM |
Re: Zsun OpenWRT May 06, 2016 04:14PM |
Re: Zsun OpenWRT May 07, 2016 03:59PM |
Registered: 9 years ago Posts: 181 |
Re: Zsun OpenWRT May 08, 2016 07:00PM |
Re: Zsun OpenWRT May 08, 2016 08:31PM |
Registered: 8 years ago Posts: 34 |
Your regular network is still within the same ip range as the zsun's. Please change your subnet to 255.255.255.0.Quote
mxhdrm
...I can and have changed my regular network to be that of 192.168.0.1 with a subnet mask of 255.255.254.0 . I tried to get the Zsun unit back up, but it didn't work.
There is no need to connect to a network jack!Quote
stylesuxx
Also if you already flashed the custom FW, you can easily go back to factory mode in case you fuc*ed up your network config by simply putting in the SD card while the zsun is booting - just wait until the LED starts blinking, then push in the SD card, after this the OpenWrt network should come up.
Re: Zsun OpenWRT May 08, 2016 08:42PM |
Registered: 8 years ago Posts: 34 |
Quote
scratchrobot
Zsun running PirateBox and MQTT server talking to ESP8266 showing PB chat
[www.youtube.com]
Re: Zsun OpenWRT May 09, 2016 01:42AM |
Re: Zsun OpenWRT May 09, 2016 06:50AM |
Registered: 8 years ago Posts: 34 |
Your own/default network CAN'T be on the same (sub-)net as your zsun's. When you activate the additional WiFi channel on the zsun there will be routing problems. You MUST change your default network to something like 192.168.0.x/24 (that is for your router IP 192.168.0.1 with netmask 255.255.255.0)Quote
mxhdrm
My question is, should I change the network to be that of 192.168.0.1 *and* keep the subnet mask of 255.255.255.0? My default network on my internet router is 192.168.1.1 (for reference).
Re: Zsun OpenWRT May 20, 2016 02:51PM |
Re: Zsun OpenWRT May 23, 2016 08:25PM |
Registered: 8 years ago Posts: 34 |
What i do: I have a usb verlängerung cable, so i can easily insert/remove the sd while connected.Quote
stylesuxx
Also if you already flashed the custom FW, you can easily go back to factory mode in case you fuc*ed up your network config by simply putting in the SD card while the zsun is booting - just wait until the LED starts blinking, then push in the SD card, after this the OpenWrt network should come up.
Re: Zsun OpenWRT May 23, 2016 08:51PM |
Registered: 9 years ago Posts: 181 |
Re: Zsun OpenWRT May 31, 2016 10:48AM |
Broken setup? June 09, 2016 09:43PM |
Registered: 8 years ago Posts: 7 |
Re: Broken setup? June 10, 2016 03:47PM |
Registered: 8 years ago Posts: 34 |
Re: Broken setup? June 11, 2016 06:15AM |
Registered: 8 years ago Posts: 7 |
Re: Broken setup? June 12, 2016 08:08AM |
Registered: 8 years ago Posts: 7 |
Re: Zsun OpenWRT June 13, 2016 08:56AM |
Re: Broken setup? June 13, 2016 10:14AM |
Registered: 8 years ago Posts: 34 |
Re: Zsun OpenWRT June 15, 2016 07:36AM |
Registered: 8 years ago Posts: 7 |
Re: Zsun OpenWRT June 20, 2016 11:12AM |
Registered: 8 years ago Posts: 7 |
Re: Zsun OpenWRT June 20, 2016 06:56PM |
Registered: 8 years ago Posts: 34 |
# to create the partitions programatically (rather than manually) # we're going to simulate the manual input to fdisk # The sed script strips off all the comments so that we can # document what we're doing in-line with the actual commands # Note that a blank line (commented as "defualt" will send a empty # line terminated with a newline to take the fdisk default. sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | /tmp/usr/sbin/fdisk /dev/sda o # clear the in memory partition table n # new partition p # primary partition 1 # partition number 1 # default - start at beginning of disk +$(( ($(cat /sys/block/sda/size) / 2048) - 500 ))M # all except last 500 MB n # new partition p # primary partition 2 # partion number 2 # default, start immediately after preceding partition # default, extend partition to end of disk a # make a partition bootable 1 # bootable partition is partition 1 -- /dev/sda1 p # print the in-memory partition table w # write the partition table q # and we're done EOF
Re: Zsun OpenWRT June 20, 2016 11:21PM |
Registered: 9 years ago Posts: 181 |
Re: Zsun OpenWRT June 21, 2016 04:36AM |
Registered: 8 years ago Posts: 7 |
Re: Zsun OpenWRT July 03, 2016 02:31PM |
Registered: 9 years ago Posts: 181 |
Language: HTMLtypes.h:386:26: error: expected ';)'; before numeric constant DECLARE_EWMA(throughput, 1024, 8)
Hi have you been able to run kmod-batman-adv on the Zsun ?
Re: Broken setup? September 22, 2016 07:23PM |
Re: Zsun OpenWRT January 11, 2018 01:19PM |
Registered: 7 years ago Posts: 3 |
to the end of the function index() and added the new functionLanguage: CSSentry({"admin", "system", "poweroff"}, call("action_poweroff"), _("Poweroff"), 110)
after the function action_restart.Language: CSSfunction action_poweroff() local poweroff = luci.http.formvalue("poweroff") luci.template.render("admin_system/poweroff", {poweroff=poweroff}) if poweroff then luci.sys.poweroff() end end
after the function restart.Language: CSSfunction poweroff() return os.execute("poweroff >/dev/null 2>&1") end
Language: HTML<%# Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> Licensed to the public under the Apache License 2.0. -%> <%+header%> <h2><a id="content" name="content"><%:System%></a></h2> <h3><%:Poweroff%></h3> <p><%:Powers off the operating system of your device%></p> <%- local c = require("luci.model.uci").cursor():changes() if c and next(c) then -%> <p class="warning"><%:Warning: There are unsaved changes that will be lost while powering off!%></p> <%- end if not poweroff then -%> <p><a href="<%=controller%>/admin/system/poweroff?poweroff=1"><%:Perform poweroff%></a></p> <%- else -%> <p><%:Please wait: Device powering off...%></p> <script type="text/javascript">setTimeout("location=';<%=controller%>/admin';", 60000)</script> <%- end -%> <%+footer%>
and in /opt/piratebox/share/content/index.html after line 28 I addedLanguage: HTML<script language="JavaScript"> document.write(';<h1><a href="http://'; + window.location.hostname + ';/content/'; + ';" >PirateBox</a></h1> '; ); </script>
Language: HTML<script language="JavaScript"> document.write(';<li><a href="'; + window.location.protocol + ';//'; + window.location.hostname + ';:9080'; + ';" data-l10n-id="navbarSettings">Settings</a></li> '; ); </script>
to /opt/piratebox/conf/lighttpd/fastcgi-php.conf. The problem is when I try to access http://piratebox.lan/dokuwiki/install.php I get a blank white page. I've tried other php applications such as punBB and MediaWiki which give give me a response (complaining about missing dependencies but at least that shows they're working).Language: PHP$HTTP["url"] =~ "^/dokuwiki/" { fastcgi.server = ( ".php" => (( "bin-path" => "/usr/bin/php-cgi", "socket" => "/tmp/php.socket", "max-procs" => 1 )) ) }
error_reporting = E_ALL ;& ~E_NOTICE & ~E_STRICT display_errors = On display_startup_errors = On log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On ;report_zend_debug = 0 track_errors = Off html_errors = On ;docref_root = "/phpmanual/" ;docref_ext = .html ;error_prepend_string = "<font color=#ff0000>" ;error_append_string = "</font>" ; Log errors to specified file. error_log = /var/log/php_errors.log ; Log errors to syslog. ;error_log = syslog
Re: Zsun OpenWRT January 20, 2018 04:58PM |
Registered: 9 years ago Posts: 181 |