thefloppydriver / pc2drc

Give your gamepad a new use!
GNU General Public License v2.0
60 stars 3 forks source link

Problems on Build Kernel Step 1 #1

Closed Special-Niewbie closed 2 years ago

Special-Niewbie commented 2 years ago

Describe the bug Hello @thefloppydriver ,

first of all congratulations for the project I love very much and I hope you are registered in the GBAtemp Forum, and if you have posted this news of this project there? Because in my opinion, this is a very important project and will make many people happy about (if you don't, I will do it for you).

Anyway, I am testing PC2DRC via a notebook that I use for testing, but unfortunately I can't go forward over to Stage 1 to build a new 5.11.22 kernel; and the error says (half in my language/ half in English) "impossible to read the module.order: File or Directory doesn't exist" ... and that I have to run the Make function before the Make install function. Any idea why about that (I try to post the picture below

To Reproduce Steps to reproduce the behavior:

  1. After start Stage 1, with frash installation of Ubuntu 20.04

Screenshots IMG_20220301_123624

Desktop (please complete the following information):

thefloppydriver commented 2 years ago

@Special-Niewbie That's really strange. I'll leave this issue open in case someone comes up with a good solution, but because I can't reproduce the error on my machine I'd suggest using another PC for this project because I can't guarantee that I'll have a fix for this anytime soon. Sorry for your troubles.

Special-Niewbie commented 2 years ago

@Special-Niewbie That's really strange. I'll leave this issue open in case someone comes up with a good solution, but because I can't reproduce the error on my machine I'd suggest using another PC for this project because I can't guarantee that I'll have a fix for this anytime soon. Sorry for your troubles.

It's okay man , no sorry, I just try to help here.

I will try with another PC.

Last question, in another PC, can I install and test it with latest Ubuntu Version 21.10 or I must to use the Ubuntu LTS 20.04 version?

thefloppydriver commented 2 years ago

@Special-Niewbie You can try with Ubuntu Version 21.10, nothing will break that can't be fixed, but just know that you'd be the first to try it ;)

I'll be supporting Ubuntu 22.04 LTS when Ubuntu 23.04 comes out.

thefloppydriver commented 2 years ago

