Other OS

HOWTO upgrade the kernel under Arch on the Banana Pi

6 3608
danboid  
Edited by danboid at Fri Oct 30, 2015 11:00

I refer to the Arch Linux ARM (ALARM) project and kernel in this guide but the Banana Pi is currently not an officially supported ALARM platform.

The 3.4 kernel that ships with the lemaker Arch distro is quite outdated now but 3.4 is required if you want hardware accelerated 3D graphics and sound. BPi audio support is planned for the 4.4 kernel. If you need GLES support then you will have to stick with Linux 3.4 and it would probably be easiest for you to install Ryad's custom Arch distro instead of using the lemaker Arch distro:

http://blog.eldajani.net/banana- ... mized-distribution/

Ryad's Arch distro comes with GLES 3D acceleration working OOTB. If you have no need for the binary blob graphics driver you are probably better off with a mainline, 4.x kernel so read on.

First we install the latest ALARM ARMv7 kernel. Note that most commands in this guide need to be run as root or using sudo:

  1. # pacman -S linux-armv7
Copy the Code


Copy /boot/zImage and your board-specific .dtb to the boot partition. dtb files have replaced the script.bin files used in the 3.4 kernels.

  1. # mount /dev/mmcblk0p1 /mnt
  2. # cp /boot/zImage /boot/dtbs/sun7i-a20-bananapi.dtb /mnt
Copy the Code


Create /mnt/boot.cmd with the following contents:

  1. setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10
  2. load mmc 0:1 0x43000000 ${fdtfile} || load mmc 0:1 0x43000000 boot/${fdtfile}
  3. load mmc 0:1 0x42000000 zImage || load mmc 0:1 0x42000000 boot/zImage
  4. bootz 0x42000000 - 0x43000000
Copy the Code


Note the root device assumes you are booting from the second partition of the SD card. You may need to change this to /dev/sda1 or whatever if booting from SATA.

Generate boot.scr using boot.cmd:

  1. # cd /mnt
  2. # mkimage -C none -A arm -T script -d boot.cmd boot.scr
Copy the Code


The u-boot that ships with the lemaker Arch image is outdated so you'll need to download the latest build for your device from:

http://dl.linux-sunxi.org/nightl ... xi-mainline-latest/

In the case of the original BPi you'd use something like these commands to download, uncompress and install the latest u-boot:

  1. # wget [url]http://dl.linux-sunxi.org/nightly/u-boot-sunxi/u-boot-sunxi-mainline/u-boot-sunxi-mainline-latest/u-boot-sunxi-mainline-bananapi.tar.xz[/url]
  2. # tar xvf u-boot-sunxi-mainline-bananapi.tar.xz
  3. # cd u-boot-sunxi-mainline-bananapi-VERSION
  4. # dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
Copy the Code


Now when you reboot you should boot into the latest ALARMv7 kernel. For more information see http://linux-sunxi.org/Mainline_U-Boot

Rate

1

View Rating Log

danboid  
Edited by danboid at Jan 19, 2016 03:11

Building a custom Arch Linux ARM (ALARM) kernel package for the Banana Pi

I recently wanted to try a kernel patch for the BPi to enable ALSA audio. Doing so required I work out a method of building the Arch Linux armv7 kernel package so I decided to document the process here.

Note that the following method is by no means ideal or even remotely official so you try it at your own risk. It is purely a lazy (wo)mans rough guide. Even if everything works, expect to wait at least twelve hours for the kernel and package to build if you are building on an unassisted BPi!

This guide presumes you already have the Arch base-devel package installed. The makepkg -o command will alert you to most of the other packages you will need to build the kernel EXCEPT for fakeroot so we'll install that first if you haven't done so already:

  1. sudo pacman -S fakeroot
  2. git clone https://github.com/archlinuxarm/PKGBUILDs.git
  3. cd PKGBUILDs/core/linux-armv7
  4. makepkg -o
Copy the Code


makepkg -o will fetch the kernel sources and the ALARM kernel patches but won't proceed to build the kernel or its packages. At this point you can apply any patches to the kernel source that should be located under the src sub-dir of linux-armv7.

Note that the linux-armv7 package is a very generic ARM kernel that aims to support most of the armv7 devices available. One such device it supports is the BeagleBone Black but the regular kernel source doesn't include the required firmware to successfully build the kernel with BBB support. If you were to start building the kernel at this point it would stop after about nine hours with errors such as:

  1. make[1]: *** No rule to make target 'firmware/am335x-pm-firmware.elf', needed by 'firmware/am335x-pm-firmware.elf.gen.o'.  Stop.
Copy the Code


and

  1. make[1]: *** No rule to make target 'firmware/am335x-bone-scale-data.bin', needed by 'firmware/am335x-bone-scale-data.bin.gen.o'.  Stop.
Copy the Code


If you don't adjust the kernel config to disable BBB support you need to fetch the required firmware and copy it into the linux-armv7 kernel firmware dir with commands like these:

  1. git clone https://github.com/beagleboard/linux.git
  2. cp linux/firmware/am* linux-armv7/src/linux-4.4/firmware/
Copy the Code


Adjust the cp command paths as required.

Once you have applied your patches and copied the BBB firmware into the correct firmware directory you can begin building kernel and its packages by running the following from PKGBUILDs/core/linux-armv7:

  1. makepkg -e
Copy the Code


With any luck both the kernel and kernel headers packages will build successfully and you can then use the above guide to install them. You are likely to get an error like this at end of the build process but you likely don't need the extra packages such as package_linux-armv7-smileplug so it's nothing to worry about:

  1. ==> Tidying install...
  2.   -> Purging unwanted files...
  3.   -> Removing libtool files...
  4.   -> Removing static library files...
  5.   -> Compressing man and info pages...
  6. ==> Creating package "linux-armv7"...
  7.   -> Generating .PKGINFO file...
  8.   -> Adding install file...
  9.   -> Generating .MTREE file...
  10.   -> Compressing package...
  11. ==> Starting package_linux-armv7-headers()...
  12. ==> Tidying install...
  13.   -> Purging unwanted files...
  14.   -> Removing libtool files...
  15.   -> Removing static library files...
  16.   -> Compressing man and info pages...
  17. ==> Creating package "linux-armv7-headers"...
  18.   -> Generating .PKGINFO file...
  19.   -> Generating .MTREE file...
  20.   -> Compressing package...
  21. ==> Starting package_linux-armv7-smileplug()...
  22. cat: arch/arm/boot/dts/armada-370-smileplug.dtb: No such file or directory
  23. ==> ERROR: A failure occurred in package_linux-armv7-smileplug().
  24.     Aborting...
Copy the Code

rahu  
The klondike solitaire online free that could be put on an empty place is the King or a legitimate movable groupd that begins with a King. AARP is a not-for-profit, detached organization that assists people 50 and older improve the high quality of their lives.

Note: The author has been banned or deleted.

wty123  
coach factory, nfl bills jerseys, coach factory outlet, mcm bags, dansko shoes outlet, coach factory outlet, new orleans pelicans jerseys, nike shoes, hollister co, vans shoes, true religion jeans outlet, nike air, nike mercurial, nfl saints jerseys, nike air max, adidas online shop, north face, marc jacobs handbags, flat iron, oakley pas cher, michael kors handbags, northface, christian louboutin, minnesota timberwolves jerseys, washington wizards jerseys, michael kors outlet online, hilfiger outlet, oakley sunglasses, puma online shop, coach bags friday, nike roshe run, burberry outlet online, hermes birkin, iphone 5s cases, tommy hilfiger canada, oakley holbrook, purses and handbags, nike roshe run, burberry handbags, ray-ban sunglasses, juicy couture handbags, christian louboutin, pandora bracelet, nfl falcons jerseys, burberry handbags, michael kors outlet, michael kors handbags, spurs jerseys, nfl titans jerseys, hermes tracksuits, chrome hearts clothings, mcm backpack, true religion jeans outlet, red bottom shoes, michael kors outlet online, shoes outlet, versace, ralph lauren outlet online, louboutin shoes, true religion, ray ban prezzi, nuggets jersey, nfl jets jerseys, skechers shoes outlet, supra shoes, tommy hilfiger outlet, coach shop factory, ralph lauren, uhren shop, ralph lauren, coach factory outlet, cheap ray ban, kate spade handbags, michael kors outlet online, air max, bcbg max azria, ray ban pas cher, ralph lauren factory store, oakley, air jordan retro, nike free, asics gel, ralph lauren outlet, iphone 4s cases, babyliss flat iron, rolex watch, nike store, ralph lauren, celine outlet, cheap jordans, polo ralph, nike outlet, air max, nba jersey, coach outlet, michael kors purses, nfl ravens jerseys, nfl steelers jerseys, jordans, polo ralph, huarache, nfl packers jerseys, nfl vikings jerseys, juicy couture clothings, true religion jeans women, polo ralph lauren outlet, asics, nike roshe run, thomas sabo, nike roche, birkenstock taschen deutschland, new balance, oakley sunglasses cheap, air max 95, longchamp, tommy hilfiger online, new balance shoes,

