installation problems

Discussions about RaZberry - Z-Wave board for Raspberry computer
lazyha
Posts: 8
Joined: 10 Apr 2014 23:39

Re: installation problems

Post by lazyha »

pofs wrote:"Serial port is gone" is a sign that communication with /dev/ttyAMA0 has been lost (more specifically, read() call has returned 0, which means EOF). This might indicate some hardware or driver problems with your Pi.
I do understand there are many distro's around (maybe kernel related?), but as noob I don't understand that when I do:

Code: Select all

wget -q -O - razberry.z-wave.me/install | sudo bash
I don't get all I need, I had to search for libs (did I install the correct libs?).
How do I know if I'm missing somekind of driver?

Code: Select all

 sudo /etc/init.d/Z-Way restart
doesn't even do anything, I have to unplug/replug the Pi to restart the server.......
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Re: installation problems

Post by PoltoS »

The installtion on Raspbian have a step to reconfigure kernel to free ttyAMA0 from a console. Please have a look in the installer script. You need to do this step manually on Raspbmc (it might diffre from the way it is on Raspbian)
lazyha
Posts: 8
Joined: 10 Apr 2014 23:39

Re: installation problems

Post by lazyha »

I hope you mean this:
Prepare AMA0
sed 's/console=ttyAMA0,115200//; s/kgdboc=ttyAMA0,115200//' /boot/cmdline.txt > /tmp/zway_install_cmdline.txt
sed 's|[^:]*:[^:]*:respawn:/sbin/getty[^:]*ttyAMA0[^:]*||' /etc/inittab > /tmp/zway_install_inittab

if diff /boot/cmdline.txt /tmp/zway_install_cmdline.txt > /dev/null || diff /etc/inittab /tmp/zway_install_inittab > /dev/null
then
rm /tmp/zway_install_cmdline.txt /tmp/zway_install_inittab
echo "Starting Z-Way"
/etc/init.d/Z-Way start
else
echo "Preparing AMA0 interface:"
echo " removing 'console=ttyAMA0,115200' and 'kgdboc=ttyAMA0,115200' from kernel command line (/boot/cmdline.txt)"
mv /tmp/zway_install_cmdline.txt /boot/cmdline.txt
echo " removing '*:*:respawn:/sbin/getty ttyAMA0' from /etc/inittab"
mv /tmp/zway_install_inittab /etc/inittab
echo "AMA0 interface reconfigured, please restart Raspberry

I will check it in a few hours, time to get some sleep :-)

*edit
This line console=ttyAMA0,115200' and 'kgdboc=ttyAMA0,115200 is not in /boot/cmdline.txt (=ok I think)

Is :respawn:/sbin/getty ttyAMA0 needed in /etc.inittab? (I inserted this)
or does it need *:respawn:/sbin/getty ttyAMA0?
or not at all?
Post Reply