DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-allwinner
<DC-IRC> <rpardini> True; Armbian's kernels are too recent for the distro's default `zfs-dkms` package.
<DC-IRC> <rpardini> If you install the headers package, and build zfs from git, it works.
<DC-IRC> <rpardini> Or: use something like Trixie / Sid / Lunar which have more recent zfs packages.
<DC-IRC> <noimnull> where is the config?
<DC-IRC> <noimnull> where is the old config?
<DC-IRC> <Алексей Песорин> You can get the old config from a running system usually by doing either ```text
<DC-IRC> <Алексей Песорин> gcat /proc/config.gz > .config
<DC-IRC> <Алексей Песорин> ``` or ```text
<DC-IRC> <Алексей Песорин> cp /boot/config-$(uname -r) > .config
<DC-IRC> <Алексей Песорин> ```
<DC-IRC> <Алексей Песорин> Remember to add the ARCH and CROSS_COMPILE options to all `make` commands @noimnull
<DC-IRC> <noimnull> i flashed manjaro, need to flash armbian again
<DC-IRC> <noimnull> i flashed manjaro, need to flash armbian again first
<DC-IRC> <Алексей Песорин> Happens :Shrug:
<DC-IRC> <noimnull> never compiled kernel before
<DC-IRC> <noimnull> @Алексей Песорин all these default values is fine ?
<DC-IRC> <Алексей Песорин> Uhhhhhhhhhhh
<DC-IRC> <Алексей Песорин> It looks like that either:
<DC-IRC> <Алексей Песорин> 1. There were so many updates it added a lot of drivers
<DC-IRC> <Алексей Песорин> 2. Your config is invalid so it treats it as an empty one
<DC-IRC> <noimnull> wtf
<DC-IRC> <Алексей Песорин> It will be invalid if you forgot the ARCH and CROSS_COMPILE options
<DC-IRC> <Алексей Песорин> Please copy over the old one again and try again
<DC-IRC> <Алексей Песорин> Oh, wait-
<DC-IRC> <noimnull> ```$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- oldconfig```
<DC-IRC> <Алексей Песорин> The `POWER_SUPPLY` option existed since forever
<DC-IRC> <Алексей Песорин> So yeah
<DC-IRC> <Алексей Песорин> It's case 2
<DC-IRC> <Алексей Песорин> The `CONFIG_POWER_SUPPLY` option existed since forever
<DC-IRC> <Алексей Песорин> Hmmmmm
<DC-IRC> <Алексей Песорин> Try commenting out the entire first block
<DC-IRC> <Алексей Песорин> That should do the trick
<DC-IRC> <noimnull> still asking many stuff
<DC-IRC> <Алексей Песорин> That is very weird
<DC-IRC> <Алексей Песорин> Make sure you have the right compiler installed by doing: ```bash
<DC-IRC> <Алексей Песорин> pacman -S aarch64-linux-gnu-gcc
<DC-IRC> <Алексей Песорин> ``` or ```bash
<DC-IRC> <Алексей Песорин> apt install gcc-aarch64-linux-gnu
<DC-IRC> <Алексей Песорин> ``` or whatever package manager you have
<DC-IRC> <Алексей Песорин> Then re-copy the config and try the `oldconfig` thing again
<DC-IRC> <noimnull> yes already installed that
<DC-IRC> <noimnull> ```ubuntu@DESKTOP-IKRFLA0:/mnt/d/linux$ sudo apt install gcc-aarch64-linux-gnu
<DC-IRC> <noimnull> Reading package lists... Done
<DC-IRC> <noimnull> Building dependency tree... Done
<DC-IRC> <noimnull> Reading state information... Done
<DC-IRC> <noimnull> gcc-aarch64-linux-gnu is already the newest version (4:11.2.0-1ubuntu1).
<DC-IRC> <noimnull> 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.```
<DC-IRC> <Алексей Песорин> Weird
<DC-IRC> <Алексей Песорин> Try going for a `menuconfig` instead and check if it picked up your config by doing the search thing, typing "ARCH_SUNXI" and seeing if it's enabled
<DC-IRC> <Алексей Песорин> Also, are you sure your config file is named `.config`, not just `config`?
<DC-IRC> <noimnull> ```
<DC-IRC> <noimnull> ubuntu@DESKTOP-IKRFLA0:/mnt/d/linux$ ls -al
<DC-IRC> <noimnull> total 1172
<DC-IRC> <noimnull> drwxrwxrwx 1 ubuntu ubuntu 4096 Aug 22 10:06 .
<DC-IRC> <noimnull> drwxrwxrwx 1 ubuntu ubuntu 4096 Aug 22 08:41 ..
<DC-IRC> <noimnull> -rwxrwxrwx 1 ubuntu ubuntu 16166 Aug 22 09:07 .clang-format
<DC-IRC> <noimnull> -rwxrwxrwx 1 ubuntu ubuntu 59 Aug 22 09:07 .cocciconfig
<DC-IRC> <noimnull> -rwxrwxrwx 1 ubuntu ubuntu 207374 Aug 22 09:57 .config
<DC-IRC> <noimnull> -rwxrwxrwx 1 ubuntu ubuntu 207336 Aug 22 09:43 .config.old
<DC-IRC> <noimnull> -rwxrwxrwx 1 ubuntu ubuntu 71 Aug 22 09:07 .get_maintainer.ignore```
<DC-IRC> <noimnull> yes
<DC-IRC> <Алексей Песорин> try that then
<DC-IRC> <Алексей Песорин> You could also do a `gtkconfig` and import the old config file from there
<DC-IRC> <noimnull> Oo
<DC-IRC> <Алексей Песорин> Good
<DC-IRC> <Алексей Песорин> Just change whatever you need in the config file and save
<DC-IRC> <Алексей Песорин> @noimnull Don't try to tweak everything, took me 12 hours to make a config from scratch last time
<DC-IRC> <Алексей Песорин> (and it didn't even start!))
<DC-IRC> <noimnull> im tyrying everything default
<DC-IRC> <noimnull> searching zfs, its not in Filesystems
<DC-IRC> <lanefu> what board are you building for?
<DC-IRC> <noimnull> orange pi 3 lts
<DC-IRC> <lanefu> are the kernel headers already installed on your armbian image?
<DC-IRC> <lanefu> If so wondering if 'apt install zfs-dkms' is sufficient
<DC-IRC> <lanefu> Oh I just saw Ricardos message about Armbian kernel being too new
<DC-IRC> <noimnull> no
<DC-IRC> <noimnull> also cannot install apt install linux-headers
<DC-IRC> <noimnull> zfs has no matches in menuconfig
<DC-IRC> <igorpec> if you want to run ZFS, build image with headers and use Debian. Any. That will work
<DC-IRC> <noimnull> how to build with headers
<DC-IRC> <igorpec> switch is HEADERS=yes i think
<DC-IRC> <igorpec> grep on sources
<DC-IRC> <noimnull> ```# CONFIG_HEADERS_INSTALL is not set```
<DC-IRC> <noimnull> this to yes in config?
<DC-IRC> <Алексей Песорин> yes
<DC-IRC> <noimnull> ```ubuntu@DESKTOP-IKRFLA0:/mnt/d/linux$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux- -j$(nproc)
<DC-IRC> <noimnull> arch/arm64/Makefile:26: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
<DC-IRC> <noimnull> make: aarch64-linux-gcc: No such file or directory
<DC-IRC> <noimnull> scripts/kconfig/conf --syncconfig Kconfig
<DC-IRC> <noimnull> scripts/Kconfig.include:39: compiler 'aarch64-linux-gcc' not found
<DC-IRC> <noimnull> make[2]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
<DC-IRC> <noimnull> make[1]: *** [Makefile:607: syncconfig] Error 2
<DC-IRC> <noimnull> make: *** [Makefile:712: include/config/auto.conf.cmd] Error 2```
<DC-IRC> <noimnull> is this make command correct for -j nproc
<DC-IRC> <noimnull> ah something wrong with -j$(nproc)
<DC-IRC> <noimnull> -j8 manually worked
<DC-IRC> <noimnull> -j4 manually worked
<DC-IRC> <noimnull> I think its built
<DC-IRC> <noimnull> how to install?
<DC-IRC> <noimnull> 😐
<DC-IRC> <noimnull> Should I copy this and run install.sh on the board?
<DC-IRC> <noimnull> ```ubuntu@DESKTOP-IKRFLA0:/mnt/d/linux$ ls arch/arm64/boot
<DC-IRC> <noimnull> Makefile dts install.sh```
<DC-IRC> <noimnull> @lanefu
<DC-IRC> <lanefu> I always build and install my kernels via armbian, so I don't have an informed answer for you
<DC-IRC> <noimnull> Which board?
<DC-IRC> <lanefu> i mean i always build them via the build tool https://github.com/armbian/build
<DC-IRC> <lanefu> i have dozens of boards.. anyway look at your existing `/boot` you need to make sure you copy the DTS properly, install modules, linux image and figure out best way to make uNinitrd file
<DC-IRC> <lanefu> honestly you should check the armbian forum im sure there's old posts of people who manually built and installed kernels