Skip to content
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

raspberry pi support ? #2

Open
pengyunchou opened this issue Jul 17, 2018 · 6 comments
Open

raspberry pi support ? #2

pengyunchou opened this issue Jul 17, 2018 · 6 comments

Comments

@pengyunchou
Copy link

No description provided.

@xinsnake
Copy link

I believe it can be quite challenging as the issue is raspberry pi has only 1 Ethernet port, and it's not 1Gbps either.

@stapelberg
Copy link
Contributor

At this point, I’m not looking to add any more supported platforms.

That said, I started development on a Raspberry Pi 3B with an Apple USB ethernet adapter, so it should be possible to run router7 in such a setup, possibly with a few changes. If you want to do the work, we can talk about getting pull requests merged to make this possible.

@stapelberg stapelberg added the help wanted Extra attention is needed label Oct 22, 2018
@stapelberg stapelberg removed the help wanted Extra attention is needed label Jun 18, 2020
@stapelberg
Copy link
Contributor

With gokrazy/kernel change gokrazy/kernel@88166bd, the required kernel modules for router7 are now available.

So, if you change e.g. the image Makefile target:

router7/Makefile

Lines 14 to 24 in 1250211

go install github.com/gokrazy/tools/cmd/gokr-packer
GOARCH=amd64 gokr-packer \
-gokrazy_pkgs=github.com/gokrazy/gokrazy/cmd/ntp,github.com/gokrazy/gokrazy/cmd/randomd \
-kernel_package=github.com/rtr7/kernel \
-firmware_package=github.com/rtr7/kernel \
-overwrite_boot=${DIR}/boot.img \
-overwrite_root=${DIR}/root.img \
-overwrite_mbr=${DIR}/mbr.img \
-serial_console=ttyS0,115200n8 \
-hostname=router7 \
${PKGS}

such that:

  1. GOARCH=arm64 is set instead of amd64 (for the Raspberry Pi vs. the PC Engines APU)
  2. -kernel_package=github.com/gokrazy/kernel
  3. -firmware_package=github.com/gokrazy/firmware

you should be able to run router7 on the Raspberry Pi just fine.


One caveat: even with the Raspberry Pi 4, which has a gigabit ethernet port as part of its system-on-chip, and USB3 ports to which you can connect an additional gigabit ethernet adapter, it proves tricky to get full gigabit speeds:

  1. using gokrazy.org, I get ≈500 Mbit/s: https://twitter.com/zekjur/status/1273513899187408897
  2. using Raspbian, I get ≈860 Mbit/s

The measured speed without the Raspberry Pi in the middle is ≈930 Mbit/s.

So, if your upstream connection is slower than 500 Mbit/s, running router7 on the Raspberry Pi 4 might be a good option for you.

That said, it’s still not a good option for me, so I won’t officially recommend doing so—if you’re willing to enter uncharted territory, let me know how it goes! :)

@matthyx
Copy link

matthyx commented Jun 8, 2022

Hi @stapelberg I think something like https://www.dfrobot.com/product-2242.html should work... if I can get my hands on a CM4 module, I will report back success (or lack of) here.

@stapelberg
Copy link
Contributor

Looks like a good option for the Raspberry Pi indeed. Looking forward to your report!

@matthyx
Copy link

matthyx commented Jun 10, 2022

For the moment it seems impossible to get one... maybe @geerlingguy can test it as a follow-up to https://www.jeffgeerling.com/blog/2021/two-tiny-dual-gigabit-raspberry-pi-cm4-routers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants