Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Patched Nanopi neo2 Image #19

Closed
Tyrrx opened this issue Oct 13, 2018 · 4 comments
Closed

Patched Nanopi neo2 Image #19

Tyrrx opened this issue Oct 13, 2018 · 4 comments

Comments

@Tyrrx
Copy link

Tyrrx commented Oct 13, 2018

Hello,
you said that you have a patched nanopi neo2 kernel, Could you create and upload an image of it because I have difficulties with patching the Kernel for the Neo2?

That would be great :)
David

@svpcom
Copy link
Owner

svpcom commented Oct 13, 2018

I don't have clean SD-image with WFB kernel, but build a custom kernel is not very hard. You need to download cross-tools from http://download.friendlyarm.com/nanopineo2

mkdir -p /opt/FriendlyARM/toolchain
tar xf gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz -C /opt/FriendlyARM/toolchain/
export PATH=/opt/FriendlyARM/toolchain/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin:$PATH
export GCC_COLORS=auto
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
# Then download kernel sources
git clone https://github.com/friendlyarm/linux.git -b sunxi-4.14.y --depth 1
# Apply WFB patch
patch -p1 < wfb.patch
# Apply WFB default config for NEO2
cp .config.wfb .config
make oldconfig
# Build Image, dtb and modules
make Image dtbs modules
# Copy modules to SD card
make modules_install INSTALL_MOD_PATH=/media/SD/rootfs/

Then copy Image and dtbs to sd-card
See for details: http://wiki.friendlyarm.com/wiki/index.php/Mainline_U-boot_and_Linux

wfb.patch.txt
.config.wfb.txt

@svpcom
Copy link
Owner

svpcom commented Oct 13, 2018

As source SD image you can use official-ROMs/nanopi-neo2_sd_friendlycore-xenial_4.14_armhf_YYYYMMDD.img.zip from http://download.friendlyarm.com/nanopineo2 or armbian image for NEO2 (if you don't trust neo2 vendor images)

@Tyrrx
Copy link
Author

Tyrrx commented Nov 28, 2018

what about this? make sunxi_arm64_defconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
I tried to patch, which seemed to work fine but after i did an upgrade, i tried to set the txpower to 30 but it still was on 20 max.

@svpcom
Copy link
Owner

svpcom commented Nov 30, 2018

Does you card support 30dBm output? Was CRDA patch applied? Run: iw reg get

@svpcom svpcom closed this as completed Feb 6, 2021
Repository owner locked and limited conversation to collaborators Feb 6, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants