[clug] ARM devices with complete upstream support
Eyal Lebedinsky
eyal at eyal.emu.id.au
Fri Oct 28 03:38:33 UTC 2016
On 10/27/16 21:37, Chris Smart wrote:
> On Wed, Oct 26, 2016 at 12:09:47PM +1100, Chris Smart wrote:
>> Every week there's a new cute little ARM device, but almost all use some
>> ancient fork of the Linux kernel and U-Boot, rendering them less than
>> ideal (well useless, IMO).
>>
>
> And if anyone's interested on how to build your upstream kernel and U-Boot
> for Raspberry Pi 2/3, I've just put that on my blog too.
>
> <https://blog.christophersmart.com/2016/10/27/building-and-booting-upstream-linux-and-u-boot-for-raspberry-pi-23-arm-boards/>
Thanks Chris,
I thought I should give it a test for my raspi3. I followed the instructions verbatim but it failed (see below).
I am on f24.
Some nitpicking though:
"Assuming your card is at /dev/sdx (replace as necessary, check dmesg after plugging it in if you’re not sure)"
I suggest you remove the "if...". Always check, the cost of a mistake can be catastrophic.
"sudo mount /dev/sdb1 /mnt" should say "sdx1".
cheers
> -c
$ CROSS_COMPILE=arm-linux-gnu- make rpi_3_defconfig
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
#
# configuration written to .config
#
$ CROSS_COMPILE=arm-linux-gnu- make -j$(nproc)
scripts/kconfig/conf --silentoldconfig Kconfig
...
... many warnings:
warning: right shift count >= width of type [-Wshift-count-overflow]
... then errors:
{standard input}: Assembler messages:
{standard input}:33: Error: selected processor does not support requested special purpose register -- `mrs r0,cntfrq_el0'
{standard input}:64: Error: selected processor does not support requested special purpose register -- `mrs r0,cntpct_el0'
{standard input}:97: Error: selected processor does not support requested special purpose register -- `mrs r2,cntfrq_el0'
{standard input}:119: Error: selected processor does not support requested special purpose register -- `mrs r3,cntfrq_el0'
scripts/Makefile.build:280: recipe for target 'arch/arm/cpu/armv8/generic_timer.o' failed
make[1]: *** [arch/arm/cpu/armv8/generic_timer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
...
cc1: warning: unknown register name: x18
scripts/Makefile.build:280: recipe for target 'arch/arm/cpu/armv8/cache_v8.o' failed
make[1]: *** [arch/arm/cpu/armv8/cache_v8.o] Error 1
Makefile:1221: recipe for target 'arch/arm/cpu/armv8' failed
make: *** [arch/arm/cpu/armv8] Error 2
LD arch/arm/mach-bcm283x/built-in.o
--
Eyal Lebedinsky (eyal at eyal.emu.id.au)
More information about the linux
mailing list