Jump to content

MOHAMMAD HADI

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by MOHAMMAD HADI

  1. Hi, Have anyone tried to get the IR remote working on these boxes in Linux? How to configure lirc to use the meson_ir module? Also, do we need to modify the dtbs for this to work? Thanks
  2. I will update this topic with a more portable way which would boot from sdcard or USB and support booting from sdcard partitions. I was trying to make a GUI application like the raspberry pi noobs instead of the ncurses interface above but unfortunately, my c programming skills are very basic so I will keep using ncurses but with a slightly better look. If someone can write a GUI for It I would appreciate it.
  3. berryboot sucks, because It uses one kernel and kernel modules for the systems you boot. So, you can't boot 3.14.29 kernel and mainline kernel at the same time
  4. Hi @balbes150 can you include the wifi drivers and dvb drivers for kii pro ? The DVB drivers are maintained by afl1 here https://github.com/afl1/dvb_tv-aml He includes them in his fork of the kernel here https://github.com/afl1/linux-amlogic/tree/amlogic-3.14-nougat/drivers/amlogic/dvb-avl The wifi chipset is ampak ap6335 which combine Broadcom wifi chip and the Bluetooth chip Thanks
  5. Ok, I updated the boot manager so it is now more portable and added some convenience features as well. Be aware that it is not beginner friendly, you need at least some knowledge about writing and editing u-boot scripts, Uart cable is not needed but can be useful during testing and setting up. I rewrote the script in python using curses so It's now more elegent (in my opinion anyway) I tried to get it as close as I can to look like grub2 interface: Now let's explain How it works: First, the sdcard must contain at least two fat32 partitions: -First partition(fat32) (label=RECOVERY) content: This partition contains the main boot manager files: 1-aml_autoscript is the script that is used to update the u-boot environment to allow for our method to work 2-dtb.img a dtb file, make sure to replace it with the appropriate one for your device I compiled it from coreelec source https://github.com/CoreELEC/device-trees- amlogic 3-Image is the kernel image of the boot manager 4- multiboot.script is the script that is executed to display the boot manager 5-update.zip use this in your update app in android to flash the aml_autoscript above and make the bootloader ready for our boot manager -Second Partition(fat32) (label=BOOT) content: This partition contains at least the config.yaml file that contains general settings for the boot manager and the boot entries to be listed. Mote that I have a folder(multiboot) that contains the boot files for my distros(kernel,initrd,dtb and boot script) you don't have to put them in this partition you can put them anywhere (another partition on the sd card, a USB drive or even in the internal EMMC) just make sure to have the correct path and device id for them in the config.yaml file. Also If you want to use the remote control instead of a keyboard to select the os place the correct remote.conf of your remote in the root of this partition. the structure of config.yaml is like this: generalSettings: default: 5 rememberboot: true timeout: 10 menu: - bootscript: /multiboot/COREELEC/u-boot.script device: mmc 0:2 devicefs: fat name: COREELEC - bootscript: /multiboot/armbian-3.14.29-mate/u-boot.script device: mmc 0:2 devicefs: fat name: armbian-3.14.29-mate - bootscript: /multiboot/dvb_test/u-boot.script device: mmc 0:2 devicefs: fat name: dvb_test - bootscript: /multiboot/kernel-3.14/u-boot.script first you set the general settings: - timeout: this is how many seconds the boot manager should wait before booting into the default boot entry - default: this is the zero based index of the default distro that the boot manager will boot to after timeout, note that index 0 is reserved for the internal EMMC boot so your menu starts at index 1. - rememberboot: if this is set to true then the manager will remember the entry that you selected and save it's index in the default entry above so the next time you boot this will be your default entry. after that you add your menu entries: - name: is the name of the distribution displayed in the boot menu - bootscript: this is the path of the bootscript of the distribution (note that this boot script should be capable of booting the distro on it's on, so it must have the correct path of the boot files and pass the correct root parameter to the kernel, see the example u-boot.script files that are included in each distibution) - device is the device that contains the bootscipt using u-boot format so the first mmc and second partition would be mmc 0:2 , the second mmc and third partiton would be mmc 1:3 . - devicefs is the filesystem type of the above device, this is usually fat because most of these tv boxes support loading files of only fat32 partitions (except some boards like khadas vim and odroid whose bootloader support ext4 partitions) now let's see an example of a disto bootscript: this the same bootscript that was shipped with balbes150 image I only edited the device to mmc 0:2 because this is where I have my kernel and other boot files, also I prepended the correct path before each file name. In the uEnv.ini file of this distro I edited the root parameter to use a partition labeled "Debian-3-xfce" and created that partiton using gparted I prepared a boot image that contains the boot manager and two distibutions, Coreelec and Debian server. download the image here and burn it to a new sdcard then use the update application in android and update using update.zip, after that you'll see the boot menu after the reboot https://drive.google.com/open?id=1dhpcqNrqbW493SK8J_Er9b-ZipJkTfd3 Below is the old method Hi, This is my quick and dirty solution to multiboot any amlogic device(actually it can be used on any device that uses u-boot with slight modification): ***Warning: the following method was only tested on one device which is KII PRO, I made this method for my own use ,it is a long and a bit complicated to setup for non-experienced users if you want to try it you are trying it at your own risk, I take no responsibility for any damage that may occur to your device. Preparing the sd card for multiboot: 1- Download the zip file from the attachments multiboot.zip 2-wipe everything in your sdcard (i used a 16 gb card) and create 2 partitions: -The first one is a fat32 partition, this can be small partition (for me i made it 1gb) it will contain the boot files for the main multiboot system and for any other distributions,i labeled this partition "BOOT". -The second partition is ext4 partition which will contain the rootfs of your distributions in raw image format, this need to be a big partition i suggest you assign all remaining available space to this partition, also you need to label it "ROOTFS" (this is mandatory). you can use whatever tools you want(gparted,fdisk...etc) 3-mount the partitions and extract the zip file to the root of your boot partition(the fat32 partition) and create an empty folder called ‘multiboot’ inside the root of the first and second partitions, so the first partition content should look like this ▶ tree . ├── aml_autoscript ├── aml_autoscript.zip ├── multiboot ├── config.txt ├── dtb.img ├── s905_autoscript ├── s905_autoscript.cmd ├── umbInitrd └── zImage and the second partition should look like this ▶ tree /run/media/mohammad/ROOTFS/ └── multiboot the ‘multiboot’ folder in the first partition should contains folders with the name of the distro and inside them are the bootfiles of that distro(kernel,dtb,initramfs and s905_autoscript file) the ‘multiboot’ folder in the second partition should contain the same folders as in the first partition and inside the folder there should be an ext4 image of the rootfs of the distro 4- The dtb file i used is for kii pro tv box and you should replace that with the dtb of your device, you can get that from any of balbes150 distributions(3.14.29 kernel). Now you'r ready to boot, all you need is some distros Preparing the distros: You can make a partition for each distro on your sd card and use it to store the rootfs but i chose a more portable solution by making a raw partition image for each distro and pass it to the initramfs to be mounted as a loop device. I will be using one of balbes150 distros as an example (Armbian_5.32_S9xxx_Ubuntu_xenial_3.14.29_mate_20170907.img.xz) 1-First extract the file ▶xz -k -v -d Armbian_5.32_S9xxx_Ubuntu_xenial_3.14.29_mate_20170907.img.xz 2- Now mount the resulting file partitions to some directories, I use kpartx to do it for me automatically ▶sudo kpartx -av Armbian_5.32_S9xxx_Ubuntu_xenial_3.14.29_mate_20170907.img add map loop0p1 (254:0): 0 262144 linear 7:0 2048 add map loop0p2 (254:1): 0 8812544 linear 7:0 264192 now mount the loop devices (i use udiskctl) ▶ udisksctl mount -b /dev/mapper/loop0p1 Mounted /dev/dm-0 at /run/media/mohammad/BOOT1. ▶ udisksctl mount -b /dev/mapper/loop0p2 Mounted /dev/dm-1 at /run/media/mohammad/ROOTFS1. df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb1 2.0G 215M 1.8G 11% /run/media/mohammad/BOOT #this is my sd card #1 partition /dev/sdb2 13G 6.8G 4.8G 59% /run/media/mohammad/ROOTFS #this is my sd card #2 partition /dev/mapper/loop0p1 128M 53M 76M 42% /run/media/mohammad/BOOT1 #this is the mounted distro image #1 partition /dev/mapper/loop0p2 4.1G 2.9G 1.1G 75% /run/media/mohammad/ROOTFS1 #this is the mounted distro image #2 partition 3- create a folder with the name of the distro in the multiboot folder you created earlier (in the first and second partitions of your sd card) then copy all the boot files of your distro to the folder in the first partition ▶ mkdir /run/media/mohammad/BOOT/multiboot/armbian-3.14.29-mate #this is the first(fat32)partition ▶ mkdir /run/media/mohammad/ROOTFS/multiboot/armbian-3.14.29-mate #this is the second (ext4) partition ▶ cp /run/media/mohammad/BOOT1/* /run/media/mohammad/BOOT/multiboot/armbian-3.14.29-mate/ 4- now you need to create an ext4 partition image to contain the rootfs of your distro for me I made a 4GB image fallocate -l 4G system.img mkfs.ext4 system.img 5-mount the image ▶ sudo losetup $(losetup -f) system.img ▶ udiskctl mount -b /dev/loop1 Mounted /dev/loop1 at /run/media/mohammad/71545ae9-33c7-4d99-963e-a5a915464078. 6-copy all the files from the rootfs of your distro image to the newly created image ▶ cp /run/media/mohammad/ROOTFS1/* /run/media/mohammad/71545ae9-33c7-4d99-963e-a5a915464078/ UPDATE: edit the "/etc/fstab" inside the system.img file nano /run/media/mohammad/71545ae9-33c7-4d99-963e-a5a915464078/etc/fstab and comment out the lines that start with "LABEL=ROOTFS" and "LABEL=BOOT" by adding a hash at start of each line then add these lines to the file : /dev/mmcblk1p1 /mnt vfat defaults 0 2 /mnt/multiboot/armbian-3.14.29-mate/ /boot none bind this will fix the 0hdmi.service problem 7- unmount everything ▶ umount /dev/loop1 ▶ umount /dev/mapper/loop0p1 ▶ umount /dev/mapper/loop0p2 8-copy the system.img file to your distro folder in the second partition of your sd card ▶ cp system.img /run/media/mohammad/ROOTFS/multiboot/armbian-3.14.29-mate 9- move to your distro folder in the first partition of your sdcard: ▶ cd /run/media/mohammad/BOOT/multiboot/armbian-3.14.29-mate 10- now you need to edit the s905_autoscript.cmd file ( I use nano editor, you can use any text editor you like), you need to make two types of edits in this file - add loop=${mbpath}/system.img to the kernel arguments - add ${mbpath}/ before each of uInitrd, zImage and dtb.img so this becomes this Note that I removed the lines of booting from usb to decrease the boot time because I know that I’m booting from the sd card, you can leave them if you want. 11- compile the script ▶ mkimage -A arm64 -O linux -T script -C none -d s905_autoscript.cmd s905_autoscript 12-copy the dtb file of your device ▶ cp dtb/gxbb_p200_2G.dtb dtb.img Modifying u-boot and booting: insert the sd card in the tvbox and then go to the update and backup app and select zip file to update from and choose aml_autoscript.zip that is on the root of the sd card, the device should reboot and you should now be able to use the multiboot function UPDATE: after booting into the distro disable the resize2fs service using the following command sudo systemctl disable resize2fs Notes(mostly for other developers): 1-I’m a very bad shell programmer, I mostly used snippet from stackoverflow to write the main script (bin/wselector) if you could improve the script or anything in my method that would be appreciated. 2-boot time is very good but there is always a possibility to improve it, somethings that I can think of are: -buiding a smaller kernel by disabling everything in the kernel except for the framebuffer,mmc and nand driver, fat32 and ext4 filesystem,unfortunately whenever I disable something in the kernel it fails to build -maybe building a minimum dtb file so that the kernel doesn’t spend time initializing peripherals we don’t need. -building all binaries in umbInitrd staticaly
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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.
  11. 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
  12. 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?
  13. @balbes150 how to get fw_printenv and fw_setenv working in mainline kernel images ? when running a 3.14 kernel the tools works fine by using /dev/env which doesn't exist in mainline kernel. looking at dmesg in 3.14 kernel it output the environment offsets [ 2.369744@2] [mmcblk0p04] env offset 0x000027400000, size 0x000000800000 u-boot also report the same offsets name offset size flag =================================================================================== 0: bootloader 0 400000 0 1: reserved 2400000 4000000 0 2: cache 6c00000 20000000 2 3: env 27400000 800000 0 4: logo 28400000 2000000 1 5: recovery 2ac00000 2000000 1 6: rsv 2d400000 800000 1 7: tee 2e400000 800000 1 8: crypt 2f400000 2000000 1 9: misc 31c00000 2000000 1 10: instaboot 34400000 20000000 1 11: boot 54c00000 2000000 1 12: system 57400000 40000000 1 13: data 97c00000 30c200000 4 i tried to put these offsets in /etc/fw_en.config file but still the fw_printenv tools is printing the default environment
  14. Yes i have but it's not working on my box. my box and my laptop are connected to the same router the router ip is 172.16.1.1 running dhcp server i tried to setup a tftp server in my main os (arch linux) and then tried it in a ubuntu 16.04.2 vm and still can't get it to work. gxb_p20x#setenv ipaddr 172.16.1.44 gxb_p20x#setenv serverip 172.16.1.241 gxb_p20x#setenv gatewayip 172.16.1.1 gxb_p20x#saveenv Saving Environment to aml-storage... mmc env offset: 0x27400000 Writing to MMC(1)... done gxb_p20x#ping 172.16.1.1 Amlogic Ethernet Init Success: reset mac OK!(0) ETH PHY hardware reset OK find net phy id=0x2430c54, phyad=0 set_mac_mode(2) final_addr[rx-tx]: 0000000073efe8e0-0000000073efeee0 Ethernet reset OK MAC address is 00:15:18:01:81:31 duplex 100m Using Meson_Ethernet device ping failed; host 172.16.1.1 is not alive gxb_p20x#tftp 1080000 Image Using Meson_Ethernet device TFTP from server 172.16.1.241; our IP address is 172.16.1.44 Filename 'Image'. Load address: 0x1080000 Loading: T T T T T T T T T T Retry count exceeded; starting again Using Meson_Ethernet device TFTP from server 172.16.1.241; our IP address is 172.16.1.44 Filename 'Image'. Load address: 0x1080000 Loading: * Abort This might be a bug in u-boot of the box that was fixed in kvim u-boot ? have you ever tried this on a box and worked ?
  15. @balbes150 how can i configure uboot ethernet connection to boot through tftp ? i have a Kii pro S905 box, tried to set the ip address and gateway in u-boot but still whenever i ping a host in the network it says the host is not alive? is this a bug or i'm missing a setting ?my u-boot version is 2015.01-g3fb479f-dirty (Oct 13 2016 - 19:22:50)
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines