EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Raspberry Pi - Server (https://www.eqemulator.org/forums/showthread.php?t=36906)

Malk 06-02-2013 05:51 PM

Raspberry Pi - Server
 
Hi,

i searched, but didn't found anything.
Is it possible to run eqemu on a ARM CPU?
And if yes, does the Raspberry has enough power for that?
ARM 700MHz (ARM1176JZF-S) with 256/512MB RAM.

thx ;=)

sorvani 06-02-2013 06:24 PM

You can build a version of Debian on a pi. So potentially, yes.

Xumtiil 07-16-2013 05:40 PM

I'm contemplating to get a Raspberry Pi just for this - I've been messing around with virtual Linuxes and so far have had little luck getting it up and running, maybe having a physical machine will do the trick.

lerxst2112 07-16-2013 06:26 PM

VM or physical box shouldn't matter. The VM can be slightly tricky depending on network configuration, but other than that and any distribution differences they should be identical. The Pi does only have 512MB of RAM, so it might be a tight squeeze to run a server on.

Xumtiil 10-02-2013 02:29 AM

I've just tried compiling the server on an ARM system (a NAS, actually) and the problem I've run into is that the crypto is compiled for x64 or x86, it's not being recognised by the ARM chipset.

Without the crypto you can't compile the loginserver, so you'd need to hook into the main loginserver if you'd want to play, which is not what I wanted initially, but may have to do anyway.

cavedude 10-05-2013 02:35 PM

The source for the crypto cannot be released, and those of us who have it do not have access to an ARM device that can run Linux. Just Android or iOS. I'm not sure if there is some sort of emulation, but if there is if somebody could get me an image with ARM Linux and the development environment already setup, I can attempt to compile the crypto and upload it to git.

I can't spend a lot of time on it, but if somebody can do the leg work with emulation and setting the environment up, I'll gladly compile the lib.

Xumtiil 10-07-2013 06:10 PM

I have access to quite a few ARM Linux boxes, they run BusyBox, which I think is some sort of Debian spin.

SSH root access is all you need? What dev packages do you require? I'll see if I can get something patched up for you in a while, might take a few weeks or so depending on work requirements.

demonstar55 10-09-2013 07:27 PM

There might be some libraries for Raspbian soon. As in, if I get it working they will most likely be some.

enneract 11-12-2013 08:06 PM

I would be stunned if the RPi has enough horsepower to run an eqemu server.

Dark Atom 02-08-2014 09:40 PM

Not sure if I can post links, but there is a neat way to turn several Raspberry Pi's into a super-computer. If you chained several of them together, you could potentially create a piece of hardware capbable of adequately running EQ for cheap. Here's the link to ZDNet, but a google search will locate several of them.

http://www.zdnet.com/build-your-own-...ds-7000015831/

N0ctrnl 02-24-2014 06:42 AM

Quote:

Originally Posted by Dark Atom (Post 228166)
Not sure if I can post links, but there is a neat way to turn several Raspberry Pi's into a super-computer. If you chained several of them together, you could potentially create a piece of hardware capbable of adequately running EQ for cheap. Here's the link to ZDNet, but a google search will locate several of them.

http://www.zdnet.com/build-your-own-...ds-7000015831/

That would require EQEmu to have some sort of message passing interface support (mpich, for example), would it not?

Xumtiil 12-20-2016 07:35 PM

Thread resurrections are fun. Cavedude, you still up for compiling the crypto? I now have a Raspberry 3 that could be all yours if you need to, but probably only this week as I'll be mounting it on a wall sometime as a Christmas present :D

CodeMephit 12-21-2016 02:00 PM

Having the 'official' crypto would be grand, so I hope Cavedude (or maybe KLS) would be up for it, but in the interim, Zaela_S has compiled a working crypto for the loginserver for a Raspberry Pi. Check out his (her?) great work [here].

-CodeMephit

Nightspire 11-02-2017 03:36 PM

Updated Raspberry Pi 3 Specs - Server Possible?
 
Hello, I see someone has brought this question up before and it's also been a few years since it was posted. I was wondering if anyone knew if it was possible to install EQEMU on a Raspberry Pi 3 system running the latest version of Raspian, (Jessie / wPixel or newer), would anyone have any information on this?

Here are the latest specs on the Pi 3 pulled from the Org's website:

https://www.raspberrypi.org/products...-pi-3-model-b/

RASPBERRY PI v3 SPECIFICATIONS
Quad Core 1.2GHz Broadcom BCM2837 64bit CPU
1GB RAM
BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board
40-pin extended GPIO
4 USB 2 ports
4 Pole stereo output and composite video port
Full size HDMI
CSI camera port for connecting a Raspberry Pi camera
DSI display port for connecting a Raspberry Pi touchscreen display
Micro SD port for loading your operating system and storing data
Upgraded switched Micro USB power source up to 2.5A

To that end, does anyone have iron clad system requirements for either Windows or Linux based EQEMU Server operation? I searched the forums and only found a couple mentions that were actually for MySQL server system requirements and another with suggested bandwidth requirements for differing quantities of clients to play on said server.

Thank you in advance for any information or guidance.
-Nightspire

iceflame 04-08-2018 10:36 AM

I have successfully installed eqemu in RPi3 with Linux installer.
There are 3 key points to let it run without error.
1 is for RPi, and 2 are for ARM Arch.
1. Enlarge swap memory for compile. Original is 100M, I enlarged to 2G.
2. Fix the code in embperl.cpp for prevent segment fault (ERRSV).
3. Fix float operation by memcpy function for prevent signal SIGBUS, Bus error.
(zone/map.cpp,common/misc_function.h,common/base_packet.h)

I have completed most quests in tutorial zone,
and traveled to some zones to do some newbie quests with bots.

pi@everquest:/home/eqemu/server_source_bots $ uname -a
Linux everquest 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

top - 22:39:59 up 2 days, 22:58, 2 users, load average: 0.11, 0.12, 0.09
Tasks: 159 total, 1 running, 158 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.7 us, 2.5 sy, 0.0 ni, 95.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 949580 total, 83808 free, 444220 used, 421552 buff/cache
KiB Swap: 1918972 total, 1812040 free, 106932 used. 444952 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3778 pi 20 0 6460 2864 2376 R 0.7 0.3 0:00.19 top
10564 eqemu 20 0 174284 12528 9244 S 0.7 1.3 3:00.12 world
10560 eqemu 20 0 5328 3900 2984 S 0.3 0.4 1:20.25 perl
10574 eqemu 20 0 250464 76384 66404 S 0.3 8.0 0:54.19 zone
10582 eqemu 20 0 250464 76372 66392 S 0.3 8.0 0:53.75 zone
10584 eqemu 20 0 250464 76428 66448 S 0.3 8.0 0:53.89 zone
10591 eqemu 20 0 250464 76448 66468 S 0.3 8.1 0:53.70 zone
10595 eqemu 20 0 250464 76288 66308 S 0.3 8.0 0:53.82 zone
10599 eqemu 20 0 250464 76468 66488 S 0.3 8.1 0:53.22 zone
10605 eqemu 20 0 272344 112348 80448 S 0.3 11.8 5:33.12 zone
10609 eqemu 20 0 262560 102136 79924 S 0.3 10.8 1:27.42 zone
10614 eqemu 20 0 250464 76336 66356 S 0.3 8.0 0:53.21 zone
10617 eqemu 20 0 250464 76376 66396 S 0.3 8.0 0:53.65 zone
10620 eqemu 20 0 250464 76440 66460 S 0.3 8.0 0:54.01 zone
10631 eqemu 20 0 250464 76332 66352 S 0.3 8.0 0:54.01 zone
10651 eqemu 20 0 250464 76372 66392 S 0.3 8.0 0:53.39 zone
10656 eqemu 20 0 250464 76364 66384 S 0.3 8.0 0:53.30 zone

Arune01 09-08-2018 01:54 PM

Hate to Rez an old thread but I have been working on a compile myself. Cannot seem to get it up. If I just gave you a RPi online 24/7 - could you help with this? I have a few of them so setting one online isn’t a big deal/dedicating it for eqemu dev.

iceflame 09-09-2018 09:44 AM

1. swap file: /etc/dphys-swapfile
https://www.raspberrypi.org/forums/v...ic.php?t=46472
2. ERRSV: embperl.cpp
Modify the code:
if(SvTRUE(ERRSV))
to:
if((count == 0) && (SvTRUE(ERRSV)))
3. memcpy: many files, use memcpy for float
example:
float x;
float y;
float z;
//float x = *(float*)buf;
memcpy(&x,buf,sizeof(float));
buf += sizeof(float);
//float y = *(float*)buf;
memcpy(&y,buf,sizeof(float));
buf += sizeof(float);
//float z = *(float*)buf;
memcpy(&z,buf,sizeof(float));
buf += sizeof(float);

Oggy 10-06-2018 01:39 PM

Iceflame,

I was digging around and realized today that you could potentially run an EQ client on RPi 3b+ using ExaGear + WINE.

So RPi uses ARM and EQ needs x86 processor.

ExaGear lets you install x86 on ARM processor with Wine.

Direct quote from their website:
"With Eltechs ExaGear Desktop you can run Intel x86 applications on your ARM-based Mini PC simultaneously with common native ARM applications. You can even run Windows applications on your ARM Mini PC using x86 Wine. ExaGear is a virtual machine that allows you to make your ARM device more flexible, combining programs with different architecture in one system. It is like QEMU but 5 times faster!"

Has anyone done this? If not...could we??

Imagine it...

Step 1) RPi#1 - EQEMU Server
Step 2) RPi#2 - EQ Client
Step 3) ...
Step 4) Profit.

N0ctrnl 10-10-2018 02:16 AM

distcc works to compile it too. Still have to increase the swap, but it'll shave quite a bit of time off the compile.

Granted, once it's up it runs terribly, but hey :)

ntsnts 07-16-2019 09:27 AM

Hi guys,
Sorry to revive a long dead thread,
but would it be possible for someone to post the binaries compiled for raspberry for the latest Eqemu release ? maybe just the modified files would be enough.
I tried following the suggestions from iceflame to do it myself but i am not a developer so this is out of my reach.

The latest raspberry pi 4 have lots of horsepower so it would be perfect as
a home toy to run eqemu ( max 2 clients ) maybe with an external database ( to avoid burning the sd card ).

Thanks to anyone wiling to help me.

cheers

joligario 07-16-2019 12:17 PM

In the next few weeks, I planned on playing around with this on my 3b+.

joligario 08-22-2019 09:01 PM

Did a successful manual build on my 3b+ today. Haven't confirmed if it runs with no issues yet or not...

hayward6 02-22-2020 11:45 AM

One of the reasons I feel this idea hasn't exactly taken off is due to the fact the largest expense to playing on an Everquest Emulator, is the client laptop or computer itself. Because we can setup the emulator on that same device and then run it locally we literally don't need to spend a dime on additional hardware. I currently run my server on a micro PC with a Corei7 processor and 64GB's of Ram and SSD. It's tiny, but it is a bit pricey. The Rasberry Pi argument is all about the hobby of it and seeing if it can be done. I have a couple units in stock, so I may start dabbling in it, but it's important to allow the emulator to run as it does today, or you risk needing to do a lot of development. So the first hurdle is how to run Native Linux on a Rasberry Pi? I know esxi has been setup on a Pi before, and that could simplify things.

joligario 11-10-2021 02:10 PM

Built/ran on 3B+ using fresh arm64 Raspbian Bullseye install last night. Only needed to increase swap size.

Rikon 02-15-2022 06:34 PM

No joy for me on Raspberry 4. Plan to play with it a bit.

joligario 02-15-2022 06:38 PM

Not sure what problems you are having, but recommend limiting cores on build.

Rikon 02-26-2022 04:40 PM

Quote:

Originally Posted by joligario (Post 267804)
Not sure what problems you are having, but recommend limiting cores on build.

My post wasn't helpful. Once I get back home and fire it up, I'll try to capture the issues. I'll also limit cores when building.

Freejack 02-26-2022 08:19 PM

Quote:

Originally Posted by cavedude (Post 224646)
The source for the crypto cannot be released, and those of us who have it do not have access to an ARM device that can run Linux. Just Android or iOS. I'm not sure if there is some sort of emulation, but if there is if somebody could get me an image with ARM Linux and the development environment already setup, I can attempt to compile the crypto and upload it to git.

I can't spend a lot of time on it, but if somebody can do the leg work with emulation and setting the environment up, I'll gladly compile the lib.

qemu which is a vm can be run on windows,mac, or linux. If you need a compile environment and can emulate arm, arm 64. Honestly it can do more than most out there. I just started using it. performance using kvm is almost bare metal performance.

Also you can use it to compile the server on your pc for the PI. just a thought.

joligario 06-11-2022 06:41 PM

You now need a bigger swap - recommend 3GB.


All times are GMT -4. The time now is 10:42 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.