Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > You cannot do this. > > > Code: > > > pcp_make_module_extension -k 5.10-42-pcpTEST -e 88XXauTEST > > > > > The kernel name that you use in the build scripts, must match the name > of the kernel shown when you run `uname -r` in pcp8. WEhich for a > pizero is `5.10.42-pcpCore` You have to use that kernel name (-k > 5.10.42-pcpCore) in all of the build scripts. Yes, I know that. I was simply testing the pcp_make_module_extension script output, while avoiding any running kernel modules. paul- wrote: > You can put that exact name in onboot.lst, but if you use > 88XXau-KERNEL.tcz. The next time you build the driver for the next > kernel, you won't have to edit onboot.lst. > > One other point, if you are building the driver for the current running > kernel, you can omit the -k option Fact is, I had 88XX-KERNEL.tcz in my onboot, and the extension did not load. Changed onboot to 88XX-5.10.42-pcpCore.tcz and it worked. I thought the 88XX-KERNEL.tcz output was a script bug, not a pCP/TinyCore feature. It's clear to me now that it is intentional. But it's also clear that the KERNEL convention did not work in my pCP 8.0.0 on a B+. I'll just have to remember all this stuff next time there's a kernel upgrade, thanks. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
You cannot do this. Code: pcp_make_module_extension -k 5.10-42-pcpTEST -e 88XXauTEST The kernel name that you use in the build scripts, must match the name of the kernel shown when you run `uname -r` in pcp8. WEhich for a pizero is `5.10.42-pcpCore` You have to use that kernel name (-k 5.10.42-pcpCore) in all of the build scripts. The correct usage is Code: pcp_make_module_extension -k 5.10.42-pcpCore -e 88XXau (The name listed in the -e does not matter one bit, it just needs to be a name) The name of the extension will then be 88XXau-5.10.42-pcpCore.tcz. You can put that exact name in onboot.lst, but if you use 88XXau-KERNEL.tcz. The next time you build the driver for the next kernel, you won't have to edit onboot.lst. One other point, if you are building the driver for the current running kernel, you can omit the -k option piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > Im not following, because -KERNEL is precisely what should be in > onboot. The word KERNEL gets replaced in the extension loader by the > running kernel name. I'm missing something here, because my 8.0.0 system did not load the extension until after I changed onboot from 88XX-KERNEL.tcz to 88XX-5.10.42-pcpCore.tcz. I just re-downloaded and ran the script again on my pCP 8 system: Code: tc@piCorePorch:/mnt/mmcblk0p2/tce/realtek-driversrc/rtl8812au$ ~/.local/bin/pcp_ make_module_extension -k 5.10-42-pcpTEST -e 88XXauTEST [ INFO ] Building kernel modules extension: 88XXauTEST-5.10-42-pcpTEST [ INFO ] Building module for kernel version: 5.10-42-pcpTEST [ INFO ] Loading Build dependancies [ INFO ] Loaded compiletc... [ INFO ] Loaded squashfs-tools... [ INFO ] Loaded perl5... [ INFO ] Loaded openssl-dev... [ INFO ] Loaded git... [ INFO ] Loaded bash... [ INFO ] Timestamp for driver detection: Sep 25 09:40 [ INFO ] Installing driver from /mnt/mmcblk0p2/tce/realtek-driversrc/rtl8812au install -p -m 644 88XXau.ko /lib/modules/5.10-42-pcpTEST/kernel/drivers/net/wireless/ /sbin/depmod -a 5.10-42-pcpTEST depmod: WARNING: could not open modules.order at /lib/modules/5.10-42-pcpTEST: No such file or directory depmod: WARNING: could not open modules.builtin at /lib/modules/5.10-42-pcpTEST: No such file or directory tar: empty archive tar: can't open '/tmp/mod.tar': No such file or directory [ INFO ] If you see depmod warnings above, they can be ignored [ INFO ] The contents of extension are: Parallel unsquashfs: Using 1 processor 0 inodes (0 blocks) to write drwxr-xr-x tc/staff 3 2021-09-25 09:44 squashfs-root [ INFO ] The extension can be found at /tmp/88XXauTEST-5.10-42-pcpTEST.tcz [ INFO ] move 88XXauTEST-5.10-42-pcpTEST.tcz and 88XXauTEST-5.10-42-pcpTEST.tcz.md5.txt to /mnt/mmcblk0p2/tce/optional [ INFO ] Then edit /mnt/mmcblk0p2/tce/onboot.lst and add 88XXauTEST-KERNEL.tcz to the list. I still think the script should output (in this test case) "88xxauTEST-5.10-42-pcpTEST.tcz" on the last line. At least in my case, when "88XX-KERNEL.tcz" was in onboot.lst, my system never loaded any wireless drivers. I got wireless only after changing it to "88XX-5.10.42-pcpCore.tcz" . Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Im not following, because -KERNEL is precisely what should be in onboot. The word KERNEL gets replaced in the extension loader by the running kernel name. Yes it means the new extension wont mount under the old kernel ..but thats of no consequence, since only matching kernel names will actually load. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Braklet wrote: > > Problem: I fumble-fingered my onboot.lst entry, so it couldn't read my > new WiFi driver extension. Chalk this up to pilot error, duh. Don't know how much of my own ignorance I want to put on display, but I have a related script change request and welcome further discussion. I ran into a couple issues with the driver build based on use of the "KERNEL" abstraction in instructions and script output. My problem is that I added "88XX-KERNEL.tcz" to my tce/onboot.lst, since that's what pcp_make_module_extension suggested. So, can you change this line: https://github.com/piCorePlayer/pCP-Kernels/blob/master/pcp_make_module_extension#L26 from Code: ONBOOTNAM="$EXT-KERNEL.tcz" TO Code: ONBOOTNAM="$EXTNAM.tcz" since "EXTNAM=$EXT-$KERNELVER" is exactly what's needed in onboot.lst? I just ran a quick little test on my pCP and that output looks right: Code: tc@piCorePorch:~/.local/bin$ ./pcp_make_module_extension -k 4.15.30-pcpRLR -e 88xxRR [ INFO ] The extension can be found at /tmp/88xxRR-4.15.30-pcpRLR.tcz [ INFO ] move 88xxRR-4.15.30-pcpRLR.tcz and 88xxRR-4.15.30-pcpRLR.tcz.md5.txt to /mnt/mmcblk0p2/tce/optional [ INFO ] Then edit /mnt/mmcblk0p2/tce/onboot.lst and add 88xxRR-4.15.30-pcpRLR.tcz to the list. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Restarted with my 8.0.0 SD, monitor and KB. The extension loading phase was MUCH faster than with my 7.0.1 SD, leading me to believe something critical is not loading. Console output reflects my migrated 7.0.1 configuration in 8.0.0. The system thinks it enables WiFi and wlan0. Console keeps "waiting for network" and printing '.'. lsusb recognizes my Edimax WiFi USB dongle correctly. lsmod shows NO wireless drivers at all. modprobe -a restarted things, got rid of the constant '.', but still no wireless drivers. Will update this post as I learn more. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > > Did you make this change to the driver source when you downloaded it? > https://github.com/aircrack-ng/rtl8812au#for-raspberry-rpi I followed your README here https://github.com/piCorePlayer/pCP-Kernels The result is the same: all Makefile CONFIG_PLATFORM* options are n except for CONFIG_PLATFORM_ARM_RPI = y I want to try loading my pCP 8 SD with a monitor/KB just to see what's going on before I try anything else. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
That's just a piCore think as to why modules are in usr/local/. there is a symlink that connects it back to /lib/modules/. You can put your driver anywhere in the tree under /lib/modules/5.10.42-pcpCore/...depmod tells the kernel where to find it. Did you make this change to the driver source when you downloaded it? https://github.com/aircrack-ng/rtl8812au#for-raspberry-rpi I can pm you a link to what I compiled to see if it helps. I have not been able to find my USB sticks that use this driver. Seems I put them all onto production machines, piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
I rebuilt my wireless driver extension on my pCP 7 system, installed and rebooted back into pCP 7. Here are the associated directories for both 7 and 8 kernels: Code: tc@piCorePorch:/$ sudo find / -name "*pcpCore*" -type d -print /lib/modules/5.10.42-pcpCore /lib/modules/5.4.83-pcpCore /tmp/tcloop/alsa-modules-5.4.83-pcpCore /tmp/tcloop/alsa-modules-5.4.83-pcpCore/usr/local/lib/modules/5.4.83-pcpCore /tmp/tcloop/wireless-5.4.83-pcpCore /tmp/tcloop/wireless-5.4.83-pcpCore/usr/local/lib/modules/5.4.83-pcpCore /tmp/tcloop/media-rc-5.4.83-pcpCore /tmp/tcloop/media-rc-5.4.83-pcpCore/usr/local/lib/modules/5.4.83-pcpCore /tmp/tcloop/88XXau-5.10.42-pcpCore /tmp/tcloop/88XXau-5.10.42-pcpCore/lib/modules/5.10.42-pcpCore find: /proc/8534: No such file or directory find: /proc/8536: No such file or directory /usr/local/lib/modules/5.4.83-pcpCore tc@piCorePorch:/$ There is definitely a new driver in the tcloop location, obviously not loaded into the running 5.4 kernel: Code: tc@piCorePorch:/tmp/tcloop/88XXau-5.10.42-pcpCore/lib/modules/5.10.42-pcpCore/kernel/drivers/net/wireless$ ls -al total 2258 drwxr-xr-x2 tc staff 32 Sep 24 10:23 ./ drwxr-xr-x3 tc staff 31 Sep 24 10:23 ../ -rw-r--r--1 tc staff 2311556 Sep 24 10:22 88XXau.ko I can't help but wonder if /lib/modules vs. /usr/local/lib/modules has an impact on future loading into the 5.10 kernel... I'll have to connect a monitor/KB before running the in-situ upgrade to pCP 8. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Braklet wrote: > > I expected to find a 8812au driver module in /lib/modules, but did not. > Is 8812au built into the pCP kernel? > Expanded my search, and found the associated driver module: /usr/local/lib/modules/5.4.83-pcpCore/kernel/drivers/net/wireless/realtek/rtl8812au /usr/local/lib/modules/5.4.83-pcpCore/kernel/drivers/net/wireless/realtek/rtl8812au/8812au.ko Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Here is the specific USB WiFi dongle model I use: https://www.edimax.com/edimax/merchandise/merchandise_detail/data/edimax/au/wireless_adapters_ac600_dual-band/ew-7811utc I fired up my pCP 7, the dongle works great. Here's some driver-related stuff: dmesg: [4.652782] usb 1-1.3: new high-speed USB device number 4 using dwc_otg [4.783956] usb 1-1.3: New USB device found, idVendor=7392, idProduct=a812, b cdDevice= 2.00 [4.783987] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber =3 [4.784006] usb 1-1.3: Product: Edimax AC600 USB [4.784024] usb 1-1.3: Manufacturer: Realtek [4.784041] usb 1-1.3: SerialNumber: 00e04c01 [ 145.892993] usbcore: registered new interface driver 8812au lsusb: Bus 001 Device 004: ID 7392:a812 lsmod: 8812au 1454080 0 cfg80211 671744 1 8812au I expected to find a 8812au driver module in /lib/modules, but did not. Is 8812au built into the pCP kernel? tc@piCorePorch:/lib/modules$ find . -name "*88*" -print tc@piCorePorch:/lib/modules$ Maybe that's a clue as to why pCP 8 is not loading the separate 88XX driver? Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > > lsmod > > and then run dmesg, and look towards the end, there should be a section > that shows the detection of the wifi chipeset. Need to see the USB > identifiers. : Thanks for the response, sorry for the delay. (My pCP is remote and not always accessible.) Digging into the driver install was my next plan, and yes the USB ID is key. I have been through this before on x86 Ubuntu and I am pretty sure the aircrack-ng 8812au driver is the one I need (88XX) but I am not sure why it isn't loading in my pCP 8 setup. I now have two separate SD images (a working 7 and 8), a debug display and USB keyboard, as well as pCP proximity. So I plan to dig into this later today or over the weekend. Will report back on what I find, thanks again. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
This chipset does not use firmware, so that is of no consequence. I think at this point, we need to validate which driver you were actually using. Assuming your pCP7 image is still working. Can you post the output of lsmod and then run dmesg, and look towards the end, there should be a section that shows the detection of the wifi chipeset. Need to see the USB identifiers. : piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
I believe you need to load wifi firmware extensions first before wireless_tools.tcz. Note: The order was important originally, I am only assuming it still is! Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Extension name does not matter. Really need a keyboard and monitor to connect and see what is going on. Ive not been able to test the driver I built. All of my sticks I that use this driver are at work. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Braklet wrote: > > Do you think it's worth rebuilding my extension using "-e 88XXau" ? I tried it, no change. No LED activity from the WiFi USB dongle. Have to ponder my next course of action. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul-1, is the extension name critical in loading? I used "88XX" as my extension name, and got these extensions as a result: 88XX-5.10.42-pcpCore.tcz 88XX-5.10.42-pcpCore.tcz.md5.txt But the actual driver name is "88XXau.ko" in the contents: D:\Devices\Raspberry Pi\piCorePorch-Images\PCP-8812au\88XX-5.10.42-pcpCore.tcz\lib\modules\5.10.42-pcpCore\kernel\drivers\net\wireless\88XXau.ko Do you think it's worth rebuilding my extension using "-e 88XXau" ? I'm completely clueless about how pCP chooses to install these extensions during boot. It's clear that the kernel ID is important, maybe driver name too? Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Sadly, my wireless drivers didn't work after the 8.0.0 upgrade. The LEDs on my pCP Pi B+ showed CPU activity, but the WiFi dongle never recovered any LED activity, indicating no drivers. I'm pulling an SD image now, in case I want to debug further. I will restore the 7.0.1 image I took a couple days ago to recover pCP. Pondering debug options, I might be able to scrounge a WiFi-Ethernet bridge, or drag the pCP box into the garage for local access. Not sure what's going on with the kernel modules right now. I'll have to stick with 7.0.1 for the time being, but if I want to upgrade the easiest solution is probably to find another USB dongle natively supported by the kernel. I pulled the 7.0.1 wireless extension archives and will extract contents to see what drivers are available. Shucks... Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > > Then obviously move it to the proper location. Hi paul-1, your instructions worked a treat. Here's what I now have in /mnt/mmcblk0p2/tce/optional: Code: tc@piCorePorch:/mnt/mmcblk0p2/tce/optional$ ls -al 88* -rw-r--r--1 tc staff 954368 Sep 19 08:56 88XX-5.10.42-pcpCore.tcz -rw-r--r--1 tc staff 59 Sep 19 08:56 88XX-5.10.42-pcpCore.tcz.md5.txt md5sums match and all, I did not check the internal contents of the archive since your build script output matched your quote. Here is my onboot.lst: Code: tc@piCorePorch:/mnt/mmcblk0p2/tce$ cat onboot.lst crda.tcz firmware-atheros.tcz firmware-brcmwifi.tcz firmware-ralinkwifi.tcz firmware-rpi-wifi.tcz firmware-rtlwifi.tcz pcp-lirc.tcz pcp.tcz pigz.tcz wireless_tools.tcz wpa_supplicant.tcz 88XX-5.10.42-pcpCore.tcz pcp-7.0.1-www.tcz Is this state safe to run the 8.0.0 in-situ update? I know I will have to rerun the manual build again after a kernel update, but will the in-situ scripts continue warning us? Don't want to be caught unawares, like I said my pCP is headless. Thanks again, very much! Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > The wifi driver does indeed take forever to compile on a piZero. Anyway > I found the problem > I will give this a go tomorrow. Thanks very much, paul! I do appreciate your help with this, pCP allows me to maintain my now decades-old LMS ecosystem. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
The wifi driver does indeed take forever to compile on a piZero. Anyway I found the problem Download new copies of the build scripts from the github. To avoid recompiling do this. sudo mkdir -p /lib/modules/5.10.42-pcpCore sudo ln -s /lib/modules/5.10.42-pcpCore/build touch /tmp/mark cd to touch 88XXau.ko pcp_make_module_extension -k 5.10.42-pcpCore -e 88XXau You should have a good extension now. The contents are listed at the end of the build script. Code: [ INFO ] The contents of extension are: Parallel unsquashfs: Using 1 processor 1 inodes (565 blocks) to write drwxr-xr-x tc/staff 26 2021-09-18 10:54 squashfs-root drwxr-xr-x tc/staff 30 2021-09-18 10:54 squashfs-root/lib drwxr-xr-x tc/staff 38 2021-09-18 10:54 squashfs-root/lib/modules drwxr-xr-x tc/staff 29 2021-09-18 10:54 squashfs-root/lib/modules/5.10.42-pcpCore drwxr-xr-x tc/staff 30 2021-09-18 10:54 squashfs-root/lib/modules/5.10.42-pcpCore/kernel drwxr-xr-x tc/staff 26 2021-09-18 10:54 squashfs-root/lib/modules/5.10.42-pcpCore/kernel/drivers drwxr-xr-x tc/staff 31 2021-09-18 10:54 squashfs-root/lib/modules/5.10.42-pcpCore/kernel/drivers/net drwxr-xr-x tc/staff 32 2021-09-18 10:54 squashfs-root/lib/modules/5.10.42-pcpCore/kernel/drivers/net/wireless -rw-r--r-- tc/staff2310956 2021-09-18 10:53 squashfs-root/lib/modules/5.10.42-pcpCore/kernel/drivers/net/wireless/88XXau.ko Then obviously move it to the proper location. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Give me a chance to run through it. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
And if it isn't obvious, THANK YOU for all the work you have put into pCP, and dealing with all this stuff. Probably time for another project contribution... Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > I'm concerned about the error. It seems part of the install script from > the source package did not pickup the new kernel name, and used the > running kernel name. The extension may have no contents. However the > compiled driver should still be sitting on the persistent disk. I'm glad I looked, you are 100% correct, I ended up with an empty archive that 7Zip won't open. 88XX-5.10.42-pcpCore.tcz is only 4K. The new modules are still on my SD card though: Code: tc@piCorePorch:/mnt/mmcblk0p2/tce/realtek-driversrc/rtl8812au$ ls -al total 4815 drwxrwxr-x 12 tc staff 1024 Sep 17 15:32 ./ drwxrwxr-x3 tc staff 1024 Sep 17 13:35 ../ -rw-rw-r--1 tc staff 296 Sep 17 15:32 .88XXau.ko.cmd -rw-rw-r--1 tc staff10351 Sep 17 15:32 .88XXau.mod.cmd -rw-rw-r--1 tc staff25022 Sep 17 15:32 .88XXau.mod.o.cmd -rw-rw-r--1 tc staff10190 Sep 17 15:32 .88XXau.o.cmd -rw-rw-r--1 tc staff 269 Sep 17 15:32 .Module.symvers.cmd drwxrwxr-x7 tc staff 1024 Sep 17 13:37 .git/ drwxrwxr-x3 tc staff 1024 Sep 17 13:37 .github/ -rw-rw-r--1 tc staff 103 Sep 17 13:37 .gitignore -rw-rw-r--1 tc staff 223 Sep 17 15:32 .modules.order.cmd -rw-rw-r--1 tc staff 2311556 Sep 17 15:32 88XXau.ko -rw-rw-r--1 tc staff10209 Sep 17 15:32 88XXau.mod -rw-rw-r--1 tc staff11037 Sep 17 15:32 88XXau.mod.c -rw-rw-r--1 tc staff19432 Sep 17 15:32 88XXau.mod.o -rw-rw-r--1 tc staff 2292516 Sep 17 15:32 88XXau.o Is there any way for me to rerun the extension generator to bundle these in the correct pCP format? Thanks! Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > Rebooting is fine, since you are on 7.0.1. The new kernel drivers > would not be used anyway. I'm concerned about the error. It seems part > of the install script from the source package did not pickup the new > kernel name, and used the running kernel name. The extension may have > no contents. However the compiled driver should still be sitting on the > persistent disk. > > Looks like I need to try that procedure out again...different source > packages use different variables. It's quite annoying. > > > But yes please send me some notes, you are maybe user #5 that has tried > it(Or at least that made a comment). Most got through it fine, but > everyone reads code differently. I'm glad I checked the thread, was just getting ready to in-situ upgrade. Is there something I can check inside the archive to ensure that it's OK? Here are my notes on the Github README: Step 2, insert the kernel parameter into the run command: Code: pcp_prepare_kernel_src -k -s to make your following parameter explanation clearer, perhaps provide an example: Code: ~/.local/bin/pcp_prepare_kernel_src -k 5.10.42-pcpCore -s /mnt/mmcblk0p2/tce/kernelsrc Change Step 5 to: Code: cd ~/.local/bin/pcp_make_module_extension -k -e < extension name > e.g. Code: cd /mnt/mmcblk0p2/tce/ ~/.local/bin/pcp_make_module_extension -k 5.10.42-pcpCore -e 88XX Add an explanation that is anything you choose to identify your device driver. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Braklet wrote: > I have set up cross-compile environments for OpenWrt and work with Yocto > and buildroot occasionally, so I'm not completely clueless there. But I > have never worked with TinyCoreLinux or tried to build PiCorePlayer. > What's involved in your driver build environment? RPI has a cross compiler toolchain in this repo. https://github.com/raspberrypi/tools But I use a crosstool-ng built tool chain. Nothing fancy, just set the environment variable CROSS_COMPILE to the path/prefix of you toolchain. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Rebooting is fine, since you are on 7.0.1. The new kernel drivers would not be used anyway. I'm concerned about the error. It seems part of the install script from the source package did not pickup the new kernel name, and used the running kernel name. The extension may have no contents. However the compiled driver should still be sitting on the persistent disk. Looks like I need to try that procedure out again...different source packages use different variables. It's quite annoying. But yes please send me some notes, you are maybe user #5 that has tried it. Most got through it fine, but everyone reads code differently. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
I rebooted back into 7.0.1 with my new driver in onboot.lst, and wireless came back up. (This is a headless system, wifi only.) I will probably shut it down, take a SD card image, and then attempt a 8.0.0 in-situ upgrade. But I am still very interested in swapping to in-tree USB WLAN hardware, and perhaps an Ubuntu cross-compile environment if I stick with this Edimax dongle. Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
paul- wrote: > If you have an x86_64 ubuntu system, you could also cross compile the > driver. I use a x86_64 system to compile all of the pCP kernels. I have set up cross-compile environments for OpenWrt and work with Yocto and buildroot occasionally, so I'm not completely clueless there. But I have never worked with TinyCoreLinux or tried to build PiCorePlayer. What's involved in your driver build environment? Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Editing the quote... paul- wrote: > there is a chance you are running low of ram. > You can look at the drivers in the extension wireless-KERNEL.tcz and see > the list of drivers. > What are your wifi specs? I don't have a good feel of the AC and AX > chipsets that work. (Since I use the 8812au product too) I don't have > it compiled for armv6 though. I am not picky about wifi specs, my WLAN supports 2.4/5GHz, and AC. I have not tried to connect any old B clients, although I'm pretty sure I successfully connect G and N clients (and AC clients work great). As long as my pCP can stream music, serve its web pages, and let me SSH, then I'm happy. Build is now finished, I might have some updates for your README as I could not follow it verbatim. I just downloaded all the wireless-*.tcz from /mnt/mmcblk0p2/tce/optional/ and will take a look inside. Here is the output from your extension build script, I got an error that I believe I can ignore: Code: tc@piCorePorch:/mnt/mmcblk0p2/tce/realtek-driversrc/rtl8812au$ ~/.local/bin/pcp_ make_module_extension -k 5.10.42-pcpCore -e 88XX [ INFO ] Building kernel modules extension: 88XX-5.10.42-pcpCore [ INFO ] Building module for kernel version: 5.10.42-pcpCore [ INFO ] Loading Build dependancies [ INFO ] Timestamp for driver detection: Sep 17 13:02 [ INFO ] Installing driver from /mnt/mmcblk0p2/tce/realtek-driversrc/rtl8812au install -p -m 644 88XXau.ko /lib/modules/5.4.83-pcpCore/kernel/drivers/net/wireless/ install: can't create '/lib/modules/5.4.83-pcpCore/kernel/drivers/net/wireless/': Is a directory make: *** [Makefile:2253: install] Error 1 tar: empty archive tar: can't open '/tmp/mod.tar': No such file or directory [ INFO ] The contents of extension are: Parallel unsquashfs: Using 1 processor 0 inodes (0 blocks) to write drwxr-xr-x tc/staff 3 2021-09-17 15:33 squashfs-root [ INFO ] The extension can be found at /tmp/88XX-5.10.42-pcpCore.tcz [ INFO ] move 88XX-5.10.42-pcpCore.tcz and 88XX-5.10.42-pcpCore.tcz.md5.txt to /mnt/mmcblk0p2/tce/optional [ INFO ] Then edit /mnt/mmcblk0p2/tce/onboot.lst and add 88XX-KERNEL.tcz to the list. So at this point, I moved my 88XX*tcz files to /mnt/mmcblk0p2/tce/optional, and here is my onboot.lst: Code: tc@piCorePorch:/mnt/mmcblk0p2/tce$ cat onboot.lst crda.tcz firmware-atheros.tcz firmware-brcmwifi.tcz firmware-ralinkwifi.tcz firmware-rpi-wifi.tcz firmware-rtlwifi.tcz pcp-lirc.tcz pcp.tcz pigz.tcz wireless_tools.tcz wpa_supplicant.tcz 88XX-5.10.42-pcpCore.tcz pcp-7.0.1-www.tcz If not obvious, I am still on 7.0.1. I am thinking of rebooting as a test. Do you think that is safe? (I may image this SD card before attempting the 8.0.0 in-situ upgrade again.) I appreciate your help, thanks! Braklet's Profile: http://forums.slimdevices.com/member.php?userid=47269 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
If you have an x86_64 ubuntu system, you could also cross compile the driver. I use a x86_64 system to compile all of the pCP kernels. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] pCP 8.0.0 USB WiFi chipset with in-tree drivers?
Single core chips also have limited memory available, there is a chance you are running low of ram. Swap files are disabled by default. Perhaps remove nozswap from the command line. As for what's in the kernel, lists of drivers to chipsets to commercial products are not well maintained. You can look at the drivers in the extension wireless-KERNEL.tcz and see the list of drivers. What are your wifi specs? I don't have a good feel of the AC and AX chipsets that work. (Since I use the 8812au product too) I don't have it compiled for armv6 though. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=115160 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix