My current boot file:
https://github.com/nikkov/nanopineo2-platform/blob/master/nanopineo2/boot/boot.cmd
and scripts:
https://github.com/nikkov/Build/tree/nanopineo2-armv7
Builded image is now bootable, but node isn’t working yet, boot log from UART:
[code]Welcome to Debian GNU/Linux 8 (jessie)!
[ 52.634898] systemd[1]: Set hostname to <volumio>.
[ 52.820403] systemd[1]: Cannot add dependency job for unit console-kit-daemon.service, ignoring: Unit console-kit-daemon.service failed to load: No such file or directory.
[ 52.835835] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 52.852812] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[ 52.860747] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 52.868359] systemd[1]: Expecting device dev-ttyS0.device...
Expecting device dev-ttyS0.device...
[ 52.874195] systemd[1]: Starting Remote File Systems (Pre).
[ 52.883672] systemd[1]: Reached target Remote File Systems (Pre).
OK Reached target Remote File Systems (Pre).
OK Set up automount Arbitrary Executable File Formats F...utomount Point.
OK Reached target Encrypted Volumes.
OK Reached target Swap.
Expecting device dev-mmcblk0p1.device...
OK Created slice Root Slice.
OK Created slice User and Session Slice.
OK Listening on /dev/initctl Compatibility Named Pipe.
OK Listening on Delayed Shutdown Socket.
OK Listening on Journal Socket (/dev/log).
OK Listening on udev Control Socket.
OK Listening on udev Kernel Socket.
OK Listening on Journal Socket.
OK Created slice System Slice.
OK Created slice system-systemd\x2dfsck.slice.
OK Created slice system-getty.slice.
OK Created slice system-serial\x2dgetty.slice.
Starting Restore / save the current clock...
Mounting Huge Pages File System...
Mounting POSIX Message Queue File System...
Starting Create list of required static device nodes...rrent kernel...
Mounting Debug File System...
Starting Load Kernel Modules...
Starting udev Coldplug all Devices...
Starting Journal Service...
OK Started Journal Service.
OK Reached target Slices.
Starting Remount Root and Kernel File Systems...
OK Mounted Debug File System.
OK Mounted POSIX Message Queue File System.
OK Mounted Huge Pages File System.
OK Started Restore / save the current clock.
OK Started Create list of required static device nodes ...current kernel.
OK Started Remount Root and Kernel File Systems.
Starting Various fixups to make systemd work better on Debian...
Starting Load/Save Random Seed...
Starting Create Static Device Nodes in /dev...
OK Started Various fixups to make systemd work better on Debian.
OK Started Load/Save Random Seed.
[ 53.159803] fuse init (API version 7.26)
OK Started Create Static Device Nodes in /dev.
OK Started udev Coldplug all Devices.
OK Started Load Kernel Modules.
Mounting FUSE Control File System...
Mounting Configuration File System...
Starting Apply Kernel Variables...
Starting udev Kernel Device Manager...
OK Reached target Local File Systems (Pre).
Mounting /tmp...
Mounting /var/spool/cups...
Mounting /var/log...
OK Mounted Configuration File System.
OK Mounted FUSE Control File System.
[ 53.286345] systemd-udevd[330]: starting version 215
OK Mounted /tmp.
OK Mounted /var/spool/cups.
OK Started udev Kernel Device Manager.
OK Mounted /var/log.
OK Started Apply Kernel Variables.
OK Reached target Paths.
Starting Copy rules generated while the root was ro...
Mounting /var/spool/cups/tmp...
OK Started Copy rules generated while the root was ro.
OK Mounted /var/spool/cups/tmp.
OK Found device /dev/ttyS0.
OK Reached target Sound Card.
[ 53.596938] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0
[ 53.606270] Registered IR keymap rc-empty
[ 53.610769] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0/input2
[ 53.615303] lirc_dev: IR Remote Control driver registered, major 246
[ 53.625129] sunxi-ir 1f02000.ir: initialized sunXi IR driver
[ 53.636816] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0
[ 53.644730] IR LIRC bridge handler initialized
OK Created slice system-ifup.slice.
OK Found device /dev/mmcblk0p1.
Starting File System Check on /dev/mmcblk0p1...
[ 53.938950] systemd-fsck[388]: fsck.fat 3.0.27 (2014-11-12)
[ 53.940388] systemd-fsck[388]: /dev/mmcblk0p1: 8 files, 8611/30651 clusters
OK Started File System Check on /dev/mmcblk0p1.
Mounting /boot...
OK Mounted /boot.
OK Reached target Local File Systems.
Starting Tell Plymouth To Write Out Runtime Data...
OK Reached target Remote File Systems.
Starting Trigger Flushing of Journal to Persistent Storage...
Starting Create Volatile Files and Directories...
Starting LSB: Raise network interfaces....
OK Started Tell Plymouth To Write Out Runtime Data.
[ 54.019272] systemd-journald[310]: Received request to flush runtime journal from PID 1
OK Started Trigger Flushing of Journal to Persistent Storage.
OK Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
OK Started Update UTMP about System Boot/Shutdown.
[ 55.550389] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 55.556958] rtc-ds1307: probe of 0-0068 failed with error -5
[ 55.898721] libphy: 1c30000.ethernet: probed
[ 55.907816] RTL8211E Gigabit Ethernet 1c30000.ethernet-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=1c30000.ethernet-0:00, irq=-1)
[ 55.921924] sun8i-emac 1c30000.ethernet: device MAC address slot 0 02:01:6d:70:70:cc
[ 55.931749] sun8i-emac 1c30000.ethernet: device MAC address slot 1 01:00:5e:00:00:01
OK Started LSB: Raise network interfaces..
Starting ifup for eth0...
OK Started ifup for eth0.
OK Reached target Network.
OK Reached target Network is Online.
Starting LSB: RPC portmapper replacement...
[ 56.184941] sun8i-emac 1c30000.ethernet: device MAC address slot 1 01:00:5e:00:00:01
OK Started LSB: RPC portmapper replacement.
OK Reached target RPC Port Mapper.
Starting LSB: NFS support files common to client and server...
OK Started LSB: NFS support files common to client and server.
OK Reached target System Initialization.
OK Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
OK Listening on mpd.socket.
OK Listening on D-Bus System Message Bus Socket.
OK Reached target Sockets.
OK Reached target Timers.
Starting Restore Sound Card State...
OK Reached target Basic System.
Starting Entropy daemon using the HAVEGE algorithm...
OK Started Entropy daemon using the HAVEGE algorithm.
Starting hotspot.service...
OK Started hotspot.service.
Starting dhcpd.service...
Starting dnsmasq.service...
Starting dynamicswap.service...
OK Started dynamicswap.service.
Starting Volumio Iptables Module...
OK Started Volumio Iptables Module.
Starting mount disks automatically with standby...
OK Started mount disks automatically with standby.
Starting UPnP Renderer front-end to MPD...
OK Started UPnP Renderer front-end to MPD.
Starting volumio-remote-updater.service...
OK Started volumio-remote-updater.service.
Starting Volumio SSH enabler...
OK Started Volumio SSH enabler.
Starting Wireless Services...
Starting /etc/rc.local Compatibility...
Starting Login Service...
Starting LSB: start Winbind daemon...
Starting LSB: start Samba daemons for the AD DC...
Starting LSB: Start NTP daemon...
Starting LSB: start Samba NetBIOS nameserver (nmbd)...
Starting Restart Volumio Network...
OK Started Restart Volumio Network.
Starting LSB: Brings up/down network automatically...
Starting LSB: Load kernel modules needed to enable cpufreq scaling...
Starting LSB: Brings up/down network automatically...
Starting LSB: Advanced IEEE 802.11 management daemon...
Starting LSB: IPv4 DHCP client with IPv4LL support...
Starting Avahi mDNS/DNS-SD Stack...
Starting Music Player Daemon...
OK Started Music Player Daemon.
Starting D-Bus System Message Bus...
OK Started D-Bus System Message Bus.
[ 56.827062] sun8i-emac 1c30000.ethernet: device MAC address slot 1 01:00:5e:00:00:01
[ 56.875126] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[ 57.070494] Adding 524240k swap on /data/swapfile. Priority:-1 extents:11 across:571384k SS
Starting Permit User Sessions...
OK Started Restore Sound Card State.
FAILED Failed to start dhcpd.service.
See 'systemctl status dhcpd.service' for details.
OK Started dnsmasq.service.
OK Started /etc/rc.local Compatibility.
OK Started LSB: Load kernel modules needed to enable cpufreq scaling.
OK Started LSB: Brings up/down network automatically.
OK Started LSB: Advanced IEEE 802.11 management daemon.
FAILED Failed to start LSB: IPv4 DHCP client with IPv4LL support.
See 'systemctl status dhcpcd.service' for details.
OK Started Permit User Sessions.
OK Started LSB: Start NTP daemon.
OK Started Avahi mDNS/DNS-SD Stack.
OK Started Login Service.
Starting Disk Manager (legacy version)...
Stopping Wireless Services...
Starting LSB: set CPUFreq kernel parameters...
Starting Wait for Plymouth Boot Screen to Quit...
Starting Terminate Plymouth Boot Screen...
OK Reached target Host and Network Name Lookups.
OK Stopped Wireless Services.
OK Started Wait for Plymouth Boot Screen to Quit.
OK Started Terminate Plymouth Boot Screen.
Starting Getty on tty1...
OK Started Getty on tty1.
Starting Serial Getty on ttyS0...
OK Started Serial Getty on ttyS0.
OK Reached target Login Prompts.
Starting Wireless Services...
OK Started LSB: set CPUFreq kernel parameters.
OK Started Disk Manager (legacy version).
Starting Authenticate and Authorize Users to Run Privileged Tasks...
OK Started Authenticate and Authorize Users to Run Privileged Tasks.
[ 58.826321] wireless.js[694]: undefined instruction: pc=0000000000e52b68
[ 58.833128] Code: e1a04000 e59f3040 e28db00c e5932000 (ee070fba)
FAILED Failed to start Wireless Services.
See 'systemctl status wireless.service' for details.
Starting Volumio Backend Module...
OK Started Volumio Backend Module.
Starting First Start...
OK Started First Start.
[ 58.874519] node[709]: undefined instruction: pc=0000000000e52b68
[ 58.880739] Code: e1a04000 e59f3040 e28db00c e5932000 (ee070fba)
OK Started LSB: Brings up/down network automatically.
Starting dynamicswap.service...
OK Started dynamicswap.service.
Starting dynamicswap.service...
OK Started dynamicswap.service.
Stopping Volumio Backend Module...
OK Stopped Volumio Backend Module.
Starting Volumio Backend Module...
OK Started Volumio Backend Module.
[ 59.188215] node[730]: undefined instruction: pc=0000000000e52b68
[ 59.197116] Code: e1a04000 e59f3040 e28db00c e5932000 (ee070fba)
Starting dynamicswap.service...
OK Started dynamicswap.service.
Starting dynamicswap.service...
OK Started dynamicswap.service.
Stopping Volumio Backend Module...
OK Stopped Volumio Backend Module.
Starting Volumio Backend Module...
OK Started Volumio Backend Module.
[ 59.453895] node[750]: undefined instruction: pc=0000000000e52b68
[ 59.460084] Code: e1a04000 e59f3040 e28db00c e5932000 (ee070fba)
Starting dynamicswap.service...
FAILED Failed to start dynamicswap.service.
See 'systemctl status dynamicswap.service' for details.
Stopping Volumio Backend Module...
OK Stopped Volumio Backend Module.
Starting Volumio Backend Module...
OK Started Volumio Backend Module.
[ 59.699901] node[761]: undefined instruction: pc=0000000000e52b68
[ 59.706995] Code: e1a04000 e59f3040 e28db00c e5932000 (ee070fba)
Starting dynamicswap.service...
FAILED Failed to start dynamicswap.service.
See 'systemctl status dynamicswap.service' for details.
Starting dynamicswap.service...
FAILED Failed to start dynamicswap.service.
See 'systemctl status dynamicswap.service' for details.
Stopping Volumio Backend Module...
OK Stopped Volumio Backend Module.
Starting Volumio Backend Module...
OK Started Volumio Backend Module.
[ 59.965637] node[770]: undefined instruction: pc=0000000000e52b68
[ 59.971780] Code: e1a04000 e59f3040 e28db00c e5932000 (ee070fba)
Starting dynamicswap.service...
FAILED Failed to start dynamicswap.service.
See 'systemctl status dynamicswap.service' for details.
[ 60.031909] sun8i-emac 1c30000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Starting dynamicswap.service...
FAILED Failed to start dynamicswap.service.
See 'systemctl status dynamicswap.service' for details.
Stopping Volumio Backend Module...
OK Stopped Volumio Backend Module.
Starting Volumio Backend Module...
FAILED Failed to start Volumio Backend Module.
See 'systemctl status volumio.service' for details.
[ 62.401418] sun8i-emac 1c30000.ethernet: device MAC address slot 1 01:00:5e:00:00:01
[ 62.409237] sun8i-emac 1c30000.ethernet: device MAC address slot 2 01:00:5e:00:00:fb
Debian GNU/Linux 8 volumio ttyS0
volumio login: volumio
volumio
Password: volumio
Linux volumio 4.11.2 #1 SMP Wed Oct 18 14:57:47 +06 2017 aarch64
___
/\_ \ __
__ __ ___\//\ \ __ __ ___ ___ /\_\ ___
/\ \/\ \ / __`\\ \ \ /\ \/\ \ /' __` __`\/\ \ / __`\
\ \ \_/ |/\ \L\ \\_\ \_\ \ \_\ \/\ \/\ \/\ \ \ \/\ \L\ \
\ \___/ \ \____//\____\\ \____/\ \_\ \_\ \_\ \_\ \____/
\/__/ \/___/ \/____/ \/___/ \/_/\/_/\/_/\/_/\/___/
Free Audiophile Linux Music Player - Version 2.0
C 2015 Michelangelo Guarise - Volumio Team - Volumio.org
Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
volumio@volumio:~$ ifconfig
ifconfig
eth0 Link encap:Ethernet HWaddr 02:01:6d:70:70:cc
inet addr:192.168.0.61 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:261 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18478 (18.0 KiB) TX bytes:9584 (9.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2084 (2.0 KiB) TX bytes:2084 (2.0 KiB)
[/code]
First problem - network services try started before ethernet link (need correct dependencies?).
Second problem - nodejs just not working. I try execute node from shell without parameters but unsuccessfully:
[code]node
[ 30.853224] node[851]: undefined instruction: pc=0000000000e52b68
[ 30.859538] Code: e1a04000 e59f3040 e28db00c e5932000 (ee070fba)
Illegal instruction
[/code]
BTW, why does Volumio use node package not from official site?
Upd
I checked the memory using and saw very high used memory value:
[code]top - 16:08:46 up 20 min, 1 user, load average: 1.00, 0.98, 0.71
Tasks: 110 total, 1 running, 109 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.2 us, 0.3 sy, 0.0 ni, 99.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 494444 total, 465320 used, 29124 free, 48768 buffers
KiB Swap: 397776 total, 0 used, 397776 free. 347868 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
162 root -51 0 0 0 0 D 5.9 0.0 1:01.79 irq/141-ad+
964 volumio 20 0 2984 1648 1312 R 1.3 0.3 0:00.12 top
161 root 20 0 0 0 0 S 1.0 0.0 0:08.26 spi0
34 root 20 0 0 0 0 S 0.3 0.0 0:00.80 kworker/2:1
1 root 20 0 4564 3476 2220 S 0.0 0.7 0:04.73 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:+
6 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 mm_percpu_+
7 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
8 root 20 0 0 0 0 S 0.0 0.0 0:00.19 rcu_sched
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
10 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
11 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
14 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
15 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/1 [/code]