@Special-Niewbie I added better error reporting to stage-1-kernel-patch. I suspect that your wireless driver ( #2 ) doesn't support mac80211. Would you mind cloning the repo again and running stage-1-kernel-patch to confirm this?

It should say something like, "No devices were using mac80211. You might not be using a compatible wifi interface"

Special-Niewbie commented 2 years ago

@Special-Niewbie I added better error reporting to stage-1-kernel-patch. I suspect that your wireless driver ( #2 ) doesn't support mac80211. Would you mind cloning the repo again and running stage-1-kernel-patch to confirm this?

It should say something like, "No devices were using mac80211. You might not be using a compatible wifi interface"

Ok, I'm downloading and testing right now..... But, I thought that the patch mac80211 was anyway apply in the first stage, this doesn't matter if compatible or not the hardware.....I was mistaken to thinking in this way?

Special-Niewbie commented 2 years ago

Okay, the results come out as you modify the coding, please watch the pic below:

IMG_20220308_112801.jpg

This it means that I need to suspend any testing, till I will not find the compatible mac80211 USB WiFi adapter hardware?

thefloppydriver commented 2 years ago

@Special-Niewbie I added better error reporting to stage-1-kernel-patch. I suspect that your wireless driver ( #2 ) doesn't support mac80211. Would you mind cloning the repo again and running stage-1-kernel-patch to confirm this? It should say something like, "No devices were using mac80211. You might not be using a compatible wifi interface"

Ok, I'm downloading and testing right now..... But, I thought that the patch mac80211 was anyway apply in the first stage, this doesn't matter if compatible or not the hardware.....I was mistaken to thinking in this way?

The kernel patch installs, but the final check in the script doesn't work because there aren't any mac80211 compatible devices installed. You can continue testing, but stage-3 and stage-4 won't work.

I just added a command line option to stage-2, --no-check-tsf

clone the repository again and run stage-0, then stage-1, then stage-2 BUT when you run stage-2 run it like this: sudo -E ./stage-2-build-modules.sh --no-check-tsf

thefloppydriver commented 2 years ago

@

@Special-Niewbie You don't need to suspend testing. The kernel patch creates a tsf file on all mac80211 compatible devices even if they don't support get_tsf. However, if you're using a device which doesn't use mac80211 at all (such as the device that you're using), the tsf file will not be created and the final check will fail.

running sudo -E ./stage-2-build-modules.sh --no-check-tsf skips the check for the tsf file (the script only does that check to make sure stage-1 worked (which it did) so removing it by passing --no-check-tsf is harmless.)

Special-Niewbie commented 2 years ago

@

@Special-Niewbie You don't need to suspend testing. The kernel patch creates a tsf file on all mac80211 compatible devices even if they don't support get_tsf. However, if you're using a device which doesn't use mac80211 at all (such as the device that you're using), the tsf file will not be created and the final check will fail.

running sudo -E ./stage-2-build-modules.sh --no-check-tsf skips the check for the tsf file (the script only does that check to make sure stage-1 worked (which it did) so removing it by passing --no-check-tsf is harmless.)

For me as soon we understand that the stages installation are working fine now, I'm okay.... anyway in the end if I cannot use any of my usb adapters I need to check to buy a new usb WiFi compatibile with it.

Thank you so much for supporting @thefloppydriver

thefloppydriver commented 2 years ago

@

@Special-Niewbie You don't need to suspend testing. The kernel patch creates a tsf file on all mac80211 compatible devices _even if they don't support gettsf. However, if you're using a device which doesn't use mac80211 at all (such as the device that you're using), the tsf file will not be created and the final check will fail. running sudo -E ./stage-2-build-modules.sh --no-check-tsf skips the check for the tsf file (the script only does that check to make sure stage-1 worked (which it did) so removing it by passing --no-check-tsf is harmless.)

For me as soon we understand that the stages installation are working fine now, I'm okay.... anyway in the end if I cannot use any of my usb adapters I need to check to buy a new usb WiFi compatibile with it.

Thank you so much for supporting @thefloppydriver

@Special-Niewbie Thanks for testing! I'm afraid that you'll have to go out of your way to buy a compatible wifi device :/

Special-Niewbie commented 2 years ago

@

@Special-Niewbie You don't need to suspend testing. The kernel patch creates a tsf file on all mac80211 compatible devices _even if they don't support gettsf. However, if you're using a device which doesn't use mac80211 at all (such as the device that you're using), the tsf file will not be created and the final check will fail. running sudo -E ./stage-2-build-modules.sh --no-check-tsf skips the check for the tsf file (the script only does that check to make sure stage-1 worked (which it did) so removing it by passing --no-check-tsf is harmless.)

For me as soon we understand that the stages installation are working fine now, I'm okay.... anyway in the end if I cannot use any of my usb adapters I need to check to buy a new usb WiFi compatibile with it.

Thank you so much for supporting @thefloppydriver

@Special-Niewbie Thanks for testing! I'm afraid that you'll have to go out of your way to buy a compatible wifi device :/

As soon I can support you with this amazing project, one usb to buy it's the minimum. But I need to wait and find it, if you have any other models to suggest me you are welcome to do it.

thefloppydriver commented 2 years ago

@Special-Niewbie https://www.walmart.com/ip/300Mbps-Wifi-Adapter-Black-Wireless-Network-Card-RT5572-2-4G-5G-Office-Dual-Band/270210880?wmlspartner=wlpa&selectedSellerId=101121245

You can find a whole bunch of the device that you need by looking here https://www.google.com/search?q=rt5572&tbm=shop

You want the ones that look like this image

and this image