MOHAMMAD HADI Posted September 23, 2017 Posted September 23, 2017 Hi, I'm trying to build a kernel for my tv box (kii pro) , but the resulting kernel doesn't have framebuffer or mmc drivers, first i tried to build the kernel from this git repo https://github.com/kszaq/linux-amlogic-le but not mmc devices or framebuffer then tried to build two versions of buildroot directly from amlogic site http://openlinux.amlogic.com:8000/download/ARM/filesystem/buildroot-openlinux-20170310.tar.gz http://openlinux.amlogic.com:8000/download/ARM/filesystem/Linux_BSP/buildroot_openlinux_kernel_3.14_fbdev_20170527.tar.gz unfortunately i can't build the dtbs that came with them (i get syntax error) basically i want to build a kernel with at least these features -framebuffer device /dev/fb0 -mmc drivers /dev/mmcblk -amlogic env device /dev/env so what source files should i use and is there any additional drivers to enable these features?
balbes150 Posted September 23, 2017 Posted September 23, 2017 What processor are you building a kernel ?
MOHAMMAD HADI Posted September 23, 2017 Author Posted September 23, 2017 1 hour ago, balbes150 said: What processor are you building a kernel ? Do you mean the host processor ? it's x86 processor running arch linux ▶ uname -a Linux Arch 4.12.13-1-ARCH #1 SMP PREEMPT Fri Sep 15 06:36:43 UTC 2017 x86_64 GNU/Linux
MOHAMMAD HADI Posted September 24, 2017 Author Posted September 24, 2017 13 minutes ago, balbes150 said: What processor tv box (kii pro) ? amlogic s905
balbes150 Posted September 24, 2017 Posted September 24, 2017 What build you choose when configuring the BUILDROOT ?
MOHAMMAD HADI Posted September 24, 2017 Author Posted September 24, 2017 11 hours ago, balbes150 said: What build you choose when configuring the BUILDROOT ? well i didn't configure buildroot beacuse I only need the kernel so i'm trying to build the kernel only, anyway when booting a compiled kernel usually one of these dtbs work fine gxbb_p200 gxbb_p200_2G gxbb_p201 so i guss i'd use mesongxb_p200_release in buildroot unfortunately this fails with the following error package/gpu/gpu.mk:76: *** GPU_SITE cannot be empty when GPU_SOURCE is not. Stop.
MOHAMMAD HADI Posted September 24, 2017 Author Posted September 24, 2017 I have built the kernel successfully using the buildroot-openlinux-20170310 package with fb,nand,mmc support enabled in .config but I can't boot it because I can't build a dtb from source, when trying to use a dtb for my device from libreelec image the boot process hangs reading /multiboot/kernel-3.14//umbInitrd 6270626 bytes read in 296 ms (20.2 MiB/s) reading /multiboot/kernel-3.14//zImage 17043544 bytes read in 789 ms (20.6 MiB/s) reading /multiboot/kernel-3.14//dtb.img 38576 bytes read in 9 ms (4.1 MiB/s) ## Loading init Ramdisk from Legacy Image at 13000000 ... Image Name: linux-next Image Type: AArch64 Linux RAMDisk Image (uncompressed) Data Size: 6270562 Bytes = 6 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK load dtb from 0x1000000 ...... ## Flattened Device Tree blob at 01000000 Booting using the fdt blob at 0x1000000 Loading Ramdisk to 738c6000, end 73ec0e62 ... OK Loading Device Tree to 000000001fff3000, end 000000001ffff6af ... OK signature: fdt_instaboot: get header err Starting kernel ... uboot time: 5007852 us so it's definitely a dtb problem but I can't solve it as i no nothing about dtb and dtbs provided with the buildroot all fails to build with syntax error ▶ dtc -I dts -O dtb -o ../kii.dtb arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dts Error: arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dts:8.1-9 syntax error FATAL ERROR: Unable to parse input tree
MOHAMMAD HADI Posted September 25, 2017 Author Posted September 25, 2017 trying to build a single dtb ▶ CROSS_COMPILE=/home/mohammad/Downloads/buildroot-openlinux-20170310/buildroot-openlinux-20170310/toolchain/gcc/linux-x86/aarch64/gcc-linaro-aarch64-linux-gnu-4.9/bin/aarch64-linux-gnu- ARCH=arm64 make gxbb_p200_2G.dtb KBUILD_CFLAGS_MODULE:-DMODULE DTC arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dtb Error: arch/arm64/boot/dts/amlogic/mesongxbb-gpu-mali450.dtsi:10.1-2 syntax error FATAL ERROR: Unable to parse input tree make[1]: *** [scripts/Makefile.lib:274: arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dtb] Error 1 make: *** [/home/mohammad/Downloads/buildroot-openlinux-20170310/buildroot-openlinux-20170310/kernel/aml-3.14/arch/arm64/Makefile:82: gxbb_p200_2G.dtb] Error 2
balbes150 Posted September 25, 2017 Posted September 25, 2017 Are you trying to use a dts data from another kernel version. This will not work. The kernel sources and dts sources should be the same.
MOHAMMAD HADI Posted September 25, 2017 Author Posted September 25, 2017 1 hour ago, balbes150 said: Are you trying to use a dts data from another kernel version. This will not work. The kernel sources and dts sources should be the same. I know that the dtb is version dependant, i used a dtb file from your armbian image with the same kernel version i built (3.14.29) but it doesn't work either, I can't build the dts files that came with the kernel that i built, when passing "dtb" as a target to make while building the kernel i only get the kernel compiled and not the dtbs. when trying to build the dtbs by using dtc tool i get a syntax error dtc -I dts -O dtb -o ../kii.dtb arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dts Error: arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dts:1.1-2 syntax error FATAL ERROR: Unable to parse input tree and when building and individual dtb with make i get a syntax error as well in another file buildroot-openlinux-20170310/kernel/aml-3.14 ⍉ ▶ CROSS_COMPILE=/home/mohammad/Downloads/buildroot-openlinux-20170310/buildroot-openlinux-20170310/toolchain/gcc/linux-x86/aarch64/gcc-linaro-aarch64-linux-gnu-4.9/bin/aarch64-linux-gnu- ARCH=arm64 make gxbb_p200_2G.dtb KBUILD_CFLAGS_MODULE:-DMODULE DTC arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dtb Error: arch/arm64/boot/dts/amlogic/mesongxbb-gpu-mali450.dtsi:10.1-2 syntax error FATAL ERROR: Unable to parse input tree make[1]: *** [scripts/Makefile.lib:274: arch/arm64/boot/dts/amlogic/gxbb_p200_2G.dtb] Error 1 make: *** [/home/mohammad/Downloads/buildroot-openlinux-20170310/buildroot-openlinux-20170310/kernel/aml-3.14/arch/arm64/Makefile:82: gxbb_p200_2G.dtb] Error 2
balbes150 Posted September 25, 2017 Posted September 25, 2017 If you use my kernel sources. Add the correct dts file in the kernel sources (the directory arch/arm64/boot/dts) and paste in arch/arm64/boot/dts/Makefile a string that describes the desired goal. Then start build "make dtbs". For example, the added option nexbox_a95x_s905.dts https://github.com/150balbes/Amlogic_s905-kernel/blob/armbian/arch/arm64/boot/dts/Makefile#L11 https://github.com/150balbes/Amlogic_s905-kernel/blob/armbian/arch/arm64/boot/dts/nexbox_a95x_s905.dts Pay attention want the original dts , which is suitable for this version of the kernel source.
MOHAMMAD HADI Posted September 28, 2017 Author Posted September 28, 2017 On 9/25/2017 at 10:37 PM, balbes150 said: If you use my kernel sources. Add the correct dts file in the kernel sources (the directory arch/arm64/boot/dts) and paste in arch/arm64/boot/dts/Makefile a string that describes the desired goal. Then start build "make dtbs". For example, the added option nexbox_a95x_s905.dts https://github.com/150balbes/Amlogic_s905-kernel/blob/armbian/arch/arm64/boot/dts/Makefile#L11 https://github.com/150balbes/Amlogic_s905-kernel/blob/armbian/arch/arm64/boot/dts/nexbox_a95x_s905.dts Pay attention want the original dts , which is suitable for this version of the kernel source. your kernel source fails to build, used the included config and each time i run set_make it builds some source files then error out ▶ ./set_make KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769 KBUILD_CFLAGS_MODULE:-DMODULE scripts/kconfig/conf --silentoldconfig Kconfig drivers/amlogic/wifi/bcmdhd/Kconfig:50:warning: defaults for choice values not supported KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769 CHK include/generated/uapi/linux/version.h make[1]: Nothing to be done for 'dtbs'. CHK include/generated/utsrelease.h CC arch/arm64/kernel/asm-offsets.s GEN include/generated/asm-offsets.h CALL scripts/checksyscalls.sh <stdin>:1232:2: warning: #warning syscall renameat2 not implemented [-Wcpp] CC init/main.o CHK include/generated/compile.h CC arch/arm64/mm/dma-mapping.o CC arch/arm64/kernel/swp_emulate.o CC init/do_mounts.o VDSOA arch/arm64/kernel/vdso/gettimeofday.o CC arch/arm64/mm/extable.o VDSOL arch/arm64/kernel/vdso/vdso.so.dbg OBJCOPY arch/arm64/kernel/vdso/vdso.so VDSOSYM arch/arm64/kernel/vdso/vdso-offsets.h CC arch/arm64/mm/fault.o CC init/do_mounts_initrd.o AS arch/arm64/kernel/vdso/vdso.o LD arch/arm64/kernel/vdso/built-in.o AS arch/arm64/kernel/head.o CC arch/arm64/kernel/debug-monitors.o CC init/noinitramfs.o CC init/initramfs.o CC arch/arm64/mm/init.o CC init/init_task.o AS arch/arm64/kernel/entry.o CC arch/arm64/kernel/irq.o CC init/version.o AS arch/arm64/mm/cache.o CC arch/arm64/mm/flush.o LD init/mounts.o CC arch/arm64/kernel/fpsimd.o AS arch/arm64/kernel/entry-fpsimd.o CC arch/arm64/kernel/process.o LD init/built-in.o CC arch/arm64/mm/ioremap.o CC arch/arm64/kernel/ptrace.o CC kernel/fork.o CC arch/arm64/kernel/setup.o CC arch/arm64/mm/mmap.o CC arch/arm64/mm/pgd.o CC arch/arm64/kernel/signal.o CC arch/arm64/mm/mmu.o CC arch/arm64/kernel/sys.o CC arch/arm64/kernel/stacktrace.o CC arch/arm64/mm/context.o CC mm/filemap.o CC arch/arm64/kernel/time.o CC kernel/exec_domain.o AS arch/arm64/mm/proc.o CC arch/arm64/kernel/traps.o CC arch/arm64/mm/hugetlbpage.o CC kernel/panic.o LD arch/arm64/mm/built-in.o CC arch/arm64/kernel/vdso.o CC fs/open.o CC kernel/cpu.o AS arch/arm64/kernel/hyp-stub.o CC arch/arm64/kernel/psci.o CC mm/mempool.o CC arch/arm64/kernel/insn.o CC kernel/exit.o CC arch/arm64/kernel/return_address.o CC fs/read_write.o CC mm/oom_kill.o CC arch/arm64/kernel/opcodes.o AS arch/arm64/kernel/sys32.o CC kernel/itimer.o CC fs/file_table.o CC mm/fadvise.o CC arch/arm64/kernel/signal32.o CC mm/page_alloc.o CC kernel/time.o CC fs/super.o CC arch/arm64/kernel/sys_compat.o CC arch/arm64/kernel/ftrace.o CC kernel/softirq.o CC arch/arm64/kernel/arm64ksyms.o CC fs/char_dev.o CC arch/arm64/kernel/module.o CC kernel/resource.o CC fs/stat.o CC arch/arm64/kernel/smp.o CC kernel/sysctl.o CC fs/exec.o CC arch/arm64/kernel/topology.o CC mm/page-writeback.o CC arch/arm64/kernel/perf_regs.o CC arch/arm64/kernel/perf_event.o CC fs/pipe.o CC kernel/sysctl_binary.o CC arch/arm64/kernel/hw_breakpoint.o CC mm/readahead.o CC fs/namei.o CC kernel/capability.o CC mm/swap.o AS arch/arm64/kernel/sleep.o CC arch/arm64/kernel/suspend.o CC kernel/ptrace.o CC arch/arm64/kernel/kgdb.o CC arch/arm64/kernel/cpuidle.o CC kernel/timer.o CC mm/truncate.o CC arch/arm64/kernel/hibernate.o LD arch/arm64/kernel/built-in.o CC ipc/compat.o CC mm/vmscan.o CC fs/fcntl.o CC kernel/user.o CC ipc/util.o CC fs/ioctl.o CC kernel/signal.o CC fs/readdir.o CC ipc/msgutil.o CC ipc/msg.o CC fs/select.o CC ipc/sem.o CC mm/shmem.o CC fs/dcache.o CC kernel/sys.o CC ipc/shm.o CC mm/util.o CC ipc/ipcns_notifier.o CC kernel/kmod.o CC ipc/ipc_sysctl.o CC fs/inode.o CC ipc/mqueue.o CC mm/vmstat.o CC kernel/workqueue.o CC fs/attr.o CC mm/backing-dev.o CC ipc/compat_mq.o CC fs/bad_inode.o CC ipc/namespace.o CC mm/mm_init.o CC ipc/mq_sysctl.o CC fs/file.o CC mm/mmu_context.o LD ipc/built-in.o CC security/apparmor/apparmorfs.o CC mm/percpu.o CC fs/filesystems.o CC kernel/pid.o CC security/apparmor/audit.o CC fs/namespace.o CC kernel/task_work.o CC mm/slab_common.o CC security/apparmor/capability.o CC kernel/extable.o CC security/apparmor/context.o CC mm/compaction.o CC kernel/params.o CC security/apparmor/ipc.o CC kernel/posix-timers.o CC security/apparmor/lib.o CC mm/balloon_compaction.o CC security/apparmor/match.o CC fs/seq_file.o CC mm/vmacache.o CC security/apparmor/path.o CC mm/interval_tree.o CC kernel/kthread.o CC fs/xattr.o CC security/apparmor/domain.o CC mm/list_lru.o CC kernel/posix-cpu-timers.o CC mm/fremap.o CC fs/libfs.o CC security/apparmor/policy.o CC mm/highmem.o CC kernel/hrtimer.o CC mm/madvise.o CC fs/fs-writeback.o CC security/apparmor/policy_unpack.o CC mm/memory.o CC security/apparmor/procattr.o CC kernel/nsproxy.o CC security/apparmor/lsm.o CC kernel/notifier.o CC fs/pnode.o CC kernel/ksysfs.o CC fs/splice.o CC kernel/cred.o CC security/apparmor/resource.o CC mm/mincore.o CC kernel/reboot.o CC security/apparmor/file.o CC mm/mlock.o CC kernel/async.o CC fs/sync.o CC security/apparmor/crypto.o CC kernel/groups.o LD security/apparmor/apparmor.o LD security/apparmor/built-in.o CC fs/utimes.o CC mm/mmap.o CC security/keys/gc.o CC fs/stack.o CC kernel/smpboot.o CC security/keys/key.o CC fs/fs_struct.o CC kernel/cpu/idle.o CC fs/statfs.o CC security/keys/keyring.o LD kernel/cpu/built-in.o CC kernel/debug/debug_core.o CC fs/buffer.o CC mm/mprotect.o CC security/keys/keyctl.o CC mm/mremap.o CC kernel/debug/gdbstub.o CC mm/msync.o CC security/keys/permission.o LD kernel/debug/built-in.o CC mm/rmap.o CC kernel/events/core.o CC security/keys/process_keys.o CC security/keys/request_key.o CC fs/bio.o CC mm/vmalloc.o CC security/keys/request_key_auth.o CC security/keys/user_defined.o CC security/keys/proc.o CC security/keys/sysctl.o CC fs/block_dev.o LD security/keys/built-in.o CC security/selinux/avc.o CC mm/pagewalk.o CC mm/pgtable-generic.o CC mm/process_vm_access.o CC fs/direct-io.o CC security/selinux/hooks.o CC kernel/events/ring_buffer.o CC mm/nobootmem.o CC kernel/events/callchain.o CC mm/memblock.o CC kernel/events/hw_breakpoint.o LD kernel/events/built-in.o CC fs/mpage.o CC kernel/irq/irqdesc.o CC mm/page_io.o CC kernel/irq/handle.o CC fs/ioprio.o CC mm/swap_state.o CC kernel/irq/manage.o CC fs/proc_namespace.o CC mm/swapfile.o CC security/selinux/selinuxfs.o CC kernel/irq/spurious.o CC fs/btrfs/super.o CC kernel/irq/resend.o CC kernel/irq/chip.o CC security/selinux/netlink.o CC kernel/irq/devres.o CC security/selinux/nlmsgtab.o CC mm/frontswap.o CC kernel/irq/autoprobe.o CC mm/dmapool.o CC security/selinux/netif.o CC kernel/irq/irqdomain.o CC mm/hugetlb.o CC security/selinux/netnode.o CC kernel/irq/proc.o CC fs/btrfs/ctree.o CC security/selinux/netport.o CC kernel/irq/pm.o LD kernel/irq/built-in.o CC kernel/locking/mutex.o CC security/selinux/exports.o CC security/selinux/ss/ebitmap.o CC kernel/locking/semaphore.o CC kernel/locking/rwsem.o CC mm/sparse.o CC kernel/locking/lglock.o CC security/selinux/ss/hashtab.o CC kernel/locking/rtmutex.o CC mm/sparse-vmemmap.o CC security/selinux/ss/sidtab.o CC kernel/locking/rwsem-spinlock.o CC mm/slub.o LD kernel/locking/built-in.o CC kernel/power/qos.o CC security/selinux/ss/avtab.o CC kernel/power/main.o CC security/selinux/ss/policydb.o CC kernel/power/console.o CC kernel/power/process.o CC kernel/power/suspend.o CC mm/migrate.o CC kernel/power/hibernate.o CC security/selinux/ss/services.o CC kernel/power/snapshot.o CC fs/btrfs/extent-tree.o CC mm/memcontrol.o mm/memcontrol.c: In function 'mem_cgroup_allow_attach': mm/memcontrol.c:7116:36: error: passing argument 1 of 'subsys_cgroup_allow_attach' from incompatible pointer type [-Werror] return subsys_cgroup_allow_attach(css->cgroup, tset); ^ In file included from include/linux/memcontrol.h:22:0, from mm/memcontrol.c:29: include/linux/cgroup.h:860:5: note: expected 'struct cgroup_subsys_state *' but argument is of type 'struct cgroup *' int subsys_cgroup_allow_attach(struct cgroup_subsys_state *css, ^ CC kernel/power/wakelock_android.o CC security/selinux/ss/conditional.o CC kernel/power/userwakelock.o CC kernel/power/earlysuspend.o CC security/selinux/ss/mls.o CC kernel/power/wakeup_reason.o LD kernel/power/built-in.o CC kernel/printk/printk.o CC security/selinux/ss/status.o cc1: all warnings being treated as errors make[1]: *** [scripts/Makefile.build:308: mm/memcontrol.o] Error 1 make: *** [Makefile:859: mm] Error 2 make: *** Waiting for unfinished jobs.... CC security/selinux/netlabel.o CC kernel/rcu/update.o LD security/selinux/selinux.o LD security/selinux/built-in.o CC security/smack/smack_lsm.o LD kernel/printk/built-in.o CC kernel/rcu/srcu.o CC kernel/rcu/tree.o CC fs/btrfs/print-tree.o CC kernel/rcu/tree_trace.o CC fs/btrfs/root-tree.o CC fs/btrfs/dir-item.o CC security/smack/smack_access.o CC fs/btrfs/file-item.o CC fs/btrfs/inode-item.o CC security/smack/smackfs.o CC fs/btrfs/inode-map.o CC fs/btrfs/disk-io.o LD kernel/rcu/built-in.o CC kernel/sched/core.o CC fs/btrfs/transaction.o LD security/smack/smack.o LD security/smack/built-in.o CC security/commoncap.o CC security/min_addr.o CC security/security.o CC fs/btrfs/inode.o CC kernel/sched/proc.o CC security/capability.o CC kernel/sched/clock.o CC kernel/sched/cputime.o CC kernel/sched/idle_task.o CC security/inode.o CC kernel/sched/fair.o CC kernel/sched/rt.o CC security/lsm_audit.o CC kernel/sched/deadline.o CC security/device_cgroup.o LD security/built-in.o CC kernel/sched/stop_task.o CC kernel/sched/wait.o CC kernel/sched/completion.o CC fs/btrfs/file.o CC kernel/sched/cpupri.o CC kernel/sched/cpudeadline.o CC kernel/sched/cpuacct.o CC fs/btrfs/tree-defrag.o CC fs/btrfs/extent_map.o CC fs/btrfs/sysfs.o CC fs/btrfs/struct-funcs.o LD kernel/sched/built-in.o CC kernel/time/timekeeping.o CC fs/btrfs/xattr.o CC fs/btrfs/ordered-data.o CC fs/btrfs/extent_io.o CC fs/btrfs/volumes.o CC fs/btrfs/async-thread.o CC fs/btrfs/ioctl.o CC kernel/time/ntp.o CC kernel/time/clocksource.o CC kernel/time/jiffies.o CC kernel/time/timer_list.o CC kernel/time/timeconv.o CC fs/btrfs/locking.o CC kernel/time/posix-clock.o CC fs/btrfs/orphan.o CC fs/btrfs/export.o CC fs/btrfs/tree-log.o CC kernel/time/alarmtimer.o CC fs/btrfs/free-space-cache.o CC fs/btrfs/zlib.o CC kernel/time/clockevents.o CC fs/btrfs/lzo.o CC kernel/time/tick-common.o CC fs/btrfs/compression.o CC kernel/time/tick-broadcast.o CC fs/btrfs/delayed-ref.o CC kernel/time/sched_clock.o CC fs/btrfs/relocation.o CC kernel/time/tick-oneshot.o CC fs/btrfs/delayed-inode.o CC kernel/time/tick-sched.o CC fs/btrfs/scrub.o CC kernel/time/timer_stats.o CC fs/btrfs/reada.o CC kernel/time/timekeeping_debug.o LD kernel/time/built-in.o CC kernel/trace/trace_clock.o CC kernel/trace/ftrace.o CC fs/btrfs/backref.o CC kernel/trace/ring_buffer.o CC fs/btrfs/ulist.o CC fs/btrfs/qgroup.o CC kernel/freezer.o CC kernel/trace/trace.o CC kernel/trace/trace_output.o CC kernel/profile.o CC fs/btrfs/send.o CC kernel/stacktrace.o CC kernel/trace/trace_stat.o CC kernel/futex.o CC kernel/trace/trace_printk.o CC kernel/trace/trace_sched_switch.o CC kernel/trace/trace_functions.o CC kernel/trace/trace_nop.o CC kernel/futex_compat.o CC kernel/trace/trace_stack.o CC kernel/trace/trace_functions_graph.o CC kernel/smp.o CC kernel/trace/blktrace.o CC fs/btrfs/dev-replace.o CC kernel/trace/trace_events.o CC kernel/uid16.o CC kernel/trace/trace_export.o CC kernel/trace/trace_event_perf.o CC kernel/module.o CC fs/btrfs/raid56.o CC kernel/trace/trace_events_filter.o CC kernel/trace/trace_events_trigger.o CC kernel/trace/power-traces.o CC fs/btrfs/uuid-tree.o CC kernel/trace/rpm-traces.o CC fs/btrfs/props.o CC kernel/kallsyms.o LD kernel/trace/libftrace.o CC kernel/compat.o LD kernel/trace/built-in.o CC kernel/cgroup.o CC kernel/cgroup_freezer.o CC fs/btrfs/hash.o CC fs/btrfs/acl.o CC kernel/cpuset.o CC kernel/utsname.o CC fs/btrfs/tests/free-space-tests.o CC kernel/user_namespace.o CC fs/btrfs/tests/extent-buffer-tests.o CC fs/btrfs/tests/btrfs-tests.o CC kernel/pid_namespace.o GZIP kernel/config_data.gz CC kernel/res_counter.o CC fs/btrfs/tests/extent-io-tests.o CC kernel/stop_machine.o CC kernel/audit.o CC kernel/auditfilter.o CC fs/btrfs/tests/inode-tests.o CC kernel/utsname_sysctl.o CC kernel/tracepoint.o LD fs/btrfs/btrfs.o CC fs/cachefiles/bind.o LD fs/btrfs/built-in.o CC fs/configfs/inode.o CC kernel/elfcore.o CC kernel/irq_work.o CC fs/cachefiles/daemon.o CC fs/configfs/file.o CC fs/cifs/cifsfs.o CC kernel/cpu_pm.o CC fs/configfs/dir.o CC fs/cachefiles/interface.o CC kernel/padata.o CC fs/cifs/cifssmb.o CC fs/cachefiles/key.o CC fs/configfs/symlink.o CC kernel/jump_label.o CC fs/cachefiles/main.o CC fs/configfs/mount.o CHK kernel/config_data.h UPD kernel/config_data.h CC kernel/configs.o CC fs/cachefiles/namei.o CC fs/configfs/item.o LD kernel/built-in.o LD fs/configfs/configfs.o LD fs/configfs/built-in.o CC fs/cramfs/inode.o CC fs/cachefiles/rdwr.o CC fs/cifs/cifs_debug.o LD fs/cramfs/cramfs.o LD fs/cramfs/built-in.o CC fs/debugfs/inode.o CC fs/cachefiles/security.o CC fs/cachefiles/xattr.o CC fs/cifs/connect.o CC fs/cifs/dir.o CC fs/debugfs/file.o LD fs/cachefiles/cachefiles.o LD fs/cachefiles/built-in.o LD fs/debugfs/debugfs.o LD fs/debugfs/built-in.o CC fs/cifs/file.o CC fs/devpts/inode.o CC fs/exportfs/expfs.o LD fs/exportfs/exportfs.o LD fs/exportfs/built-in.o LD fs/devpts/devpts.o LD fs/devpts/built-in.o CC fs/cifs/inode.o CC fs/ext4/balloc.o CC fs/ext4/bitmap.o CC fs/ext4/dir.o CC fs/ext4/file.o CC fs/cifs/link.o CC fs/ext4/fsync.o CC fs/cifs/misc.o CC fs/ext4/ialloc.o CC fs/cifs/netmisc.o CC fs/ext4/inode.o CC fs/cifs/smbencrypt.o CC fs/cifs/transport.o CC fs/cifs/asn1.o CC fs/ext4/page-io.o CC fs/cifs/cifs_unicode.o CC fs/cifs/nterr.o CC fs/ext4/ioctl.o CC fs/cifs/xattr.o CC fs/cifs/cifsencrypt.o CC fs/ext4/namei.o CC fs/cifs/readdir.o CC fs/ext4/super.o CC fs/cifs/ioctl.o CC fs/cifs/sess.o CC fs/cifs/export.o CC fs/ext4/symlink.o CC fs/cifs/smb1ops.o CC fs/ext4/hash.o CC fs/ext4/resize.o CC fs/ext4/extents.o CC fs/cifs/dns_resolve.o CC fs/cifs/cifs_dfs_ref.o CC fs/ext4/ext4_jbd2.o CC fs/cifs/smb2ops.o CC fs/ext4/migrate.o CC fs/cifs/smb2maperror.o CC fs/ext4/mballoc.o CC fs/ext4/block_validity.o CC fs/cifs/smb2transport.o CC fs/ext4/move_extent.o CC fs/cifs/smb2misc.o CC fs/ext4/mmp.o CC fs/cifs/smb2pdu.o CC fs/ext4/indirect.o CC fs/ext4/extents_status.o CC fs/cifs/smb2inode.o CC fs/ext4/xattr.o CC fs/ext4/xattr_user.o CC fs/ext4/xattr_trusted.o CC fs/ext4/inline.o CC fs/ext4/acl.o CC fs/cifs/smb2file.o CC fs/ext4/xattr_security.o CC fs/fat/cache.o LD fs/cifs/cifs.o LD fs/cifs/built-in.o CC fs/fscache/cache.o CC fs/fscache/cookie.o CC fs/fat/dir.o LD fs/ext4/ext4.o LD fs/ext4/built-in.o CC fs/hugetlbfs/inode.o CC fs/isofs/namei.o CC fs/fscache/fsdef.o CC fs/fscache/main.o CC fs/isofs/inode.o CC fs/fscache/netfs.o LD fs/hugetlbfs/hugetlbfs.o LD fs/hugetlbfs/built-in.o CC fs/fat/fatent.o CC fs/jbd2/transaction.o CC fs/fscache/object.o CC fs/isofs/dir.o CC fs/fat/file.o CC fs/fscache/operation.o CC fs/isofs/util.o CC fs/isofs/rock.o CC fs/fat/inode.o CC fs/fscache/page.o CC fs/jbd2/commit.o CC fs/isofs/export.o CC fs/fscache/proc.o CC fs/isofs/joliet.o CC fs/fat/misc.o LD fs/fscache/fscache.o LD fs/fscache/built-in.o CC fs/isofs/compress.o CC fs/fat/nfs.o CC fs/jbd2/recovery.o CC fs/fat/namei_msdos.o CC fs/fat/namei_vfat.o LD fs/isofs/isofs.o LD fs/isofs/built-in.o LD fs/jfs/built-in.o CC fs/kernfs/mount.o CC fs/jbd2/checkpoint.o CC fs/jbd2/revoke.o CC fs/kernfs/inode.o LD fs/fat/fat.o LD fs/fat/vfat.o LD fs/fat/msdos.o LD fs/fat/built-in.o CC fs/kernfs/dir.o CC fs/jbd2/journal.o CC fs/lockd/clntlock.o CC fs/nfs/client.o CC fs/kernfs/file.o CC fs/lockd/clntproc.o CC fs/kernfs/symlink.o LD fs/kernfs/built-in.o CC fs/nfs/dir.o CC fs/lockd/clntxdr.o CC fs/nfs/file.o LD fs/jbd2/jbd2.o LD fs/jbd2/built-in.o CC fs/nfs/getroot.o CC fs/lockd/host.o CC fs/nls/nls_base.o CC fs/nfs/inode.o CC fs/nfs/super.o CC fs/nls/nls_cp437.o CC fs/nls/nls_ascii.o CC fs/lockd/svc.o CC fs/nls/nls_iso8859-1.o CC fs/nls/nls_utf8.o LD fs/nls/built-in.o CC fs/lockd/svclock.o CC fs/notify/fsnotify.o CC fs/nfs/direct.o CC fs/nfs/pagelist.o CC fs/notify/notification.o CC fs/lockd/svcshare.o CC fs/notify/group.o CC fs/nfs/read.o CC fs/nfs/symlink.o CC fs/notify/inode_mark.o CC fs/lockd/svcproc.o CC fs/notify/mark.o CC fs/nfs/unlink.o CC fs/nfs/write.o CC fs/lockd/svcsubs.o CC fs/notify/vfsmount_mark.o CC fs/notify/fdinfo.o CC fs/nfs/namespace.o CC fs/lockd/mon.o CC fs/notify/dnotify/dnotify.o CC fs/nfs/mount_clnt.o CC fs/lockd/xdr.o LD fs/notify/dnotify/built-in.o CC fs/notify/fanotify/fanotify.o CC fs/proc/task_mmu.o CC fs/notify/fanotify/fanotify_user.o CC fs/nfs/nfstrace.o CC fs/lockd/grace.o LD fs/notify/fanotify/built-in.o CC fs/lockd/clnt4xdr.o CC fs/proc/inode.o CC fs/proc/root.o CC fs/lockd/xdr4.o CC fs/nfs/nfsroot.o CC fs/proc/base.o CC fs/lockd/svc4proc.o CC fs/nfs/sysctl.o LD fs/lockd/lockd.o LD fs/lockd/built-in.o CC fs/nfs/nfs4filelayout.o CC fs/quota/dquot.o CC fs/proc/generic.o CC fs/proc/array.o CC fs/proc/fd.o CC fs/nfs/nfs4filelayoutdev.o CC fs/quota/quota_v2.o CC fs/proc/proc_tty.o CC fs/quota/quota_tree.o CC fs/proc/cmdline.o CC fs/nfs/nfs2super.o CC fs/proc/consoles.o CC fs/proc/cpuinfo.o CC fs/quota/quota.o CC fs/proc/devices.o CC fs/nfs/proc.o CC fs/proc/interrupts.o CC fs/proc/loadavg.o CC fs/proc/meminfo.o CC fs/quota/kqid.o CC fs/nfs/nfs2xdr.o LD fs/quota/built-in.o CC fs/proc/stat.o CC fs/proc/uptime.o CC fs/notify/inotify/inotify_fsnotify.o CC fs/proc/version.o CC fs/proc/softirqs.o CC fs/notify/inotify/inotify_user.o CC fs/proc/namespaces.o CC fs/proc/self.o CC fs/nfs/nfs3super.o CC fs/ramfs/inode.o CC fs/proc/proc_sysctl.o LD fs/notify/inotify/built-in.o LD fs/notify/built-in.o LD fs/reiserfs/built-in.o CC fs/nfs/nfs3client.o CC fs/sysfs/file.o CC fs/ramfs/file-mmu.o LD fs/ramfs/ramfs.o LD fs/ramfs/built-in.o CC fs/nfs/nfs3proc.o CC fs/sysfs/dir.o CC fs/ubifs/shrinker.o CC fs/proc/proc_net.o CC fs/sysfs/symlink.o CC fs/proc/kcore.o CC fs/ubifs/journal.o CC fs/sysfs/mount.o CC fs/nfs/nfs3xdr.o CC fs/sysfs/group.o CC fs/proc/proc_devtree.o LD fs/sysfs/built-in.o CC fs/ubifs/file.o CC fs/proc/kmsg.o CC fs/ubifs/dir.o CC fs/proc/page.o CC fs/nfs/nfs4proc.o CC fs/nfs/nfs4xdr.o LD fs/proc/proc.o LD fs/proc/built-in.o CC fs/ubifs/super.o CC fs/udf/balloc.o CC fs/udf/dir.o CC fs/udf/file.o CC fs/ubifs/sb.o CC fs/udf/ialloc.o CC fs/udf/inode.o CC fs/ubifs/io.o CC fs/ubifs/tnc.o CC fs/nfs/nfs4state.o CC fs/udf/lowlevel.o CC fs/nfs/nfs4renewd.o CC fs/udf/namei.o CC fs/nfs/nfs4super.o CC fs/ubifs/master.o CC fs/nfs/nfs4file.o CC fs/udf/partition.o CC fs/ubifs/scan.o CC fs/nfs/delegation.o CC fs/nfs/idmap.o CC fs/udf/super.o CC fs/ubifs/replay.o CC fs/nfs/callback.o CC fs/ubifs/log.o CC fs/ubifs/commit.o CC fs/udf/truncate.o CC fs/ubifs/gc.o CC fs/nfs/callback_xdr.o CC fs/ubifs/orphan.o CC fs/udf/symlink.o CC fs/ubifs/budget.o CC fs/udf/directory.o CC fs/ubifs/find.o CC fs/nfs/callback_proc.o CC fs/udf/misc.o CC fs/ubifs/tnc_commit.o CC fs/udf/udftime.o CC fs/ubifs/compress.o CC fs/nfs/nfs4namespace.o CC fs/ubifs/lpt.o CC fs/udf/unicode.o CC fs/ubifs/lprops.o LD fs/udf/udf.o LD fs/udf/built-in.o CC fs/ubifs/recovery.o CC fs/nfs/nfs4getroot.o CC fs/nfs/nfs4client.o CC fs/ubifs/ioctl.o CC fs/ubifs/lpt_commit.o CC fs/ubifs/tnc_misc.o CC fs/ubifs/xattr.o CC fs/nfs/nfs4session.o CC fs/ubifs/debug.o CC fs/nfs/dns_resolve.o CC fs/nfs/nfs4trace.o LD fs/xfs/built-in.o CC fs/eventpoll.o CC fs/nfs/nfs4sysctl.o CC fs/nfs/pnfs.o CC fs/anon_inodes.o LD fs/ubifs/ubifs.o LD fs/ubifs/built-in.o CC fs/signalfd.o CC fs/timerfd.o CC fs/nfs/pnfs_dev.o CC fs/eventfd.o CC fs/aio.o CC fs/locks.o CC fs/compat.o LD fs/nfs/nfs.o LD fs/nfs/nfsv2.o LD fs/nfs/nfsv3.o LD fs/nfs/nfsv4.o LD fs/nfs/nfs_layout_nfsv41_files.o LD fs/nfs/built-in.o CC fs/compat_ioctl.o CC fs/binfmt_misc.o CC fs/binfmt_script.o CC fs/binfmt_elf.o CC fs/compat_binfmt_elf.o CC fs/mbcache.o CC fs/posix_acl.o CC fs/coredump.o CC fs/drop_caches.o CC fs/fhandle.o CC fs/dcookies.o LD fs/built-in.o ~/Amlogic_s905-kernel 3.14 ✗ 82d ✖ ⚑ ◒ ⍉ ▶ ./set_make KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769 CHK include/generated/uapi/linux/version.h make[1]: Nothing to be done for 'dtbs'. CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh <stdin>:1232:2: warning: #warning syscall renameat2 not implemented [-Wcpp] CHK include/generated/compile.h CC arch/arm64/kernel/cputable.o CC arch/arm64/kernel/io.o CC arch/arm64/kernel/cpu_ops.o CC mm/memcontrol.o AS arch/arm64/kernel/psci-call.o AS arch/arm64/kernel/kuser32.o AS arch/arm64/kernel/entry-ftrace.o CC arch/arm64/kernel/smp_spin_table.o mm/memcontrol.c: In function 'mem_cgroup_allow_attach': mm/memcontrol.c:7116:36: error: passing argument 1 of 'subsys_cgroup_allow_attach' from incompatible pointer type [-Werror] return subsys_cgroup_allow_attach(css->cgroup, tset); ^ In file included from include/linux/memcontrol.h:22:0, from mm/memcontrol.c:29: include/linux/cgroup.h:860:5: note: expected 'struct cgroup_subsys_state *' but argument is of type 'struct cgroup *' int subsys_cgroup_allow_attach(struct cgroup_subsys_state *css, ^ CHK kernel/config_data.h CC arch/arm64/kernel/early_printk.o CC arch/arm64/kernel/jump_label.o LD arch/arm64/kernel/built-in.o CC crypto/api.o CC block/elevator.o CC crypto/cipher.o CC block/blk-core.o CC crypto/compress.o CC drivers/amba/bus.o CC crypto/memneq.o LD drivers/amba/built-in.o CC drivers/amlogic/amaudio/amaudio.o CC crypto/algapi.o LD drivers/amlogic/amaudio/amlogic_amaudio.o LD drivers/amlogic/amaudio/built-in.o CC drivers/amlogic/amaudio2/amaudio2.o cc1: all warnings being treated as errors make[1]: *** [scripts/Makefile.build:308: mm/memcontrol.o] Error 1 make: *** [Makefile:859: mm] Error 2 make: *** Waiting for unfinished jobs.... CC drivers/amlogic/amlnf/dev/amlnf_ctrl.o CC crypto/scatterwalk.o CC drivers/amlogic/amlnf/dev/amlnf_dev.o CC crypto/proc.o LD drivers/amlogic/amaudio2/amlogic_amaudio2.o LD drivers/amlogic/amaudio2/built-in.o CC drivers/amlogic/amports/amstream.o CC crypto/ablkcipher.o CC drivers/amlogic/amlnf/dev/amlnf_env.o CC block/blk-tag.o CC drivers/amlogic/amlnf/dev/amlnf_dtb.o CC block/blk-sysfs.o CC crypto/blkcipher.o CC drivers/amlogic/amlnf/dev/phydev.o CC block/blk-flush.o CC crypto/ahash.o CC block/blk-settings.o CC drivers/amlogic/amports/streambuf.o CC crypto/shash.o CC drivers/amlogic/amlnf/dev/nandkey.o CC block/blk-ioc.o CC drivers/amlogic/amports/vdec.o CC drivers/amlogic/amlnf/dev/secure_storage.o CC block/blk-map.o CC crypto/algboss.o LD drivers/amlogic/amlnf/dev/amlnf_api.o LD drivers/amlogic/amlnf/dev/built-in.o CC drivers/amlogic/amlnf/ntd/aml_ntd_blkdevs.o CC block/blk-exec.o CC crypto/testmgr.o CC block/blk-merge.o CC crypto/crypto_wq.o CC drivers/amlogic/amlnf/ntd/aml_ntdcore.o LD crypto/crypto_algapi.o CC crypto/aead.o CC drivers/amlogic/amlnf/ntd/aml_ntdpart.o CC drivers/amlogic/amports/adec.o CC block/blk-softirq.o LD crypto/crypto_blkcipher.o CC crypto/chainiv.o LD drivers/amlogic/amlnf/ntd/aml_ntd.o LD drivers/amlogic/amlnf/ntd/built-in.o CC drivers/amlogic/amlnf/phy/chip.o CC block/blk-timeout.o CC drivers/amlogic/amports/tsdemux.o CC crypto/eseqiv.o CC block/blk-iopoll.o CC drivers/amlogic/amlnf/phy/chip_operation.o CC drivers/amlogic/amports/psparser.o CC crypto/seqiv.o CC block/blk-lib.o LD crypto/crypto_hash.o CC crypto/pcompress.o CC block/blk-mq.o CC drivers/amlogic/amports/esparser.o CC drivers/amlogic/amlnf/phy/chipenv.o LD crypto/cryptomgr.o CC crypto/cmac.o CC crypto/hmac.o CC drivers/amlogic/amports/amvdec.o CC block/blk-mq-tag.o CC crypto/md4.o CC block/blk-mq-sysfs.o CC crypto/md5.o CC drivers/amlogic/amlnf/phy/amlnand_init.o CC drivers/amlogic/amports/amstream_profile.o CC block/blk-mq-cpu.o CC crypto/sha1_generic.o CC drivers/amlogic/amports/tsync_pcr.o CC drivers/amlogic/amlnf/phy/hw_controller.o CC block/blk-mq-cpumap.o CC crypto/sha256_generic.o CC block/ioctl.o CC drivers/amlogic/amlnf/phy/id_table.o CC drivers/amlogic/amports/amports_gate.o CC drivers/amlogic/amlnf/phy/new_nand.o CC block/genhd.o CC crypto/ecb.o CC drivers/amlogic/amports/gp_pll.o CC crypto/cbc.o CC drivers/amlogic/amports/thread_rw.o CC crypto/pcbc.o CC block/scsi_ioctl.o CC crypto/ctr.o CC drivers/amlogic/amports/vdec_input.o CC block/partition-generic.o CC drivers/amlogic/amlnf/phy/boot_operation.o CC crypto/ccm.o CC drivers/amlogic/amports/config_parser.o LD drivers/amlogic/amlnf/phy/amlnf_phy.o CC block/partitions/check.o CC drivers/amlogic/amports/amvideocap.o LD drivers/amlogic/amlnf/phy/built-in.o LD drivers/amlogic/amlnf/built-in.o CC drivers/amlogic/amvecm/amve.o CC crypto/des_generic.o CC block/partitions/mac.o CC block/partitions/ldm.o CC drivers/amlogic/amports/tsync.o CC crypto/aes_generic.o CC drivers/amlogic/amports/timestamp.o CC block/partitions/msdos.o CC crypto/arc4.o CC drivers/amlogic/amports/vavs.o CC block/partitions/efi.o CC crypto/deflate.o CC crypto/crc32c.o LD block/partitions/built-in.o CC block/bsg.o CC crypto/crct10dif_common.o CC drivers/amlogic/amports/avsp_trans.o CC crypto/crct10dif_generic.o CC crypto/authenc.o CC block/bsg-lib.o CC drivers/amlogic/amvecm/amcm.o CC block/blk-cgroup.o CC crypto/authencesn.o CC drivers/amlogic/amvecm/amcsc.o CC drivers/amlogic/amports/vh264.o CC block/blk-throttle.o CC crypto/lzo.o CC crypto/rng.o CC crypto/krng.o CC block/noop-iosched.o CC crypto/xor.o CC drivers/amlogic/amports/vh264_4k2k.o CC block/deadline-iosched.o CC drivers/amlogic/amvecm/amvecm.o CC block/cfq-iosched.o LD crypto/crypto.o LD crypto/built-in.o CC block/compat_ioctl.o CC drivers/amlogic/amports/vh264mvc.o CC drivers/amlogic/amports/vh265.o CC drivers/amlogic/amports/vmjpeg.o LD block/built-in.o CC drivers/amlogic/amports/vmpeg12.o CC drivers/amlogic/amports/vmpeg4.o CC drivers/amlogic/amvecm/amdolby_vision.o CC drivers/amlogic/amports/vreal.o CC drivers/amlogic/amports/rmparser.o CC drivers/amlogic/amports/vvc1.o CC drivers/amlogic/amports/vvp9.o drivers/amlogic/amports/vvp9.c: In function 'prepare_display_buf': drivers/amlogic/amports/vvp9.c:5675:3: error: 'gvs' undeclared (first use in this function) gvs->frame_dur = pbi->frame_dur; ^ drivers/amlogic/amports/vvp9.c:5675:3: note: each undeclared identifier is reported only once for each function it appears in drivers/amlogic/amports/vvp9.c: In function 'vvp9_dec_status': drivers/amlogic/amports/vvp9.c:6424:22: error: 'gvs' undeclared (first use in this function) vstatus->bit_rate = gvs->bit_rate; ^ make[3]: *** [scripts/Makefile.build:308: drivers/amlogic/amports/vvp9.o] Error 1 make[3]: *** Waiting for unfinished jobs.... CC drivers/amlogic/amvecm/keystone_correction.o CC drivers/amlogic/amvecm/bitdepth.o CC drivers/amlogic/audinfo_kernel/audio_data.o CC drivers/amlogic/audiodsp/audiodsp_module.o LD drivers/amlogic/audinfo_kernel/built-in.o CC drivers/base/component.o LD drivers/amlogic/amvecm/am_vecm.o LD drivers/amlogic/amvecm/built-in.o LD drivers/amlogic/audiodsp/audiodsp.o LD drivers/amlogic/audiodsp/built-in.o CC drivers/base/core.o CC drivers/base/bus.o CC drivers/base/dd.o CC drivers/base/syscore.o CC drivers/base/driver.o CC drivers/base/class.o CC drivers/base/platform.o CC drivers/base/cpu.o CC drivers/base/firmware.o CC drivers/base/init.o CC drivers/base/map.o CC drivers/base/devres.o CC drivers/base/attribute_container.o CC drivers/base/transport_class.o CC drivers/base/topology.o CC drivers/base/container.o CC drivers/base/devtmpfs.o CC drivers/base/dma-contiguous.o CC drivers/base/power/sysfs.o CC drivers/base/power/generic_ops.o CC drivers/base/power/common.o CC drivers/base/power/qos.o CC drivers/base/power/main.o CC drivers/base/power/wakeup.o CC drivers/base/power/runtime.o CC drivers/base/power/opp.o CC drivers/base/power/clock_ops.o LD drivers/base/power/built-in.o CC drivers/base/regmap/regmap.o CC drivers/base/regmap/regcache.o CC drivers/base/regmap/regcache-rbtree.o CC drivers/base/regmap/regcache-lzo.o CC drivers/base/regmap/regcache-flat.o CC drivers/base/regmap/regmap-debugfs.o CC drivers/base/regmap/regmap-i2c.o CC drivers/base/regmap/regmap-spi.o CC drivers/base/regmap/regmap-mmio.o LD drivers/base/regmap/built-in.o CC drivers/base/dma-mapping.o CC drivers/base/dma-coherent.o CC drivers/base/dma-buf.o CC drivers/base/firmware_class.o CC drivers/base/module.o CC drivers/base/pinctrl.o LD drivers/base/built-in.o make[2]: *** [scripts/Makefile.build:455: drivers/amlogic/amports] Error 2 make[2]: *** Waiting for unfinished jobs.... CC drivers/block/loop.o CC drivers/cdrom/cdrom.o CC drivers/amlogic/bluetooth/bt_device.o LD drivers/bluetooth/built-in.o CC drivers/char/mem.o LD drivers/amlogic/bluetooth/built-in.o make[1]: *** [scripts/Makefile.build:455: drivers/amlogic] Error 2 make[1]: *** Waiting for unfinished jobs.... CC drivers/char/random.o CC drivers/char/ttyprintk.o CC drivers/char/misc.o CC drivers/block/virtio_blk.o CC drivers/char/hw_random/core.o LD drivers/cdrom/built-in.o CC drivers/char/hw_random/meson-rng.o LD drivers/char/hw_random/rng-core.o LD drivers/char/hw_random/built-in.o LD drivers/block/built-in.o LD drivers/char/built-in.o make: *** [Makefile:859: drivers] Error 2 ~/Amlogic_s905-kernel 3.14 ✗ 82d ✖ ⚑ ◒ ⍉ ▶ ./set_make KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769 CHK include/generated/uapi/linux/version.h make[1]: Nothing to be done for 'dtbs'. CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh <stdin>:1232:2: warning: #warning syscall renameat2 not implemented [-Wcpp] CHK include/generated/compile.h CC mm/memcontrol.o CHK kernel/config_data.h mm/memcontrol.c: In function 'mem_cgroup_allow_attach': mm/memcontrol.c:7116:36: error: passing argument 1 of 'subsys_cgroup_allow_attach' from incompatible pointer type [-Werror] return subsys_cgroup_allow_attach(css->cgroup, tset); ^ In file included from include/linux/memcontrol.h:22:0, from mm/memcontrol.c:29: include/linux/cgroup.h:860:5: note: expected 'struct cgroup_subsys_state *' but argument is of type 'struct cgroup *' int subsys_cgroup_allow_attach(struct cgroup_subsys_state *css, ^ CC sound/sound_core.o CC drivers/amlogic/amports/vvp9.o LD sound/arm/built-in.o LD sound/atmel/built-in.o CC sound/core/compress_offload.o drivers/amlogic/amports/vvp9.c: In function 'prepare_display_buf': drivers/amlogic/amports/vvp9.c:5675:3: error: 'gvs' undeclared (first use in this function) gvs->frame_dur = pbi->frame_dur; ^ drivers/amlogic/amports/vvp9.c:5675:3: note: each undeclared identifier is reported only once for each function it appears in drivers/amlogic/amports/vvp9.c: In function 'vvp9_dec_status': drivers/amlogic/amports/vvp9.c:6424:22: error: 'gvs' undeclared (first use in this function) vstatus->bit_rate = gvs->bit_rate; ^ make[3]: *** [scripts/Makefile.build:308: drivers/amlogic/amports/vvp9.o] Error 1 make[2]: *** [scripts/Makefile.build:455: drivers/amlogic/amports] Error 2 make[1]: *** [scripts/Makefile.build:455: drivers/amlogic] Error 2 make: *** [Makefile:859: drivers] Error 2 make: *** Waiting for unfinished jobs.... CC sound/core/pcm.o CC sound/core/pcm_native.o CC sound/core/pcm_lib.o CC sound/core/pcm_timer.o CC sound/core/pcm_misc.o CC sound/core/pcm_memory.o cc1: all warnings being treated as errors make[1]: *** [scripts/Makefile.build:308: mm/memcontrol.o] Error 1 make: *** [Makefile:859: mm] Error 2 CC sound/core/memalloc.o CC sound/core/timer.o CC sound/core/sound.o CC sound/core/init.o CC sound/core/memory.o CC sound/core/info.o CC sound/core/control.o CC sound/core/misc.o CC sound/core/device.o CC sound/core/vmaster.o CC sound/core/jack.o LD sound/drivers/mpu401/built-in.o LD sound/drivers/opl3/built-in.o LD sound/drivers/opl4/built-in.o LD sound/drivers/pcsp/built-in.o LD sound/drivers/vx/built-in.o LD sound/drivers/built-in.o LD sound/firewire/built-in.o LD sound/i2c/other/built-in.o LD sound/i2c/built-in.o LD sound/isa/ad1816a/built-in.o LD sound/isa/ad1848/built-in.o LD sound/isa/cs423x/built-in.o LD sound/mips/built-in.o LD sound/isa/es1688/built-in.o LD sound/isa/galaxy/built-in.o LD sound/parisc/built-in.o LD sound/isa/gus/built-in.o LD sound/isa/msnd/built-in.o LD sound/pci/ac97/built-in.o LD sound/isa/sb/built-in.o LD sound/isa/opti9xx/built-in.o LD sound/pci/ali5451/built-in.o LD sound/isa/wss/built-in.o LD sound/isa/wavefront/built-in.o LD sound/pci/asihpi/built-in.o LD sound/isa/built-in.o LD sound/pci/au88x0/built-in.o LD sound/pci/aw2/built-in.o LD sound/pcmcia/pdaudiocf/built-in.o LD sound/pci/ca0106/built-in.o LD sound/pci/cs46xx/built-in.o LD sound/pcmcia/vx/built-in.o LD sound/pcmcia/built-in.o LD sound/pci/cs5535audio/built-in.o LD sound/pci/ctxfi/built-in.o LD sound/core/snd.o LD sound/ppc/built-in.o LD sound/pci/echoaudio/built-in.o LD sound/pci/emu10k1/built-in.o LD sound/core/snd-timer.o LD sound/sh/built-in.o LD sound/core/snd-pcm.o LD sound/pci/hda/built-in.o LD sound/core/snd-compress.o LD sound/core/built-in.o CC sound/soc/soc-core.o LD sound/sparc/built-in.o CC sound/soc/soc-dapm.o LD sound/pci/ice1712/built-in.o LD sound/pci/korg1212/built-in.o CC sound/soc/soc-jack.o LD sound/pci/lola/built-in.o LD sound/pci/lx6464es/built-in.o LD sound/pci/nm256/built-in.o LD sound/pci/mixart/built-in.o CC sound/soc/soc-cache.o LD sound/pci/oxygen/built-in.o LD sound/pci/pcxhr/built-in.o LD sound/pci/riptide/built-in.o LD sound/pci/rme9652/built-in.o LD sound/pci/trident/built-in.o LD sound/pci/vx222/built-in.o LD sound/pci/ymfpci/built-in.o LD sound/pci/built-in.o LD sound/spi/built-in.o LD sound/synth/built-in.o LD sound/usb/6fire/built-in.o LD sound/usb/caiaq/built-in.o LD sound/usb/hiface/built-in.o CC sound/soc/soc-utils.o LD sound/usb/misc/built-in.o CC sound/soc/soc-pcm.o LD sound/usb/usx2y/built-in.o LD sound/usb/built-in.o CC sound/last.o LD sound/soundcore.o CC sound/soc/soc-compress.o CC sound/soc/soc-io.o CC sound/soc/soc-devres.o LD sound/soc/adi/built-in.o CC sound/soc/aml/m8/aml_dmic.o LD sound/soc/atmel/built-in.o LD sound/soc/au1x/built-in.o LD sound/soc/bcm/built-in.o LD sound/soc/blackfin/built-in.o CC sound/soc/codecs/aml_codec_t9015.o LD sound/soc/cirrus/built-in.o LD sound/soc/davinci/built-in.o LD sound/soc/dwc/built-in.o LD sound/soc/fsl/built-in.o LD sound/soc/generic/built-in.o CC sound/soc/aml/m8/aml_g9tv.o LD sound/soc/intel/built-in.o LD sound/soc/jz4740/built-in.o LD sound/soc/kirkwood/built-in.o LD sound/soc/mxs/built-in.o LD sound/soc/nuc900/built-in.o LD sound/soc/omap/built-in.o LD sound/soc/pxa/built-in.o LD sound/soc/s6000/built-in.o LD sound/soc/sh/built-in.o LD sound/soc/samsung/built-in.o CC sound/soc/codecs/aml_codec_t9015S.o CC sound/soc/aml/m8/aml_audio_hw_pcm.o CC sound/soc/codecs/aml_codec_txlx_acodec.o CC sound/soc/aml/m8/aml_audio_hw.o CC sound/soc/codecs/aml_pmu4_codec.o LD sound/soc/spear/built-in.o CC sound/soc/codecs/dummy_codec.o CC sound/soc/aml/m8/aml_i2s_dai.o CC sound/soc/aml/m8/aml_i2s.o CC sound/soc/codecs/pcm2bt.o CC sound/soc/codecs/tas5707.o CC sound/soc/aml/m8/aml_m8.o CC sound/soc/codecs/tas5717.o CC sound/soc/codecs/tas5731.o CC sound/soc/aml/m8/aml_pcm_dai.o CC sound/soc/aml/m8/aml_pcm.o CC sound/soc/codecs/tlv320aic32x4.o CC sound/soc/aml/m8/aml_snd_iomap.o CC sound/soc/aml/m8/aml_spdif_codec.o CC sound/soc/aml/m8/aml_spdif_dai.o CC sound/soc/aml/m8/aml_notify.o LD sound/soc/codecs/snd-soc-tlv320aic32x4.o LD sound/soc/codecs/snd-soc-dummy_codec.o LD sound/soc/codecs/snd-soc-pcm2bt.o LD sound/soc/codecs/snd-soc-amlpmu4.o LD sound/soc/codecs/snd-soc-aml_t9015.o LD sound/soc/tegra/built-in.o LD sound/soc/codecs/snd-soc-aml_t9015S.o LD sound/soc/codecs/snd-soc-aml_txlx_acodec.o LD sound/soc/txx9/built-in.o LD sound/soc/codecs/snd-soc-tas5707.o LD sound/soc/codecs/snd-soc-tas5717.o LD sound/soc/codecs/snd-soc-tas5731.o LD sound/soc/ux500/built-in.o LD sound/soc/codecs/built-in.o LD sound/soc/snd-soc-core.o LD sound/soc/aml/m8/snd-soc-aml-pcm.o LD sound/soc/aml/m8/snd-soc-aml-i2s.o LD sound/soc/aml/m8/snd-soc-aml-i2s-dai.o LD sound/soc/aml/m8/snd-soc-aml-pcm-dai.o LD sound/soc/aml/m8/snd-soc-aml-hw.o LD sound/soc/aml/m8/snd-soc-aml-hw-pcm2bt.o LD sound/soc/aml/m8/snd-soc-aml-spdif-dai.o LD sound/soc/aml/m8/snd-soc-aml-dmic.o LD sound/soc/aml/m8/snd-soc-aml-spdif-codec.o LD sound/soc/aml/m8/snd-soc-aml-m8.o LD sound/soc/aml/m8/snd-soc-aml-snd-iomap.o LD sound/soc/aml/m8/snd-soc-aml-g9tv.o LD sound/soc/aml/m8/built-in.o LD sound/soc/aml/built-in.o LD sound/soc/built-in.o LD sound/built-in.o
SKayser Posted December 14, 2017 Posted December 14, 2017 This might come a few months late, but in case someone runs into the same trouble and finds this (like I did): It's probably the compiler version. Using a 4.9.x series compiler did the trick (at least for me). It didn't matter if I used gentoo's 4.9 crossdev compiler for aarch64 (gcc version 4.9.4 (Gentoo 4.9.4-r1 p1.1, pie-0.6.4) ) or the linaro compiler from the "official" amlogic toolchain (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ), both worked.
Recommended Posts