Download PKGBUILD'sAndyPi wrote:Trying to build a wifi driver (works on Pi1).
./arch/arm/include/asm/barrier.h:41:27: fatal error: mach/barriers.h: No such file or directory
#include <mach/barriers.h>
^
compilation terminated.
it looks for it if CONFIG_ARCH_HAS_BARRIERS is defined
what to do ?
Code: Select all
git clone --depth 1 git@github.com:archlinuxarm/PKGBUILDs.git
copy files where you want it,
git add core/linux-raspberrypi/PKGBUILD
git add core/linux-raspberrypi/config
git commit -m "core/linux-raspberrypi config changes" -a
git push
The answer is that Chromium works very well on Pi2B.ktb wrote:I'd like to see how well chromium works on the Pi2B. I'll wipe out my current Arch card and try it out later.
Thanks for this info but am I right in thinking that the missing barriers.h is a fault in the BCM2709 Pi kernel. I found this bit from Catalin Marinas <catalin.marinas@arm.com> 4 year agopepedog wrote:Download PKGBUILD'sAndyPi wrote:Trying to build a wifi driver (works on Pi1).
./arch/arm/include/asm/barrier.h:41:27: fatal error: mach/barriers.h: No such file or directory
#include <mach/barriers.h>
^
compilation terminated.
it looks for it if CONFIG_ARCH_HAS_BARRIERS is defined
what to do ?
Increment release
Start build with makepkg, interrupt at "starting build"
cd to src/Linux-whatever its call, make menuconfig, when finished move .config back as config
makepkg -g, copy back md5sums, paste them in. Only PKGBUILD and config are changed
You now have enough info to submit pull request https://github.com/archlinuxarm/PKGBUILDs
Hint (you will have to create github account and figure out ssh keys, create user on your Linux (same username as github)Code: Select all
git clone --depth 1 git@github.com:archlinuxarm/PKGBUILDs.git copy files where you want it, git add core/linux-raspberrypi/PKGBUILD git add core/linux-raspberrypi/config git commit -m "core/linux-raspberrypi config changes" -a git push
The BCM2709 kernel is configured to override this behaviourThis is version 3 of this set of patches. The *mb() barriers semantics
are now correctly implemented WRT arch_is_coherent(). For the ARMv7 and
CONFIG_SMP cases, the mb() and wmb() become a DSB. Platform code can
override them by defining CONFIG_ARCH_HAS_BARRIERS and implementing the
mach/barriers.h file
But no mach/barriers.h file is included. This is inconsistent. I have raised it as an issue on the Github, I hope this is the right thing to do.config ARCH_BCM2709
bool "Broadcom BCM2709 family"
select ARCH_HAS_BARRIERS if SMP
select CPU_V7
select HAVE_SMP
select ARM_AMBA
select MIGHT_HAVE_CACHE_L2X0
select HAVE_SCHED_CLOCK
select NEED_MACH_MEMORY_H
select NEED_MACH_IO_H
select COMMON_CLK
select ARCH_HAS_CPUFREQ
select GENERIC_CLOCKEVENTS
select MACH_BCM2709
select VC4
select FIQ
# select ZONE_DMA
help
This enables support for Broadcom BCM2709 boards.
Code: Select all
[ 15.074567] Unable to handle kernel paging request at virtual address fac17200
[ 15.084772] pgd = ec6dc000
Entering kdb (current=0xc0a72220, pid 0) on processor 0 Oops: (null)
due to oops @ 0xc0488210
dCPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.18.5-3-ARCH #1
dtask: c0a72220 ti: c0a50000 task.ti: c0a50000
PS is at memcpy+0xb0/0x330
LR is at 0x0
pc : [<c0488210>] lr : [<00000000>] psr: 000f0193
sp : c0a51dd4 ip : 00000018 fp : c0ab87b4
r10: 00000010 r9 : ee984844 r8 : 00390000
r7 : 00000001 r6 : face17200 r5 : ee98489d r4 : f0866468
r3 : 00000001 r2 : ffffffe8 r1 : f0866470 r0 : fac17200
Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 2c6dc06a DAC: 00000015
dCPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.18.5-3-ARCH #1
[<c0015648>] (unwind_backtrace) from [<c0011f28>] (show_stack+0x10/0x14)
[<c0011f28>] (show_stack) from [<c0730964>] (dump_stack+0x19/0x14)
[<c0730964>] (dump_stack) from [<c00b3764>] (kdb_dumpregs+0x30/0x50)
[<c00b3764>] (kdb_dumpregs) from [<c00b6af8>] (kdb_main_loop+0x39c/0x794)
[<c00b6af8>] (kdb_main_loop) from [<c00b963c>] (kdb_stub+0x25c/0x4a0)
[<c00b963c>] (kdb_stub) from [<c00afc2c>] (kgdb_cpu_enter+0x42c/0x748)
[<c00afc2c>] (kgdb_cpu_enter) from [<c00b01fc>] (kgdb_handle_exception+0x190/0x1dc)I think your problem is related to what I'm seeing. It looks like I can boot without problems if I unplug the keyboard and mouse and then SSH in. The older kernel works fine.liskandar wrote:Any of you experience Pi2 crashing after plugging in keyboard or mouse?
Yes have a USB RF Keysonic ACK-540RF "laptop" style Keyboard which when press a key throws an error and halts Alarmpiliskandar wrote:Any of you experience Pi2 crashing after plugging in keyboard or mouse?
Code: Select all
kernel=kernel7-3.18.5-2.imgthere is a mach-bcm2709 folder but it does not have any includes/usr/share/terminfo/m/mach
/usr/lib/modules/3.18.5-2-ARCH/build/arch/arm/mach-bcm2708/include/mach
/usr/lib/modules/3.18.5-2-ARCH/build/arch/arm/include/asm/mach
/usr/lib/modules/3.18.5-2-ARCH/build/include/config/need/mach
/usr/lib/modules/3.18.5-2-ARCH/build/include/config/mach
although bcm2708 doesdrwxr-xr-x 2 root root 4096 Feb 6 02:19 .
drwxr-xr-x 73 root root 4096 Feb 6 02:20 ..
-rw-r--r-- 1 root root 1147 Feb 6 02:19 Kconfig
does this help. Should there be an includes folder ?drwxr-xr-x 3 root root 4096 Feb 6 02:19 .
drwxr-xr-x 73 root root 4096 Feb 6 02:20 ..
drwxr-xr-x 3 root root 4096 Feb 5 16:01 include
-rw-r--r-- 1 root root 1212 Feb 6 02:19 Kconfig
yes, but as I say no bcm709 includes came with it (I think)ktb wrote:@AndyPi
Did you install linux-raspberrypi-headers?
sudo pacman -S linux-raspberrypi-headers
When I installed the new kernel packages (3.18.5-3) which I mentioned above, I did end up with a barriers.h file here:AndyPi wrote:yes, but as I say no bcm709 includes came with it (I think)ktb wrote:@AndyPi
Did you install linux-raspberrypi-headers?
sudo pacman -S linux-raspberrypi-headers
Thanks for heads up, it has cured the USB Keyboard issuektb wrote:"They've managed to produce the first device that kills itself trying address high memory, a round of applause please.
Temporary fix: set gpu_mem=256"
https://github.com/archlinuxarm/PKGBUILDs/issues/1086