-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebServer on Zipit ? #8
Comments
Since I couldn't find a package binary for nginx or lighthttp I decided to build a binary of the boa server that I used to use long ago on embedded projects, before https got so popular. I built this with the native compiler on the zipit itself and verified it works well enough to serve some up files in the /usr/share/boa/www directory. I tweaked the /etc/boa/boa.conf file just a little, however no attempt was made to optimize it for the zipit.
https://github.com/deeice/boa/releases/tag/debian%2F0.94.14rc21-5
[https://opengraph.githubassets.com/78bbb3c8554c81e08d31a5b689c72e6cb8a033f0bb67f6ce00a4456953c1b2e7/deeice/boa/releases/tag/debian/0.94.14rc21-5]<https://github.com/deeice/boa/releases/tag/debian%2F0.94.14rc21-5>
Release 0.94.14rc21_zipit-z2_wrt_be · deeice/boa<https://github.com/deeice/boa/releases/tag/debian%2F0.94.14rc21-5>
This is source and a binary build of boa_0.94.14rc21 for openwrt_zipit bleeding edge linux on the Zipit Z2.
github.com
…________________________________
From: janekska ***@***.***>
Sent: Sunday, June 19, 2022 6:40 AM
To: openwrt-zipit/openwrt-pxa-target ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [openwrt-zipit/openwrt-pxa-target] WebServer on Zipit ? (Issue #8)
Hi,
I finally got working my Zipit with
BusyBox v1.24.2 () multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, ash, awk, basename, bunzip2, bzcat, cat, chgrp, chmod, chown,
chroot, chvt, clear, cmp, cp, crond, crontab, cut, date, dd, deallocvt,
depmod, df, dirname, dmesg, dnsdomainname, du, echo, egrep, env, expr,
false, fgconsole, fgrep, find, free, fsync, fuser, getty, grep, gunzip,
gzip, halt, head, hexdump, hostname, hwclock, ifconfig, init, insmod,
ip, kill, killall, less, ln, loadfont, loadkmap, lock, logger, login,
losetup, ls, lsmod, lsusb, md5sum, mdev, mkdir, mkfifo, mknod, mkswap,
mktemp, modprobe, mount, mv, nc, netstat, nice, nslookup, openvt,
passwd, pgrep, pidof, ping, pivot_root, poweroff, printf, ps, pwd,
readlink, reboot, reset, rm, rmdir, rmmod, route, sed, sh, showkey,
sleep, strings, swapoff, swapon, switch_root, sync, sysctl, tail, tar,
tee, test, top, touch, tr, traceroute, true, tty, udhcpc, umount,
uname, uptime, vconfig, vi, watchdog, wc, which, xargs, yes, zcat
The question is how could I get them working as small web server?
Some loong time ago I saw that somebody got it working so.
Another question:
I would not need gmenu and would like to free some resources, but I would like to use bigger fonts on terminal/startup screens - could you drop some direction where to search configs for them?
—
Reply to this email directly, view it on GitHub<#8>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAL4QZVEEPJQNM3DFR5OCQLVP32LPANCNFSM5ZGFSHYQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thanks @deeice! Some looong time ago I used to compile some programs too on ZipIt. |
Heh, I'd go with maybe one less o in loong for myself. I haven't done much of anything since the plandemic lockdowns started up and I'm beginning to forget.
There's a toolchain and a tarball of openwrt_zipit libs and includes here. Also, the existing binary package files are there as well in a subdirectory. I think they're also still available at the original site, and for all I know there may be a package for the native zipit compiler.
https://web.archive.org/web/20200110094213/https://mozzwald.com/zipit/index.php?dir=openwrt/bleeding_edge/
For some reason that I can no longer remember, I use a different compiler with a hacked up specs file on my zipit. Maybe the other toolchain is a PC hosted cross compiler? I can't remember. But I can dump a tarball of mine on github with the boa bainary if needed. I may still have instructions for compiling with the native toolchain in a QEMU chroot folder on the PC, which lets you have 256M for the compiler instead of 32 and avoides the need for a swap file on the SD card.
Apparently I blabbed about setting up the compiler and hacking the specs file on my blog way back when. Maybe this will help if needed.
https://macrofig.blogspot.com/2016/05/on-edge.html
[https://2.bp.blogspot.com/-4_A9smWkX2Y/VyYSdeTvT6I/AAAAAAAAA2w/cLzVb_OpJTIHRAN_RZqscGZN0zX-KFoMwCLcB/w1200-h630-p-k-no-nu/edgebleed.png]<https://macrofig.blogspot.com/2016/05/on-edge.html>
On the Edge<https://macrofig.blogspot.com/2016/05/on-edge.html>
While I was off tinkering with my lego toys, the ever industrious folks on the zipit irc channel got together and started assembling a new s...
macrofig.blogspot.com
…________________________________
From: janekska ***@***.***>
Sent: Wednesday, June 22, 2022 4:49 AM
To: openwrt-zipit/openwrt-pxa-target ***@***.***>
Cc: deeice ***@***.***>; Mention ***@***.***>
Subject: Re: [openwrt-zipit/openwrt-pxa-target] WebServer on Zipit ? (Issue #8)
Thanks @deeice<https://github.com/deeice>!
It could work for my static site (I am used Hugo static site generator).
When I'll get hands on it I'll report back.
Some looong time ago I used to compile some programs too on ZipIt.
I.e. could you point to some link etc. I am yet failing to get something from web search engines.
Mostly there are info about how to compile busybox itself.
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAL4QZSRMUD6AUIQFI7CBIDVQLHTLANCNFSM5ZGFSHYQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hmm, could it be that there was a version of debian for Z2? |
There are builds of debian sid, devuan (debian wthout systemd), ubuntu, arch, and void linux of varying ages if you hunt around. They all work to some degree, but are more demanding than the openwrt. You can search on my blog to find any notes I might have taken. eg
https://macrofig.blogspot.com/search?q=devuan
Macro Fig<https://macrofig.blogspot.com/search?q=devuan>
Fun with software, gizmos, virtual bricks, and other geeky toys.
macrofig.blogspot.com
I also just added my native openwrt compiler toolchain to the boa release assets.
https://github.com/deeice/boa/releases/tag/debian%2F0.94.14rc21-5
[https://opengraph.githubassets.com/599f92816134b64aa07cb90bc94a9dfc7cd6088ac4d2858b6a20c51caeb3352f/deeice/boa/releases/tag/debian/0.94.14rc21-5]<https://github.com/deeice/boa/releases/tag/debian%2F0.94.14rc21-5>
Release 0.94.14rc21_zipit-z2_wrt_be · deeice/boa<https://github.com/deeice/boa/releases/tag/debian%2F0.94.14rc21-5>
This is source and a binary build of boa_0.94.14rc21 for openwrt_zipit bleeding edge linux on the Zipit Z2.
github.com
…--Don--
________________________________
From: janekska ***@***.***>
Sent: Wednesday, June 22, 2022 8:08 AM
To: openwrt-zipit/openwrt-pxa-target ***@***.***>
Cc: deeice ***@***.***>; Mention ***@***.***>
Subject: Re: [openwrt-zipit/openwrt-pxa-target] WebServer on Zipit ? (Issue #8)
Hmm, could it be that there was a version of debian for Z2?
Could this
https://web.archive.org/web/20200110094339/https://mozzwald.com/zipit/index.php?dir=z2buntu%2F
be usable?
I barely remember, that it looked something with package management, but I could be wrong.
At least, I think that I got working mc on z2...
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAL4QZV4T3AU2UZY6KXTPLDVQL645ANCNFSM5ZGFSHYQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Webserver
---------
There might be a ligttpd package, if it compiled...
https://github.com/openwrt-zipit/openwrt-packages/tree/master/net/lighttpd
You could try searching for it with opkg.
https://github.com/openwrt-zipit/openwrt-pxa-target/wiki/opkg
Otherwise, you can try to compile one, but it's probably a lot of work.
You could try the openwrt cross compiler toolchain described in the wiki.
Or try to install the native compiler package and build it on the zipit.
Console fonts
------------
I think the startup font is built into the kernel so can't change that.
The console fonts can change though. It uses psf fonts.
I tend to use the iz2slat font since it's a bit taller than 5x8iz2s.
***@***.***:~# ls /usr/share/consolefonts
5x8iz2s.psf
Uni2-Terminus12x6.psf
iz2slat.psf
ter-132b.psf
thumb4x6.psf
***@***.***:~# loadfont </usr/share/consolefonts/iz2slat.psf
***@***.***:/etc# grep -i psf *
inittab:::sysinit:/usr/sbin/loadfont < /etc/5x8iz2s.psf
…________________________________
From: janekska ***@***.***>
Sent: Sunday, June 19, 2022 6:40 AM
To: openwrt-zipit/openwrt-pxa-target ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [openwrt-zipit/openwrt-pxa-target] WebServer on Zipit ? (Issue #8)
Hi,
I finally got working my Zipit with
BusyBox v1.24.2 () multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, ash, awk, basename, bunzip2, bzcat, cat, chgrp, chmod, chown,
chroot, chvt, clear, cmp, cp, crond, crontab, cut, date, dd, deallocvt,
depmod, df, dirname, dmesg, dnsdomainname, du, echo, egrep, env, expr,
false, fgconsole, fgrep, find, free, fsync, fuser, getty, grep, gunzip,
gzip, halt, head, hexdump, hostname, hwclock, ifconfig, init, insmod,
ip, kill, killall, less, ln, loadfont, loadkmap, lock, logger, login,
losetup, ls, lsmod, lsusb, md5sum, mdev, mkdir, mkfifo, mknod, mkswap,
mktemp, modprobe, mount, mv, nc, netstat, nice, nslookup, openvt,
passwd, pgrep, pidof, ping, pivot_root, poweroff, printf, ps, pwd,
readlink, reboot, reset, rm, rmdir, rmmod, route, sed, sh, showkey,
sleep, strings, swapoff, swapon, switch_root, sync, sysctl, tail, tar,
tee, test, top, touch, tr, traceroute, true, tty, udhcpc, umount,
uname, uptime, vconfig, vi, watchdog, wc, which, xargs, yes, zcat
The question is how could I get them working as small web server?
Some loong time ago I saw that somebody got it working so.
Another question:
I would not need gmenu and would like to free some resources, but I would like to use bigger fonts on terminal/startup screens - could you drop some direction where to search configs for them?
—
Reply to this email directly, view it on GitHub<#8>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAL4QZVEEPJQNM3DFR5OCQLVP32LPANCNFSM5ZGFSHYQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hmm, tried to add opkg source, but failed:
|
Hi,
I finally got working my Zipit with
The question is how could I get them working as small web server?
Some loong time ago I saw that somebody got it working so.
Another question:
I would not need gmenu and would like to free some resources, but I would like to use bigger fonts on terminal/startup screens - could you drop some direction where to search configs for them?
The text was updated successfully, but these errors were encountered: