real time kernel on pi?

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Re: real time kernel on pi?

Postby moonman » Tue Jun 04, 2013 4:22 am

Partial log that you provided does not contain any errors. Error probably occured earlier
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: real time kernel on pi?

Postby novitsky » Tue Jun 04, 2013 7:40 am

Sorry, here is the full output of the build:
$this->bbcode_second_pass_code('', '
# makepkg --asroot -Acs
==> Making package: linux-raspberrypi 3.6.11-11 (Mon Jun 3 14:45:42 BST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found config
-> Found change-default-console-loglevel.patch
-> Found usb-add-reset-resume-quirk-for-several-webcams.patch
-> Found args-uncompressed.txt
-> Found boot-uncompressed.txt
-> Found imagetool-uncompressed.py
-> Found 0001-rtc-pcf8523.patch
-> Found 0002-pcf8523-i2c-register-dt.patch
-> Found patch-3.6.11.4-rt36.patch
==> Validating source files with md5sums...
config ... Passed
change-default-console-loglevel.patch ... Passed
usb-add-reset-resume-quirk-for-several-webcams.patch ... Passed
args-uncompressed.txt ... Passed
boot-uncompressed.txt ... Passed
imagetool-uncompressed.py ... Passed
0001-rtc-pcf8523.patch ... Passed
0002-pcf8523-i2c-register-dt.patch ... Passed
patch-3.6.11.4-rt36.patch ... Passed
==> Extracting sources...
==> Removing existing pkg/ directory...
==> Starting build()...
Cloning into 'linux'...
remote: Counting objects: 42207, done.
remote: Compressing objects: 100% (40321/40321), done.
remote: Total 42207 (delta 3275), reused 19046 (delta 1371)
Receiving objects: 100% (42207/42207), 121.05 MiB | 275 KiB/s, done.
Resolving deltas: 100% (3275/3275), done.
Checking out files: 100% (40051/40051), done.
patching file drivers/rtc/Kconfig
Hunk #1 succeeded at 259 (offset -10 lines).
patching file drivers/rtc/Makefile
Hunk #1 succeeded at 74 (offset -2 lines).
patching file drivers/rtc/rtc-pcf8523.c
patching file arch/arm/mach-bcm2708/bcm2708.c
Hunk #1 succeeded at 697 (offset 8 lines).
Hunk #2 succeeded at 775 (offset 8 lines).
patching file Documentation/hwlat_detector.txt
patching file Documentation/kernel-parameters.txt
patching file Documentation/sysrq.txt
patching file Documentation/trace/histograms.txt
patching file arch/Kconfig
patching file arch/alpha/mm/fault.c
patching file arch/arm/Kconfig
patching file arch/arm/include/asm/switch_to.h
patching file arch/arm/include/asm/thread_info.h
patching file arch/arm/kernel/asm-offsets.c
patching file arch/arm/kernel/early_printk.c
patching file arch/arm/kernel/entry-armv.S
patching file arch/arm/kernel/perf_event.c
Hunk #1 succeeded at 430 (offset -3 lines).
patching file arch/arm/kernel/process.c
patching file arch/arm/kernel/signal.c
patching file arch/arm/mach-at91/at91rm9200_time.c
patching file arch/arm/mach-at91/at91sam926x_time.c
patching file arch/arm/mach-exynos/platsmp.c
patching file arch/arm/mach-msm/platsmp.c
patching file arch/arm/mach-omap2/omap-smp.c
patching file arch/arm/mach-omap2/omap-wakeupgen.c
patching file arch/arm/mach-ux500/platsmp.c
patching file arch/arm/mm/fault.c
patching file arch/arm/mm/highmem.c
patching file arch/arm/plat-versatile/platsmp.c
patching file arch/avr32/mm/fault.c
patching file arch/blackfin/kernel/early_printk.c
patching file arch/cris/mm/fault.c
patching file arch/frv/mm/fault.c
patching file arch/ia64/mm/fault.c
patching file arch/m32r/mm/fault.c
patching file arch/m68k/mm/fault.c
patching file arch/microblaze/kernel/early_printk.c
patching file arch/microblaze/mm/fault.c
patching file arch/mips/Kconfig
patching file arch/mips/kernel/early_printk.c
patching file arch/mips/kernel/signal.c
patching file arch/mips/mm/fault.c
patching file arch/mn10300/mm/fault.c
patching file arch/parisc/mm/fault.c
patching file arch/powerpc/Kconfig
patching file arch/powerpc/include/asm/thread_info.h
patching file arch/powerpc/kernel/asm-offsets.c
patching file arch/powerpc/kernel/entry_32.S
patching file arch/powerpc/kernel/entry_64.S
patching file arch/powerpc/kernel/irq.c
patching file arch/powerpc/kernel/misc_32.S
patching file arch/powerpc/kernel/misc_64.S
patching file arch/powerpc/kernel/udbg.c
patching file arch/powerpc/mm/fault.c
patching file arch/powerpc/platforms/8xx/m8xx_setup.c
patching file arch/powerpc/sysdev/cpm1.c
patching file arch/s390/mm/fault.c
patching file arch/score/mm/fault.c
patching file arch/sh/kernel/irq.c
patching file arch/sh/kernel/sh_bios.c
patching file arch/sh/mm/fault.c
patching file arch/sparc/kernel/irq_64.c
patching file arch/sparc/kernel/prom_common.c
patching file arch/sparc/kernel/setup_32.c
patching file arch/sparc/kernel/setup_64.c
patching file arch/sparc/mm/fault_32.c
patching file arch/sparc/mm/fault_64.c
patching file arch/tile/kernel/early_printk.c
patching file arch/tile/mm/fault.c
patching file arch/um/kernel/early_printk.c
patching file arch/um/kernel/trap.c
patching file arch/unicore32/kernel/early_printk.c
patching file arch/x86/Kconfig
patching file arch/x86/crypto/aesni-intel_glue.c
patching file arch/x86/include/asm/acpi.h
patching file arch/x86/include/asm/page_64_types.h
patching file arch/x86/include/asm/signal.h
patching file arch/x86/include/asm/stackprotector.h
patching file arch/x86/include/asm/thread_info.h
patching file arch/x86/kernel/apic/io_apic.c
patching file arch/x86/kernel/asm-offsets.c
patching file arch/x86/kernel/cpu/common.c
patching file arch/x86/kernel/cpu/mcheck/mce.c
patching file arch/x86/kernel/cpu/perf_event.h
patching file arch/x86/kernel/cpu/perf_event_intel.c
Hunk #1 succeeded at 1707 (offset -6 lines).
patching file arch/x86/kernel/cpu/perf_event_intel_uncore.c
patching file arch/x86/kernel/cpu/perf_event_intel_uncore.h
patching file arch/x86/kernel/dumpstack_64.c
patching file arch/x86/kernel/early_printk.c
patching file arch/x86/kernel/entry_32.S
patching file arch/x86/kernel/entry_64.S
patching file arch/x86/kernel/hpet.c
patching file arch/x86/kernel/irq_32.c
patching file arch/x86/kernel/irq_64.c
patching file arch/x86/kernel/irq_work.c
patching file arch/x86/kernel/kprobes.c
patching file arch/x86/kernel/process_32.c
patching file arch/x86/kernel/signal.c
patching file arch/x86/kernel/traps.c
patching file arch/x86/kvm/x86.c
Hunk #1 succeeded at 4911 (offset 8 lines).
patching file arch/x86/mm/fault.c
Hunk #1 succeeded at 1094 (offset -2 lines).
patching file arch/x86/mm/highmem_32.c
patching file arch/x86/mm/iomap_32.c
patching file arch/xtensa/mm/fault.c
patching file block/blk-core.c
patching file block/blk-ioc.c
patching file block/blk-iopoll.c
patching file block/blk-softirq.c
patching file crypto/Kconfig
patching file crypto/algapi.c
patching file crypto/api.c
patching file crypto/internal.h
patching file drivers/acpi/acpica/acglobal.h
patching file drivers/acpi/acpica/hwregs.c
patching file drivers/acpi/acpica/hwxface.c
patching file drivers/acpi/acpica/utmutex.c
patching file drivers/ata/libata-sff.c
patching file drivers/char/random.c
patching file drivers/clocksource/tcb_clksrc.c
patching file drivers/ide/alim15x3.c
patching file drivers/ide/hpt366.c
patching file drivers/ide/ide-io-std.c
patching file drivers/ide/ide-io.c
patching file drivers/ide/ide-iops.c
patching file drivers/ide/ide-probe.c
patching file drivers/ide/ide-taskfile.c
patching file drivers/idle/i7300_idle.c
patching file drivers/infiniband/ulp/ipoib/ipoib_multicast.c
patching file drivers/input/gameport/gameport.c
patching file drivers/md/dm.c
patching file drivers/md/raid5.c
patching file drivers/md/raid5.h
patching file drivers/misc/Kconfig
patching file drivers/misc/Makefile
Hunk #1 FAILED at 50.
1 out of 1 hunk FAILED -- saving rejects to file drivers/misc/Makefile.rej
patching file drivers/misc/hwlat_detector.c
patching file drivers/mmc/host/mmci.c
patching file drivers/net/Kconfig
patching file drivers/net/ethernet/3com/3c59x.c
patching file drivers/net/ethernet/atheros/atl1c/atl1c_main.c
patching file drivers/net/ethernet/atheros/atl1e/atl1e_main.c
patching file drivers/net/ethernet/cadence/at91_ether.c
patching file drivers/net/ethernet/chelsio/cxgb/sge.c
patching file drivers/net/ethernet/dec/tulip/tulip_core.c
patching file drivers/net/ethernet/freescale/gianfar.c
patching file drivers/net/ethernet/ibm/ehea/ehea_main.c
patching file drivers/net/ethernet/neterion/s2io.c
patching file drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
patching file drivers/net/ethernet/realtek/8139too.c
patching file drivers/net/ethernet/tehuti/tehuti.c
patching file drivers/net/rionet.c
patching file drivers/of/base.c
patching file drivers/pci/access.c
patching file drivers/scsi/fcoe/fcoe.c
patching file drivers/scsi/fcoe/fcoe_ctlr.c
patching file drivers/scsi/libfc/fc_exch.c
patching file drivers/scsi/qla2xxx/qla_inline.h
patching file drivers/tty/serial/8250/8250.c
patching file drivers/tty/serial/amba-pl011.c
patching file drivers/tty/serial/imx.c
patching file drivers/tty/serial/omap-serial.c
patching file drivers/tty/tty_buffer.c
patching file drivers/tty/tty_ldisc.c
patching file drivers/usb/chipidea/debug.c
patching file drivers/usb/core/hcd.c
patching file drivers/usb/host/ohci-hcd.c
patching file fs/autofs4/autofs_i.h
patching file fs/autofs4/expire.c
Hunk #1 succeeded at 166 (offset 9 lines).
patching file fs/buffer.c
patching file fs/dcache.c
Hunk #4 succeeded at 2116 (offset -2 lines).
patching file fs/eventpoll.c
patching file fs/exec.c
patching file fs/file.c
patching file fs/jbd/checkpoint.c
patching file fs/namespace.c
patching file fs/ntfs/aops.c
patching file fs/timerfd.c
patching file include/acpi/platform/aclinux.h
patching file include/asm-generic/bug.h
patching file include/asm-generic/cmpxchg-local.h
patching file include/linux/buffer_head.h
patching file include/linux/completion.h
patching file include/linux/console.h
patching file include/linux/cpu.h
patching file include/linux/delay.h
patching file include/linux/ftrace_event.h
patching file include/linux/hardirq.h
patching file include/linux/highmem.h
patching file include/linux/hrtimer.h
patching file include/linux/idr.h
patching file include/linux/init_task.h
patching file include/linux/interrupt.h
patching file include/linux/irq.h
patching file include/linux/irqdesc.h
patching file include/linux/irqflags.h
patching file include/linux/jbd_common.h
patching file include/linux/jump_label.h
patching file include/linux/kdb.h
patching file include/linux/kernel.h
patching file include/linux/lglock.h
patching file include/linux/list.h
patching file include/linux/locallock.h
patching file include/linux/mm.h
patching file include/linux/mm_types.h
patching file include/linux/mutex.h
patching file include/linux/mutex_rt.h
patching file include/linux/netdevice.h
Hunk #1 succeeded at 1765 (offset -2 lines).
patching file include/linux/netfilter/x_tables.h
patching file include/linux/of.h
patching file include/linux/page_cgroup.h
patching file include/linux/percpu.h
patching file include/linux/pid.h
patching file include/linux/preempt.h
Hunk #3 FAILED at 149.
1 out of 3 hunks FAILED -- saving rejects to file include/linux/preempt.h.rej
patching file include/linux/printk.h
patching file include/linux/radix-tree.h
patching file include/linux/random.h
patching file include/linux/rcupdate.h
patching file include/linux/rcutree.h
patching file include/linux/rtmutex.h
patching file include/linux/rwlock_rt.h
patching file include/linux/rwlock_types.h
patching file include/linux/rwlock_types_rt.h
patching file include/linux/rwsem.h
patching file include/linux/rwsem_rt.h
patching file include/linux/sched.h
Hunk #20 succeeded at 2667 (offset 10 lines).
Hunk #21 succeeded at 2744 (offset 10 lines).
Hunk #22 succeeded at 2760 (offset 10 lines).
Hunk #23 succeeded at 2771 (offset 10 lines).
Hunk #24 succeeded at 2843 (offset 10 lines).
patching file include/linux/seqlock.h
patching file include/linux/signal.h
patching file include/linux/skbuff.h
patching file include/linux/slub_def.h
patching file include/linux/smp.h
patching file include/linux/spinlock.h
patching file include/linux/spinlock_api_smp.h
patching file include/linux/spinlock_rt.h
patching file include/linux/spinlock_types.h
patching file include/linux/spinlock_types_nort.h
patching file include/linux/spinlock_types_raw.h
patching file include/linux/spinlock_types_rt.h
patching file include/linux/sysctl.h
patching file include/linux/timer.h
patching file include/linux/uaccess.h
patching file include/linux/uprobes.h
patching file include/linux/vmstat.h
patching file include/linux/wait-simple.h
patching file include/net/neighbour.h
patching file include/net/netns/ipv4.h
patching file include/net/tcp.h
patching file include/trace/events/hist.h
patching file include/trace/events/latency_hist.h
patching file init/Kconfig
patching file init/Makefile
patching file init/main.c
patching file ipc/mqueue.c
Hunk #1 succeeded at 912 (offset -1 lines).
Hunk #2 succeeded at 936 (offset -1 lines).
patching file ipc/msg.c
patching file ipc/sem.c
patching file kernel/Kconfig.locks
patching file kernel/Kconfig.preempt
patching file kernel/Makefile
patching file kernel/cpu.c
patching file kernel/cred.c
patching file kernel/debug/kdb/kdb_io.c
patching file kernel/events/core.c
patching file kernel/exit.c
patching file kernel/fork.c
patching file kernel/futex.c
patching file kernel/hrtimer.c
Hunk #2 succeeded at 589 (offset -5 lines).
Hunk #3 succeeded at 624 (offset -5 lines).
Hunk #4 succeeded at 647 (offset -5 lines).
Hunk #5 succeeded at 754 (offset -5 lines).
Hunk #6 succeeded at 873 (offset -5 lines).
Hunk #7 succeeded at 942 (offset -5 lines).
Hunk #8 succeeded at 1031 (offset -5 lines).
Hunk #9 succeeded at 1054 (offset -5 lines).
Hunk #10 succeeded at 1153 (offset -5 lines).
Hunk #11 succeeded at 1232 (offset -5 lines).
Hunk #12 succeeded at 1316 (offset -5 lines).
Hunk #13 succeeded at 1446 (offset -5 lines).
Hunk #14 succeeded at 1481 (offset -5 lines).
Hunk #15 succeeded at 1513 (offset -7 lines).
Hunk #16 succeeded at 1531 (offset -7 lines).
Hunk #17 succeeded at 1575 (offset -7 lines).
Hunk #18 succeeded at 1614 (offset -7 lines).
Hunk #19 succeeded at 1666 (offset -7 lines).
Hunk #20 succeeded at 1691 (offset -7 lines).
Hunk #21 succeeded at 1722 (offset -7 lines).
Hunk #22 succeeded at 1861 (offset -5 lines).
Hunk #23 succeeded at 1980 (offset -5 lines).
patching file kernel/irq/handle.c
patching file kernel/irq/irqdesc.c
patching file kernel/irq/manage.c
patching file kernel/irq/settings.h
patching file kernel/irq/spurious.c
patching file kernel/irq_work.c
patching file kernel/itimer.c
patching file kernel/ksysfs.c
patching file kernel/lglock.c
patching file kernel/lockdep.c
patching file kernel/panic.c
patching file kernel/posix-cpu-timers.c
patching file kernel/posix-timers.c
patching file kernel/power/hibernate.c
patching file kernel/power/suspend.c
patching file kernel/printk.c
patching file kernel/rcupdate.c
patching file kernel/rcutiny.c
patching file kernel/rcutiny_plugin.h
patching file kernel/rcutree.c
patching file kernel/rcutree_plugin.h
patching file kernel/relay.c
patching file kernel/res_counter.c
patching file kernel/rt.c
patching file kernel/rtmutex.c
patching file kernel/rtmutex_common.h
patching file kernel/sched/core.c
Hunk #9 succeeded at 1764 (offset -2 lines).
Hunk #10 succeeded at 1880 (offset -2 lines).
Hunk #11 succeeded at 2054 (offset -2 lines).
Hunk #12 succeeded at 3356 (offset -2 lines).
Hunk #13 succeeded at 3405 (offset -2 lines).
Hunk #14 succeeded at 3435 (offset -2 lines).
Hunk #15 succeeded at 3616 (offset -2 lines).
Hunk #16 succeeded at 3650 (offset -2 lines).
Hunk #17 succeeded at 3772 (offset -2 lines).
Hunk #18 succeeded at 3959 (offset -2 lines).
Hunk #19 succeeded at 3979 (offset -2 lines).
Hunk #20 succeeded at 3990 (offset -2 lines).
Hunk #21 succeeded at 4016 (offset -2 lines).
Hunk #22 succeeded at 4149 (offset -2 lines).
Hunk #23 succeeded at 4172 (offset -2 lines).
Hunk #24 succeeded at 4236 (offset -2 lines).
Hunk #25 succeeded at 4460 (offset -2 lines).
Hunk #26 succeeded at 4500 (offset -2 lines).
Hunk #27 succeeded at 4596 (offset -2 lines).
Hunk #28 succeeded at 4628 (offset -2 lines).
Hunk #29 succeeded at 4654 (offset -2 lines).
Hunk #30 succeeded at 5011 (offset -2 lines).
Hunk #31 succeeded at 5062 (offset -2 lines).
Hunk #32 succeeded at 5076 (offset -2 lines).
Hunk #33 succeeded at 5410 (offset -2 lines).
Hunk #34 succeeded at 5418 (offset -2 lines).
Hunk #35 succeeded at 5434 (offset -2 lines).
Hunk #36 succeeded at 5568 (offset -2 lines).
Hunk #37 succeeded at 5657 (offset -2 lines).
Hunk #38 succeeded at 5671 (offset -2 lines).
Hunk #39 succeeded at 5984 (offset -2 lines).
Hunk #40 succeeded at 7772 (offset -2 lines).
Hunk #41 succeeded at 7783 (offset -2 lines).
Hunk #42 succeeded at 7802 (offset -2 lines).
patching file kernel/sched/debug.c
patching file kernel/sched/fair.c
patching file kernel/sched/features.h
patching file kernel/sched/rt.c
patching file kernel/sched/sched.h
patching file kernel/signal.c
patching file kernel/softirq.c
patching file kernel/spinlock.c
patching file kernel/stop_machine.c
patching file kernel/time/jiffies.c
patching file kernel/time/ntp.c
patching file kernel/time/tick-common.c
patching file kernel/time/tick-internal.h
patching file kernel/time/tick-sched.c
patching file kernel/time/timekeeping.c
patching file kernel/timer.c
patching file kernel/trace/Kconfig
patching file kernel/trace/Makefile
patching file kernel/trace/latency_hist.c
patching file kernel/trace/trace.c
Hunk #2 succeeded at 758 (offset -1 lines).
Hunk #3 succeeded at 1152 (offset -1 lines).
Hunk #4 succeeded at 1163 (offset -1 lines).
Hunk #5 succeeded at 1987 (offset -1 lines).
Hunk #6 succeeded at 2021 (offset -1 lines).
Hunk #7 succeeded at 3380 (offset -27 lines).
Hunk #8 succeeded at 3402 (offset -27 lines).
Hunk #9 succeeded at 3413 (offset -27 lines).
patching file kernel/trace/trace.h
Hunk #3 succeeded at 369 (offset -4 lines).
patching file kernel/trace/trace_events.c
patching file kernel/trace/trace_irqsoff.c
patching file kernel/trace/trace_output.c
patching file kernel/user.c
patching file kernel/wait-simple.c
patching file kernel/watchdog.c
patching file kernel/workqueue.c
patching file lib/Kconfig
patching file lib/Kconfig.debug
patching file lib/Makefile
patching file lib/debugobjects.c
patching file lib/locking-selftest.c
patching file lib/radix-tree.c
patching file lib/scatterlist.c
patching file lib/smp_processor_id.c
patching file lib/spinlock_debug.c
patching file localversion-rt
patching file mm/Kconfig
patching file mm/bounce.c
patching file mm/filemap.c
patching file mm/highmem.c
patching file mm/memory.c
Hunk #1 succeeded at 3484 (offset -48 lines).
Hunk #2 succeeded at 4064 (offset -48 lines).
patching file mm/mmu_context.c
patching file mm/page_alloc.c
patching file mm/page_cgroup.c
patching file mm/slab.c
patching file mm/slub.c
patching file mm/swap.c
patching file mm/vmalloc.c
patching file mm/vmstat.c
patching file net/core/dev.c
Hunk #2 succeeded at 1836 (offset 1 line).
Hunk #3 succeeded at 1858 (offset 1 line).
Hunk #4 succeeded at 2931 (offset -2 lines).
Hunk #5 succeeded at 2969 (offset -2 lines).
Hunk #6 succeeded at 2979 (offset -2 lines).
Hunk #7 succeeded at 2995 (offset -2 lines).
Hunk #8 succeeded at 3071 (offset -2 lines).
Hunk #9 succeeded at 3435 (offset -9 lines).
Hunk #10 succeeded at 3444 (offset -9 lines).
Hunk #11 succeeded at 3793 (offset -9 lines).
Hunk #12 succeeded at 3866 (offset -9 lines).
Hunk #13 succeeded at 3941 (offset -9 lines).
Hunk #14 succeeded at 6372 (offset -9 lines).
Hunk #15 succeeded at 6383 (offset -9 lines).
Hunk #16 succeeded at 6650 (offset -9 lines).
patching file net/core/skbuff.c
Hunk #2 succeeded at 348 with fuzz 2 (offset 2 lines).
Hunk #3 succeeded at 361 with fuzz 2 (offset 5 lines).
Hunk #4 succeeded at 395 with fuzz 1 (offset 14 lines).
patching file net/core/sock.c
Hunk #1 succeeded at 2204 (offset -6 lines).
patching file net/ipv4/icmp.c
patching file net/ipv4/ip_output.c
patching file net/ipv4/sysctl_net_ipv4.c
patching file net/mac80211/rx.c
patching file net/netfilter/core.c
patching file net/packet/af_packet.c
patching file net/rds/ib_rdma.c
patching file scripts/mkcompile_h
==> ERROR: A failure occurred in build().
Aborting...
')
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby moonman » Tue Jun 04, 2013 8:40 am

The error is here:
$this->bbcode_second_pass_code('', 'Hunk #1 FAILED at 50.
1 out of 1 hunk FAILED -- saving rejects to file drivers/misc/Makefile.rej')

You may have to look at that file, see what got rejected and patch it manually. Then you can create a fully patch by using diff of an unpatched and fully patched dirs. You may have to research a bit how to do it in detail, I can't help you here.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: real time kernel on pi?

Postby novitsky » Tue Jun 04, 2013 8:43 am

Your help is great. Is the order of patches is important? where does the patch-3.6.11.4-rt36.patch should be placed in the PKGBUILD workflow?
Thanks,
Ran
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby moonman » Tue Jun 04, 2013 9:09 am

It should be placed with all the other patches (shouldn't matter before or after). The problem here is that R-Pi kernel is heavily patched so when you try to apply a patch that's meant for the mainstream kernel this is expected some parts won't apply because the source has been changed (too much).
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: real time kernel on pi?

Postby novitsky » Tue Jun 04, 2013 12:40 pm

OK. Got it. I looked at the .rej files and understand how to apply the changes to the files but when I try to re-run the build I get a message that the linux directory already exists and not empty. if I delete this directory it runs OK but how do I save the manually applied patched files? In other words, how do I apply the manual patch?
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby novitsky » Tue Jun 04, 2013 1:16 pm

OK. I edited the PKGBUILD file to ignore the kernel git download and the patching.
Now the build is running and asking me a lot of questions.
how do I know what to answer?
How do I test if it worked?
how do I install it?
so many new things to discover...
Thanks,
Ran
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby novitsky » Wed Jun 05, 2013 8:13 am

here are some of the configuration questions I got, should I have done anything different?
$this->bbcode_second_pass_code('', '
==> Starting build()...
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* RCU Subsystem
*
RCU Implementation
> 1. UP-only small-memory-footprint RCU (TINY_RCU) (NEW)
choice[1]: 1
*
* Broadcom BCM2708 Implementations
*
Broadcom BCM2708 Development Platform (MACH_BCM2708) [Y/?] y
BCM2708 gpio support (BCM2708_GPIO) [Y/n/?] y
Videocore Memory (BCM2708_VCMEM) [Y/n/?] y
Videocore L2 cache disable (BCM2708_NOL2CACHE) [N/y/?] n
BCM2708 DMA helper (BCM2708_DMAER) [M/n/y/?] m
Bind spidev to SPI0 master (BCM2708_SPIDEV) [Y/n/?] (NEW)
*
* Kernel Features
*
Memory split
> 1. 3G/1G user/kernel split (VMSPLIT_3G)
2. 2G/2G user/kernel split (VMSPLIT_2G)
3. 1G/3G user/kernel split (VMSPLIT_1G)
choice[1-3?]: 1
Preemption Model
> 1. No Forced Preemption (Server) (PREEMPT_NONE)
2. Voluntary Kernel Preemption (Desktop) (PREEMPT_VOLUNTARY)
3. Preemptible Kernel (Low-Latency Desktop) (PREEMPT__LL) (NEW)
4. Preemptible Kernel (Basic RT) (PREEMPT_RTB) (NEW)
5. Fully Preemptible Kernel (RT) (PREEMPT_RT_FULL) (NEW)
choice[1-5]: 5
Use the ARM EABI to compile the kernel (AEABI) [Y/n/?] y
Allow old ABI binaries to run with this kernel (EXPERIMENTAL) (OABI_COMPAT) [Y/n/?] y
High Memory Support (HIGHMEM) [N/y/?] n
Enable hardware performance counter support for perf events (HW_PERF_EVENTS) [Y/n/?] y
Memory model
> 1. Flat Memory (FLATMEM_MANUAL)
choice[1]: 1
Allow for memory compaction (COMPACTION) [N/y/?] n
Page migration (MIGRATION) [Y/?] y
Enable KSM for page merging (KSM) [N/y/?] n
Low address space to protect from user allocation (DEFAULT_MMAP_MIN_ADDR) [4096] 4096
Cross Memory Support (CROSS_MEMORY_ATTACH) [Y/n/?] y
Enable cleancache driver to cache clean pages if tmem is present (CLEANCACHE) [Y/n/?] y
Enable frontswap to cache swap pages if tmem is present (FRONTSWAP) [Y/n/?] y
Use kernel mem{cpy,set}() for {copy_to,clear}_user() (EXPERIMENTAL) (UACCESS_WITH_MEMCPY) [Y/n/?] y
Enable seccomp to safely compute untrusted bytecode (SECCOMP) [Y/n/?] y
Enable -fstack-protector buffer overflow detection (EXPERIMENTAL) (CC_STACKPROTECTOR) [Y/n/?] y
Provide old way to pass kernel parameters (DEPRECATED_PARAM_STRUCT) [N/y/?] n
*
* Misc devices
*
Analog Devices Digital Potentiometers (AD525X_DPOT) [N/m/y/?] n
Atmel AT32/AT91 PWM support (ATMEL_PWM) [N/m/y/?] n
Testing module to detect hardware-induced latencies (HWLAT_DETECTOR) [M/n/y/?] (NEW) y
Integrated Circuits ICS932S401 (ICS932S401) [N/m/y/?] n
Enclosure Services (ENCLOSURE_SERVICES) [N/m/y/?] n
Medfield Avago APDS9802 ALS Sensor module (APDS9802ALS) [N/m/y/?] n
Intersil ISL29003 ambient light sensor (ISL29003) [N/m/y/?] n
Intersil ISL29020 ambient light sensor (ISL29020) [N/m/y/?] n
Taos TSL2550 ambient light sensor (SENSORS_TSL2550) [N/m/y/?] n
ROHM BH1780GLI ambient light sensor (SENSORS_BH1780) [N/m/y/?] n
BH1770GLC / SFH7770 combined ALS - Proximity sensor (SENSORS_BH1770) [N/m/y/?] n
APDS990X combined als and proximity sensors (SENSORS_APDS990X) [N/m/y/?] n
Honeywell HMC6352 compass (HMC6352) [N/m/y/?] n
Dallas DS1682 Total Elapsed Time Recorder with Alarm (DS1682) [N/m/y/?] n
Texas Instruments DAC7512 (TI_DAC7512) [N/m/y/?] n
BMP085 digital pressure sensor on I2C (BMP085_I2C) [M/n/y/?] m
BMP085 digital pressure sensor on SPI (BMP085_SPI) [M/n/y/?] m
FSA9480 USB Switch (USB_SWITCH_FSA9480) [N/m/y/?] n
STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (SPI) (SENSORS_LIS3_SPI) [N/m/y/?] n
STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (I2C) (SENSORS_LIS3_I2C) [N/m/y/?] n
*
* Altera FPGA firmware download module
*
Altera FPGA firmware download module (ALTERA_STAPL) [N/m/y/?] n
Videocore VCHIQ (BCM2708_VCHIQ) [Y/n/m/?] y
*
* Tracers
*
Tracers (FTRACE) [Y/n/?] y
Kernel Function Tracer (FUNCTION_TRACER) [N/y/?] n
Interrupts-off Latency Tracer (IRQSOFF_TRACER) [N/y/?] n
Preemption-off Latency Tracer (PREEMPT_TRACER) [N/y/?] n
Scheduling Latency Tracer (SCHED_TRACER) [N/y/?] n
Missed Timer Offsets Histogram (MISSED_TIMER_OFFSETS_HIST) [N/y/?] (NEW)
Trace process context switches and events (ENABLE_DEFAULT_TRACERS) [N/y/?] n
Branch Profiling
> 1. No branch profiling (BRANCH_PROFILE_NONE)
2. Trace likely/unlikely profiler (PROFILE_ANNOTATED_BRANCHES)
3. Profile all if conditionals (PROFILE_ALL_BRANCHES)
choice[1-3?]: 1
Trace max stack (STACK_TRACER) [N/y/?] n
Support for tracing block IO actions (BLK_DEV_IO_TRACE) [N/y/?] n
Enable kprobes-based dynamic events (KPROBE_EVENT) [Y/n/?] y
Ring buffer benchmark stress tester (RING_BUFFER_BENCHMARK) [N/m/y/?] n
#
# configuration written to .config
#
')

and here is where I got build error now:
$this->bbcode_second_pass_code('', '
CC security/apparmor/sid.o
security/apparmor/sid.c:28:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__cacheline_aligned_in_smp’
security/apparmor/sid.c: In function ‘aa_alloc_sid’:
security/apparmor/sid.c:42:2: error: ‘sid_lock’ undeclared (first use in this function)
security/apparmor/sid.c:42:2: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [security/apparmor/sid.o] Error 1
make[1]: *** [security/apparmor] Error 2
make: *** [security] Error 2
==> ERROR: A failure occurred in build().
Aborting...
')
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby novitsky » Wed Jun 05, 2013 9:23 am

Solved this one too following this: http://hbrobotics.org/wiki/index.php?title=Installing_Ubuntu_With_Real_Time_Patches_On_The_PandaBoard
$this->bbcode_second_pass_code('', '9. Correct an error in one of the source files by adding "#include <linux/cache.h>" to the file ./security/apparmor/sid.c.
')
lets see what comes next...
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby novitsky » Wed Jun 05, 2013 8:19 pm

I'm happy to report the build went well and I'm now going to try it.
Thank you very much!
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 39 guests