Hi! I’d like to compile Lakka myself for the S805 m201d 512 Mb RAM device.
I follow the instruction Compiling Lakka:
$ git clone https://github.com/libretro/Lakka.git
$ cd Lakka
$ DISTRO=Lakka PROJECT=S805 ARCH=arm make image
And here is the trouble:
. . .
Image Name: Linux-3.10.104
Created: Thu Jul 20 12:05:58 2017
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 4227942 Bytes = 4128.85 kB = 4.03 MB
Load Address: 00208000
Entry Point: 00208000
Image arch/arm/boot/uImage is ready
make[1]: Leaving directory ‘/home/user/Lakka/build.Lakka-S805.arm-devel/linux-efd897e’
error: could not load secondstage ''
Makefile:12: recipe for target ‘image’ failed
make: *** [image] Error 1
I repeated make command many times but always got this error message.
Please help me to solve this issue.
My host system is Ubuntu 17.04 Linux 4.10.0-19-generic i686
Compilation console output is here.
./scripts/image mkimage
================================================================================= Configuration for Lakka (unofficial)
Buildoptions:
- CPU (ARCH): cortex-a5 (arm)
- FLOAT: hard
- FPU: neon-vfpv4
- SIMD support: yes
- Optimizations: size
- LTO (Link Time Optimization) support: yes
- GOLD (Google Linker) Support: yes
- LLVM support:
Graphic configuration:
- SDL support: no
- OpenGL (GLX) support (provider): no (no)
- OpenGLES support (provider): yes (opengl-meson8)
- uvesafb support: no
Hardware decoder configuration:
- Kodi Player driver: libamcodec
- VAAPI Support:
- VDPAU Support:
Input device configuration:
- Remote support: no
- ATV Remote support: no
- CEC Adapter support: yes
- IRTrans support: no
- Kodi Joystick support: no
Misc. hardware configuration:
- ALSA support: yes
- Bluetooth support: yes
- LCD drivers: irtrans,imon,imonlcd,mdm166a,MtxOrb,lis,dm140,hd44780,CFontz,SureElec,vlsys_m428,serialVFD,shuttleVFD
- Include driver: RTL8192CU
- Include driver: RTL8192DU
- Include driver: RTL8192EU
- Include driver: RTL8812AU
- Include firmware: misc-firmware
- Include firmware: wlan-firmware
- Include firmware: dvb-firmware
- Include firmware: brcmfmac_sdio-firmware-aml
- Initramfs modules: softcursor
- Initramfs modules: bitblit
- Initramfs modules: font
- Initramfs modules: fbcon
Network service configuration:
- Avahi (Zeroconf) support: yes
- NFS mounting support: yes
- SAMBA mounting support: yes
- SAMBA server support: yes
- SFTP server support: yes
OS configuration:
- OEM Support: yes
- Default ROOT Password: root
- Bootloader: u-boot
- U-Boot configuration:
- U-Boot config file:
- UDevil support: yes
- Installer support: no
Misc. Filesystems:
- Swap Support: yes
- Swapfile default size: 256
- exFAT Support (via Fuse): yes
- NTFS Support (via Fuse): yes
- Install HFS Tools: yes
Kodi configuration:
- Kodi version: no
- Kodi nonfree support: yes
- Kodi Blu-Ray support: yes
- Bluray BD+ support: yes
- Bluray AACS support: yes
- Kodi DVDCSS support: yes
- Kodi Airplay support: yes
- Kodi Airtunes support: yes
- Kodi NFS support: yes
- Kodi MySQL support: yes
- Kodi Optical Drive support: yes
- Kodi SAMBA client support: yes
- Kodi SSH client support: yes
- Kodi UPNP support: yes
- Kodi Webserver support: yes
- Include Skin: Confluence
- Default Skin: Confluence
- Include extra fonts: yes
- Include RSXS Screensaver: no
- Include ProjectM Visualization: no
- Include Goom Visualization: no
================================================================================= End Configuration for Lakka
e[1;32mINSTALLe[0m libc e[1;37m(target)e[0m e[1;32mINSTALLe[0m toolchain e[1;37m(target)e[0m e[1;32mINSTALLe[0m make e[1;37m(host)e[0m e[1;32mINSTALLe[0m xz e[1;37m(host)e[0m e[1;32mINSTALLe[0m sed e[1;37m(host)e[0m e[1;32mINSTALLe[0m pkg-config e[1;37m(host)e[0m e[1;32mINSTALLe[0m autoconf e[1;37m(host)e[0m e[1;32mINSTALLe[0m automake e[1;37m(host)e[0m e[1;32mINSTALLe[0m libtool e[1;37m(host)e[0m e[1;32mINSTALLe[0m intltool e[1;37m(host)e[0m e[1;32mINSTALLe[0m autoconf-archive e[1;37m(host)e[0m e[1;32mINSTALLe[0m gcc e[1;37m(host)e[0m e[1;32mINSTALLe[0m bison e[1;37m(host)e[0m e[1;32mINSTALLe[0m flex e[1;37m(host)e[0m e[1;32mINSTALLe[0m cmake e[1;37m(host)e[0m e[1;32mINSTALLe[0m scons e[1;37m(host)e[0m e[1;32mINSTALLe[0m yasm e[1;37m(host)e[0m e[1;32mINSTALLe[0m nasm e[1;37m(host)e[0m e[1;32mINSTALLe[0m glibc e[1;37m(target)e[0m e[1;32mINSTALLe[0m ccache e[1;37m(host)e[0m e[1;32mINSTALLe[0m autotools e[1;37m(host)e[0m e[1;32mINSTALLe[0m linux e[1;37m(host)e[0m e[1;32mINSTALLe[0m gcc e[1;37m(bootstrap)e[0m e[1;32mINSTALLe[0m timezone-data e[1;37m(target)e[0m e[1;32mINSTALLe[0m gcc e[1;37m(target)e[0m e[1;33mBUILDe[0m linux e[1;37m(target)e[0m make[1]: Entering directory ‘/home/user/Lakka/build.Lakka-S805.arm-devel/linux-efd897e’ CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[2]: ‘include/generated/mach-types.h’ is up to date. CALL scripts/checksyscalls.sh CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost CHK kernel/config_data.h CC [M] drivers/amlogic/gpu/mali/linux/mali_osk_atomics.o CC [M] drivers/amlogic/gpu/mali/linux/mali_osk_locks.o CC [M] drivers/amlogic/gpu/mali/linux/mali_osk_math.o CC [M] drivers/amlogic/gpu/mali/linux/mali_osk_memory.o CC [M] drivers/amlogic/gpu/mali/linux/mali_osk_misc.o LD [M] drivers/amlogic/gpu/mali/mali.o CC [M] net/wireless/regdb.o LD [M] net/wireless/cfg80211.o Building modules, stage 2. MODPOST 454 modules LD [M] drivers/amlogic/gpu/mali/mali.ko LD [M] net/wireless/cfg80211.ko make[1]: Leaving directory ‘/home/user/Lakka/build.Lakka-S805.arm-devel/linux-efd897e’ make[1]: Entering directory ‘/home/user/Lakka/build.Lakka-S805.arm-devel/linux-efd897e’ INSTALL arch/arm/crypto/aes-arm.ko INSTALL arch/arm/crypto/sha1-arm.ko INSTALL crypto/af_alg.ko INSTALL crypto/algif_hash.ko INSTALL crypto/algif_skcipher.ko INSTALL crypto/ansi_cprng.ko INSTALL crypto/cbc.ko INSTALL crypto/cts.ko INSTALL crypto/sha1_generic.ko INSTALL crypto/xor.ko INSTALL drivers/amlogic/bluetooth/rtk8723/rtk_btusb.ko INSTALL drivers/amlogic/ethernet/am_net8218.ko INSTALL drivers/amlogic/gpu/mali/mali.ko INSTALL drivers/amlogic/wifi/bcmdhd/dhd.ko INSTALL drivers/amlogic/wifi/rtl8189ES/8189es.ko INSTALL drivers/amlogic/wifi/rtl8723AU/8723au.ko INSTALL drivers/amlogic/wifi/rtl8723BS/8723bs.ko INSTALL drivers/amlogic/wifi/rtl8811AU/8821au.ko INSTALL drivers/amlogic/wifi/rtl8xxx_EU/8188eu.ko INSTALL drivers/amlogic/wifi/rtl8xxx_EU_MP/8188eu_mp.ko INSTALL drivers/amlogic/wifi/wifi_dummy.ko . . . INSTALL drivers/video/fb_sys_fops.ko INSTALL drivers/video/syscopyarea.ko INSTALL drivers/video/sysfillrect.ko INSTALL drivers/video/sysimgblt.ko INSTALL fs/btrfs/btrfs.ko INSTALL fs/fuse/fuse.ko INSTALL fs/jfs/jfs.ko INSTALL fs/nfs/nfs_layout_nfsv41_files.ko INSTALL fs/reiserfs/reiserfs.ko INSTALL fs/xfs/xfs.ko INSTALL kernel/configs.ko INSTALL lib/crc-ccitt.ko INSTALL lib/crc-t10dif.ko INSTALL lib/libcrc32c.ko INSTALL lib/raid6/raid6_pq.ko INSTALL net/802/p8022.ko INSTALL net/802/psnap.ko INSTALL net/802/stp.ko INSTALL net/8021q/8021q.ko INSTALL net/bluetooth/bluetooth.ko INSTALL net/bluetooth/bnep/bnep.ko INSTALL net/bluetooth/hidp/hidp.ko INSTALL net/bluetooth/rfcomm/rfcomm.ko INSTALL net/bridge/bridge.ko INSTALL net/ipv4/ip_tunnel.ko INSTALL net/ipv4/netfilter/ip_tables.ko INSTALL net/ipv4/netfilter/ipt_MASQUERADE.ko INSTALL net/ipv4/netfilter/ipt_REJECT.ko INSTALL net/ipv4/netfilter/iptable_filter.ko INSTALL net/ipv4/netfilter/iptable_nat.ko INSTALL net/ipv4/netfilter/nf_conntrack_ipv4.ko INSTALL net/ipv4/netfilter/nf_defrag_ipv4.ko INSTALL net/ipv4/netfilter/nf_nat_ipv4.ko INSTALL net/ipv4/tunnel4.ko INSTALL net/ipv6/netfilter/ip6_tables.ko INSTALL net/ipv6/netfilter/ip6t_REJECT.ko INSTALL net/ipv6/netfilter/ip6table_filter.ko INSTALL net/ipv6/netfilter/ip6table_nat.ko INSTALL net/ipv6/netfilter/nf_conntrack_ipv6.ko INSTALL net/ipv6/netfilter/nf_defrag_ipv6.ko INSTALL net/ipv6/netfilter/nf_nat_ipv6.ko INSTALL net/ipv6/sit.ko INSTALL net/llc/llc.ko INSTALL net/mac80211/mac80211.ko INSTALL net/netfilter/nf_conntrack.ko INSTALL net/netfilter/nf_conntrack_broadcast.ko INSTALL net/netfilter/nf_conntrack_ftp.ko INSTALL net/netfilter/nf_conntrack_irc.ko INSTALL net/netfilter/nf_conntrack_netbios_ns.ko INSTALL net/netfilter/nf_conntrack_netlink.ko INSTALL net/netfilter/nf_conntrack_sip.ko INSTALL net/netfilter/nf_nat.ko INSTALL net/netfilter/nf_nat_ftp.ko INSTALL net/netfilter/nf_nat_irc.ko INSTALL net/netfilter/nf_nat_sip.ko INSTALL net/netfilter/nfnetlink.ko INSTALL net/netfilter/nfnetlink_log.ko INSTALL net/netfilter/x_tables.ko INSTALL net/netfilter/xt_iprange.ko INSTALL net/netfilter/xt_nat.ko INSTALL net/netfilter/xt_owner.ko INSTALL net/netfilter/xt_state.ko INSTALL net/netfilter/xt_tcpudp.ko INSTALL net/sunrpc/auth_gss/rpcsec_gss_krb5.ko INSTALL net/wireless/cfg80211.ko INSTALL sound/ac97_bus.ko INSTALL sound/core/snd-hrtimer.ko INSTALL sound/core/snd-hwdep.ko INSTALL sound/core/snd-rawmidi.ko INSTALL sound/pci/ac97/snd-ac97-codec.ko INSTALL sound/usb/6fire/snd-usb-6fire.ko INSTALL sound/usb/caiaq/snd-usb-caiaq.ko INSTALL sound/usb/misc/snd-ua101.ko INSTALL sound/usb/snd-usb-audio.ko INSTALL sound/usb/snd-usbmidi-lib.ko DEPMOD 3.10.104 make[1]: Leaving directory ‘/home/user/Lakka/build.Lakka-S805.arm-devel/linux-efd897e’ e[1;32mINSTALLe[0m initramfs e[1;37m(target)e[0m e[1;32mINSTALLe[0m libc e[1;37m(init)e[0m e[1;32mINSTALLe[0m glibc e[1;37m(init)e[0m e[1;32mINSTALLe[0m busybox e[1;37m(init)e[0m e[1;32mINSTALLe[0m linux e[1;37m(init)e[0m e[1;32mINSTALLe[0m plymouth-lite e[1;37m(init)e[0m e[1;32mINSTALLe[0m gcc e[1;37m(init)e[0m e[1;32mINSTALLe[0m libpng e[1;37m(target)e[0m e[1;32mINSTALLe[0m zlib e[1;37m(target)e[0m e[1;32mINSTALLe[0m util-linux e[1;37m(init)e[0m e[1;32mINSTALLe[0m e2fsprogs e[1;37m(init)e[0m e[1;32mINSTALLe[0m dosfstools e[1;37m(init)e[0m e[1;32mINSTALLe[0m dosfstools e[1;37m(target)e[0m e[1;32mINSTALLe[0m open-iscsi e[1;37m(init)e[0m e[1;32mINSTALLe[0m util-linux e[1;37m(target)e[0m . ./splash ./splash/splash-full.png ./splash/splash-1024.png ./init ./platform_init ./sbin ./sbin/fsck.ext4dev ./sbin/fsck.ext2 ./sbin/fsck.ext4 ./sbin/fsck ./sbin/fsck.ext3 ./sbin/fsck.fat ./sbin/e2fsck ./sbin/fsck.vfat ./sbin/fsck.msdos ./sbin/iscsistart ./etc ./etc/fstab ./etc/mtab ./etc/modules ./lib ./lib/ld.so ./lib/libmount.so.1 ./lib/libmount.so ./lib/libgcc_s.so ./lib/libgcc_s.so.1 ./lib/ld-linux-armhf.so.3 ./lib/libpthread.so.0 ./lib/ld-linux.so.3 ./lib/libblkid.so.1.1.0 ./lib/libblkid.so ./lib/modules ./lib/modules/softcursor.ko ./lib/modules/fbcon.ko ./lib/modules/font.ko ./lib/modules/bitblit.ko ./lib/librt.so ./lib/libmount.so.1.1.0 ./lib/libblkid.so.1 ./lib/librt.so.1 ./lib/libc.so.6 ./bin ./bin/busybox ./bin/ply-image ./bin/sh 5900 blocks /home/user/Lakka make[1]: Entering directory ‘/home/user/Lakka/build.Lakka-S805.arm-devel/linux-efd897e’ CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[2]: ‘include/generated/mach-types.h’ is up to date. CALL scripts/checksyscalls.sh CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost CHK include/generated/compile.h CC drivers/amlogic/gpu/ump/linux/ump_kernel_linux.o CC drivers/amlogic/gpu/ump/linux/ump_memory_backend.o CC drivers/amlogic/gpu/ump/…/mali/linux/mali_osk_atomics.o CC drivers/amlogic/gpu/ump/…/mali/linux/mali_osk_locks.o CC drivers/amlogic/gpu/ump/…/mali/linux/mali_osk_memory.o CC drivers/amlogic/gpu/ump/…/mali/linux/mali_osk_math.o CC drivers/amlogic/gpu/ump/…/mali/linux/mali_osk_misc.o LD drivers/amlogic/gpu/ump/ump.o LD drivers/amlogic/gpu/ump/built-in.o LD drivers/amlogic/built-in.o LD drivers/built-in.o LINK vmlinux LD vmlinux.o MODPOST vmlinux.o GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o KSYM .tmp_kallsyms1.o KSYM .tmp_kallsyms2.o LD vmlinux SORTEX vmlinux SYSMAP System.map OBJCOPY arch/arm/boot/ccImage Kernel: arch/arm/boot/ccImage is ready Image arch/arm/boot/ccImage.gzip is ready UIMAGE arch/arm/boot/uImage Image Name: Linux-3.10.104 Created: Thu Jul 20 12:05:58 2017 Image Type: ARM Linux Kernel Image (gzip compressed) Data Size: 4227942 Bytes = 4128.85 kB = 4.03 MB Load Address: 00208000 Entry Point: 00208000 Image arch/arm/boot/uImage is ready make[1]: Leaving directory ‘/home/user/Lakka/build.Lakka-S805.arm-devel/linux-efd897e’ error: could not load secondstage ‘’ Makefile:12: recipe for target ‘image’ failed make: *** [image] Error 1