Raspberry Pi Zero Support in 0.4

Raspberry Pi related support

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 03 Mar 2018, 23:53

Wow, What a morning/afternoon... A couple notes for anyone else trying this image on a Zero W.

1) the image OS is structured a bit differently than I expected on the disk and a resize from addons will not work. (actually it scrambles it) D'oh. Boot is P1 but root is p5 in an extended partition. I burned the image to a 16gb SD card, copied the P5 partition to the unformated space, deleted the extended partition and P5 in it, (now have P3 Primary partition next to it) then copied P3 again to where the extended partition was then deleted P3. This way, I have P1 (dos) and P2 (ext4) like the current, standard ArchArm setup
2) I added "ipv6.disable=1" to the cmdline (this allows AP mode to begin at startup if there is not a netctl profile set up in redis dbase - slick)
3) removed the soxr reference from redis "redis-cli hdel mpdconf soxr" (mpd.service will not start with 0.4b with this set)
4) I deleted the UI files and pulled from git Franks 0.4b RuneUI
5) installed sudo (pacman -Sy sudo) so that I can run addons
6) booted it up, expanded the partition, installed addons, installed my radios, fixed shairport-sync to be default (runeaudio.php and rune_SY_wrk edited)

Now this replaces the brain dead processor on my Sony NS400 speaker! Woo Hoo!!

If anyone wants me to tweak this image to have all these things, I can do that...
gearhead
 
Posts: 101
Joined: 25 Nov 2014, 06:04

Re: Raspberry Pi Zero Support in 0.4

Postby janui » 04 Mar 2018, 00:58

User avatar
janui
 
Posts: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 04 Mar 2018, 05:48

gearhead
 
Posts: 101
Joined: 25 Nov 2014, 06:04

Re: Raspberry Pi Zero Support in 0.4

Postby adrii » 18 Apr 2018, 15:58

User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 18 Apr 2018, 17:55

To compile anything, you need an updated system. If you update RuneAudio, you will break many things which have been tweaked to work on this system as, basically, an appliance. If you truly want to develop (build) on a RPi, I recommend you make a new/fresh image of Arch, build what you want on that image then copy it to RuneAudio if you want to test things.

What happened is you installed the current, new, gcc and it needs certain libraries. The version of these libraries on the RuneAudio image is a 4.xx and gcc is looking for a 6.xx.

If you are truly trying to compile on a Zero, it will be quite slow. I recommend buying a Pi3+ and making a chroot of armv6 if you want to develop small programs for the Zero. This is reasonably snappy, and can be enhanced when you use distccd running on a desktop somewhere on your network. Faster yet is to make a cross compiler on a desktop to compile programs.
gearhead
 
Posts: 101
Joined: 25 Nov 2014, 06:04

Re: Raspberry Pi Zero Support in 0.4

Postby adrii » 18 Apr 2018, 18:59

Thanks for your help.

I have made an OLED display program for Volumio that will work, with minor changes, with RuneAudio




I was hoping to make those changes and test the program on RuneAudio, and then provide build and installation instructions. However, from what you say, it will not be realistic for RuneAudio users to build the software, and so will require extra effort to make it available.

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 18 Apr 2018, 19:09

Adrian,

Looks great! What you could do is make a package and compile it yourself and put it in your github repository for others to install.

Arch linux uses 'packages', not rpm or deb. if you set it up and compile a package, it could be installed by users. You would need to set up a compile machine and compile it, though. If you are still interested, you may want to look at how to construct a PKGBUILD file to build an arch linux package, test it out on your hardware and then release it for the community...

Gearhead
gearhead
 
Posts: 101
Joined: 25 Nov 2014, 06:04

Re: Raspberry Pi Zero Support in 0.4

Postby adrii » 18 Apr 2018, 20:57

Hi Gearhead

Thanks for the suggestions. I have just had a look at using Clang for the build. I was able to build Cava (audio spectrum analyser) with it. I will look at the rest of the build and installation tomorrow.

Adrian,
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Raspberry Pi Zero Support in 0.4

Postby adrii » 29 Jun 2018, 10:53

User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 29 Jun 2018, 14:02

Adrian,

Try "pacman -Sy". This will update the package list. then try to install the package. This may hose the image, but it is worth a try.

Keith
gearhead
 
Posts: 101
Joined: 25 Nov 2014, 06:04

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 19 guests