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

R6S: Fix port mapping. #8

Open
wants to merge 41 commits into
base: linux-6.6
Choose a base branch
from
Open

Conversation

JohanVlugt
Copy link

@JohanVlugt JohanVlugt commented Jul 31, 2024

First, thanks for the Rockchip images for Openwrt!

On the NanoPi R6S the ports are incorrectly mapped. This is the current situation (see screenshot).
The ports are currently mapped one shifted to the right.

The physical setup is WAN on the first port and the LAN 1 and 2.

port-r6s

The correct mapping that represents the physical ports should be:
eth2 to eth1
eth1 to eth0
eth0 to eth2.

This is how friendlywrt have set it up:

https://github.com/friendlyarm/friendlywrt/blob/master-v23.05/target/linux/rockchip/armv8/base-files/etc/board.d/02_network

	nanopi-r6s)
		ucidef_set_interface_wan 'eth2'
		ucidef_set_interface "lan" device  "eth1 eth0" protocol "static" ipaddr "192.168.2.1"
		;;
	*)
		ucidef_set_interface_lan 'eth0'
		;;

This is one of my first pull requests, sorry if it's not done on the correct location.

mj22226 and others added 30 commits July 27, 2024 06:29
Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
Import the license from:

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENCE.broadcom_bcm43xx

describing the redistribution rules for Broadcom proprietary
firmware(s).

Signed-off-by: Florian Fainelli <[email protected]>
Utilize the LibreELEC brcmfmac_sdio_firmware repository to add support
for the Bluetooth firmware and patch RAM which are necessary for the
Bluetooth adapter to work reliably and operate with the proper MAC
address.

Packages for the two most common BT adapters are created and more can be
added a long the way.

Signed-off-by: Florian Fainelli <[email protected]>
Enable brcmfmac-sdio-firmware-4345-bt by default to provide the
appropriate Bluetooth firmware/patch RAM for the Bluetooth controller on
Pi4 and derivatives.

Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
This patch adds support for FriendlyARM NanoPi NEO3

Specification
-------------
Soc:      RockChip RK3328
RAM:      1GB/2GB DDR4
LAN:      10/100/1000M Ethernet with unique MAC
USB Host: 1x USB3.0 Type A and 2x USB2.0 on 2.54mm pin header
MicroSD:  x 1 for system boot and storage
LED:      Power LED x 1, System LED x 1
Key:      User Button x 1
Fan:      2 Pin JST ZH 1.5mm Connector for 5V Fan
GPIO:     26 pin-header, include I2C, UART, SPI, I2S, GPIO
Power:    5V/1A, via Type-C or GPIO

Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
Signed-off-by: Marty Jones <[email protected]>
@mj22226 mj22226 force-pushed the linux-6.6 branch 5 times, most recently from 5d4583d to 2b4a323 Compare August 26, 2024 14:08
@xsetiadi
Copy link

xsetiadi commented Sep 1, 2024

can you build for orange pi5 (not the plus version) again?

@mj22226 mj22226 force-pushed the linux-6.6 branch 3 times, most recently from 84864cb to 6655994 Compare September 4, 2024 12:11
@mj22226 mj22226 force-pushed the linux-6.6 branch 2 times, most recently from 3b262a7 to b40ee63 Compare September 18, 2024 18:48
@mj22226 mj22226 force-pushed the linux-6.6 branch 2 times, most recently from 3ac87ef to 8a5031c Compare October 4, 2024 14:57
@mj22226 mj22226 force-pushed the linux-6.6 branch 2 times, most recently from d069b6e to fcc710d Compare November 8, 2024 16:26
@alcoheca
Copy link

Is this not already fixed with #4 ?

@oneplustest
Copy link

I rookie on github, I couldnt find the issue section, But Im using Nanopi r5s, Your Openwrt images nearly perfect, I could find the way when I use the lxc container, Consume alotof memory, I tried to limit memory on lxc but not work, Please fix that,
Thanks again

@oneplustest
Copy link

oneplustest commented Nov 20, 2024

Im using the 6.11.2 kernel version , Also if possible, I can disable the front led of nanopi r5s , But I couldnt disable led on the ethernet ,

@mj22226 mj22226 force-pushed the linux-6.6 branch 2 times, most recently from b088fc7 to ffd16d2 Compare November 21, 2024 05:07
@oneplustest
Copy link

I rookie on github, I couldnt find the issue section, But Im using Nanopi r5s, Your Openwrt images nearly perfect, I could find the way when I use the lxc container, Consume alotof memory, I tried to limit memory on lxc but not work, Please fix that, Thanks again

I think kernel not supported by default needs to be change some value for lxc cpu and memory restriction,

@mj22226 mj22226 force-pushed the linux-6.6 branch 3 times, most recently from c4f3ef5 to d0b9948 Compare December 14, 2024 19:52
@mj22226 mj22226 force-pushed the linux-6.6 branch 2 times, most recently from e7ee20c to a653460 Compare December 19, 2024 18:08
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

Successfully merging this pull request may close these issues.

8 participants