adidas nmd r1
michael kors outlet store
nike outlet
michael kors handbags
ugg outlet
uggs outlet
ugg boots
canada goose parka
coach outlet online
pandora uk
canada goose outlet
louboutin outlet
fitflop sandals
birkin handbags
the north face outlet
air jordan retro
air max
michael kors outlet clearance
michael kors outlet online
moncler jacket
ugg boots outlet
canada goose outlet
ugg canada
canada goose
uggs outlet
adidas nmd runner
michael kors outlet online
north face jackets
uggs sale
coach factory outlet online
canada goose sale
cheap air jordans
michael kors outlet store
air max shoes
adidas superstar shoes
canada goose outlet store
coach outlet online
ralph lauren outlet online
ralph lauren uk
polo ralph lauren
canada goose outlet
canada goose jackets
the north face jackets
cheap ugg boots
polo ralph lauren outlet
polo ralph lauren outlet
coach factorty outlet online
ugg boots sale
michael kors
uggs outlet
michael kors outlet online
coach outlet canada
hermes bag
canada goose coats
cheap ugg boots
louboutin shoes
gucci outlet online
mlb jerseys whgolesale
kate spade outlet
mulberry outlet uk
ralph lauren outlet online
michael kors outlet online
pandora charms
ugg boots
red bottom heels
adidas sneakers
louis vuitton outlet online
michael kors outlet clearance
pandora charms outlet
canada goose jacket
kate spade handbags
louis vuitton outlet store
longchamp bags
retro 11
timberland outlet store
canada goose coats
longchamp outlet store
mlb jerseys
pandora jewelry store
louis vuitton handbags
michael kors outlet store
uggs outlet
mlb jerseys
moncler outlet online
canada goose coats
hermes bags
coach outlet online
ugg boots outlet
uggs outlet
canada goose coats
moncler outlet online
canada goose outlet
canada goose jackets
burberry handbags
coach factory outlet
coach outlet online
michael kors outlet canada
cheap jordan shoes
adidas yeezy boost 350
pandora jewelry
michael kors
ray ban glasses
ugg outlet
tory burch outlet online
longchamp outlet
christian louboutin shoes
michael kors
pandora charms sale clearance
mulberry handbags
christian louboutin shoes
ugg boots outlet
canada goose jackets
discount oakley sunglasses
pandora jewelry outlet
pandora charms
coach factory outlet
coach outlet store
hermes outlet
adidas yeezy shoes
the north face outlet
171128yueqin

abc20180506
adidas yeezy boost
moncler outlet
air jordans
uggs
ferragamo shoes
coach factory outlet online
polo ralph lauren outlet online
louis vuitton
coach outlet store
moncler coats
kate spade
puma shoes
ugg australia
kate spade outlet store
rolex watches
canada goose uk
kate spade outlet
pandora jewelry
coach factory outlet
yeezy boost 350
air jordan shoes
mulberry bags
ralph lauren uk
vans store
canada goose jackets uk
converse shoes
converse outlet store
jordan shoes
north face outlet
air max 2018
moncler jackets
canada goose outlet
nike air max
pandora charms sale clearance
birkenstock
yeezy boost
coach outlet online
mlb jerseys
coach outlet
adidas outlet
mont blanc pens
ralph lauren sale clearance
coach outlet store
ray ban sunglasses discount
fitflops
coach outlet
mcm outlet
prada handbags
tods outlet
hermes outlet
nike store
cheap jordans free shipping
mbt shoes
pandora jewelry official site
michael kors outlet
kate spade outlet store
polo ralph lauren outlet online
polo ralph lauren outlet
nike free 4.0
polo ralph lauren outlet
coach factory outlet
cheap nike air max
coach outlet
canada goose outlet
polo outlet
hermes handbags
louis vuitton handbags
uggs canada
adidas yeezy
kate spade outlet
adidas shoes
ugg boots on sale
polo ralph lauren outlet
oakley sunglasses
nike zoom
tory burch outlet online
coach outlet
mulberry handbags
pandora jewelry official site
nike huarache
ray ban sunglasses
pandora
nike outlet store
adidas yeezy
new balance shoes
cheap nfl jerseys
adidas superstar
jordan shoes
adidas nmd
nike outlet
birkenstock outlet
canada goose
canada goose sale
supreme clothing
louboutin shoes
ralph lauren sale
ralph lauren outlet
kobe bryant shoes
timberland outlet
coach outlet
michael kors outlet canada
louis vuitton outlet
nike shoes
pandora jewelry
nike outlet online
cheap jordan shoes
nmd adidas
rolex watches
fitflops
adidas yeezy
michael kors outlet
philipp plein outlet
yeezy boost
nike free run
uggs
tory burch outlet store
hermes bags
kevin durant shoes
pandora jewelry outlet
air max 97
christian louboutin outlet
coach outlet store
coach outlet
pandora outlet
pandora charms
coach factorty outlet
pandora jewelry
coach outlet
supreme clothing
ralph lauren outlet
abc20180506

You have to log in before you can reply Login | Sign Up

Points Rules