Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
141126_A1_EE_83 https://mega.nz/file/ckcEzBYb#01FKAqjaNj2BmB2g3kxZ6URhwcMhtf-ZOSGsRbvv4E8 If anyone wants to know how to dump and flash their ASMedia firmware to share the latest versions, my video shows below. https://www.youtube.com/watch?v=DOxrXnEwqJY primetechguides's Profile: http://forums.slimdevices.com/member.php?userid=73067 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > This seems to be the key. I downloaded the 141126_A1_EE_82 firmware and > the zip file includes a Windows executable to flash the firmware. The > executable also tells you what version is already on the device. > > *I 'accidentally' loaded the 82 firmware over the 83 version that was > already on my old SATA adapter, so now of course I'm worried what > feature was added/fixed in that single digit increment! Here is the 83 version if you require, in my next post as I'm a new user. primetechguides's Profile: http://forums.slimdevices.com/member.php?userid=73067 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
connoleg wrote: > Is it worth booting from the SATA drive or keep the SD for that? It will be faster when booting, but as piCorePlayer normally don't write to the SD card when it is running, you will have no use of speed of the SSD in running mode. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Hi all, I have my Argon One M2 booting from SD at the moment with a newly installed SATA drive for music, can you folks point me in the right direction to answer these? two questions please: 1) Is it worth booting from the SATA drive or keep the SD for that? 2) I can see the SDA SATA drive when I run fdisk, what do I need to do to partition/format? Thank you all connoleg's Profile: http://forums.slimdevices.com/member.php?userid=35189 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I totally agree about the passive cooling( it wasn't easy getting it up to 55' to get fan on) but nice to know the fan will kick in if it ever gets that's warm, not that I'd want it on while listening as my sever is in my main listening room. You could be right about the IR receiver, I'll open it up and see if I can maneuverer the receiver a bit further forward, although I have emailed support about it so will wait on a reply from them before I do anything destructive. piero's Profile: http://forums.slimdevices.com/member.php?userid=66720 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I found the passive cooling was more than sufficient and decided that the noisy fan was not necessary. My IR receiver works OK but I sit directly in front and only a couple of meters away. I guess your IR problem is caused by the small size and shape of the plastic bottom tray of the case. You could try locating the IR receiver closer to the front window of the case. I have also noticed that the wifi strength has been affected by the metal case. The microwave produces greater interference and sometimes the neighbour's wifi signal is greater than mine. Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Long time lurker here, been running server and player on separate pi's for some time since retiring my squeezebox touch and I got a pi4 and this case for the server a few days ago, would just like to give a big thanks to this walk through tutorial to get things working, took me a while and had a few teething issues :confused: but finally got all the scripts installed and working correctly today, really happy to get the full functionality of this case. I'm very impressed with the case especially its passive cooling performance, I doubt the fan script will ever kick in to action in normal use. (but I did sit it on top of a linear power supply and taped up its vents to test if it did kick in :D ) I've also set up the IR receiver in piCore settings on pin 23, its working but I seem to have issues with range and limited angle of use. Anyone else set up the IR sensor and had similar issues ? I had my own IR sensor set up previously to getting this case that used 5v, ground and gpio 23 and never had this issue before, I've tested with the original SB Touch remote and a Logitech harmony hub set up both with same range issue. piero's Profile: http://forums.slimdevices.com/member.php?userid=66720 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > > How did you read out your firmware versions of the M.2 enclosure? > Using the ASmedia "leaked" tool (from Station Drivers) mentioned in the link you referred to (as well as above): chill wrote: > This seems to be the key. I downloaded the 141126_A1_EE_82 firmware > (from 'here' > (https://www.station-drivers.com/index.php?option=com_remository&Itemid=353&func=startdown&id=4053&lang=en)), > and the zip file includes a Windows executable to flash the firmware. > The executable also tells you what version is already on the device. PlaceHolder's Profile: http://forums.slimdevices.com/member.php?userid=31101 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Trim/unmap support is what you will get. It requires that udev rule. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
PlaceHolder wrote: > it's an ASmedia ASM1153E so that may make sense. Out of ideas now, > except to just upgrade my old firmware and not worry too much about not > having it to go back to. I just found this thread: https://www.raspberrypi.org/forums/viewtopic.php?p=1799280&sid=ec128d0e14b6903470ff0b138f171ba7#p1799280 A few people write that this update is working with TRIM. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > > I've also discovered the ''ASMTool' > (https://github.com/smx-smx/ASMTool)' project to read and dump the > original firmware, which is a feature not included in the flashing tool > from ASMedia. I thought it might give me some clues about the speed > difference - maybe the dump will include the necessary configuration, > and I can write it back to my original M.2 adapter tray. > PlaceHolder wrote: > > I would like to figure out how to backup the 1D_80 firmware first. (I > see mention of a tool for this ( https://github.com/smx-smx/ASMTool ), > which I will have to try and get working.) > I tried the tool at https://github.com/smx-smx/ASMTool following the instructions there on where to get the two .dll's. It compiled (on Windows, using VC 2022 preview) and ran fine, but couldn't find the device. It ran enumerating the entire bus or something, then fails saying it didn't find anything. I presume that means it is not part of the "ASM1x4x family" as noted on the GitHub page. According to Jeff Geerling's page ( https://www.jeffgeerling.com/blog/2021/argon-one-m2-raspberry-pi-ssd-case-review ) it's an ASmedia ASM1153E so that may make sense. Out of ideas now, except to just upgrade my old firmware and not worry too much about not having it to go back to. PlaceHolder's Profile: http://forums.slimdevices.com/member.php?userid=31101 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
PlaceHolder wrote: > but I would like to figure out how to backup the 1D_80 firmware first. > (I see mention of a tool for this ( https://github.com/smx-smx/ASMTool > ), which I will have to try and get working.) A few weeks ago I asked Argon40 if they will support TRIM in the future and they told me that they want do it. If this is what you want. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
So I have a bunch of these Argon M.2 cases. I ordered one from Amazon and 5 from BuyAPi.ca and the firmware versions are interesting. I am using the tool mentioned elsewhere to read (and potentially update) the firmware version. The one from Amazon has firmware version 141126a11d80 (or formatted as elsewhere: 141126_A1_1D_80 .) Three of the other five also have this version. All of the four report the same S/N 00E3 . The other two have the old firmware mentioned above 140704_A1_00_00 and S/N 00B6 . This clearly tells me that the S/N is not actually a serial number in the sense that whoever is programming or loading the firmware is not using the tool to increase the serial number for each unit they program. (Or maybe the tool is buggy, who knows.) I haven't yet investigated the features of the newer firmware version, which is different to the one listed above (being 141126_A1_EE_82 .) I do wonder if the EE_82 is a checksum, or a version number or feature map or what. EE_82 is clearly higher than 1D_80, so may still be worth updating, but I would like to figure out how to backup the 1D_80 firmware first. (I see mention of a tool for this ( https://github.com/smx-smx/ASMTool ), which I will have to try and get working.) One other piece of info for those of you wondering about the fan. There is a jumper on the top of the case (where the RPi is mounted, it's visible on the lower board in the one corner that is exposed (the writing on the board says 1-2 DEFAULT and 2-3 ALWAYS ON and its near the text IR_OUT). If you change this jumper from the initial [1-2] setting to [2-3] it will "disable" the power button (meaning when you apply power, the RPi will boot without you needing to press the power button), but it also will automatically enable the fan, without the need to run the Argon software. I don't know if turns the fan to 100% or not... it's audible to me, but not so loud as to be distracting. PlaceHolder's Profile: http://forums.slimdevices.com/member.php?userid=31101 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Greg Erskine wrote: > What is the advantage of changing it to exFAT? I can not tell you. Maybe it is faster than NTFS? I am using here HFS+ because I sync the drive directly with my Mac Music-Mediathek. The drive is mounted as read only in piCorePlayer. The best option when you use the drive only on piCorePlayer would be ext4 I think. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
What is the advantage of changing it to exFAT? Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I put the files via samba and network to the ssd, because i have only a usb2 cable at the moment.:rolleyes: You think its much much better to format it now to exFat or should i stay at ntfs.. Ok i will read the first post later again and hope i get it. Thanks. Pi4, Pi3, Radios, Receiver, Duet,... mikitil's Profile: http://forums.slimdevices.com/member.php?userid=68091 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
If you want to boot from SD card, you have to use another bootloader configuration! The SATA controller inside the Argon case is still not using TRIM. I asked them but they dont want to work on this. I think it would be better to use the Argon script as described here and inside the piCorePlayer documentation because you can use the button of the case for switching completely of or reboot. If you want to write the music from the PC to the SSD exFAT would be the best choice. You have to install the exFaT driver in piCorePlayer afterwards. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thank you very very much. Will update bootloader first. And i'm not really sure if i should put all on the ssd or just the Music files, cache and library. Because, when i screw up something in pcp or lms on sd i could just change rewrite the sd card and don't had to work something on the ssd itself? After boot pcp is working totally from RAM i was thinking? So it would only startup a little bit faster if all is on ssd and nothing else? Think i stay fir first on the safe and put pcp on the sd and not on ssd. Or is there another good reason? I don't need to change something for the fan or trim right? Pi4 is still under 40°C think this case is cooling fine in any way. Very happy with this combo. Nice, cute, fast little musicstation. One thing, i format te ssd on a win pc with exFat? or any other advice? Hope this works with the adapter and the bridge. Cross fingers. Pi4, Pi3, Radios, Receiver, Duet,... mikitil's Profile: http://forums.slimdevices.com/member.php?userid=68091 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
mikitil wrote: > Do i have to format the drive first on another PC or so? If you want to boot from it, simply write the piCorePlayer Image with Raspberry Pi Imager onto the SSD. mikitil wrote: > But it could work with a extention cable and pluged in the USB Bridge > from the argon case? Yes, that should work also. You only should have the newest Bootloader inside your Pi. You can create a SD-card with the neccessary software with Raspberry Pi Imager: "Choose OS/Misc utility images/Bootloader/USB Boot" Put the card into the Pi and wait till the green LED is flashing fast (this will take only a few seconds). You can also attach the Pi to a monitor where the picture should be completely green after flashing. That is all that should be done! pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Hi, looks like you are the ones to ask maybe. Just got this argon m.2 case and a evo860. Do i have to format the drive first on another PC or so? Or can i do this otherway in pcp or so? Because i have no male-male usb cable. But it could work with a extention cable and pluged in the USB Bridge from the argon case? Or i use another sd with raspberry os to format the Drive? Would be nice if you could give some help please. Thanks. Other things i have to watch and take care? Thnx mikitil's Profile: http://forums.slimdevices.com/member.php?userid=68091 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Man in a van wrote: > Is this any help? I already had "sudo trimforce enable" done after installation of the Mac. The internal NVMe drive (with an adapter to Apple SSD format) uses TRIM, an external drive connected to Thunderbolt also uses TRIM, but all USB 3/3.1 drives are not using TRIM. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > Ah, Ok. I am not using the M.2 case for piCorePlayer. I am using it for > Home Assistant. > Also the Music for piCorePlayer is on a read only SSD as it has a HFS+ > filesystem. So TRIM will be used when I am copying the data from my Mac > to this SSD. But it didn't work because the Mac does not use TRIM for > USB drives. Is this any help ? https://www.cnet.com/how-to/installing-ssd-on-mac-trim-mistake/ I know it might not work for external drives but you should be able to find out. https://apple.stackexchange.com/questions/46659/is-it-possible-to-enable-trim-for-an-external-ssd ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I am using the non-M.2 version of the Argon One case and I decided that the fan was not worth using for piCorePlayer. The case itself dropped the temperature 10 or 12 degrees so it will probably never get to the point of needing to turning on the fan. Sydney had a relatively cool summer this year, so I will have to wait till the end of the year for further tests. I may occasionally get close to 40 degrees ambient in my house so the CPU may get close to 60 degrees on the odd occasion. The fan at 100% dropped the temperature about 5 or 6 degrees but was audible from my listening chair. I am only using piCorePlayer as a player and using sox to upsample, so no big load. Is anyone actually getting the fan to turn on just using piCorePlayer? Has anyone noted the temperature rise due to running the python script and the extra current draw of the fan? Does the SSD on the M.2 model generate a significant amount of heat? Does CPU throttling actually affect the operation of piCorePlayer? Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > I was looking at the script, there is no reason to have a dependency on > vcgencmd to get the temperature. Oh, this is great. So I will look into it in a few days to see what this means to my installation docs on the webpage. Thank you for this addition! pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > The firmware on the M.2 controller. Ah, Ok. I am not using the M.2 case for piCorePlayer. I am using it for Home Assistant. Also the Music for piCorePlayer is on a read only SSD as it has a HFS+ filesystem. So TRIM will be used when I am copying the data from my Mac to this SSD. But it didn't work because the Mac does not use TRIM for USB drives. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I was looking at the script, there is no reason to have a dependency on vcgencmd to get the temperature. Find these lines Code: temp = os.popen("vcgencmd measure_temp").readline() temp = temp.replace("temp=","") val = float(temp.replace("'C","")) and replace with Code: file = open('/sys/class/thermal/thermal_zone0/temp', 'r') temp = file.readline() file.close() val = float(temp) / 1000 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > Which firmware are you speaking of? The one of the Argon case (if there > is any) or the Pi 4 firmware? > What do we have to do to use trim? The firmware on the M.2 controller. I'm not sure how to read the firmware version from the board without the board programming software. The board serial number is reported in dmesg. Mine is serial number E3 (Which is 227 in decimal) So I would imagine that if you have a serial number higher than mine, it will be fine. Otherwise you will need to upgrade your firmware, as chill had commented on earlier. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > I just received a Argon case with the M.2 board. The firmware currently > being used supports unmap trim now out of the box. Which firmware are you speaking of? The one of the Argon case (if there is any) or the Pi 4 firmware? What do we have to do to use trim? pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Point of interest I just received a Argon case with the M.2 board. The firmware currently being used supports unmap trim now out of the box. Nice little case, just with it would work with a POE hat. (I don't care about the power board) Even booting from the SSD just fine. Get new RPI board, grab the latest recovery files from https://github.com/raspberrypi/rpi-eeprom/releases Just make sure the grab the one flagged with usb, for usb boot support. Extract the zip files to a blank FAT32 formatted SD card, power the RPI with that SD card.wait 10-15s. Power the board back down. Plug the SSD adapter into a machine that you can burn an image, burn the latest pCP image... The system should now boot to pCP without a sdcard in the board. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thanks for this tutorial! Everything working as expected. Cheers, CSL Sent from my iPhone using Tapatalk tobal2's Profile: http://forums.slimdevices.com/member.php?userid=68995 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Greg Erskine wrote: > I think this piece of code is completely unnecessary. It's just a > remnant left over from development. Yes, you are right! Also I read that the "RPI_REVISION" command is deprecated since 2015. I will delete it. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thanks, looks like it was a case of my eyes seeing what my brain thought it was.:cool: So what does GPIO.RPI_REVISION actually refer to? CM, 26pin#1, 26pin#2, 40pin?? I think this piece of code is completely unnecessary. It's just a remnant left over from development. Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Greg Erskine wrote: > I think a RPi4 uses SMBus(1) so I can't see how argon's script works for > a RPi4B? > > Can someone enlighten me? Yes, I can! This is the result on my Pi 4B: Code: tc@musikbox:~$ sudo python3 Python 3.8.5 (default, Jul 25 2020, 17:04:10) [GCC 10.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import RPi.GPIO as GPIO >>> GPIO.RPI_REVISION 3 So the rpi_revision has nothing to to with the number of the Pi. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I think a RPi4 uses SMBus(1) so I can't see how argon's script works for a RPi4B? Can someone enlighten me? Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Greg Erskine wrote: > Is that correct? This is correct I think, but I don't know the rpi_revision results. As the case is only for the Pi4, there will be only one result. But I think this case is also available for the Pi 3B+ and maybe the code is for this one. This peace of code is from Argon40. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Greg Erskine wrote: > Where did these values come from? I made them myself, there is nothing special about them. The Pi doesn't reach a temperature that is so high that the fan will start with piCorePlayer and LMS running. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Can anyone explain this piece of python code? Code: rev = GPIO.RPI_REVISION if rev == 2 or rev == 3: bus = smbus.SMBus(1) else: bus = smbus.SMBus(0) So RPi2 and RPi3 would use SMBus(1) and RPi0, RPi1, RPi4 and RPi400 would use SMBus(0). Is that correct? Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
hey carsten_h, Where did these values come from? Code: # Example: # 30=0 # 55=10 # 57=30 # 60=55 # 65=100 Rather than which I find in most versions of argon*.sh Code: # Example: # 55=10 # 60=55 # 65=100 regards Greg Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Greg Erskine wrote: > but its a good start. ;) Yes it is! Thank you! pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Added "'Setup the Argon One case for the Raspberry Pi 4B' (https://docs.picoreplayer.org/projects/argon-one-case-for-rpi4b/)" in Projects section. Still have some formatting to do, but its a good start. ;) Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
My new factory-fresh Argon M.2 adapter tray arrived today (same firmware as the original one had: 140704a1), so I've done some comparative speed tests. And after all that there's no difference between this one and my original version(firmware upgraded to 141126a1ee82)! Using the same M.2 SSD drive swapped between the adapter trays, I ran my earlier speed testing script 5 times - the first time with the test.tmp file deleted, and the subsequent four times without deleting it each time. I then averaged the results of the latter four tests. Code: New Adapter Old Adapter Ave write (MB/s) 145.1 145.0 Ave read (MB/s) 227.5 225.9 Min write (MB/s) 137.2 135.3 Max write (MB/s) 163.0 170.3 Min read (MB/s) 226.8 222.0 Max read (MB/s) 228.1 227.2 I had made a written note of the results of this test performed when I first received the adapter tray and the SSD, so it's not my memory playing tricks. It was definitely about 50% faster (although I can't be sure whether I was consistent about deleting test.tmp or not, but its presence doesn't affect the read speeds). I can only guess that maybe the difference is down to the drive now having about 180GB of music files on it, whereas initially the tests were done with an empty drive. Could that affect the speed tests? I'm not about to delete everything just to redo these tests, but I'm happy now that the trim-enabled firmware has not affected the read and write speeds. So now I have a spare Argon One M.2 adapter tray. What to do with it. Maybe I should buy another Argon One case and another Raspberry Pi! chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thanks Paul - I tried that (4 times: both locations and with the original and renamed .so file), but the executable always fails with the same error. I don't want to take any more of your time, so I'm going to see how I get on with the speed tests on a factory-fresh adapter. If there's really a distinct difference I might revisit this, but if not I'll just stick with the more recent trim-enabled firmware. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
With linux systems, you typically need to tell the shared object linker where the library is. Try copying the library to /usr/local/lib (or /usr/lib) Then run sudo ldconfig (This command finds all the .so libraries in the configured search paths and build the cache for the linker) 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thanks Paul - that allowed the library to compile without error, so I'm a step further on. The instructions say to "Place the resulting .so file next to the ASMTool executable (obtained by building this project)", so I moved it into the /bin/Debug folder, where there's an AsmTool.exe, but when I then attempt to run that exe file I get the same error as I did without it. Code: pi@raspberrypi:~/ASMTool/AsmTool/bin/Debug $ ./AsmTool.exe Unloading ASM Driver... Loading ASM Driver... Unhandled Exception: System.DllNotFoundException: AsmIOLinux.so at (wrapper managed-to-native) AsmTool.LinuxNativeIO.LoadAsmIODriver() at AsmTool.LinuxAsmIO.LoadAsmIODriver () [0x1] in :0 at AsmTool.Program.Main (System.String[] args) [0x00022] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: AsmIOLinux.so at (wrapper managed-to-native) AsmTool.LinuxNativeIO.LoadAsmIODriver() at AsmTool.LinuxAsmIO.LoadAsmIODriver () [0x1] in :0 at AsmTool.Program.Main (System.String[] args) [0x00022] in :0 I'm out of my depth here. I tried renaming the .so file to AsmIOLinux.so, but that made no difference. Maybe I'll try the Windows build. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
add a -c to the gcc commandline. This is a library, and does not have a main routine. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I couldn't resist looking into this further, so I've ordered another of the Argon M.2 adapter trays. I'll keep this new one strictly 'factory', but it will allow me to double-check my original speed tests. I've also discovered the ''ASMTool' (https://github.com/smx-smx/ASMTool)' project to read and dump the original firmware, which is a feature not included in the flashing tool from ASMedia. I thought it might give me some clues about the speed difference - maybe the dump will include the necessary configuration, and I can write it back to my original M.2 adapter tray. ASMTool is a C# project, which I've managed to build using Mono under Raspberry Pi OS, apart from one Linux-specific file for which the given compile command fails: Code: pi@raspberrypi:~/ASMTool/AsmTool $ *gcc -fPIC -Ofast Linux/AsmIOLinux.c -o libAsmIOLinux.so* /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/../../../arm-linux-gnueabihf/crt1.o: in function `_start': (.text+0x34): undefined reference to `main' collect2: error: ld returned 1 exit status That's got me stumped at the moment. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > What are you using to test speed? It could be just your method of > testing. That's certainly possible - I'll admit I don't have a good understanding of the conditions required to get an accurate result. I found the basic commands 'here' (https://elinux.org/RPi_SD_cards#Terminal_Commands), and I made the script below. Code: # clear cache sync; echo 3 | sudo tee /proc/sys/vm/drop_caches #write test echo "Write test" sync; echo 3 |sudo dd if=/dev/zero of=./test.tmp bs=500K count=1024 # clear cache sync; echo 3 | sudo tee /proc/sys/vm/drop_caches # read test echo "Read test" sync; sudo time dd if=./test.tmp of=/dev/null bs=500K count=1024 To run it I simply cd to the root of the drive to be tested then call the script from /home/tc. If I delete test.tmp before running the test, the write speed is somehow about twice as fast, faster even than the subsequent read speed. Code: tc@pCPServer:/mnt/Music$ rm test.tmp rm: remove 'test.tmp'? y tc@pCPServer:/mnt/Music$ /home/tc/rwtest.sh 3 Write test 1024+0 records in 1024+0 records out 524288000 bytes (500.0MB) copied, 1.862952 seconds, 268.4MB/s 3 Read test 1024+0 records in 1024+0 records out 524288000 bytes (500.0MB) copied, 2.146489 seconds, 232.9MB/s real 0m 2.14s user 0m 0.01s sys 0m 1.15s tc@pCPServer:/mnt/Music$ /home/tc/rwtest.sh 3 Write test 1024+0 records in 1024+0 records out 524288000 bytes (500.0MB) copied, 2.997269 seconds, 166.8MB/s 3 Read test 1024+0 records in 1024+0 records out 524288000 bytes (500.0MB) copied, 2.119096 seconds, 235.9MB/s real 0m 2.12s user 0m 0.01s sys 0m 1.14s tc@pCPServer:/mnt/Music$ /home/tc/rwtest.sh 3 Write test 1024+0 records in 1024+0 records out 524288000 bytes (500.0MB) copied, 3.249851 seconds, 153.9MB/s 3 Read test 1024+0 records in 1024+0 records out 524288000 bytes (500.0MB) copied, 2.139627 seconds, 233.7MB/s real 0m 2.14s user 0m 0.01s sys 0m 1.15s Before flashing the new firmware, I ran this test a few times (without deleting test.tmp) and obtained write speeds ranging from 210-245MB/s, and read speeds ranging from 255-300MB/s. Looking at the second and third tests above (after flashing the firmware) the write speed is around 160MB/s and the read speed is around 235MB/s. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
What are you using to test speed? It could be just your method of testing. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I was able to find (from 'here' (https://www.usbdev.ru/files/asmedia/asmt2115firmware/)) and reload the original 140704_A1_00_00 firmware for the Argon M.2 adapter, but it did not restore the original speed. It simply removed the trim support. I tried it also on a fresh pCP7 install, in case anything about enabling trim had caused the slow down, but no joy. So this makes me think that the original speed improvement was a function of some configuration option in the firmware, rather than the firmware capability itself, which gives me hope that a bit more experimentation might bring that back under the trim-capable firmware. But if it doesn't, well I'm happy that the current speeds (write speed ~150MB/s and read speed ~210MB/s), equivalent to my previous SATA SSD, are more than enough for a mostly static LMS music library, and that the added trim support will extend the life of the drive. So I've put the newest available firmware (141126_A1_EE_82) back on, which has restored trim support. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > > So I would run a trim even (in the background) shortly after booting > your device. Then on a weekly cron job. Thanks Paul - that's how I've set it up, and yes, if I run the command a second time, it returns 0 bytes. But wait - I don't recommend updating to the firmware that I've used for the moment. The read and write speeds seem to have dropped to the same as the older SATA adapter+drive, i.e. the 50% boost has gone, despite still using UAS. Something else must have changed! chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
That first large unmap will happen only the first run after boot. After that it will only be the bytes that have changed since the last unmap. So I would run a trim even (in the background) shortly after booting your device. Then on a weekly cron job. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Success! With the 'unmap' provisioning mode made persistent by following Paul's guidance for editing bootlocal.sh, I can now issue the fstrim command after a reboot. Code: tc@pCPServer:~$ sudo fstrim -v /mnt/Music /mnt/Music: 45572067328 bytes trimmed Just need to set up the cron job now. That figure of 45572067328 bytes seems to be exactly equal to the amount of free space on the drive. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > If you read the threads, the Asmedia adapters are going to be dependent > on the firmware loaded on the adapter. > This seems to be the key. I downloaded the 141126_A1_EE_82 firmware (from 'here' (https://www.station-drivers.com/index.php?option=com_remository&Itemid=353&func=startdown&id=4053&lang=en)), and the zip file includes a Windows executable to flash the firmware. The executable also tells you what version is already on the device. It told me that the old SATA adapter (which supports trim with my Sandisk SATA SSD) is (was*) at firmware 141126_A1_EE_83, whereas my new Argon 40 M.2 SSD adapter was as 140704_A1_00_00. If the lower number corresponds to an earlier version, it seemed possible that an update to a higher number might enable trim. So I took a brave pill and decided that if I bricked the adapter then I'm only out £18. I updated the M.2 adapter to 141126_A1_EE_82. (Note that the update will FAIL if there's a disk drive attached - this is what I tried first, because detaching the drive requires a small amount of disassembly, and I was being lazy). Now when I inspect the adapter+drive as before under pCP I see: Code: tc@pCPServer:/mnt/sdb2/tce$ sg_vpd -p lbpv /dev/sda | grep Unmap Unmap command supported (LBPU): 1 and tc@pCPServer:/mnt/sdb2/tce$ sg_vpd -p bl /dev/sda | grep unmap Maximum unmap LBA count: 4194240 Maximum unmap block descriptor count: 1 Optimal unmap granularity: 1 blocks So now it looks as though the adapter supports trim and I can press on and enable it. It's odd that the Argon M.2 adapter, which I purchased ~18 months after the old SATA adapter, should have an apparently older firmware. I hope the update hasn't broken anything else, because I can't find the 140704_A1_00_00 version to revert it. *I 'accidentally' loaded the 82 firmware over the 83 version that was already on my old SATA adapter, so now of course I'm worried what feature was added/fixed in that single digit increment! chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
If you read the threads, the Asmedia adapters are going to be dependent on the firmware loaded on the adapter. It doesn't surprise me that the M.2 drive is faster 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > > Maybe this explains why it is 50% faster than the previous SATA SSD It doesn't. Both drives show up as identical devices with identical IDs (is that possible?), and both are using the uas driver. Code: tc@pCPServer:/usr/local/bin$ ./lsusb Bus 002 Device 003: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0781:5583 SanDisk Corp. Ultra Fit Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub tc@pCPServer:/usr/local/bin$ ./lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M tc@pCPServer:/usr/local/bin$ ./lsusb -v -d 174c:55aa | grep -i interface bDeviceClass0 (Defined at Interface level) bNumInterfaces 1 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 98 iInterface 0 bDeviceClass0 (Defined at Interface level) bNumInterfaces 1 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 98 iInterface 0 So given that unmap is supported by the old Sandisk SATA drive on what appears to be the same adapter, the fact that it's not supported on the new Western Digital M.2 SATA drive is unlikely to be the fault of the adapter. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thanks again Paul. So it appears that the M.2 drive is using UAS after all: Code: tc@pCPServer:/usr/local/bin$ ./lsusb BUS 002 DEVICE 003: ID 174C:55AA ASMEDIA TECHNOLOGY INC. ASM1051E SATA 6GB/S BRIDGE, ASM1053E SATA 6GB/S BRIDGE, ASM1153 SATA 3GB/S BRIDGE, ASM1153E SATA 6GB/S BRIDGE Bus 002 Device 002: ID 0781:5583 SanDisk Corp. Ultra Fit Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub tc@pCPServer:/usr/local/bin$ ./lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M |__ PORT 2: DEV 3, IF 0, CLASS=MASS STORAGE, DRIVER=UAS, 5000M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M tc@pCPServer:/usr/local/bin$ ./lsusb -v -d 174c:55aa | grep -i interface bDeviceClass0 (Defined at Interface level) bNumInterfaces 1 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI BINTERFACEPROTOCOL 98 iInterface 0 Maybe this explains why it is 50% faster than the previous SATA SSD - I'll have to go back and recheck that one. I did load the full Raspberry Pi OS onto a spare SD card and I got the same '[Unmap command not implemented]'. SO I starting to doubt what the Western Digital Dashboard told me about Trim under Windows - I'll take another look. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
You are missing information to determine if UASP is used/supported 1 - Check to see how it is detected. Code: tc@Pi4-aarch64-Devel:/mnt/build/aarch64$ lsusb Bus 002 Device 003: ID 04e8:4001 Samsung Electronics Co., Ltd<<--- this is my SSD, sitting on Bus 002, Device 003 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 1a86:e050 QinHeng Electronics Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub tc@Pi4-aarch64-Devel:/mnt/build/aarch64$ lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M <<---Bus2, Port 3 is shown using the uas driver. /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 1: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 1: Dev 5, If 2, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 1: Dev 5, If 3, Class=Human Interface Device, Driver=usbhid, 12M 2 - To examine the drive capabilities Code: tc@Pi4-aarch64-Devel:/mnt/build/aarch64$ lsusb -v -d 04e8:4001 | grep -i interface<<-enter the : device identifier shown from lsusb bDeviceClass0 (Defined at Interface level) bNumInterfaces 1 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Interface Descriptor: bInterfaceNumber0 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 98 <<-- Interface Protocol 98 means the device supports UASP iInterface 0 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thanks Ronnie - I'll have a read. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > I just connected the new M.2 SSD to a Windows laptop (I removed the > rigid USB link and used a male-to-male USB3 cable), so that I could use > Western Digital's Dashboard software to inspect the drive. I learned > that, under Windows at least, the drive+adapter support TRIM and UASP. > That was all I was able to check, because Windows doesn't recognise the > EXT4 partition on the drive. So it seems like I need to investigate > further on the RPi. Maybe I'll give a Raspberry Pi OS installation a > go. There are several threads on the rpi forum about SSD and trim here is just one https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=281278&sid=65f0ded2f66a87729b3315060c8cc375&start=25 and a blog https://www.jeffgeerling.com/blog/2020/enabling-trim-on-external-ssd-on-raspberry-pi https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=275713&start=175 ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I just connected the new M.2 SSD to a Windows laptop (I removed the rigid USB link and used a male-to-male USB3 cable), so that I could use Western Digital's Dashboard software to inspect the drive. I learned that, under Windows at least, the drive+adapter support TRIM and UASP. That was all I was able to check, because Windows doesn't recognise the EXT4 partition on the drive. So it seems like I need to investigate further on the RPi. Maybe I'll give a Raspberry Pi OS installation a go. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > It is clear why you got the error message. You simply forgot the "sudo" > in front of the command. The error is that the operation is permitted! > D'Oh! The correct output supports the original conclusion though. Code: tc@pCPServer:~$ sudo fstrim -v /mnt/M2 fstrim: FITRIM: Operation not supported chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > > Code: > > tc@pCP:~$ fstrim -v /mnt/m2 > > It is clear why you got the error message. You simply forgot the "sudo" in front of the command. The error is that the operation is permitted! chill wrote: > I found that my old SATA drive achieves a write speed of around 150MB/s > and read speed of around 210MB/s. > The new M.2 SATA drive achieves a write speed of around 245MB/s and a > read speed of around 300MB/s. Ok, then I don't have to change to the M.2 SSD. It would also be a bit expensive, as I am using a 2TB SATA SSD. The longest operation is to create the LMS library completely new and that is really fast since I changed the USB stick used for the database (I think it is 30 minutes faster now). It took 48 minutes for ca. 85000 songs. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
My M.2 SSD and adapter have arrived, and I've been investigating with the tools described in the 'blog post that Paul linked to' (https://lemariva.com/blog/2020/08/raspberry-pi-4-ssd-booting-enabled-trim). I first of all investigated my existing Sandisk SATA SSD drive that's connected via a cheapo SATA-to-USB adapter. The indications are that it's unmap-capable (but not enabled), and that it's using 'Bulk-Only Transport' (BOT) and not UASP. No great surprises there, and I guess I could implement unmap as per the instructions in the blog post. Code: tc@pCPServer:/mnt/sdb2/tce$ fstrim -v /mnt/Music fstrim: FITRIM: Operation not permitted tc@pCPServer:/mnt/sdb2/tce$ sg_vpd -p bl /dev/sda . . . Maximum unmap LBA count: 4194240 Maximum unmap block descriptor count: 1 Optimal unmap granularity: 1 blocks Unmap granularity alignment valid: false Unmap granularity alignment: 0 [invalid] . . . tc@pCPServer:/mnt/sdb2/tce$ lsusb -v Bus 002 Device 003: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge Device Descriptor: . . . Interface Descriptor: . . bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only . . . I then used the same commands on the new 'M.2 SATA drive' (https://www.amazon.co.uk/gp/product/B078WYS5K6) connected via the Argon adapter. If I'm reading the output correctly, then this setup is NOT unmap-capable, and is also using the BOT driver, rather than UASP. That's a bit of a surprise, given the blurb on the 'Pi Hut page' (https://thepihut.com/collections/raspberry-pi-cases/products/argon-one-m-2-raspberry-pi-4-case) about UASP support. Perhaps I need to do something to enable it, or perhaps I'm misreading the output. Code: tc@pCP:~$ fstrim -v /mnt/m2 fstrim: FITRIM: Operation not permitted tc@pCP:~$ sg_vpd -p bl /dev/sda . . . Maximum unmap LBA count: 0 [Unmap command not implemented] Maximum unmap block descriptor count: 0 [Unmap command not implemented] Optimal unmap granularity: 0 blocks [not reported] Unmap granularity alignment valid: false Unmap granularity alignment: 0 [invalid] . . . tc@pCP:~$ lsusb -v Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge Device Descriptor: . . . Interface Descriptor: . . bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only . . . I also did a few rudimentary speed tests, as per the instructions on 'this page' (https://elinux.org/RPi_SD_cards#Terminal_Commands). I found that my old SATA drive achieves a write speed of around 150MB/s and read speed of around 210MB/s. The new M.2 SATA drive achieves a write speed of around 245MB/s and a read speed of around 300MB/s. These are all somewhat short of the 5Gbps possible under USB3, but hey, at least the new M.2 drive seems to be about 50% faster than the SSD I've been using. And since it's only used to store a largely static music collection, both drives are more than fast enough. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
kidstypike wrote: > Hi chill > > I have an Argon one case (no fan), if these are your defaults, I don't > think your fan will ever turn on. :D I agree! The case seems extraordinarily effective without the fan. I've yet to test the fan at higher temperatures, but it doesn't seem to be particularly useful at lower temperatures - when the CPU is sitting at 40 degrees, if I turn the fan on to 100% it barely drops the temperature by one or two degrees. It may be different when the server is inside my router cupboard though, so I'll treat this as merely a bit of extra security. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > > #fanconfig = ["65=100", "60=55", "57=30", "55=10", "30=0"] Hi chill I have an Argon one case (no fan), if these are your defaults, I don't think your fan will ever turn on. :D *Server - LMS 8.2.0 *Pi4B 4GB/Argon one case/pCP v7.0.0 - 74K library, playlists & LMS cache on SSD (ntfs) *Study -* Pi3B/pCP 7.0.0/pi screen/Hifiberry DAC HAT Ruark MR1 Mk2 *Lounge* - Pi2/pCP 6.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5 *Garage* - Squeezebox Boom + Fostex sub *Dining Room* - Pi3B/Bluetooth/Echo Show 8 *Spares* - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > > I also don't know python, but I would make it the following way: > > Code: > > while True: > temp = os.popen("vcgencmd measure_temp").readline() > temp = temp.replace("temp=","") > val = float(temp.replace("'C","")) > fanconfig = load_config("/home/tc/argononed.conf") > block = get_fanspeed(val, fanconfig) > if block < prevblock: > time.sleep(30) > prevblock = block > try: > bus.write_byte(address,block) > except IOError: > temp="" > time.sleep(30) > > > > > But I don't know what happens to the performance then, because every > 30 seconds the file has to be opened, read and closed. > You can try it. :-) This works perfectly. The argononed.conf file can now be edited while the script is running, and the changes are applied on the fly. In fact I moved the whole fanconfig block inside the loop, so that the script will continue to operate with the defaults even if the conf file is deleted. Code: def temp_check(): # fanconfig = ["65=100", "60=55", "57=30", "55=10", "30=0"] # tmpconfig = load_config("etc/argononed.conf") # tmpconfig = load_config("/home/tc/argononed.conf") # if len(tmpconfig) > 0: # fanconfig = tmpconfig address=0x1a prevblock=0 while True: fanconfig = ["65=100", "60=55", "57=30", "55=10", "30=0"] tmpconfig = load_config("/home/tc/argononed.conf") if len(tmpconfig) > 0: fanconfig = tmpconfig temp = os.popen("vcgencmd measure_temp").readline() temp = temp.replace("temp=","") val = float(temp.replace("'C","")) block = get_fanspeed(val, fanconfig) if block < prevblock: time.sleep(30) prevblock = block try: bus.write_byte(address,block) except IOError: temp="" time.sleep(30) This is useful for testing purposes - I changed the conf file to contain a single entry, '35=100', and within 30 seconds the fan came on at 100%. I renamed the conf file, and within 30 seconds the fan turned off again in accordance with the defaults in the python script. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > sg3_utils.tcz is uploaded to the repo. > busybox does have lsusb command, but its limited in output. You can get > the USB identifiers from dmesg.or you can download the full bloated > usbutils.tcz extension. > I did not build lsscsi, as more than likely you only have one device > listed, and that info is not even needed for the udev rule. > > Neither of these you will need long term, so you can just download them, > and load them when you want. > > For those that didn't know > "tce-load -wi sg3_utils.tcz" - Will download, install and put this in > your onboot.lst, so it is automatically loaded every time > "tce-load -w sg3_utils.tcz" - Will just download the extension and > dependanciesnot do anything more > "tce-load -i sg3_utils.tcz" - Will install a previously downloaded > extension, but does not add to onboot.lst. > > > I would recommend this process. > 1 - Figure out your settings from the instructions. > 2 - Create the udev rule anywhere on your system. > 3 - In the file /opt/bootlocal.sh (Before pCP starts), copy the rule > from where ever you saved it to /etc/udev/rules.d > 4 - Reload the udev rules and trigger udev. > 5 - Create a script to run after pCP starts to run the initial fstrim > operation, since the unmap data is only maintained in the kernel. > 6 - Run your periodic fstrim via a cron script. > > Here is my bootlocal > > Code: > > > cp /opt/80-samsung-t5.rules /etc/udev/rules.d/ > udevadm control --reload-rules > udevadm trigger > > > > > > Code: > > > fstrim -v /mnt/mountpoint > /var/log/pcp_trim.log > > > Excellent - thanks Paul, that's a really useful post. I've received word that my M2 SSD and the Argon One adapter/tray will arrive today, so I'm looking forward to having a play. In the meantime I'm going to try this out on my existing SATA SSD. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
sg3_utils.tcz is uploaded to the repo. busybox does have lsusb command, but its limited in output. You can get the USB identifiers from dmesg.or you can download the full bloated usbutils.tcz extension. I did not build lsscsi, as more than likely you only have one device listed, and that info is not even needed for the udev rule. Neither of these you will need long term, so you can just download them, and load them when you want. For those that didn't know "tce-load -wi sg3_utils.tcz" - Will download, install and put this in your onboot.lst, so it is automatically loaded every time "tce-load -w sg3_utils.tcz" - Will just download the extension and dependanciesnot do anything more "tce-load -i sg3_utils.tcz" - Will install a previously downloaded extension, but does not add to onboot.lst. I would recommend this process. 1 - Figure out your settings from the instructions. 2 - Create the udev rule anywhere on your system. 3 - In the file /opt/bootlocal.sh (Before pCP starts), copy the rule from where ever you saved it to /etc/udev/rules.d 4 - Reload the udev rules and trigger udev. 5 - Create a script to run after pCP starts to run the initial fstrim operation, since the unmap data is only maintained in the kernel. 6 - Run your periodic fstrim via a cron script. Here is my bootlocal Code: cp /opt/80-samsung-t5.rules /etc/udev/rules.d/ udevadm control --reload-rules udevadm trigger Code: fstrim -v /mnt/mountpoint > /var/log/pcp_trim.log 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Ok, so your suggested approach should work in that case. Something to try tomorrow :-) chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > I don't know what 'block' looks like (coming back from 'get_fanspeed') When I look at the code, block is simply the percent value for the fan of the matching fan entry: Code: fancfg = int(float(curpair[1])) curpair[1] is what is behind the "=" and int(float(...)) will simply make an int of this value. If someone used eg. "10.3" it will result in a "10". Code: but if fanconfig changes then I think the link between block and prevblock will be broken. Yes, that has to happen! Even if the temperature changes, block will change if it's in a new range. The value of block will be given to the hardware of the Argon case in the line: Code: bus.write_byte(address,block) pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > > I also don't know python, but I would make it the following way: > > Code: > > while True: > temp = os.popen("vcgencmd measure_temp").readline() > temp = temp.replace("temp=","") > val = float(temp.replace("'C","")) > fanconfig = load_config("/home/tc/argononed.conf") > block = get_fanspeed(val, fanconfig) > if block < prevblock: > time.sleep(30) > prevblock = block > try: > bus.write_byte(address,block) > except IOError: > temp="" > time.sleep(30) > > > > > But I don't know what happens to the performance then, because every > 30 seconds the file has to be opened, read and closed. > You can try it. :-) I'm not so sure - I don't know what 'block' looks like (coming back from 'get_fanspeed'), but if fanconfig changes then I think the link between block and prevblock will be broken. Probably not important for one iteration of the loop, but I'd want to look more closely at what happens. As for the performance penalty for reading the file every 30 seconds, I think it will be negligible. I have a similar shell script (to turn my own fan on and off via GPIO). That reads an external file quite happily every 5 seconds with no apparent ill-effects! chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > It's a different response to the one suggested in that blog post > ('fstrim: /: the discard operation is not supported') Mine is telling me this: Code: tc@musikbox:~$ sudo fstrim -v /mnt/Musikbox fstrim: /mnt/Musikbox: the discard operation is not supported The USB stick in the other USB 3 port is telling me the same. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > I think TRIM is something the system has to support and actively call. Sure, but what I haven't grasped yet is whether 'enabling' it for a specific drive is something that is done in the drive's firmware (so it would show as 'enabled' under any trim-capable OS), or whether it just configures the current OS to enable it for that drive. I suspect the former, but I need to read that blog more carefully. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > I've tweaked the python script to make it slightly easier to use a > separate config file under pCP. Thank you very much. I changed the description accordingly. I hope everything can be understand, because English is not my native language. chill wrote: > If I knew anything about python I'd have a go at making it re-load this > 'argononed.conf' file every time it checks the temperature I also don't know python, but I would make it the following way: Code: while True: temp = os.popen("vcgencmd measure_temp").readline() temp = temp.replace("temp=","") val = float(temp.replace("'C","")) fanconfig = load_config("/home/tc/argononed.conf") block = get_fanspeed(val, fanconfig) if block < prevblock: time.sleep(30) prevblock = block try: bus.write_byte(address,block) except IOError: temp="" time.sleep(30) But I don't know what happens to the performance then, because every 30 seconds the file has to be opened, read and closed. You can try it. :-) pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > fstrim is supported. I have the other tools, I just never packaged > them for others to use :) I can rectify that. Thank you. My existing SATA SSD, connected to USB3 via a SATA-to-USB adapter, gives the response below to fstrim. It's the same response that my USB3 flash drive gives. It's a different response to the one suggested in that blog post ('fstrim: /: the discard operation is not supported'), but I guess the interpretation is the same - trim isn't enabled. Code: sudo fstrim -v /mnt/Music fstrim: FITRIM: Operation not supported If you have tools to a) determine whether trim is supported in firmware and b) enable it if so, then they could be useful, but don't rush - I'll see what I get with the new M.2 SATA drive when it arrives. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > would it then be enabled and used under pCP? I think TRIM is something the system has to support and actively call. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > Thanks Paul - I'll see what the SATA SSD drive on the M.2 SSD adapter > reports when they arrive, hopefully tomorrow. > > From a quick skim through that blog I noticed that some of the quoted > commands behave differently under pCP (e.g. lsusb -t), and some of the > tools don't seem to be available (e.g. sg3-utils). So if I use a > different OS to enable TRIM (if available), would it then be enabled and > used under pCP? fstrim is supported. I have the other tools, I just never packaged them for others to use :) I can rectify that. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Thanks Paul - I'll see what the SATA SSD drive on the M.2 SSD adapter reports when they arrive, hopefully tomorrow. >From a quick skim through that blog I noticed that some of the quoted commands behave differently under pCP (e.g. lsusb -t), and some of the tools don't seem to be available (e.g. sg3-utils). So if I use a different OS to enable TRIM (if available), would it then be enabled and used under pCP? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Trim support rarely documented in the controller documentation. But in general, USB controllers do not support the online trim. Some do support kernel 'unmap' (The kernel keeps track of what needs trimmed) Here is a quick article I found, which at least describes what's going on. https://lemariva.com/blog/2020/08/raspberry-pi-4-ssd-booting-enabled-trim There were not as nice of writeups availiable when I set this up on my Samsumg T5 SSD. Please note the warnings in the blog. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I've tweaked the python script to make it slightly easier to use a separate config file under pCP. I changed the 'tmpconfig' line as folows: Code: # tmpconfig = load_config("etc/argononed.conf") tmpconfig = load_config("/home/tc/argononed.conf") Then I put this argononed.conf example file in /home/tc Code: # # Argon One Fan Configuration # # List below the temperature (Celsius) and fan speed (in percent) pairs # Use the following form: # min.temperature=speed # # Example: # 55=10 # 60=55 # 65=100 # # NOTE: Lines beginning with # are ignored # # Start below: 55=10 60=55 65=100 To make any changes in this file take effect the python script needs to be restarted, e.g. by (backing up and) rebooting (or the process can be killed and then restarted from the command line). This means there's very little benefit compared to editing the python script itself. But at least with this method the python script can be left untouched. If I knew anything about python I'd have a go at making it re-load this 'argononed.conf' file every time it checks the temperature, so that it can be changed on-the-fly without restarting the script. But I think a few default temperature settings are good enough that I can put off learning python for a bit longer :-) chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Man in a van wrote: > full speed of the M.2, apparently, is not available on the rpi That is clear, also it is only a M.2 SATA SSD not an M.2 NVMe SSD, so it will not be faster as an external attached USB 3 SATA SSD. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > I've just ordered that M.2 SSD add-on tray and a suitable SSD. I think > it's worth it to make a neat all-in-one server that will occupy a > minimum of space in my router cupboard. It'll just have power and an > ethernet cable connected to the back, and a USB3 flash drive for > booting, including a separate partition for the LMS cache and boot/root > backups. Just so you are aware, although pretty fast the, full speed of the M.2, apparently, is not available on the rpi https://www.raspberrypi.org/forums/viewtopic.php?t=256898 ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > I hope they did their homework, as there are some adapters that don't > work well with the PI4. I am sure it will work as I heard from many that they are using it. Also I saw a list with adapters that work together with the Pi 4 and it is on this list. Here is the list (German forum, it is the one with the link to Berrybase, a German distributor of the Argon One cases): https://forum-raspberrypi.de/forum/thread/47876-magische-usb-sata-adapter-und-wo-sie-zu-finden-sind/ paul- wrote: > Not sure how well these adapters are supported with trim support either. I don't think it will be supported. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
paul- wrote: > Looks like Argon is supplying the M.2 to USB3 converter. I hope they > did their homework, as there are some adapters that don't work well with > the PI4. > > Not sure how well these adapters are supported with trim support either. According to 'here' (https://thepihut.com/products/argon-one-m-2-raspberry-pi-4-case), the Argon M.2-to-USB adapter supports UASP. What can I use under pCP7 to check/test trim support? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Looks like Argon is supplying the M.2 to USB3 converter. I hope they did their homework, as there are some adapters that don't work well with the PI4. Not sure how well these adapters are supported with trim support either. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > So the integrated SSD will be a little bit complicated to attach it to > the Mac and the Pi. > It seems that the only connection between the M.2 SSD tray and the RPi is that little rigid USB link piece that connects to the RPi's lower USB3 socket. [image: https://cdn.shopify.com/s/files/1/0176/3274/products/Argon-ONE-M2-Case-1_800x.jpg?v=1601986163] So if you wanted to go down that route, I would imagine that you could shut down the RPi, remove that junction piece, and connect the tray to your Mac with a 'USB3 male-to-male cable' (https://www.lindy.co.uk/cables-adapters-c1/usb-c449/2m-flat-usb-3-0-cable-type-a-male-to-a-male-black-p6683) instead. [image: https://www.lindy.co.uk/images/2m-flat-usb-3-0-cable-type-a-male-to-a-male-black-p6683-3302_medium.jpg] chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > It'll just have power and an ethernet cable connected to the back, and a > USB3 flash drive for booting, including a separate partition for the LMS > cache and boot/root backups. I also thought about it. But I attach the SSD with my music data often to my Mac to synchronise it with the music stored there (the SSD is in HFS+ format and a 1:1 copy of my iTunes/Music library and it is mounted ro on the Pi). So the integrated SSD will be a little bit complicated to attach it to the Mac and the Pi. For PCP I am using the SD card and I have an extra USB Stick for the LMS library in one USB 3 port. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > I have no idea if there was a V1, or how it differs - it's simply the > one currently offered by Pi Hut! Oh, I didn't know that this exists. The difference to the V1 are the full size HDMI connectors instead of the micro HDMI and that there is an infrared receiver installed (you can install it on your own on the V1 boards). pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
I've just ordered that M.2 SSD add-on tray and a suitable SSD. I think it's worth it to make a neat all-in-one server that will occupy a minimum of space in my router cupboard. It'll just have power and an ethernet cable connected to the back, and a USB3 flash drive for booting, including a separate partition for the LMS cache and boot/root backups. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > You wrote V2, so you have the one with the M.2 SSD at the bottom? No, the V2 does not have the SSD space below ('although I note that it can be added' (https://thepihut.com/products/m-2-expansion-board-for-argon-one)). It's this one: https://thepihut.com/collections/raspberry-pi-cases/products/argon-one-raspberry-pi-4-case I have no idea if there was a V1, or how it differs - it's simply the one currently offered by Pi Hut! chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
chill wrote: > Many thanks for this write-up. Many thanks for your reply to it! chill wrote: > I'm impressed with this case. It is really great! You wrote V2, so you have the one with the M.2 SSD at the bottom? There is also another one for Audio tasks: https://www.argon40.com/nanosound-one-case-raspberry-pi-4-not-included.html chill wrote: > I did notice a couple of things that might be useful to add to your > instructions. Yes, they are useful! Thank you! chill wrote: > If you include them as User Commands on the Tweaks page, then sudo is > not necessary. Oh, I didn't know that, but it explains why they worked on my old installation without sudo. :-) I will change the text! pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Hi Carsten Many thanks for this write-up. It gave me the confidence to buy an Argon One V2 case to house my LMS server, and I have installed the Python script as per your instructions. It all seems to be working well. The fan does not seem to be necessary when the case is on a desk (temperature hovers around 40 degrees with LMS idle), but since I plan to put my LMS server away in a cupboard with my router I thought it would be useful to have the option of the fan. And the power button is very useful. I'm impressed with this case. I did notice a couple of things that might be useful to add to your instructions. 1) vcgencmd does not exist on a freshly-installed pCP7, so the Python script fails because it can't read the CPU temperature. It may already be present on your system if you have previously followed Paul-'s instructions to update the bootloader, i.e.: Code: ce tce-load -w git rpi-vc python3.8 tce-load -i git rpi-vc python3.8 . . . If this hasn't been done, then an alternative is to load the extension rpi-vc.tcz via the Extensions page, in addition to the ones you listed already (i2c-tools.tcz, python3.8-rpi-gpio.tcz and python3.8-smbus.tcz). 2) The two user commands only need to have 'sudo' at the beginning when run from the command line. If you include them as User Commands on the Tweaks page, then sudo is not necessary. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Paul Webster wrote: > pCP does not save things to disk unless you tell it to. > Make your changes again and try > pcp br > (pcp backup and reboot) > If that still does not preserve your changes then you need to tell pCP > to include your files in its backup set ... and I expect there is a How > To for that in the pCP documentation site. Woohoo!! Indeed, the backup and reboot worked. With the temp set to 25 C and fan to 100%, the fan turned on immediately upon reboot. Thanks to all! Rg System information Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Running in Ram.It's a blessing and a curse. 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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=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=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
Paul Webster wrote: > If that still does not preserve your changes then you need to tell pCP > to include your files in its backup set ... and I expect there is a How > To for that in the pCP documentation site. The files in the home directory are saved as far as I know. But I forgot to mention the backup in my HowTo. I will add it later. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
pCP does not save things to disk unless you tell it to. Make your changes again and try pcp br (pcp backup and reboot) If that still does not preserve your changes then you need to tell pCP to include your files in its backup set ... and I expect there is a How To for that in the pCP documentation site. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > It looks good! > > > > Yes, that is OK. To test if the fan starts use a temperature below the > actual Pi temperature and set the percent value to something higher than > 0. You have to reboot after the change! > If you hear the fan running after the reboot, you know that it works. > > Also you can press the power button for 3-4 seconds and the Pi should > make a graceful shutdown. You will see that the red LED will switch off > and then the Pi is switched off. Also you can double click the power > button and then the Pi will make a reboot. The last thing you can make > with the power button is to press ist for longer than 5-6 seconds, but > you shouldn't really test it because this will make a hard switch off of > the Pi. Hmmm...I used the WinSCP editor, set the temperature at 25 and the fan to 100%, saved, and checked that the change was still there prior to ending the WinSCP session. Then I rebooted piCorePlayer and the change did not survive the reboot. The values reverted to the default which is this. fanconfig = ["65=100", "60=55", "57=30", "55=10", "30=0"] Needless to say, I am stumped. Rg System information Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
rgro wrote: > Do you think everything is o.k., now??? It looks good! rgro wrote: > I found that I could change and save the fan configuration values using > the WinSCP editor. I double clicked on the argononed.py file, opened > it, changed the fan and temp values, and saved. Is that an acceptable > way to experiment with different the different temperature triggers and > fan speeds?? Yes, that is OK. To test if the fan starts use a temperature below the actual Pi temperature and set the percent value to something higher than 0. You have to reboot after the change! If you hear the fan running after the reboot, you know that it works. Also you can press the power button for 3-4 seconds and the Pi should make a graceful shutdown. You will see that the red LED will switch off and then the Pi is switched off. Also you can double click the power button and then the Pi will make a reboot. The last thing you can make with the power button is to press ist for longer than 5-6 seconds, but you shouldn't really test it because this will make a hard switch off of the Pi. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with squeezlite/jivelite for hifiberry and bluetooth headphone inside a smartipi touch case two airport express ikea symfonisk carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
O.K. I tried again. All of the commands you suggested: 1.) tc@piCoreLMS:~$ sudo modprobe i2c-dev YES, NOTHING SEEN. 2.) tc@piCoreLMS:~$ sudo python3 /home/tc/argononed.py NOTHING SEEN 4.) tc@piCoreLMS:~$ sudo vcgencmd measure_temp THIS SEEMS FINE. temp=35.5'C 5.) I typed in "cat argonone.py" and see the contents of the file. 6. tc@piCoreLMS:~$ ll and now see the following: total 12 -rw-r--r--1 tc staff 2288 Jan 1 17:23 argononed.py -rwxr-xr-x1 tc staff 2135 Dec 23 08:15 pcp-powerbutton.sh -rwxr-xr-x1 tc staff 713 Dec 23 08:15 powerscript.sh Do you think everything is o.k., now??? Finally, the thing that still does not seem to work is typing in "fanconfig" which just returns a "command not found" message. Do I need to type in something before I type "fanconfig"?? Rg System information Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] [How To] Using the Argon One case for the Pi 4B together with piCorePlayer (7.x)
carsten_h wrote: > That looks like the file is not correctly on the Pi. Maybe putty is > handling things other than the Terminal.app on the Mac and strips or > changes some characters (TAB in spaces). > > The other possibility to get that file into the Pi is to use WinSCP. Do > you know how to handle this? > The login is the same as in putty and you normally get a two pane view > where you copy a file from one side to the other. > > > O.K...I got WinSCP installed and saw that there were two different > python files installed, so I deleted both and will try to get that file > installed from Argon. Will let you know... > > > > No, these are two l (lowercase L). :-)Heheh...I thought I might've got > that wrong. Rg System information Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 View this thread: http://forums.slimdevices.com/showthread.php?t=113575 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix