This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ignition": { | |
| "version": "3.5.0" | |
| }, | |
| "passwd": { | |
| "users": [ | |
| { | |
| "name": "core", | |
| "sshAuthorizedKeys": [ | |
| "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII1lBbCipwOIhmn5nyf4V1U3kwNVFqUF60dtFEsK9BOz nik@Rach" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are hitting that “`-mlittle-endian`” unrecognized‐option error because the kernel build system is feeding ARM64 target flags to your host compiler. In other words, you do not have (or are not using) a proper AArch64 cross toolchain, so the build falls back to “`gcc`” on your host—which does not recognize those ARM64 flags. | |
| Below are the usual causes and how to fix them: | |
| --- | |
| ## 1. Use a Proper Cross Compiler | |
| When building a 64-bit ARM (AArch64) kernel from an x86 (or other non-ARM) machine, you **must** use an AArch64 cross compiler. For Debian/Ubuntu, installing the cross compilers can be done with: | |
| ```bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > ./flash_all.sh | |
| product: nabu | |
| Erasing 'boot_ab' (bootloader) Partition boot_a erase successfully | |
| (bootloader) Partition boot_b erase successfully | |
| OKAY [ 0.063s] | |
| Finished. Total time: 0.072s | |
| Warning: skip copying crclist image avb footer (crclist partition size: 0, crclist image size: 722). | |
| Sending 'crclist' (0 KB) OKAY [ 0.012s] | |
| Writing 'crclist' OKAY [ 0.006s] | |
| Finished. Total time: 0.052s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://gitlab.postmarketos.org/postmarketOS/pmaports.git /tmp/pmaports | |
| git clone https://gitlab.postmarketos.org/postmarketOS/pmbootstrap /tmp/pmbootstrap --depth 1 | |
| git clone https://github.com/mainlining/linux --branch danila/spacewar-testing /tmp/linux --depth 1 | |
| cd /tmp/pmaports | |
| git remote add mainlining https://github.com/mainlining/pmaports | |
| git fetch mainlining danila/spacewar-mr | |
| git cherry-pick bc4c5a94adf4f515e4bb6c51e55a76b5d86cfe7b | |
| echo ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > pmbootstrap install | |
| [21:17:42] *** (1/4) PREPARE NATIVE CHROOT *** | |
| [21:17:43] (native) install cryptsetup util-linux parted | |
| [21:17:44] *** (2/4) CREATE DEVICE ROOTFS ("qemu-aarch64") *** | |
| [21:17:51] (rootfs_qemu-aarch64) install postmarketos-base-systemd | |
| [21:17:52] (rootfs_qemu-aarch64) install postmarketos-base device-qemu-aarch64 postmarketos-ui-gnome-mobile device-qemu-aarch64-kernel-edge postmarketos-base-nofde doas doas-sudo-shim gnome-mobile-extensions-app gnome-mobile-extensions-app calls chatty mobile-config-firefox postmarketos-tweaks postmarketos-welcome ttyescape decibels ffmpegthumbnailer firefox-esr flatpak fprintd gnome-calculator gnome-calendar gnome-clocks gnome-console gnome-contacts gnome-maps gnome-software gnome-software-plugin-apk gnome-text-editor gnome-weather gst-libav gst-plugins-bad gst-plugins-good gst-plugins-rs-dav1d gvfs-afp gvfs-dav gvfs-goa gvfs-nfs gvfs-smb loupe nautilus papers showtime snapshot font-droid font-droid-nonlatin font-twemoji lang | |
| [21:17:53] NOTE: The failed com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bash-5.2$ source /tmp/pmbootstrap/helpers/envkernel.sh | |
| pmbootstrap envkernel.sh activated successfully. | |
| * kernel source: /tmp/linux | |
| * output folder: /tmp/linux/.output | |
| * architecture: arm64 (nothing-spacewar is aarch64) | |
| * cross compile: aarch64-alpine-linux-musl-gcc (Alpine 14.2.0) | |
| * aliases: make, kernelroot, pmbootstrap, pmbroot, run-script (see 'type make' etc.) | |
| * run 'deactivate' to revert all env changes | |
| [envkernel] bash-5.2$ make defconfig sc7280.config | |
| *** pmbootstrap envkernel.sh active for /tmp/linux! *** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ignition": { "version": "3.0.0" }, | |
| "passwd": { | |
| "users": [ | |
| { | |
| "name": "root", | |
| "sshAuthorizedKeys": [ | |
| "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCEQ3SYbpiV0hEYx0NNN2n8PDcegpyYvpw8HnUY8Z5lUkEjVmHaWeW0pSsp4RU+tQLGoFI31OVGsCHatmHQAxkdZ15oazhJMzDA6H0+CYMBvwaag1yRIZLZfSvanYp5GJADBzbf33NEP5r3DjjQzQToVMjo+Y/JyX9BYQ2TTh7TV+iEUYwi5A/68Fq3rxuC1lywNXUPOiRrHDN5iI/+LnxHysXUH02Opq/gRcVOzxrW1OtDF38wnRHcFLl19nP/yMnYPHEy3XFpoiY7gUJ91nrZPgLhrEemVbnOV9rLcatyLjaIaRPK2Fa04nuCCinrm48YCXI4KZmbxooUBC5p9YgiIQDARpk1/UlRS5Wcxw7weYWMhKgm+s7jyUM2yBgEhhhZVhpKjh5LmcVxr9YNmerirSftoVuOA6HzheLEzbfdJcZYpIzwcwAGgbNsBmKTYZjLW56+q4ug0ZnKM47YlmJnuyBBugj6WnUWa3ywLcjfza1gcL81JpO0zVkUxgFAWBs= u0_a249@localhost" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyrogram.methods.advanced.save_file | |
| import pyrogram.session.session | |
| import pyrogram.client | |
| import pyrogram.types | |
| import pyrogram.raw | |
| import pyrogram | |
| import asyncio | |
| import typing | |
| import types |