thra11 / nixpkgs-overlays-rk3399 Goto Github PK
View Code? Open in Web Editor NEWNixpkgs Overlays relating to RockPRO64, Pinebook Pro and similar devices
Nixpkgs Overlays relating to RockPRO64, Pinebook Pro and similar devices
Hi,
as an owner of new Pinebook Pro I attempted to build the image and got error regarding Error in reading or end of file.
GOT: CONFIG_RTW88_8822BE:
GOT:
GOT: Select this option will enable support for 8822BE chipset
GOT:
GOT: 802.11ac PCIe wireless network adapter
GOT:
GOT: Symbol: RTW88_8822BE [=n]
GOT: Type : tristate
GOT: Defined at drivers/net/wireless/realtek/rtw88/Kconfig:31
GOT: Prompt: Realtek 8822BE PCI wireless network adapter
GOT: Depends on: NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_REALTEK [=y] && RTW88 [=m] && PCI [=y]
GOT: Location:
GOT: -> Device Drivers
GOT: -> Network device support (NETDEVICES [=y])
GOT: -> Wireless LAN (WLAN [=y])
GOT: -> Realtek devices (WLAN_VENDOR_REALTEK [=y])
GOT: -> Realtek 802.11ac wireless chips support (RTW88 [=m])
GOT: Selects: RTW88_CORE [=n] && RTW88_PCI [=n] && RTW88_8822B [=n]
GOT:
GOT:
GOT:
QUESTION: Realtek 8822BE PCI wireless network adapter, NAME: RTW88_8822BE, ALTS: N/m/?, ANSWER: y
repeated question: Realtek 8822BE PCI wireless network adapter at /nix/store/lsby3mmn4imqcc2pymfkw9fqxwmqzpfx-generate-config.pl line 87.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
error: --- Error --- nix-daemon
builder for '/nix/store/zdxgpqfcmr6vfqiwdnb0kmymybiqjwhi-linux-config-5.4.0.drv' failed with exit code 255; last 10 log lines:
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
Error in reading or end of file.
error: --- Error --- nix-daemon
1 dependencies of derivation '/nix/store/5yarskcfn8hmry2y2cyf7wi4mxvkfljk-linux-5.4.0.drv' failed to build
error: --- Error --- nix-daemon
1 dependencies of derivation '/nix/store/b6whf71jmjjl6sn207wgl3qdaz6jxv7q-nixos-system-nixos-20.09.3246.d4189f68fdb.drv' failed to build
error: --- Error --- nix-daemon
1 dependencies of derivation '/nix/store/8rqyqdjnd02is3m5l9fjpwqn2g559jfr-ext4-fs.img.drv' failed to build
error: --- Error ------------------------------------------------------------------------------------------ nix-build
error: --- Error --- nix-daemon
1 dependencies of derivation '/nix/store/hv3zrixym1lf58dz3c8k61smpi1wh8p3-nixos-sd-image-20.09.3246.d4189f68fdb-x86_64-linux.img.drv' failed to build
My understanding is suspend currently doesn't work using the Manjaro kernel. Are any other issues present?
I had two issues running the command nix-build <nixpkgs/nixos> -I nixos-config=./sd-image-rockpro64.nix -A config.system.build.sdImage
:
<nixpkgs/nixos>
wasn't recognized on my NixOS 19.09 system. I had to fire up nix repl
and input <nixpkgs/nixos>
to discover the path.export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
fixed that.Final build command was nix-build /nix/var/nix/profiles/per-user/root/channels/nixos/nixos -I nixos-config=./sd-image-pinebook-pro.nix -A config.system.build.sdImage
which started to build but then failed with:
building '/nix/store/vgh84w2sa49hgb0fi1c5qba46aa3khx4-source.drv'...
trying https://gitlab.denx.de/api/v4/projects/u-boot%2Fu-boot/repository/archive.tar.gz?sha=3ff1ff3ff76c15efe0451309af084ee6c096c583
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3794k 0 3794k 0 0 527k 0 --:--:-- 0:00:07 --:--:-- 765k
unpacking source archive /build/v2.2.tar.gz
building '/nix/store/zmrwmj4l55gvhy8bil0hsvr3rjn13f35-local-cmds.drv'...
building '/nix/store/yiwql90yvzn73gblgvjq34w18pxqcgfy-arm-trusted-firmware-rk3399-2.1.drv'...
unpacking sources
unpacking source archive /nix/store/1cm1m5i4z7b9mm7fsb7ly47kgsmyx2jl-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
build flags: SHELL=/nix/store/rm1hz1lybxangc8sdl7xvzs5dcvigvf7-bash-4.4-p23/bin/bash CROSS_COMPILE= PLAT=rk3399 bl31
CC drivers/arm/gic/common/gic_common.c
gcc: error: unrecognized command line option '-mstrict-align'; did you mean '-Wstrict-aliasing'?
make: *** [Makefile:847: build/rk3399/release/bl31/gic_common.o] Error 1
builder for '/nix/store/yiwql90yvzn73gblgvjq34w18pxqcgfy-arm-trusted-firmware-rk3399-2.1.drv' failed with exit code 2
building '/nix/store/zxynw824qfl3p47r9pidifkqygd3k3gm-stage-2-init.sh.drv'...
building '/nix/store/daiwkgfpmcgkqwz0xfvck5531gnd8y1m-test_shlibs.patch.drv'...
cannot build derivation '/nix/store/zfa4wyfc3a7lf4csbwn309i1jjy9r0h8-uboot-pinebook_pro-rk3399_defconfig-2019.04.drv': 1 dependencies couldn't be built
building '/nix/store/ii0yhdlcbddq3rss6fgnw9cr8spx3hzi-unit-ModemManager.service.drv'...
building '/nix/store/ciq3l1lmy6q9jdlba054czpqk2mxzqhm-unit-NetworkManager-dispatcher.service.drv'...
cannot build derivation '/nix/store/00hz1kvq4pczbqkyn6jff0nss8l8spfv-nixos-sd-image-19.09.1748.ad1e1af5ad3-x86_64-linux.img.drv': 1 dependencies couldn't be built
error: build of '/nix/store/00hz1kvq4pczbqkyn6jff0nss8l8spfv-nixos-sd-image-19.09.1748.ad1e1af5ad3-x86_64-linux.img.drv' failed
Greetings.
Hopefuly this is the last hurdle. I have built the SD image a couple of days ago and today I decided to give it a try.
Obviously, the first step I did was to bunzip2
the result file. I thought that this is the usual image to be flashed with dd bs=128M oflag=sync etc
. However, the resulting partition is unreadable for GParted, U-Boot and the kernel's mount.
I have a feeling my assumption was wrong and the image should be flashed in a different manner, not documented here.
$ nix-build '<nixpkgs/nixos>' -I nixos-config=./sd-image-pinebook-pro.nix -A config.system.build.sdImage
error: attribute 'lib' missing, at /home/marek/nixpkgs-overlays-rk3399/pkgs/ap6256-firmware/default.nix:21:15
(use '--show-trace' to show detailed location information)
I am not proficient enough in Nix to understand, what I need to fix here.
Greetings
Thank you for the quick response to the issue #4 a couple days ago.
I have since then attempted a couple of builds on the Pinebook, which has 29 GiB of free space. Every single time, the kernel build fails with the following errors.
/build/cc3irCFw.s: Assembler messages:
/build/cc3irCFw.s: Fatal error: can't write 40 bytes to section .text of drivers/net/wireless/ath/ath9k/ar9003_mci.o: 'No space left on device'
/build/cc3irCFw.s: Fatal error: can't close drivers/net/wireless/ath/ath9k/ar9003_mci.o: No space left on device
make[6]: *** [../scripts/Makefile.build:283: drivers/net/wireless/ath/ath9k/ar9003_mci.o] Error 1
make[5]: *** [../scripts/Makefile.build:500: drivers/net/wireless/ath/ath9k] Error 2
make[4]: *** [../scripts/Makefile.build:500: drivers/net/wireless/ath] Error 2
make[3]: *** [../scripts/Makefile.build:500: drivers/net/wireless] Error 2
make[3]: *** Waiting for unfinished jobs....
CC [M] drivers/net/ethernet/brocade/bna/bnad.o
../drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c:855:1: fatal error: closing dependency file drivers/gpu/drm/nouveau/nvkm/engine/gr/.ctxgk110.o.d: No space left on device
855 | };
| ^
compilation terminated.
make[5]: *** [../scripts/Makefile.build:283: drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.o] Error 1
make[4]: *** [../scripts/Makefile.build:500: drivers/gpu/drm/nouveau] Error 2
make[3]: *** [../scripts/Makefile.build:500: drivers/gpu/drm] Error 2
make[2]: *** [../scripts/Makefile.build:500: drivers/gpu] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.o
CC [M] drivers/net/ethernet/broadcom/bnxt/bnxt.o
AR drivers/net/ethernet/cavium/common/built-in.a
CC [M] drivers/net/ethernet/cavium/common/cavium_ptp.o
../drivers/net/ethernet/cavium/common/cavium_ptp.c:348:1: fatal error: error writing to /build/ccUYkEPW.s: No space left on device
348 | MODULE_DEVICE_TABLE(pci, cavium_ptp_id_table);
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/cavium/common/cavium_ptp.o] Error 1
make[5]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/cavium/common] Error 2
make[4]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/cavium] Error 2
make[4]: *** Waiting for unfinished jobs....
CC [M] drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.o
../drivers/net/ethernet/broadcom/genet/bcmgenet.c:4296:1: fatal error: error writing to /build/ccammb9k.s: No space left on device
4296 | MODULE_LICENSE("GPL");
| ^~~~~~~~~~~~~~
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/genet/bcmgenet.o] Error 1
make[5]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/broadcom/genet] Error 2
make[5]: *** Waiting for unfinished jobs....
CC [M] drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.o
../drivers/net/ethernet/brocade/bna/bnad.c:3867:1: fatal error: error writing to /build/ccnRFnZ1.s: No space left on device
3867 | MODULE_FIRMWARE(CNA_FW_FILE_CT2);
| ^~~~~~~~~~~~~~~
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/brocade/bna/bnad.o] Error 1
make[5]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/brocade/bna] Error 2
make[4]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/brocade] Error 2
CC [M] drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.o
../drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c:1176:1: fatal error: error writing to /build/cciFTXh1.s: No space left on device
1176 | }
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.o] Error 1
make[6]: *** Waiting for unfinished jobs....
CC [M] drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.o
../drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c:3961:1: fatal error: error writing to /build/cc08cLdT.s: No space left on device
3961 | };
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.o] Error 1
CC [M] drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.o
../drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c:749:1: fatal error: closing dependency file drivers/net/ethernet/broadcom/bnxt/.bnxt_dcb.o.d: No space left on device
749 | }
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.o] Error 1
CC [M] drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.o
../drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:3730:1: fatal error: error writing to /build/ccM30Yul.s: No space left on device
3730 | }
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.o] Error 1
make[6]: *** Waiting for unfinished jobs....
../drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:5125:1: fatal error: error writing to /build/ccjsQwtv.s: No space left on device
5125 | }
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.o] Error 1
../drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c:2006:1: fatal error: error writing to /build/ccKr3lAu.s: No space left on device
2006 | }
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.o] Error 1
../drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c:14063:1: fatal error: error writing to /build/ccJZ9AI1.s: No space left on device
14063 | }
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.o] Error 1
../drivers/net/ethernet/broadcom/bnxt/bnxt.c:12995:1: fatal error: error writing to /build/ccoJp6Wp.s: No space left on device
12995 | module_exit(bnxt_exit);
| ^~~~~~~~~~~
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnxt/bnxt.o] Error 1
make[5]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/broadcom/bnxt] Error 2
../drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:15499:1: fatal error: error writing to /build/ccd1iPG7.s: No space left on device
15499 | }
| ^
compilation terminated.
make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.o] Error 1
make[5]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/broadcom/bnx2x] Error 2
make[4]: *** [../scripts/Makefile.build:500: drivers/net/ethernet/broadcom] Error 2
make[3]: *** [../scripts/Makefile.build:500: drivers/net/ethernet] Error 2
make[2]: *** [../scripts/Makefile.build:500: drivers/net] Error 2
make[1]: *** [/build/source/Makefile:1799: drivers] Error 2
make: *** [../Makefile:185: __sub-make] Error 2
builder for '/nix/store/xf4f6jmgplcqmjs7a1w9kzsqg3gy99b1-linux-5.10.0-rc5.drv' failed with exit code 2
note: build failure may have been caused by lack of free disk space
cannot build derivation '/nix/store/hb4i582l6jz1ignknwnjinmw6vk0g8gi-nixos-system-nixos-21.11pre297787.1c203a23254.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/gc81l1c4kqqv2yyqqd62fldcrwawg0rk-ext4-fs.img.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/s4bhkp8n66bmi7hwhi1234ahqdnqmij1-nixos-sd-image-21.11pre297787.1c203a23254-aarch64-linux.img.drv': 1 dependencies couldn't be built
error: build of '/nix/store/s4bhkp8n66bmi7hwhi1234ahqdnqmij1-nixos-sd-image-21.11pre297787.1c203a23254-aarch64-linux.img.drv' failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.