-
Notifications
You must be signed in to change notification settings - Fork 35
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
Raspberry pi 4 update? #10
Comments
That's interesting, the pre-supplied image offered in the releases is based on Raspbian, which is backwards compatible to all previous editions of the Pi (pi0/w, pi1, pi2, pi3 etc.). If the current image does not work on the pi4, it would seem that the latest release may not be forward compatible with the pi4. Can you verify this by ensuring that the latest psx-pi-smbshare release image works on another device (pi0/w, pi1, pi2, pi3 etc.) and then use that same SD card with a pi4? I do not have a Raspberry Pi4 on hand to test, however, the setup script in this project should be capable of bootstrapping any device running a modern Debian based OS like Raspbian or Ubuntu. To do this:
Let me know if you encounter any issues, it should work^TM Assuming success here, I wonder if it makes more sense to move to a series of install steps based on the above rather than providing a pre-supplied image. The same steps could also be followed to update an existing install. Appreciate any feedback you provide here. |
I get; sudo: /etc/init.d/samba: command not found interface=wlan1 terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >' At the end of the installation. Full log here: https://pastebin.com/Eg3eU7MB Is there any way to fix it? Thanks! |
Looking at the logs it looks like you ran the setup script more than once, which is fine but is the reason you are seeing this:
This is because XLink Kai was already running at the time of execution and can basically be ignored. Aside from that, logs look good with exception of :
I assume this is due to I've stood up a branch which contains the suggested fix, i.e. changes references from /etc/init.d/samba to /etc/init.d/smbd. A better solution may exist using symlinks here, but we'll roll with this for now. Using your pi4 as-is, you should be able to try it out with (of course ignore the Xlink Kai Address already in use error): Note: The only difference from before is we are pulling from the smbd branch instead of master
This should work, if it does I'll go ahead and merge it in. Thank you again for posting detailed logs! |
Here's another attempt on a fresh install, installing over the top had the same effect I think. It gets up to "Kai Engine: The engine is rocking Thanks for your help! |
I've gone ahead an pulled the suggested changes to fix samba into master just now, I totally forgot that setup.sh references the master repo to pull configuration scripts so the previous fix to install from smbd branch would have given the same result. Try running the following again (this time from master), no need to use a fresh install, just re-run over existing.
Thank you for testing! |
Thanks! Now I get: Which looks fine ... But I'm not able to log in to the Samba server over Wi-fi. It throws up a login error in each case logging in with guest, or pi:raspberry. Is there a Samba log I could send that would help narrow that down? I can see the share on Mac/Iphone file sharing app, but not log into it. |
Ps2 over Ethernet gets the same error; 300 cant connect to SMB |
Actually, running ./samba-init.sh got it to complete the mount on my mac; pi@raspberrypi:~ $ ./samba-init.sh Then I could edit the /etc/samba/smb.conf file to change the path from /share to /media/sda1 - I guess that was the problem not letting the connection happen. I restarted samba and it works! Update: Restarted the pi and killed it again! The order to get it working again was; pi@smbshare:~ $ ./automount-usb.sh (change /share to /media/sda1) pi@smbshare:~ $ sudo service smbd restart Then I was able to connect from a mac over wifi and from the PS2 over Ethernet. |
I hope automount isn't broken on the pi4. Just FYI, when you plug in your external media (sda1), the automount-usb.sh script should trigger on it's own and reconfigure /share to point to /media/$PART (in your case sda1). Would you be able to verify this by pasting contents of /etc/samba/smb.conf before and after plugging in the external drive and also list out contents of the /media directory before and after? If you need your working changes to be made permanent (I assume you are probably itching to play your games and not troubleshoot), you can modify /usr/local/bin/samb-init.sh as that is where the samba configuration is setup on boot. Apologies for all the mess here, I'm happy we are making progress without a physical device present for me to test. Couldn't do this without your help! Cheers! |
smb.conf before plugging in usb: [global] media empty after plugging in usb: [global] pi@smbshare:/media $ ls I only had to change sda5 to sda1 in the .conf and restart Samba to make it work this time. Before I wasn't plugging in the USB live, only booting with it already plugged in, if that could make a difference. Always willing to break something in the name of science! Thanks again for your help and support. |
Hmmm, it seems automount is mostly working, the drive letter being (sda5) may or may not be an issue depending on what value was assigned at time of insertion. It should also work whether the drive is hot plugged or already inserted at boot time. I’ll try to source a pi4 in the meantime and close this out when I can confirm it locally. |
Just wanted to give a quick update as I revisited this recently with a 1GB RPI4. After using the latest Raspbian lite (Feb 2020 release), I ran the following script:
Let it do its thing, and then I reboot at the end for safe measure. I insert a usb drive (usb 2.0 or usb 3.0 port on RPI4 doesn't matter) and PS2 recognizes the smb share. I assume xlink kai is working but I haven't tested that yet on my 360. |
Thank you for verifying, I’ve still not acquired a pi4 of my own so definitely appreciate your help here. I’m going to keep the issue open until I get a device of my own and cut a release for pi4. If any issues are noted, please let us know here. Thanks again! |
I can confirm I can access xlink kai on my rpi4 via the web browser by using pi_ip_address:34522 However, I cannot access the mounted usb share through windows. \SMBSHARE\share doesn't work like the readme webpage. In fact, I can't even the folder shared under Windows 10 under Windows Explorer under Network icon. It's not that big of a deal, but if I could figure out how to access the share that be awesome thru Windows that be awesome. |
@VersatileNinja, it looks like a recent Windows 10 update now disables access to insecure Samba shares. For now, you can enable insecure Samba access on your PC by following these instructions: https://devanswers.co/network-error-problem-windows-cannot-access-hostname-samba/ I am a bit reluctant to enable user/pass by default in future releases as it increases complexity to configure access to the share on the PS2/3 side. |
Can you update the image to be compatible with raspberry pi 4? I have the 2Gb model and it just black screens with the current image.
The text was updated successfully, but these errors were encountered: