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

sync0310-bananapi4-new #168

Closed
wants to merge 29 commits into from
Closed

sync0310-bananapi4-new #168

wants to merge 29 commits into from

Conversation

rmandrad
Copy link
Owner

@rmandrad rmandrad commented Oct 3, 2024

Thanks for your contribution to OpenWrt!

To help keep the codebase consistent and readable,
and to help people review your contribution,
we ask you to follow the rules you find in the wiki at this link
https://openwrt.org/submitting-patches

Please remove this message before posting the pull request.

nbd168 and others added 29 commits October 2, 2024 12:39
Fixes potential crashes in various drivers when checking the status of
interfaces that are down

Signed-off-by: Felix Fietkau <[email protected]>
714e419 iwinfo: fix EHT mode reporting for STA interfaces
7eed433 devices: add device id for MediaTek MT7996e

Signed-off-by: John Crispin <[email protected]>
b610860 Merge pull request openwrt#223 from jow-/nl80211-add-eht-attributes
4e0456b nl80211: add EHT mac/phy capabilities
c938ee9 Merge pull request openwrt#218 from jonasjelonek/add-ioctl
56ebeec fs: add ioctl() file method
d0f423b Merge pull request openwrt#221 from mikma/fix-getenv
86f1121 lib: test if call to getenv() destroys environ
7af80d9 lib: use copy of environ pointer in getenv()
6ea37c8 ci: bump upload-artifact to v3
26d7292 Merge pull request openwrt#214 from jow-/ucode-test-runner
fbabec4 tests: replace test runner shell script with ucode implementation
e391ef5 main: prevent invalid memory access when executing empty stdin
b391fd7 Merge pull request openwrt#211 from jow-/hwsim-support
bc13278 nl80211: support the MAC80211_HWSIM netlink protocol family
f5b5a58 nl80211: drop unused structure members from connection context
f6ea6fc nl80211: support conversion from/to struct array attributes
115a84f nl80211: gracefully handle illegal netlink error code

Signed-off-by: John Crispin <[email protected]>
Add option to enable 802.11BE support.

Signed-off-by: Janusz Dziedzic <[email protected]>
In file included from hostapd-wpad-basic-mbedtls/hostapd-2024.03.09~695277a5/src/ap/ubus.h:11,
                 from hostapd-wpad-basic-mbedtls/hostapd-2024.03.09~695277a5/src/ap/hostapd.h:21,
                 from main.c:26:
hostapd-2024.03.09~695277a5/src/ap/sta_info.h: In function 'ap_sta_is_mld':
hostapd-2024.03.09~695277a5/src/ap/sta_info.h:425:20: error: invalid use of undefined type 'struct hostapd_data'
  425 |         return hapd->conf->mld_ap && sta && sta->mld_info.mld_sta;
      |                    ^~

Signed-off-by: Janusz Dziedzic <[email protected]>
Allow to configure 80211BE.

Signed-off-by: Janusz Dziedzic <[email protected]>
For EHT320 we should also enable HE160.

Signed-off-by: Janusz Dziedzic <[email protected]>
Build hostapd with 11BE support.

Signed-off-by: Janusz Dziedzic <[email protected]>
Check if EHT/11BE supported, configure in board.json
and config/wireless.

Signed-off-by: Janusz Dziedzic <[email protected]>
fbaca4b cache: improve update call by doing a full refresh probe
93c9036 dns: reply to A/AAAA questions for additional hostnames

Signed-off-by: John Crispin <[email protected]>
Introduce new uci-default functions:
 - ucidef_set_wireless band ssid [encryption] [key]
 - ucidef_set_country cc

They are supposed to be used in /etc/board.d/* scripts to define
board-specific defaults for wireless.

Signed-off-by: Daniel Golle <[email protected]>
Signed-off-by: John Crispin <[email protected]>
Introduce new uci-default functions:
     - ucidef_set_root_password_hash [hash]
     - ucidef_set_root_password_plain [plaintext]
     - ucidef_set_ssh_authorized_key [ssh key]

Signed-off-by: John Crispin <[email protected]>
Introduce new uci-default functions:
	- ucidef_set_timezone TZ

Signed-off-by: John Crispin <[email protected]>
…n use

Introduce new uci-default functions:
	- ucidef_set_wireless_mac_count [count]

Signed-off-by: John Crispin <[email protected]>
This allows /etc/board.d/* scripts to use values from the uboot environment.

Signed-off-by: John Crispin <[email protected]>
This tool will load the uboot environment to /var/run/uboot-env/. This allows
more efficient use when accessing multiple variables.

Signed-off-by: John Crispin <[email protected]>
…nment

This allows loading default wifi credentials, passwords and ssh keys on
firstboot.

Signed-off-by: John Crispin <[email protected]>
Write the ssh authorized key to /etc/dropbear/ssh_authorized_keys if present
inside boad.json.

Signed-off-by: John Crispin <[email protected]>
Add code to set plain password or put the hash into /etc/shadow.

Signed-off-by: John Crispin <[email protected]>
Indicate stationary AP and set default 6G regulatory power type to indoor

Signed-off-by: Felix Fietkau <[email protected]>
Hardware specification
----------------------

* RTL8380M SoC, 1 MIPS 4KEc core @ 500MHz
* 256MB DRAM
* 32MB NOR Flash
* 8 x 10/100/1000BASE-T ports
* 2 x SFP ports
* Power LED, Fault LED
* Reset button on front panel
* UART (115200 8N1) via populated standard pin header marked JP1

TODO: The SFP ports use a shared SCL GPIO that the driver cannot handle.
The left SFP port (lan9) is defined and fully functional while the laser
on the right SFP port (lan10) is off by default.

UART pinout
-----------

[o]ooo|JP1
 | ||`------ GND
 | |`------- RX
 | `-------- TX
 `---------- Vcc (3V3)

Installation using OEM webinterface
-----------------------------------

1. Make sure you are running OEM firmware in secondary slot
2. Install squashfs-factory.imag to primary slot by upload via http

Installation using serial interface
-----------------------------------

1. Press "a" "c" "p" during message "Enter correct key to stop autoboot"
2. Load image with "upgrade runtime <TFTP IP>:squashfs-sysupgrade.bin" command
3. Switch to primary slot with "setsys bootpartition 0"
4. Store config with "savesys"
5. Boot the image with `boota` command

Dual-boot with stock firmware using writable u-boot-env
-------------------------------------------------------

From stock to OpenWrt / primary image 1 (CLI as admin):
   - > boot system image1
   - > reboot

From OpenWrt to stock / boot image 2: (shell as root)
   - # fw_setsys bootpartition 1
   - # reboot

Debrick using serial interface
------------------------------

1. Press "a" "c" "p" during message "Enter correct key to stop autoboot"
2. Load vendor image with "upgrade runtime <TFTP IP>:LGS310xxxxx.imag"
3. switch to primary partition "setsys bootpartition 0"
4. safe config "savesys"

Further documentation
---------------------
See https://openwrt.org/toh/linksys/lgs352c

It has been developed and tested on device with v1 revision.

Signed-off-by: Markus Stockhausen <[email protected]>
Link: openwrt#16068
[Add missing 'w' in name of firmware partition]
Signed-off-by: Sander Vanheule <[email protected]>
These patches have been added in linux v6.12 release.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
@github-actions github-actions bot added the kernel label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants