Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to build pinephone image #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions boards/pinephone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ bootfs="ext2"
extra_packages+=()
custmodules=()

gitkernel="https://github.com/maemo-leste/pine64-kernel"
gitbranch="pine64-kernel-5.4.0"
gitkernel="https://gitlab.com/pine64-org/linux.git"
gitbranch="pine64-kernel-5.5.y-flash"

atfgit="https://github.com/ARM-software/arm-trusted-firmware.git"
ubootgit="https://gitlab.com/pine64-org/u-boot.git"
Expand Down Expand Up @@ -98,6 +98,19 @@ EOF
postbuild-clean
}

copy-kernel-config() {
fn copy-kernel-config
req=(device_name)
ckreq || return 1

notice "configuring kernel"
make \
$MAKEOPTS \
ARCH=arm64 \
CROSS_COMPILE=$compiler \
pine64_defconfig
}

build_kernel_arm64() {
fn build_kernel_arm64
req=(R arch device_name gitkernel gitbranch MAKEOPTS)
Expand All @@ -110,7 +123,6 @@ build_kernel_arm64() {

get-kernel-sources
pushd $R/tmp/kernels/$device_name/${device_name}-linux
wget -O- https://github.com/maemo-leste/pine64-kernel/raw/maemo/ascii-devel/debian/patches/0001-Include-rtl8723cs-staging-driver.patch | patch -p1

copy-kernel-config

Expand All @@ -130,7 +142,7 @@ build_kernel_arm64() {
INSTALL_MOD_PATH=$strapdir \
modules_install || zerr

sudo cp -v arch/arm64/boot/Image $strapdir/boot/ || zerr
sudo cp -v arch/arm64/boot/Image.gz $strapdir/boot/ || zerr
sudo cp -v arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtb \
"$strapdir/boot/" || zerr
popd
Expand Down