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

20220913 GRO-DROP-fix - master branch #52

Merged
merged 1 commit into from
Sep 14, 2022
Merged

20220913 GRO-DROP-fix - master branch #52

merged 1 commit into from
Sep 14, 2022

Conversation

Paraphraser
Copy link
Contributor

As reported in #50, trying to run ./scripts/cm4_lan7800.sh results in a build failure because GRO_DROP is not declared.

Searching https://linux-commits-search.typesense.org for GRO_DROP reveals that it has been removed:

torvalds/linux@38f7b44

Because GRO_DROP can now never be returned, the "GRO packet dropped" debug message can never be produced. The simplest fix is to remove the check and implicitly ignore the content of gro_result.

After making that change:

$ sudo ./scripts/cm4_lan7800.sh
Installed: /usr/src/linux-headers-5.15.61-v8+
make: Entering directory '/usr/src/linux-headers-5.15.61-v8+'
  CC [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan78xx.o
  LD [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.o
  MODPOST /home/pi/seeed-linux-dtoverlays/modules/lan7800/Module.symvers
  CC [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.mod.o
  LD [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.ko
make: Leaving directory '/usr/src/linux-headers-5.15.61-v8+'
'/home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.ko' -> '/lib/modules/5.15.61-v8+/extra/seeed/lan7800.ko'
------------------------------------------------------
Please reboot your device to apply all settings
Enjoy!
------------------------------------------------------

Fixes #50.

Signed-off-by: Phill Kelley 34226495+Paraphraser@users.noreply.github.com

As reported in #50, trying to run `./scripts/cm4_lan7800.sh` results in
a build failure because `GRO_DROP` is not declared.

Searching https://linux-commits-search.typesense.org for `GRO_DROP`
reveals that it has been removed:

   torvalds/linux@38f7b44

Because `GRO_DROP` can now never be returned, the "GRO packet dropped"
debug message can never be produced. The simplest fix is to remove the
check and implicitly ignore the content of `gro_result`.

After making that change:

```
$ sudo ./scripts/cm4_lan7800.sh
Installed: /usr/src/linux-headers-5.15.61-v8+
make: Entering directory '/usr/src/linux-headers-5.15.61-v8+'
  CC [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan78xx.o
  LD [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.o
  MODPOST /home/pi/seeed-linux-dtoverlays/modules/lan7800/Module.symvers
  CC [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.mod.o
  LD [M]  /home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.ko
make: Leaving directory '/usr/src/linux-headers-5.15.61-v8+'
'/home/pi/seeed-linux-dtoverlays/modules/lan7800/lan7800.ko' -> '/lib/modules/5.15.61-v8+/extra/seeed/lan7800.ko'
------------------------------------------------------
Please reboot your device to apply all settings
Enjoy!
------------------------------------------------------
```

Fixes #50.

Signed-off-by: Phill Kelley <34226495+Paraphraser@users.noreply.github.com>
@bigbearishappy bigbearishappy merged commit daa0e21 into Seeed-Studio:master Sep 14, 2022
@bigbearishappy
Copy link
Member

It's glad to see the fix code here. Thank you so much for your contribution.

@Paraphraser
Copy link
Contributor Author

You are welcome.

Open source! Everyone can help. 😎

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.

Fail to build lan78xx ethernet driver on Raspberry Pi OS lite (64 bit)
2 participants