Raspberry Pi Zero Support in 0.4

Raspberry Pi related support

Re: Raspberry Pi Zero Support in 0.4

Postby zomtec » 10 Jan 2018, 21:09

Hi,

I can not change any settings. After clicking on save the old values are back.

In sources, MPD configuration, settings. The latest version.
zomtec
 
Posts: 15
Joined: 17 Jun 2017, 19:39

Re: Raspberry Pi Zero Support in 0.4

Postby janui » 11 Jan 2018, 09:48

Hi zomtec,
Strange, you are the first to have this problem. I have a feeling that your Micro-SD card has problems. But first try logging into SSH, use the following command and then reboot:
Code: Select all
redis-cli set hwplatformid ""
It should say 'OK'.
If this does not help then reflashing the Micro-SD card is the best route forward.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Raspberry Pi Zero Support in 0.4

Postby zomtec » 13 Jan 2018, 19:34

The problem was i have copy files to /mnt/MPD/LocalStorage and the SD card was full.

Is it possible to expand the partition to full SD card automatically? I use the instructions from here https://raspberry-hosting.com/en/faq/ho ... -partition
zomtec
 
Posts: 15
Joined: 17 Jun 2017, 19:39

Re: Raspberry Pi Zero Support in 0.4

Postby janui » 13 Jan 2018, 20:55

Hi zomtec,
No, the standard instructions will not work. The partition setup is different, I inherited this from the first original hpeter build for the zero, I have not got around to changing it to the standard setup.
Here is a step by step demo including the responses from the Pi:
Code: Select all
fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.25.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/mmcblk0: 14.5 GiB, 15523119104 bytes, 30318592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x417ee54b

Device         Boot  Start     End Sectors Size Id Type
/dev/mmcblk0p1        2048  186367  184320  90M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      186368 6477823 6291456   3G  5 Extended
/dev/mmcblk0p5      188416 6477823 6289408   3G 83 Linux


Command (m for help): d
Partition number (1,2,5, default 5): 5

Partition 5 has been deleted.

Command (m for help): d
Partition number (1,2, default 2): 2

Partition 2 has been deleted.

Command (m for help): n
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): e
Partition number (2-4, default 2): 2
First sector (186368-30318591, default 186368):
Last sector, +sectors or +size{K,M,G,T,P} (186368-30318591, default 30318591):

Created a new partition 2 of type 'Extended' and of size 14.4 GiB.

Command (m for help): n
Partition type
   p   primary (1 primary, 1 extended, 2 free)
   l   logical (numbered from 5)
Select (default p): l

Adding logical partition 5
First sector (188416-30318591, default 188416):
Last sector, +sectors or +size{K,M,G,T,P} (188416-30318591, default 30318591):

Created a new partition 5 of type 'Linux' and of size 14.4 GiB.

Command (m for help): t
Partition number (1,2,5, default 5):
Hex code (type L to list all codes): 83

Changed type of partition 'Linux' to 'Linux'.

Command (m for help): p
Disk /dev/mmcblk0: 14.5 GiB, 15523119104 bytes, 30318592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x417ee54b

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        2048   186367   184320   90M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      186368 30318591 30132224 14.4G  5 Extended
/dev/mmcblk0p5      188416 30318591 30130176 14.4G 83 Linux


Command (m for help): w
Here are the commands you actually use after starting fdisk /dev/mmcblk0 :
Code: Select all
p
d
5
d
2
n
e
2
<cr>
<cr>
n
l
<cr>
<cr>
t
5
83
p
w
Where <cr> is an enter.
To finish off you need to expand the file system with the commands:
Code: Select all
partprobe /dev/mmcblk0
resize2fs /dev/mmcblk0p5
Check the results with:
Code: Select all
parted -ls
df -h
It is possible that 'resize2fs /dev/mmcblk0p5' will fail, then you need to reboot and retry. It always works after the reboot.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 17 Jan 2018, 20:31

last spring, I built a 0.4 version for the raspberry B+. I gave a copy to Frank and he made a few mods to it, but I have never saw a version with the fixes. It worked fine for me for everything I needed to do. I recently tried WiFi on that image and noticed that it would not connect. All my runes are on ethernet... No manner of my tweaking would allow it to connect. I was going to spend some time and build a new Rune 0.4 for B+ after I verify that the Wifi subsystem is working before I build all the rune components if there is any interest. Also, why is this image so big? My version of 0.4 is <2G... Time seems to be marching on wrt these players and without effort by the team, Rune will probably die. It is a shame as it is my favorite.

It would be nice to get 0.4 matched to the B23 for the B+...

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

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 18 Jan 2018, 19:12

In case anyone is watching this thread, I am in need of some help. I read through the thread and still cannot sue the Rune UI to connect to a WiFi. I can from the CLI once I put the information in the /etc/wpa_supplicant/wpa_supplicant.conf
Code: Select all
root@runeaudio:~ # ip link set dev wlan0 up
root@runeaudio:~ # wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
root@runeaudio:~ # dhcpcd wlan0
all: IPv6 kernel autoconf disabled
DUID 00:01:00:01:20:23:f2:18:b8:27:eb:e9:62:a0
wlan0: IAID 38:3a:fc:2e
wlan0: adding address fe80::3f81:a780:63ed:4d6e
if_addaddress6: Operation not supported
wlan0: rebinding lease of 10.10.2.179
wlan0: probing address 10.10.2.179/24
wlan0: leased 10.10.2.179 for 7200 seconds
wlan0: adding route to 10.10.2.0/24
wlan0: adding default route via 10.10.2.252
forked to background, child pid 3777


The configuration that was generated by RuneUI when I tried to connect from the UI is a bit odd and does not even show up as a 'saved' profile though it is in /etc/netctl/

This is the profile generated:
Code: Select all
Description='wlan0 connection'
Interface=wlan0
Connection=wireless
Security=wpa-configsection
IP=dhcp
WPAConfigSection=(
    'ssid="xxxxxxx-xxxxxxx"'
    'scan_ssid=1'
    'psk="passcode"'
    'key_mgmt=WPA-PSK'
    'proto=WPA'
    'group=TKIP'
    'pairwise=TKIP'
    'priority=3'
)

And this is what I put in wpa supplicant to connect:
Code: Select all
ap_scan=1
eapol_version=1

network={
        ssid="xxxxxxx-xxxxxxx"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        psk="passcode"
}


So, 2 questions, 1) why does it not show up? and 2) why does it not connect? I do not get it to show up in the UI regardless of clicking through the interface or setting it up manually.

Regards,

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

Re: Raspberry Pi Zero Support in 0.4

Postby janui » 18 Jan 2018, 20:51

Hi gearhead,
I don't have much time at the moment. Beter analysis & answer over the weekend. In the meantime try updating the package readline.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 18 Jan 2018, 23:07

Janui,

I appreciate the help. I just reinstalled readline but it was already the latest version:
Code: Select all
readline-7.0.003-1 is up to date -- reinstalling


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

Re: Raspberry Pi Zero Support in 0.4

Postby janui » 18 Jan 2018, 23:27

HI gearhead,
Check that the following two commands run without errors:
Code: Select all
php -f /srv/http/db/redis_datastore_setup check
php -f /var/www/command/refresh_nics
And a question, is access point enabled? If it is enabled, disable it and try again. I think I found a bug in the access point code last weekend.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Raspberry Pi Zero Support in 0.4

Postby gearhead » 19 Jan 2018, 00:10

Yes, they all complete with no errors and no response from either command. I tried enabling then disabling the AP. I did notice that it does set up the IP correctly when in AP mode, but I cannnot see any advertisement from my phone. In AP mode, ipconfig shows this but I get no advertisement.
Code: Select all
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.1  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 74:da:38:3a:fc:2e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

When I try to connect to an AP I get the listing, it shows the signal strength, I hit connect and it just goes back to scanning.

Thanks for the help.

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 10 guests
cron