[SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

This forum is for discussion about general software issues.

[SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby wonko7 » Tue Nov 11, 2014 12:57 pm

Hi all,

I've just installed arch on my trimslice. I want to use avahi so it can publish its services on my local network. Here's my problem: Avahi starts up fine, but after a while systemd kills it because of a timeout.

From the journal, it looks like the kernel is too old (but it's the latest available one on arch).
Is there a workaround for this?

$this->bbcode_second_pass_code('', 'Nov 11 12:18:49 reddwarf systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Process 117 died: No such process; trying to remove PID file. (/var/run/avahi-daemon//pid)
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Successfully dropped root privileges.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: avahi-daemon 0.6.31 starting up.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Successfully called chroot().
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Successfully dropped remaining capabilities.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Loading service file /services/sftp-ssh.service.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Loading service file /services/ssh.service.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Joining mDNS multicast group on interface enp1s0.IPv4 with address 192.168.0.53.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: New relevant interface enp1s0.IPv4 for mDNS.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Network interface enumeration completed.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Registering new address record for fe80::a06c:c2e2:589a:ff20 on enp1s0.*.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Registering new address record for fe80::201:c0ff:fe0b:d79a on enp1s0.*.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Registering new address record for 192.168.0.53 on enp1s0.IPv4.
Nov 11 12:18:50 reddwarf avahi-daemon[32763]: Registering HINFO record with values 'ARMV7L'/'LINUX'.
Nov 11 12:18:50 reddwarf sshd[32761]: Accepted publickey for root from 192.168.0.51 port 39731 ssh2: RSA 80:72:81:12:9e:7c:49:78:b1:a6:c9:a2:2e:4c:b2:da
Nov 11 12:18:50 reddwarf sshd[32761]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 11 12:18:50 reddwarf systemd[1]: Starting user-0.slice.
Nov 11 12:18:50 reddwarf systemd[1]: Created slice user-0.slice.
Nov 11 12:18:50 reddwarf systemd-logind[136]: New session c2 of user root.
Nov 11 12:18:50 reddwarf systemd[1]: Starting Session c2 of user root.
Nov 11 12:18:51 reddwarf avahi-daemon[32763]: Server startup complete. Host name is reddwarf.local. Local service cookie is 3483288944.
Nov 11 12:18:51 reddwarf systemd[1]: Started Session c2 of user root.
Nov 11 12:18:51 reddwarf systemd[1]: Starting User Manager for UID 0...
Nov 11 12:18:52 reddwarf avahi-daemon[32763]: Service "reddwarf" (/services/ssh.service) successfully established.
Nov 11 12:18:52 reddwarf avahi-daemon[32763]: Service "reddwarf" (/services/sftp-ssh.service) successfully established.
Nov 11 12:18:52 reddwarf systemd[32765]: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Nov 11 12:18:52 reddwarf systemd[32765]: Failed to make us a subreaper: Invalid argument
Nov 11 12:18:52 reddwarf systemd[32765]: Perhaps the kernel version is too old (< 3.4?)
Nov 11 12:18:52 reddwarf systemd[32765]: Starting Paths.
Nov 11 12:18:52 reddwarf systemd[32765]: Reached target Paths.
Nov 11 12:18:52 reddwarf systemd[32765]: Starting Timers.
Nov 11 12:18:52 reddwarf systemd[32765]: Reached target Timers.
Nov 11 12:18:52 reddwarf systemd[32765]: Starting Sockets.
Nov 11 12:18:52 reddwarf systemd[32765]: Reached target Sockets.
Nov 11 12:18:52 reddwarf systemd[32765]: Starting Basic System.
Nov 11 12:18:52 reddwarf systemd[32765]: Reached target Basic System.
Nov 11 12:18:52 reddwarf systemd[32765]: Starting Default.
Nov 11 12:18:52 reddwarf systemd[32765]: Reached target Default.
Nov 11 12:18:52 reddwarf systemd[32765]: Startup finished in 77ms.
Nov 11 12:18:52 reddwarf systemd[1]: Started User Manager for UID 0.
Nov 11 12:20:19 reddwarf systemd[1]: avahi-daemon.service start operation timed out. Terminating.
Nov 11 12:20:19 reddwarf avahi-daemon[32763]: Got SIGTERM, quitting.
Nov 11 12:20:19 reddwarf avahi-daemon[32763]: Leaving mDNS multicast group on interface enp1s0.IPv4 with address 192.168.0.53.
Nov 11 12:20:20 reddwarf avahi-daemon[32763]: avahi-daemon 0.6.31 exiting.
Nov 11 12:20:20 reddwarf systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Nov 11 12:20:20 reddwarf systemd[1]: Unit avahi-daemon.service entered failed state.')

Thanks.
Last edited by wonko7 on Fri Nov 14, 2014 10:56 am, edited 1 time in total.
wonko7
 
Posts: 4
Joined: Tue Nov 11, 2014 12:46 pm

Re: [trimeslice] 3.1.10 kernel, systemd & avahi

Postby pepedog » Tue Nov 11, 2014 3:03 pm

The package linux-armv7 (3.17.2-1) works on this
You have to create your own boot.scr though, to load dtb and zImage
I have done it, look for sirderpalot on irc for help
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [trimeslice] 3.1.10 kernel, systemd & avahi

Postby wonko7 » Fri Nov 14, 2014 10:54 am

Ok, thanks, I got the latest kernel working with the following boot.script:

$this->bbcode_second_pass_code('', 'setenv bootargs 'console=ttyS0,115200n8 root=/dev/mmcblk0p1 rw rootwait'
setenv fdt_high 0x2C000000
setenv initrd_high 0x2C000000
ext2load mmc 1:1 4080000 /boot/zImage
ext2load mmc 1:1 5880000 /boot/dtbs/tegra20-trimslice.dtb
bootz 4080000 - 5880000')
wonko7
 
Posts: 4
Joined: Tue Nov 11, 2014 12:46 pm

Re: [SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby wonko7 » Fri Nov 14, 2014 11:01 am

By the way, shouldn't this be documented on http://archlinuxarm.org/platforms/armv7/nvidia/trimslice?
wonko7
 
Posts: 4
Joined: Tue Nov 11, 2014 12:46 pm

Re: [SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby pepedog » Fri Nov 14, 2014 11:20 am

I could be. I could do that.
Can you say what doesn't work, ie sound/hdmi? Or is everything working ok?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby wonko7 » Mon Nov 17, 2014 10:28 am

Everything works, sound, wifi (with the dongle), but I don't have a hdmi set up, so I can't say for that.
wonko7
 
Posts: 4
Joined: Tue Nov 11, 2014 12:46 pm

Re: [SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby cchandel » Sat Nov 22, 2014 6:45 am

I can confirm that hdmi works too.

This information should be on the trimslice page on archlinuxarm. Could have saved me the time and effort in trying to get the Fedora kernel installed just to get a modern kernel on this machine.
cchandel
 
Posts: 2
Joined: Sat Nov 22, 2014 6:27 am

Re: [SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby pepedog » Sat Nov 22, 2014 8:43 am

Do you think the rootfs should have this as default, along with second boot.scr for sata?
Can't see anyone would have old uboot, but still......
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby kmihelich » Sun Nov 23, 2014 9:10 pm

The installation page has been updated with all new installation procedures, using our own mainline U-Boot (2014.10) and the linux-armv7 kernel. The default provided boot.scr will boot a rootfs from either the front full size SD slot, the side micro SD slot, or the first USB device it finds (which would typically be the internal drive if available).
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: [SOLVED] [trimeslice] 3.1.10 kernel, systemd & avahi

Postby cchandel » Thu Nov 27, 2014 4:48 pm

Hi,
I'm getting the following errors :-

$this->bbcode_second_pass_code('', 'Scanning MMC card ...
switch to partitions #0, OK
mmc0 is current device
Scanning fat mmc 0 on prefix / ...
** Unrecognized filesystem type **
Scanning ext2 mmc 0 on prefix / ...
** File not found /boot.scr **
Scanning fat mmc 0 on prefix /boot/ ...
** Unrecognized filesystem type **
Scanning ext2 mmc 0 on prefix /boot/ ...
675 bytes read in 63 ms (9.8 KiB/s)
boot.scr found! Executing ...
## Executing script at 00408000
** Bad device : 0x408000 **
** Bad device specification : /boot/dtbs/tegra20-trimslice **
Bad Linux ARM zImage magic!')

Had to change boot.txt to

$this->bbcode_second_pass_code('', '
setenv bootargs "root=/dev/mmcblk0p1 rw rootwait console=tty1 console=ttyS0,115200n8 mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M video=tegrafb"
setenv fdt_high 0x2C000000
setenv initrd_high 0x2C000000
ext2load mmc 0:1 4080000 /boot/zImage
ext2load mmc 0:1 5880000 /boot/dtbs/tegra20-trimslice.dtb
bootz 4080000 - 5880000')

To be able to boot. Rest all seems to be working fine for now.

Thanks for updating the wiki.
cchandel
 
Posts: 2
Joined: Sat Nov 22, 2014 6:27 am


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest