GithubHelp home page GithubHelp logo

fishwaldo / meta-pine64 Goto Github PK

View Code? Open in Web Editor NEW
43.0 7.0 7.0 529 KB

Yocto Images for Star64 and PineTabV Boards from pine64

Home Page: https://pine64.my-ho.st:8443/

License: MIT License

BitBake 83.63% Clojure 8.14% Python 1.22% Shell 6.30% Lua 0.30% JavaScript 0.41%
pine64 pine64-images pinetabv star64

meta-pine64's Introduction

Please Note: The PinetabV image is not ready yet!

This is a Yocto Image/Layer for the Star64/PineTabV devices from Pine64 Please see the corresponding sections below for details.

QuickStart

Pre-built SD/MMC images can be downloaded from https://pine64.my-ho.st:8443/

The images are configured with deb package management. Additional packages can be installed via the apt tool (you should first run apt update). packages are hosted at the same above site.

To burn these images, us Balena Etcha or dd.

For additional packages not present, please submit a issue request, i'll do my best to find a recipe to include those packages.

The Following Images are currently provided:

  • star64-image-minimal - A CommandLine only image
  • star64-image-weston - A Weston/Wayland "Demo" image.
  • star64-image-plasma - A Plasma Based Image.
  • pinetabv-image-plasma - A Plasma Image for the PineTabV

All Images contain the necessary patches to the kernel/userspace to support GPU/VPU Acceleration.

The Kernel used is 5.15.107 - This is due to the GPU Model used in Star64 (BXE-4-32 GPU) (img-rouge) driver not available for more recent kernels yet

Warning - Right now, these images might be a bit unstable as we finetune the image configurations. Running apt upgrade might break things.

Building The Images

The images are built using the Yocto Project.

By Default, the images produced are for Star64. You can select different machines by specifing the MACHINE variable as such:

export MACHINE=<name>

where can be:

  • star64
  • pinetabv

I recommend you build the images in a docker container as there are some dependencies that are dependant upon the host system build tool versions.

There is a docker container at https://github.com/Fishwaldo/yoctobuilder/pkgs/container/yoctobuilder that I used to build the images. To use this container ensure you have podman or docker installed and execute the following command from the meta-pine64 directory on your host system:

podman run -it --privileged --mount type=bind,source=$(pwd)/,target=/home/yoctouser/ --userns=keep-id --group-add keep-groups ghcr.io/fishwaldo/yoctobuilder:main

You will end up inside the container. From there, you can execute the bitbake commands such as:

bitbake star64-image-minimal

or

MACHINE=pinetabv bitbake pinetabv-image-plasma

Note: This image depends upon your userid/groupid being 1000, if it is not, you would have to rebuild the image with your custom userid

Installing/Building Additional Packages

The images produced have a apt repository configured to allow you to install additional packages not included in the image. (There is currently around 10000+ aditional packages available) First run

apt update

and then you can search and install additional packages using apt search/apt install.

NOTE These additional packages are not well tested. If you find a package that does not work, please submit a issue request.

You can locally build additional packages (if they are included in any of the BitBake Layers we use) with the command:

bitbake <packagename>

To see what packages are available, you can use the command

bitbake-layers show-recipes 

or

bitbake-layers show-recipes | grep <name>

if a Package is not included, you can see if there are any available reciepes already created at https://layers.openembedded.org/layerindex/branch/master/recipes/

If you find a suitable recipe, depending upon its complexity, requirements, dependancies etc, you can either copy the recipe into the meta-pine64 layer, or add the layer that contains the reciepe using bitbake-layers command. Please consult the Yocto Documentation for more info here.

Usernames

  • root/pine64
  • pine64/pine64

Discussions/Help

Discussions around these images takes place in the Star64 Channel on the Pine64 community (discord, telegram, matrix, IRC). Please see the Pine64 website for links to join these online chat.

meta-pine64's People

Contributors

fishwaldo avatar grant-olson avatar luigi311 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

meta-pine64's Issues

PineTab-V image has a defunct gcc: `/usr/bin/gcc-ar: No such file or directory`

gcc which comes with PineTab-V image lacks required components, which makes it unusable. Nominally C/C++ compiler is present and detected by configure scripts. In practice, nothing can be compiled, due to other parts of gcc missing:

libtool: link: /usr/bin/gcc-ar cr .libs/libgnu.a .libs/libgnu_la-hard-locale.o .libs/libgnu_la-localcharset.o .libs/libgnu_la-localename.o .libs/libgnu_la-localename-unsafe.o .libs/libgnu_la-localename-table.o glthread/.libs/libgnu_la-lock.o .libs/libgnu_la-math.o .libs/libgnu_la-mbrtowc.o .libs/libgnu_la-mbszero.o .libs/libgnu_la-printf-frexp.o .libs/libgnu_la-printf-frexpl.o .libs/libgnu_la-setlocale_null.o .libs/libgnu_la-setlocale_null-unlocked.o glthread/.libs/libgnu_la-threadlib.o .libs/libgnu_la-unistd.o .libs/libgnu_la-wprintf-parse.o .libs/libgnu_la-vasnwprintf.o .libs/libgnu_la-asnwprintf.o .libs/libgnu_la-xsize.o .libs/asnprintf.o .libs/printf-args.o .libs/printf-parse.o .libs/relocatable.o .libs/vasnprintf.o 
../libtool: line 1890: /usr/bin/gcc-ar: No such file or directory

clang does work, but it is really desirable to have a choice.

gcc/g++ fail to build "as" missing

I installed gcc and g++ with apt install gcc g++ and I can't even compile a simple "Hello World!" program because it says as is missing.

~> gcc -o foo_c foo.c
gcc: fatal error: cannot execute 'as': execvp: No such file or directory
compilation terminated.

Is this supplied by another package or something?

Boot stalls at SD card

[ 1.505609] mmc1: error -110 reading general info of SD ext reg
[ 1.511579] mmc1: error -110 whilst initialising SD card
[ 2.366004] mmc1: error -110 reading general info of SD ext reg
[ 2.366035] mmc1: error -110 whilst initialising SD card
[ 3.215001] mmc1: error -110 reading general info of SD ext reg
[ 3.221207] mmc1: error -110 whilst initialising SD card
[ 4.092010] mmc1: error -110 reading general info of SD ext reg
[ 4.098282] mmc1: error -110 whilst initialising SD card

The whole thing: https://pastebin.com/2wYkMuLs

apt does not work on the minimal image

When booting on the last minimal image (star64-image-minimal-star64-1.2.wic.bz2, 05/17/2023, 07:44:43 PM), apt update does not work:

`star64:~# apt update
Ign:1 https://pine64.my-ho.st:8443/deb/all ./ InRelease
Ign:2 https://pine64.my-ho.st:8443/deb/star64 ./ InRelease
Ign:3 https://pine64.my-ho.st:8443/deb/riscv64 ./ InRelease
Ign:4 https://pine64.my-ho.st:8443/deb/all ./ Release
Ign:5 https://pine64.my-ho.st:8443/deb/star64 ./ Release
Ign:6 https://pine64.my-ho.st:8443/deb/riscv64 ./ Release
Ign:7 https://pine64.my-ho.st:8443/deb/all ./ Packages
Ign:8 https://pine64.my-ho.st:8443/deb/all ./ Translation-en
Ign:9 https://pine64.my-ho.st:8443/deb/star64 ./ Packages
Ign:10 https://pine64.my-ho.st:8443/deb/star64 ./ Translation-en
Ign:11 https://pine64.my-ho.st:8443/deb/riscv64 ./ Packages
Ign:12 https://pine64.my-ho.st:8443/deb/riscv64 ./ Translation-en
Ign:7 https://pine64.my-ho.st:8443/deb/all ./ Packages
Ign:8 https://pine64.my-ho.st:8443/deb/all ./ Translation-en
Ign:9 https://pine64.my-ho.st:8443/deb/star64 ./ Packages
Ign:10 https://pine64.my-ho.st:8443/deb/star64 ./ Translation-en
Ign:11 https://pine64.my-ho.st:8443/deb/riscv64 ./ Packages
Ign:12 https://pine64.my-ho.st:8443/deb/riscv64 ./ Translation-en
Ign:7 https://pine64.my-ho.st:8443/deb/all ./ Packages
Ign:8 https://pine64.my-ho.st:8443/deb/all ./ Translation-en
Ign:9 https://pine64.my-ho.st:8443/deb/star64 ./ Packages
Ign:10 https://pine64.my-ho.st:8443/deb/star64 ./ Translation-en
Ign:11 https://pine64.my-ho.st:8443/deb/riscv64 ./ Packages
Ign:12 https://pine64.my-ho.st:8443/deb/riscv64 ./ Translation-en
Ign:7 https://pine64.my-ho.st:8443/deb/all ./ Packages
Ign:8 https://pine64.my-ho.st:8443/deb/all ./ Translation-en
Ign:9 https://pine64.my-ho.st:8443/deb/star64 ./ Packages
Ign:10 https://pine64.my-ho.st:8443/deb/star64 ./ Translation-en
Ign:11 https://pine64.my-ho.st:8443/deb/riscv64 ./ Packages
Ign:12 https://pine64.my-ho.st:8443/deb/riscv64 ./ Translation-en
Ign:7 https://pine64.my-ho.st:8443/deb/all ./ Packages
Ign:8 https://pine64.my-ho.st:8443/deb/all ./ Translation-en
Ign:9 https://pine64.my-ho.st:8443/deb/star64 ./ Packages
Ign:10 https://pine64.my-ho.st:8443/deb/star64 ./ Translation-en
Ign:11 https://pine64.my-ho.st:8443/deb/riscv64 ./ Packages
Ign:12 https://pine64.my-ho.st:8443/deb/riscv64 ./ Translation-en
Err:7 https://pine64.my-ho.st:8443/deb/all ./ Packages
404 Not Found [IP: 103.208.176.191 8443]
Ign:8 https://pine64.my-ho.st:8443/deb/all ./ Translation-en
Err:9 https://pine64.my-ho.st:8443/deb/star64 ./ Packages
404 Not Found [IP: 103.208.176.191 8443]
Ign:10 https://pine64.my-ho.st:8443/deb/star64 ./ Translation-en
Err:11 https://pine64.my-ho.st:8443/deb/riscv64 ./ Packages
404 Not Found [IP: 103.208.176.191 8443]
Ign:12 https://pine64.my-ho.st:8443/deb/riscv64 ./ Translation-en
Reading package lists... Done
E: Failed to fetch https://pine64.my-ho.st:8443/deb/all/./Packages 404 Not Found [IP: 103.208.176.191 8443]
E: Failed to fetch https://pine64.my-ho.st:8443/deb/star64/./Packages 404 Not Found [IP: 103.208.176.191 8443]
E: Failed to fetch https://pine64.my-ho.st:8443/deb/riscv64/./Packages 404 Not Found [IP: 103.208.176.191 8443]
E: Some index files failed to download. They have been ignored, or old ones used instead.
``

Wish: clang (and LLVM)

For development, there is gcc and all the necessary packages in the repository but I do not find clang/LLVM?

Configuration of the console to log in

Using a cable and minicom on my Ubuntu machine, I can see the boot messages (weston image 1.3) just fine. In the end, I get the login prompt but when I type an username, there is no output and the console no longer replies to anything.
Using SSH to log in at the same time shows no spurious activity. And nothing in the logs. I'm wondering where to look.

Please add zram and zswap to the kernel config/build

NO zram or zswap at the moment

pinetabv:~$ uname -a
Linux pinetabv 5.15.128 #1 SMP Mon Aug 28 15:27:08 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux
pinetabv:~$ zcat /proc/config.gz | grep -i zram
pinetabv:~$ zcat /proc/config.gz | grep -i zswap              
pinetabv:~$ 
CONFIG_ZRAM: Compressed RAM block device support
General informations
The Linux kernel configuration item CONFIG_ZRAM has multiple definitions:

Compressed RAM block device support found in drivers/block/zram/Kconfig
The configuration item CONFIG_ZRAM:

prompt: Compressed RAM block device support
type: tristate
depends on: ( CONFIG_BLOCK && CONFIG_SYSFS && CONFIG_MMU ) && ( CONFIG_CRYPTO_LZO || CONFIG_CRYPTO_ZSTD || CONFIG_CRYPTO_LZ4 || CONFIG_CRYPTO_LZ4HC || CONFIG_CRYPTO_842 )
defined in drivers/block/zram/Kconfig
found in Linux kernels: 3.14–3.19, 4.0–4.20, 5.0–5.19, 6.0–6.5
modules built: zram, zram

Unfortunately none of the ( CONFIG_CRYPTO_LZO || CONFIG_CRYPTO_ZSTD || CONFIG_CRYPTO_LZ4 || CONFIG_CRYPTO_LZ4HC || CONFIG_CRYPTO_842 ) is enabled at the moment:

pinetabv:~$ zcat /proc/config.gz | grep -i config_crypto_lzo
# CONFIG_CRYPTO_LZO is not set
pinetabv:~$ zcat /proc/config.gz | grep -i config_crypto_zstd
# CONFIG_CRYPTO_ZSTD is not set
pinetabv:~$ zcat /proc/config.gz | grep -i config_crypto_lz4 
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set
pinetabv:~$ zcat /proc/config.gz | grep -i config_crypto_lz4hc
# CONFIG_CRYPTO_LZ4HC is not set
pinetabv:~$ zcat /proc/config.gz | grep -i config_crypto_842  
# CONFIG_CRYPTO_842 is not set

Please enable: CONFIG_CRYPTO_LZO, CONFIG_CRYPTO_ZSTD, CONFIG_CRYPTO_LZ4, CONFIG_CRYPTO_LZ4HC, CONFIG_CRYPTO_842 in the kernel config, and that in turn should make available CONFIG_ZRAM and then set CONFIG_ZRAM=y.

Here is an example from PineTab2 /proc/config.gz for reference:

[root@danctnix mbohun]# zcat /proc/config.gz | grep -i zram
CONFIG_ZRAM=y
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
CONFIG_ZRAM_DEF_COMP_ZSTD=y
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
# CONFIG_ZRAM_DEF_COMP_LZO is not set
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
CONFIG_ZRAM_DEF_COMP="zstd"
CONFIG_ZRAM_WRITEBACK=y
CONFIG_ZRAM_MEMORY_TRACKING=y
CONFIG_ZRAM_MULTI_COMP=y
[root@danctnix mbohun]# zcat /proc/config.gz | grep -i zswap
CONFIG_ZSWAP=y
CONFIG_ZSWAP_DEFAULT_ON=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842 is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD=y
CONFIG_ZSWAP_COMPRESSOR_DEFAULT="zstd"
# CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD is not set
# CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set
CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC=y
CONFIG_ZSWAP_ZPOOL_DEFAULT="zsmalloc"
[root@danctnix mbohun]# zcat /proc/config.gz | grep -i config_crypto_zs
CONFIG_CRYPTO_ZSTD=y
[root@danctnix mbohun]# zcat /proc/config.gz | grep -i config_crypto_lzo
CONFIG_CRYPTO_LZO=y
[root@danctnix mbohun]# zcat /proc/config.gz | grep -i config_crypto_zstd
CONFIG_CRYPTO_ZSTD=y
[root@danctnix mbohun]# zcat /proc/config.gz | grep -i config_crypto_lz4
CONFIG_CRYPTO_LZ4=y
CONFIG_CRYPTO_LZ4HC=m
[root@danctnix mbohun]# zcat /proc/config.gz | grep -i config_crypto_lz4hc
CONFIG_CRYPTO_LZ4HC=m
[root@danctnix mbohun]# zcat /proc/config.gz | grep -i config_crypto_842
# CONFIG_CRYPTO_842 is not set

Bug in weston and plasma images? "GPT:Primary header thinks Alt. header is not at the end of the disk"

weston and plasma images of last night cannot be copied with dd. dmesg shows:

[13270.167883] GPT:5512041 != 30220287
[13270.167885] GPT:Alternate GPT header not at the end of the disk.
[13270.167886] GPT:5512041 != 30220287
[13270.167887] GPT: Use GNU Parted to correct GPT errors.
[13270.167897]  mmcblk0: p1 p2 p3 p4
[13278.372506] mmc0: card 0007 removed

minimal has no problem. (32 GB SanDisk microsSD card so I guess it is not a size issue. I tried with two cards to be sure.) Using GNU parted does not render the image usable.

Please add mutt

BUILDING mutt from source is possible, but the dependencies are at the moment "HUGE"

  1. i just (2023-09-05) tried to build mutt
  2. so i just attempted to replicate mutt's gitlab build:
    ./prepare --disable-dependency-tracking --enable-gpgme --enable-sidebar --enable-compressed --enable-pop --enable-imap --enable-smtp --enable-debug --enable-hcache --enable-autocrypt --with-sqlite3 --with-gnutls
    
  3. that compained about missing gpgme
  4. ...and attempting to install gpgme-dev came with this refreshing idea:
pinetabv:/home/pine64/src/mutt.git# apt install gpgme-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  avahi-dev base-files-dev cups-dev gobject-introspection-dev icu icu-dev libassuan-dev libavahi-glib1 libavahi-gobject0 libcairo-dev libcairo-script-interpreter2 libcheck-dev libcheck0 libcupsimage2 libdaemon-dev libdrm-amdgpu1
  libdrm-dev libdrm-etnaviv1 libdrm-freedreno1 libdrm-intel1 libdrm-nouveau2 libdrm-omap1 libdrm-radeon1 libegl-mesa-dev libevdev-dev libfontconfig-dev libfreetype-dev libgbm-dev libgl-mesa-dev libglapi-dev libgpg-error-dev
  libharfbuzz-dev libicuio70 libicutu70 libinput-dev libjpeg-dev libpciaccess-dev libpixman-1-dev libpng16-dev libturbojpeg0 libusb-1.0-dev libxcb-image-dev libxcb-keysyms-dev libxcb-render-util-dev libxcb-util-dev libxdamage-dev
  libxext-dev libxfixes-dev libxrandr-dev libxrender-dev libxshmfence-dev libxxf86vm-dev linux-firmware-visionfive2-imggpu-dev mtdev-dev qtbase-dev qtbase-mkspecs visionfive2-pvr-graphics-dev xcb-util-wm-dev xrandr xrandr-dev
Recommended packages:
  avahi-daemon-dev dbus-lib-dev libavahi-client-dev libavahi-common-dev libavahi-core-dev libavahi-glib-dev libavahi-gobject-dev shadow-sysroot-dev cups-lib-dev cups-libimage-dev jpeg-dev libsystemd-dev autoconf-archive-dev
  python3-pickle-dev python3-xml-dev gpgme-cpp-dev python3-core-dev python3-unixadmin-dev libicudata-dev libicui18n-dev libicuio-dev libicutu-dev libicuuc-dev cairo-gobject-dev cairo-script-interpreter-dev libxcb-render-dev
  libxcb-shm-dev libdrm-amdgpu-dev libdrm-etnaviv-dev libdrm-freedreno-dev libdrm-intel-dev libdrm-nouveau-dev libdrm-omap-dev libdrm-radeon-dev libx11-xcb-dev libxcb-dri2-dev libxcb-dri3-dev libxcb-present-dev libxcb-sync-dev
  libxcb-xfixes-dev wayland-protocols-dev libxcb-glx-dev libudev-dev udev-dev libturbojpeg-dev drm-dev libcrypto-dev libpcre2-16-dev libssl-dev libxcb-randr-dev libxcb-shape-dev libxcb-xinerama-dev libxcb-xinput-dev libxcb-xkb-dev
  libxkbcommon-x11-dev libzstd-dev pcre2-dev qtbase-qmldesigner sqlite3-dev
The following NEW packages will be installed:
  avahi-dev base-files-dev cups-dev gobject-introspection-dev gpgme-dev icu icu-dev libassuan-dev libavahi-glib1 libavahi-gobject0 libcairo-dev libcairo-script-interpreter2 libcheck-dev libcheck0 libcupsimage2 libdaemon-dev
  libdrm-amdgpu1 libdrm-dev libdrm-etnaviv1 libdrm-freedreno1 libdrm-intel1 libdrm-nouveau2 libdrm-omap1 libdrm-radeon1 libegl-mesa-dev libevdev-dev libfontconfig-dev libfreetype-dev libgbm-dev libgl-mesa-dev libglapi-dev
  libgpg-error-dev libharfbuzz-dev libicuio70 libicutu70 libinput-dev libjpeg-dev libpciaccess-dev libpixman-1-dev libpng16-dev libturbojpeg0 libusb-1.0-dev libxcb-image-dev libxcb-keysyms-dev libxcb-render-util-dev libxcb-util-dev
  libxdamage-dev libxext-dev libxfixes-dev libxrandr-dev libxrender-dev libxshmfence-dev libxxf86vm-dev linux-firmware-visionfive2-imggpu-dev mtdev-dev qtbase-dev qtbase-mkspecs visionfive2-pvr-graphics-dev xcb-util-wm-dev xrandr
  xrandr-dev
0 upgraded, 61 newly installed, 0 to remove and 1 not upgraded.
Need to get 5070 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

version info:

pinetabv:~$ date
Tue Sep  5 02:47:25 AEST 2023

pinetabv:~$ neofetch
        #####           pine64@pinetabv 
       #######          --------------- 
       ##O#O##          OS: PinIx 2.0 (pinix) riscv64 
       #######          Host: Pine64 PineTabV 
     ###########        Kernel: 5.15.128 
    #############       Uptime: 22 hours, 10 mins 
   ###############      Packages: 2440 (dpkg) 
   ################     Shell: sh 
  #################     Resolution: 1920x1080, 800x1280 
#####################   DE: Plasma 5.27.7 (Wayland) 
#####################   Theme: [Plasma] 
  #################     Icons: Wings-Dark-Icons [Plasma] 
                        CPU: (4) @ 1.500GHz 
                        Memory: 1999MiB / 7888MiB

pinetabv:~$ 

Change kernel config to allow docker to run

Docker currently won't run because the kernel config isn't compatible with it. Here's the output of Docker's check-config.sh. I've bolded all the missing config entries. Some of them are optional, so they don't all need to be added:

Generally Necessary:

  • cgroup hierarchy: properly mounted [/sys/fs/cgroup]
  • CONFIG_NAMESPACES: enabled
  • CONFIG_NET_NS: enabled
  • CONFIG_PID_NS: enabled
  • CONFIG_IPC_NS: enabled
  • CONFIG_UTS_NS: enabled
  • CONFIG_CGROUPS: enabled
  • CONFIG_CGROUP_CPUACCT: missing
  • CONFIG_CGROUP_DEVICE: missing
  • CONFIG_CGROUP_FREEZER: missing
  • CONFIG_CGROUP_SCHED: enabled
  • CONFIG_CPUSETS: missing
  • CONFIG_MEMCG: missing
  • CONFIG_KEYS: enabled
  • CONFIG_VETH: missing
  • CONFIG_BRIDGE: enabled (as module)
  • CONFIG_BRIDGE_NETFILTER: missing
  • CONFIG_IP_NF_FILTER: enabled
  • CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
  • CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
  • CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
  • CONFIG_NETFILTER_XT_MATCH_IPVS: missing
  • CONFIG_NETFILTER_XT_MARK: enabled
  • CONFIG_IP_NF_NAT: enabled (as module)
  • CONFIG_NF_NAT: enabled (as module)
  • CONFIG_POSIX_MQUEUE: enabled
  • CONFIG_CGROUP_BPF: enabled

Optional Features:

  • CONFIG_USER_NS: enabled
  • CONFIG_SECCOMP: enabled
  • CONFIG_SECCOMP_FILTER: enabled
  • CONFIG_CGROUP_PIDS: missing
  • CONFIG_MEMCG_SWAP: missing
    (cgroup swap accounting is currently enabled)
  • CONFIG_BLK_CGROUP: missing
  • CONFIG_BLK_DEV_THROTTLING: missing
  • CONFIG_CGROUP_PERF: missing
  • CONFIG_CGROUP_HUGETLB: missing
  • CONFIG_NET_CLS_CGROUP: missing
  • CONFIG_CGROUP_NET_PRIO: missing
  • CONFIG_CFS_BANDWIDTH: enabled
  • CONFIG_FAIR_GROUP_SCHED: enabled
  • CONFIG_IP_NF_TARGET_REDIRECT: enabled (as module)
  • CONFIG_IP_VS: enabled (as module)
  • CONFIG_IP_VS_NFCT: enabled
  • CONFIG_IP_VS_PROTO_TCP: enabled
  • CONFIG_IP_VS_PROTO_UDP: enabled
  • CONFIG_IP_VS_RR: enabled (as module)
  • CONFIG_SECURITY_SELINUX: missing
  • CONFIG_SECURITY_APPARMOR: missing
  • CONFIG_EXT4_FS: enabled
  • CONFIG_EXT4_FS_POSIX_ACL: enabled
  • CONFIG_EXT4_FS_SECURITY: missing
    enable these ext4 configs if you are using ext3 or ext4 as backing filesystem
  • Network Drivers:
    • "overlay":
      • CONFIG_VXLAN: missing
      • CONFIG_BRIDGE_VLAN_FILTERING: missing
        Optional (for encrypted networks):
        • CONFIG_CRYPTO: enabled
        • CONFIG_CRYPTO_AEAD: enabled
        • CONFIG_CRYPTO_GCM: enabled
        • CONFIG_CRYPTO_SEQIV: missing
        • CONFIG_CRYPTO_GHASH: enabled
        • CONFIG_XFRM: missing
        • CONFIG_XFRM_USER: missing
        • CONFIG_XFRM_ALGO: missing
        • CONFIG_INET_ESP: missing
        • CONFIG_NETFILTER_XT_MATCH_BPF: enabled (as module)
    • "ipvlan":
      • CONFIG_IPVLAN: missing
    • "macvlan":
      • CONFIG_MACVLAN: missing
      • CONFIG_DUMMY: missing
    • "ftp,tftp client in container":
      • CONFIG_NF_NAT_FTP: enabled (as module)
      • CONFIG_NF_CONNTRACK_FTP: enabled (as module)
      • CONFIG_NF_NAT_TFTP: enabled (as module)
      • CONFIG_NF_CONNTRACK_TFTP: enabled (as module)
  • Storage Drivers:
    • "btrfs":
      • CONFIG_BTRFS_FS: enabled (as module)
      • CONFIG_BTRFS_FS_POSIX_ACL: enabled
    • "overlay":
      • CONFIG_OVERLAY_FS: enabled

Repository issue: "File has unexpected size"

$ sudo apt update
Password: 
Hit:1 https://pine64.my-ho.st:8443 pinix InRelease  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.

$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  tree
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  gtk+3-locale-en gtk+3-locale-en-gb libgtk-3.0
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2665 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://pine64.my-ho.st:8443 pinix/riscv64 riscv64 gtk+3-locale-en riscv64 3.24.34-r0.9 [2184 B]
Err:1 https://pine64.my-ho.st:8443 pinix/riscv64 riscv64 gtk+3-locale-en riscv64 3.24.34-r0.9
  File has unexpected size (2188 != 2184). Mirror sync in progress? [IP: 103.208.176.191 8443]
  Hashes of expected file:
   - SHA512:964529fe6e649a8a9932519e29f26f917f12055807c38ce4aea3602b82687e5c2bbd7d3ff5546ef6fd00334b78a237c4d990cd6e0114124b3f1f9674756a9875
   - SHA256:c7ebbd313d8f820dff0f031b1467df5d58ca2be1d18fd1e45cebc3b80b8cc66e
   - SHA1:57304db58dd9208bb2377408c62d2f32c3f58332 [weak]
   - MD5Sum:d411752a8e7a99abcc0fdf93235d560f [weak]
   - Filesize:2184 [weak]
Get:2 https://pine64.my-ho.st:8443 pinix/riscv64 riscv64 gtk+3-locale-en-gb riscv64 3.24.34-r0.9 [57.0 kB]
Err:2 https://pine64.my-ho.st:8443 pinix/riscv64 riscv64 gtk+3-locale-en-gb riscv64 3.24.34-r0.9
  File has unexpected size (56988 != 56964). Mirror sync in progress? [IP: 103.208.176.191 8443]
  Hashes of expected file:
   - SHA512:dc288765943e85623eb408a9f34ff9a2f872d2adc81bebb6cb179aea03a6eedb86ba597faef8d49c0f5d76faa49271f933073edcc9d65ef0a95723384c41395c
   - SHA256:af1b91fc61dca800e885d829064a4260a46e0feb15528c9e502cd8f70765587f
   - SHA1:6eda7ce4cd8cc1e65ff71f5dfe9819d1caf27ed1 [weak]
   - MD5Sum:0edccc672b4342d213feac810150e1b6 [weak]
   - Filesize:56964 [weak]
Get:3 https://pine64.my-ho.st:8443 pinix/riscv64 riscv64 libgtk-3.0 riscv64 3.24.34-r0.9 [2606 kB]
Err:3 https://pine64.my-ho.st:8443 pinix/riscv64 riscv64 libgtk-3.0 riscv64 3.24.34-r0.9
  File has unexpected size (2607364 != 2605824). Mirror sync in progress? [IP: 103.208.176.191 8443]
  Hashes of expected file:
   - SHA512:9374d3e1bd22d86fcfe1b59137bebbad50458195e5d68578bc9a364d2c500ac44f6fac9abca70bc0b672834602eaca7b26cf5ac11c6ddf3b04ad97bc74fe6158
   - SHA256:509a4be111931c16e3c1399e4cd266dad4a10e96af58ec7294d4dc937a390d1f
   - SHA1:892bb837e8eea941a008998a541b9425b7a1c9e6 [weak]
   - MD5Sum:1b41a782bcc916530247d3e93d319a8f [weak]
   - Filesize:2605824 [weak]
E: Failed to fetch https://pine64.my-ho.st:8443/pool/riscv64/g/gtk%2b3-locale-en/gtk%2b3-locale-en_3.24.34-r0.9_riscv64.deb  File has unexpected size (2188 != 2184). Mirror sync in progress? [IP: 103.208.176.191 8443]
   Hashes of expected file:
    - SHA512:964529fe6e649a8a9932519e29f26f917f12055807c38ce4aea3602b82687e5c2bbd7d3ff5546ef6fd00334b78a237c4d990cd6e0114124b3f1f9674756a9875
    - SHA256:c7ebbd313d8f820dff0f031b1467df5d58ca2be1d18fd1e45cebc3b80b8cc66e
    - SHA1:57304db58dd9208bb2377408c62d2f32c3f58332 [weak]
    - MD5Sum:d411752a8e7a99abcc0fdf93235d560f [weak]
    - Filesize:2184 [weak]
E: Failed to fetch https://pine64.my-ho.st:8443/pool/riscv64/g/gtk%2b3-locale-en-gb/gtk%2b3-locale-en-gb_3.24.34-r0.9_riscv64.deb  File has unexpected size (56988 != 56964). Mirror sync in progress? [IP: 103.208.176.191 8443]
   Hashes of expected file:
    - SHA512:dc288765943e85623eb408a9f34ff9a2f872d2adc81bebb6cb179aea03a6eedb86ba597faef8d49c0f5d76faa49271f933073edcc9d65ef0a95723384c41395c
    - SHA256:af1b91fc61dca800e885d829064a4260a46e0feb15528c9e502cd8f70765587f
    - SHA1:6eda7ce4cd8cc1e65ff71f5dfe9819d1caf27ed1 [weak]
    - MD5Sum:0edccc672b4342d213feac810150e1b6 [weak]
    - Filesize:56964 [weak]
E: Failed to fetch https://pine64.my-ho.st:8443/pool/riscv64/libg/libgtk-3.0/libgtk-3.0_3.24.34-r0.9_riscv64.deb  File has unexpected size (2607364 != 2605824). Mirror sync in progress? [IP: 103.208.176.191 8443]
   Hashes of expected file:
    - SHA512:9374d3e1bd22d86fcfe1b59137bebbad50458195e5d68578bc9a364d2c500ac44f6fac9abca70bc0b672834602eaca7b26cf5ac11c6ddf3b04ad97bc74fe6158
    - SHA256:509a4be111931c16e3c1399e4cd266dad4a10e96af58ec7294d4dc937a390d1f
    - SHA1:892bb837e8eea941a008998a541b9425b7a1c9e6 [weak]
    - MD5Sum:1b41a782bcc916530247d3e93d319a8f [weak]
    - Filesize:2605824 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Strange arithmetic issue with apt

Always displays "0 B of additional disk space will be used"

% sudo apt install libtool 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  libtool
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 290 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://pine64.my-ho.st:8443/deb/riscv64 ./ libtool 2.4.7-r0.2 [290 kB]
Fetched 290 kB in 2s (142 kB/s)   
Selecting previously unselected package libtool.
(Reading database ... 54434 files and directories currently installed.)
Preparing to unpack .../libtool_2.4.7-r0.2_riscv64.deb ...
Unpacking libtool (2.4.7-r0.2) ...
Setting up libtool (2.4.7-r0.2) ...

Images different?

Hi!
Please, what is the difference between the "normal" image and the "rootfs" one?
Thanks for reply.

Please add apt-file

Hello!

I'm trying to find a package that provides some specific commands. With apt, it is possible to do with apt-file command. Could you please provide apt-file package?

Thank you for these nice images!

libstd-rs (rust) build failure: "No rust target defined for riscv64"

Failure for both the weston and plasma builds:

ERROR: libstd-rs-1.68.2-r0 do_rust_gen_targets: No rust target defined for riscv64
ERROR: Logfile of failure stored in: /home/yoctouser/bitbake/tmp/work/riscv64-pine64-linux/libstd-rs/1.68.2-r0/temp/log.do_rust_gen_targets.3377460
ERROR: Task (/home/yoctouser/layers/poky/../meta-lts-rust/recipes-devtools/rust/libstd-rs_1.68.2.bb:do_rust_gen_targets) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3318 tasks of which 3302 didn't need to be rerun and 1 failed.

PineTab-V Image issues

Known Issues with the PTV image currently:

  • Apt Repository is disabled while we are testing
  • Any KDE app that integrates HTML content, or is a KDE based browser (konqueror, angelfish, kmail etc) currently crashes as the qtwebengine component still needs more work to port to Risc-V
  • Trackpad on the PTV is "funky"
  • Charger IC doesn't detect when on power versus battery (need to try to port to bq25890 driver?)
  • libcamera needs StarFive Patches
  • Sound isn't working reliably.
  • Sleep Mode is broken (wont come out from sleep)
  • LCD Backlight needs to be wired up to PWM for backlight adjustment
  • Kernel Ooops when booting - Setting Orientation
  • if the battery is dead, and you boot with the charger connected, when the SDDM login appears, it will shutdown. This is related to not detecting when it's been charged. Fix for now is to let it charge for 30 mins then attempt to boot.
  • Battery Percentage is incorrect. The fuel gauge used is a cw2015 device and the battery profile shipped with the factory image appears to be a cut/paste from another device and is not applicable to the PineTab-V. This results in incorrect battery percentage reporting (it will never reach 100%). Unfortunately the only way to get a correct battery profile is to send battery samples to cellwise for testing.

pine64.my-ho.st:8443 Connection Refused Building Star64

Hi,

I'm working on successfully building a Star64 image with MACHINE=star64 bitbake star64-image-minimal, and get all the way to:

/usr/bin/env wget -t 2 -T 30 --passive-ftp -P /home/yoctouser/meta-pine64/build/downloads 'https://pine64.my-ho.st:8443/public-key.asc' --progress=dot -v failed with exit code 4, no output
ERROR: packagefeed-1.0-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'https://pine64.my-ho.st:8443/public-key.asc')

I don't know if I'm doing something fancy on my end or the site is currently down. Interestingly I have from the key cached in Safari:

-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEZFU/HRYJKwYBBAHaRw8BAQdAeKIwxIYs2W4bWv//IzrFj2WQDJ+ZntezzZiB
StSIer20IEp1c3RpbiBIYW1tb25kIDxqdXN0aW5AZHluYW0uYWM+iJYEExYKAD4W
IQS3FliW4flUZl1UOHRX3M413mmz/QUCZFU/HQIbAwUJCWYBgAULCQgHAwUVCgkI
CwUWAwIBAAIeBQIXgAAKCRBX3M413mmz/UyaAPsE57Wp0jEPGnWZbtPAN6i7sRu5
fP4L8qWGguA9deb29QD+LwRuK8vGwAi9s0O32IwZVBT+uVOCP8Gm23zVKV9ZtAi4
MwRkVT/eFgkrBgEEAdpHDwEBB0B9Kd0ELzzlrrIjIBJPXV0+qplvecbLarRXCQzq
Vn7TTIj1BBgWCgAmFiEEtxZYluH5VGZdVDh0V9zONd5ps/0FAmRVP94CGwIFCQlm
AYAAgQkQV9zONd5ps/12IAQZFgoAHRYhBARoQv1w+f4FVhULFXbQlgQ/fk+sBQJk
VT/eAAoJEHbQlgQ/fk+sGswA/i48eLSzWp3adsCWTrfdvBZn5tqEJ35hY9AudMdH
VGD8AQDOKz+XSdJNsO+APpr/0USUc5SiKHxmyOYFWzUOR2pJDBdRAQDeqW+IT7up
G+aazuby8B27MBa0DbkVWRjKv5pJmkfr/QEA/mZMRDqklMyBZkmcIe/jOuhPMVni
lE5MHajxpiVi3gs=
=kYJe
-----END PGP PUBLIC KEY BLOCK-----

Can I put this somewhere in the build directory to temporarily bypass this?

mdadm not installing as kernel driver

Using apt install mdadm installs mdadm but /lib/modules/5.15.115/kernel/drivers/md seems to not exist making it just a zombie package?

Using minimal 1.3 image

Username/password doesn't work

The username pine64/pine64 and root/pine64 do not appear to work, at least with the Star64 starfivbe-jh7110 gnome wayland image.

Warnings when running apt

I don't know if they are serious:

W: No Hash entry in Release file /var/lib/apt/lists/partial/pine64.my-ho.st:8443_dists_pinix_all_binary-riscv64_._Release
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/pine64.my-ho.st:8443_dists_pinix_all_binary-riscv64_._Release
W: No Hash entry in Release file /var/lib/apt/lists/partial/pine64.my-ho.st:8443_dists_pinix_star64_binary-riscv64_._Release
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/pine64.my-ho.st:8443_dists_pinix_star64_binary-riscv64_._Release
W: No Hash entry in Release file /var/lib/apt/lists/partial/pine64.my-ho.st:8443_dists_pinix_riscv64_binary-riscv64_._Release
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/pine64.my-ho.st:8443_dists_pinix_riscv64_binary-riscv64_._Release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.