Giter VIP home page Giter VIP logo

rpi-img-builder's People

Contributors

adam-burns avatar arakeen avatar daviteusz avatar ptr1337 avatar pyavitz 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar

rpi-img-builder's Issues

Ubuntu image and Network Manager

Testing the image 'rpi-4-b-ubuntu-20.04-2020-06-11-v8.7z',
I installed 'ubuntu-desktop', and have the 'Network manager' handle wireless networks,
modifying the following files:

/etc/network/interfaces:

### Interfaces
source /etc/network/interfaces.d/*

/etc/wpa_supplicant/wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

#network={
#	ssid="mywifissid"
#	scan_ssid=1
#	key_mgmt=WPA-PSK
#	psk="wifipasskey"
#}

However, after those changes, the wired network does not work.

SSH in Devuan

hello Just testing on a raspberry pi 3 Devuan, but I have a question, I can't access by ssh, usually in x86 system I can activate it but for rpi sshd is complicated and it is by LAN

Prebuilt images

There are two problems, images aren't hosted on github releases section but on Mediafire, that makes downloading them hard without GUI on the pi.
Second problem is there are other files in the archive so it cannot be flashed without extracting it on disk, a big problem on sub-16gb cards.
Expected result is to have below command working:
p7zip -d -c archive.7z | dd of=/dev/sdX Bs=4M conv=fsync status=progress
Because currently it produces broken partition.

Build Images with desktop?

Thank you for your great work done.

In testing, every time I want to install a desktop it takes a long time.

What are the steps to build an image that includes a desktop?

Could there be a "Downloadable Image" that includes a desktop?

Questions and Bugs

When building the installer on Bookworm X86 host, I got this silly error which displays in a window
Screenshot_2023-08-27_10-57-35
Building for a Pi 4b 64 bit
The file displayed exists in the root folder complete with the -- prefix

First encountered doing a make all from make menu
Reran again to build a patched preempt_rt kernel (no other changes except adding a patch and changing menuconfig to fully preemptible kernel) and it happened again. I noticed the kernel was built so I tried selecting make bootable file system and the error was immediately displayed again.

Deleted the file and the error persisted.

I don't know how to debug make here. Help would be appreciated.

make-scripts breaks on more recent kernels

So, as far as I am aware of, the way make-scripts works is by applying certain patches to the header sources before compiling them.

This seems to result in unexpected behavior in more recent kernel versions (e.g. Linux 5.6.2)

~$ sudo make-scripts

Patching and running make scripts on the kernel headers.
The next patch would create the file tools/include/tools/be_byteshift.h,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tools/include/tools/le_byteshift.h,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.host:124: scripts/kconfig/conf.o] Error 2
make[2]: *** Deleting file 'scripts/kconfig/conf.o'
make[2]: *** Waiting for unfinished jobs....
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.host:124: scripts/kconfig/expr.o] Error 2
make[2]: *** Deleting file 'scripts/kconfig/expr.o'
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.host:124: scripts/kconfig/confdata.o] Error 2
make[2]: *** Deleting file 'scripts/kconfig/confdata.o'
make[1]: *** [Makefile:568: syncconfig] Error 2
make: *** [Makefile:678: include/config/auto.conf.cmd] Error 2
Done.

using clang/llvm with lto for kernel compiling

Since Kernel 5.11 + lto can be used for compiling which could be a great performance improvement
The compile time would be little bit longer.

Also adding -mtune="x" for compile flags can improve the kernel

stage 2 throws error with distribution "bullseye"

I am trying to install the testing distribution "bullseye". I have already commented out the repositories that are not available in testing. However, towards the end I get the following error:

Installing firmware and needed packages.
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package btrfs-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'btrfs-tools' has no installation candidate
make: *** [Makefile:116: image] Error 100

Any idea why we need to install 'btrfs-tools'? How to best solve this error?

Unable to boot from the created images

I could successfully create the images for Debian Buster and Devuan Beowulf. But both images fail to boot on my RPi4. I always end up with a message like this:

Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Done.
Gave up waiting for the root file system device. Common problem:
  ...
ALERT! PARTUUID=45cba071-02 does not exist. Dropping to a shell.

Do I have to change something somewhere in a configuration file?

My OS is: Ubuntu 20.04.2 LTS x86_64

My steps to create the images:

  1. make config (enter a username and password)
  2. make menu
  • Selected RPi 4B
    • Make Kernel
      • Make ROOTFS
      • Make Image
  1. Write the image with Balena Etcher to an SD card

Add scripts for QEMU

Giving the ability to easily compile an image and then test it out on QEMU could help people do things such as

  • be drawn into development, regardless of whether or not they have a Raspberry Pi laying around
  • make testing much more convenient under specific circumstances
  • show some well-deserved respect to our beloved SD cards
  • allow for CI tests in the future (mayhaps)

Unable to see /dev/ttyAMA0

Hi,

I compiled the image and it worked out of the box, no biggy, however it seems I cannot see the /dev/ttyAMA0 device. It's a RPI hat plugged in (qibixx). Anyone an idea? I normally can access it via minicom and run some serial command. Now, I cannot. /dev/TTY0 doesn't do much either.

Any ideas here?

Questions

First of all great bit of kit.

I've been working alongside rod with making images for bookworm for the RPi with Linuxcnc installed. Works like a charm.
One question, once we've built an image, is there a way we can jump into the (with qemu) rootfs of the image, get a shell, git pull the most recent Linuxcnc sources and do a build ?

Actually just starting the image via qemu is what probably the info I need.

All the Best
Rob

Creating Docker image for building raspberry images

Hello,

first thanks for your code and your isos. ive flashed right now the ubuntu 20.10 rpi3 aarch64 iso and its working great so far. usb booting is also working like a charm.

After ive tried many things to get the image building working on arch os, ive created my first Dockerfile with a docker-compose file.
Im gonna build today a image and give feedback if everything is working so far.

regards.

Multi board image

Would it be possible to build an image for multiple boards at the same time?
02w, 3, 4 and 5 all at once arm64 only with kernel 6.6.y.

Like an all in one image as with the current raspios lite 64 bit.

Cygwin support

Could you add support for cygwin so us over on windows can enjoy this super cool thing you made?

ls: cannot access 'rpi-4-*.img*': No such file or directory

I haven't done anything special (except for some custom changes in the userpatches folder) and I keep getting (all of a sudden) the follwoing issue:

image

Any ideas what causes this? I tried:

  • rebooting host
  • make cleanup
  • make purge
  • make purge-all

Anything that can resolve my issue?

Compilers: CFLAGS and CLANG/LLVM options

AS very kernel version also changes the config and features, i think it should be a great idea to deploy several configs for the kernel which will be compiled.

For example:

Raspberry Pi - Zero/W/WH & 1 Model A/B/A+/B+ : -march=armv6 -mfloat-abi=hard -mfpu=vfp
Raspberry Pi - 2 & 3 Model A/B: -march=armv7-a -mfloat-abi=hard -mfpu=neon-vfpv4
Raspberry Pi - 3 & 4 Model A+/B+ & Compute 3/3-lite/3+ (32-Bit): -march=armv8-a -mfloat-abi=hard -mfpu=neon-fp-armv8
Raspberry Pi - 3 & 4 Model A+/B+ & Compute 3/3-lite/3+ (64-Bit): -march=armv8-a+fp+simd

Other example from GCC Manuals since GCC11:

`-mtune=name

This option specifies the name of the target ARM processor for which GCC should tune the performance of the code. For some ARM implementations better performance can be obtained by using this option. Permissible names are: ‘arm7tdmi’, ‘arm7tdmi-s’, ‘arm710t’, ‘arm720t’, ‘arm740t’, ‘strongarm’, ‘strongarm110’, ‘strongarm1100’, 0‘strongarm1110’, ‘arm8’, ‘arm810’, ‘arm9’, ‘arm9e’, ‘arm920’, ‘arm920t’, ‘arm922t’, ‘arm946e-s’, ‘arm966e-s’, ‘arm968e-s’, ‘arm926ej-s’, ‘arm940t’, ‘arm9tdmi’, ‘arm10tdmi’, ‘arm1020t’, ‘arm1026ej-s’, ‘arm10e’, ‘arm1020e’, ‘arm1022e’, ‘arm1136j-s’, ‘arm1136jf-s’, ‘mpcore’, ‘mpcorenovfp’, ‘arm1156t2-s’, ‘arm1156t2f-s’, ‘arm1176jz-s’, ‘arm1176jzf-s’, ‘generic-armv7-a’, ‘cortex-a5’, ‘cortex-a7’, ‘cortex-a8’, ‘cortex-a9’, ‘cortex-a12’, ‘cortex-a15’, ‘cortex-a17’, ‘cortex-a32’, ‘cortex-a35’, ‘cortex-a53’, ‘cortex-a55’, ‘cortex-a57’, ‘cortex-a72’, ‘cortex-a73’, ‘cortex-a75’, ‘cortex-a76’, ‘cortex-a76ae’, ‘cortex-a77’, ‘cortex-a78’, ‘cortex-a78ae’, ‘cortex-a78c’, ‘ares’, ‘cortex-r4’, ‘cortex-r4f’, ‘cortex-r5’, ‘cortex-r7’, ‘cortex-r8’, ‘cortex-r52’, ‘cortex-m0’, ‘cortex-m0plus’, ‘cortex-m1’, ‘cortex-m3’, ‘cortex-m4’, ‘cortex-m7’, ‘cortex-m23’, ‘cortex-m33’, ‘cortex-m35p’, ‘cortex-m55’, ‘cortex-x1’, ‘cortex-m1.small-multiply’, ‘cortex-m0.small-multiply’, ‘cortex-m0plus.small-multiply’, ‘exynos-m1’, ‘marvell-pj4’, ‘neoverse-n1’, ‘neoverse-n2’, ‘neoverse-v1’, ‘xscale’, ‘iwmmxt’, ‘iwmmxt2’, ‘ep9312’, ‘fa526’, ‘fa626’, ‘fa606te’, ‘fa626te’, ‘fmp626’, ‘fa726te’, ‘xgene1’.

Additionally, this option can specify that GCC should tune the performance of the code for a big.LITTLE system. Permissible names are: ‘cortex-a15.cortex-a7’, ‘cortex-a17.cortex-a7’, ‘cortex-a57.cortex-a53’, ‘cortex-a72.cortex-a53’, ‘cortex-a72.cortex-a35’, ‘cortex-a73.cortex-a53’, ‘cortex-a75.cortex-a55’, ‘cortex-a76.cortex-a55’. `

Link can be found here for more informtions:

https://gcc.gnu.org/onlinedocs/gcc-11.2.0/gcc/ARM-Options.html#ARM-Options

Discord link is broken

Hey!

Doesn't relate to the code but the Discord link in the MD file is not correct so I can't join in and chat.

It needs to be an invite link, not a link to a specific channel.

debianhf branch make rpi-all log gives error logs at very end of build process

A RPI3 arm64 Devuan Beowulf jenkins build host agent running make rpi-all to build armel for rpi0w (with full ccompile dependencies installed).

see full log at https://ci.free2air.net/job/rpi-img-builder/job/devuan-beowulf-rpi0-armel-image/20/console

everything seems fine until an issue right at the end of the build log:

Installing kernel. ...

Installing new kernel.
Unpacking raspberrypi-linux-image (5.10.27-1~rpi0+1) ...
Setting up raspberrypi-linux-headers (5.10.27-1~rpi0+1) ...
Compiling headers ...

Error in reading or end of file.

Error in reading or end of file.

...

followed by

arch/arm64/Makefile:25: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
arch/arm64/Makefile:33: LSE atomics not supported by binutils
arch/arm64/Makefile:25: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
arch/arm64/Makefile:33: LSE atomics not supported by binutils
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [scripts/Makefile.build:279: scripts/mod//empty.o] Error 1
make: *** [Makefile:1813: scripts/mod/] Error 2
dpkg: error processing package raspberrypi-linux-headers (--install):
 installed raspberrypi-linux-headers package post-installation script subprocess returned error exit status 2
Setting up raspberrypi-linux-image (5.10.27-1~rpi0+1) ...
update-initramfs: Generating /boot/initrd.img-5.10.27
Creating initrd.gz.
Errors were encountered while processing:
 raspberrypi-linux-headers
make[1]: *** [Makefile:327: devuanos] Error 1

which is odd, as the target build is armel, not arm64 ...

Any clues as to the root cause and/or hints to look for fix appreciated.

Thanks!

Ubuntu 21.04 Beta

Since Ubuntu is providing theirself rpi 4 images, i think it should be possible include that into the script.

[Testing] adding cacule scheduler

Im using this scheduler on my desktop and have a much better experience in general responsive's and also under heavy load still smooth runing desktop.
Ive tested to get the scheduler running on arm devices and it worked great so far, ive tested armv7h and aarch64.
This needs more tested from users which are using the arm device as daily driver.

Patches can be found here:

https://github.com/hamadmarri/cacule-cpu-scheduler

if building for 32-bit arm devices, the 32-bit converter is also needed.

Following config options needs to be added to the default defconfig:

CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CACULE_SCHED=y

Kernel update does not work

Fetch command for updating kernel does not work for me.

I'm using this release:
rpi-4-debian-bullseye-5.15.45-v8-ext4-2022-06-18.img.xz

I have latest userland, and eeprom.

$ sudo apt update #and upgrade
$ sudo reboot
$ ssh raspberrypi
$ fetch -u [done] 
$ fetch -2
Fetching rpi4-stable ...
[#ef13e7 47MiB/47MiB(99%) CN:1 DL:9.5MiB][done]                                                                                                                                                                                              

Something went wrong? Please report which Distribution and Release you are using.

Output from bash -x fetch -2

+ DOWNLOAD='aria2c -c --download-result=hide --console-log-level=error --disable-ipv6=true --summary-interval=0 --show-files=false'
+ URL=https://github.com/pyavitz/rpi-linux/releases/download/gcc-11/
+ RED='\e[0;31m'+ DOWNLOAD='aria2c -c --download-result=hide --console-log-level=error --disable-ipv6=true --summary-interval=0 --show-files=false'
+ URL=https://github.com/pyavitz/rpi-linux/releases/download/gcc-11/
+ RED='\e[0;31m'
+ GRN='\e[0;32m'
+ PNK='\e[0;35m'
+ TXT='\033[0m'
+ YLW='\e[1;33m'
+ SRED='\e[0;31m'
+ SGRN='\e[0;32m'
+ SYLW='\e[0;33m'
+ FIN='\e[0m'
++ curl -I https://github.com
++ grep 'HTTP/2 200'
 ]][ -n HTTP/2 200 
++ command -v wget
+ [[ -n /usr/bin/wget ]]
++ command -v aria2c
+ [[ -n /usr/bin/aria2c ]]
++ command -v pv
+ [[ -n /usr/bin/pv ]]
+ :
+ '[' 1 -eq 0 ']'
+ getopts 12brumUhf OPTION
+ case $OPTION in
+ ECHO=stable
+ getopts 12brumUhf OPTION
+ '[' stable = 5.15 ']'
+ '[' stable = stable ']'
+ echo ''

+ RELEASE=stable
++ grep -w bcm2708 /etc/opt/soc.txt
+ [[ -n '' ]]
++ grep -w bcm2709 /etc/opt/soc.txt
+ [[ -n '' ]]
++ grep -w bcm2710 /etc/opt/soc.txt
+ [[ -n '' ]]
++ grep -w bcm2711 /etc/opt/soc.txt
+ [[ -n BOARD="bcm2711" ]]
++ grep -w arm64 /etc/opt/soc.txt
+ [[ -n ARCH="arm64"
ARCH_EXT="arm64" ]]
+ BOARD=rpi4
+ rpi-linux
+ initrd_check
+ [[ -f /etc/initramfs/post-update.d/99-initrd ]]
+ :
+ prep
+ '[' -e /home/mateusz/.build ']'
+ sudo rm -fdr /home/mateusz/.build/rpi4-stable.sha256 /home/mateusz/.build/rpi4-stable.tar.xz
+ cd /home/mateusz/.build
++ wget -S --spider https://github.com/pyavitz/rpi-linux/releases/download/gcc-11/rpi4-stable.tar.xz
++ grep 'HTTP/1.1 200 OK'
+ [[ -n   HTTP/1.1 200 OK ]]
+ echo -e '\033[0mFetching rpi4-stable\e[0m ...'
Fetching rpi4-stable ...
+ aria2c -c --download-result=hide --console-log-level=error --disable-ipv6=true --summary-interval=0 --show-files=false https://github.com/pyavitz/rpi-linux/releases/download/gcc-11/rpi4-stable.sha256
[#894adb 0B/0B CN:1 DL:0B]+ aria2c -c --download-result=hide --console-log-level=error --disable-ipv6=true --summary-interval=0 --show-files=false https://github.com/pyavitz/rpi-linux/releases/download/gcc-11/rpi4-stable.tar.xz          
[#1ccce4 47MiB/47MiB(98%) CN:1 DL:9.4MiB]+ echo_bdone                                                                                                                                                                                        
+ echo -e '\e[0;35m[\e[0m\e[0;32mdone\e[0m\e[0;35m]\e[0m'
[done]
+ echo ''

++ sha256sum --check rpi4-stable.sha256
++ grep OK
+ [[ -n '' ]]
+ echo -e '\033[0mSomething went wrong? Please report which Distribution and Release you are using\e[0m.'
Something went wrong? Please report which Distribution and Release you are using.
+ exit 0

Can't build compressed image

Six weeks ago before you adopted rsync for compression, I built compressed images for the Raspberry Pi5 and Pi4b
Image sizes were
pi4b 982.5 Mb
pi5 988.4 Mb

Regardless of the image size set in custom.txt, I get a no space left error
I can build an uncompressed image and its 32.8 GB which is way larger than we experienced in the past. (about 4 gb)

# Image Size: 3584MB 4096MB
IMGSIZE="98304MB"

Error is

Shrinking [4723MB]rsync: [receiver] write failed on "/home/rod/devel/rpi-img-builder-2.9.2/p2/usr/share/icons/Adwaita/cursors/watch": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(380) [receiver=3.2.7]
rsync: [sender] write error: Broken pipe (32)
make: *** [Makefile:132: image] Error 11

I can't find the file referred to in the error. Its not something specifically installed by our program,
My build scripts have not changed other than to merge in your latest master branch and alter the userdata.txt and custom.txt

It appears somehow, your new build script is including additional folders or something given the small size of our prevoius images.

If you can investigate and advise, it would be great!

Commit not found

I'm updating the linuxcnc builder to use kernel 6.1.69 for the pi4b and Pi5 but the commit is not found
I have rebased to your master today
I tried the commit after the merge and it is still not found.

ENABLE_COMMIT="1"
### Use this for the Pi4/4b and Pi 5 (6.1.69)
COMMIT= "342c7ee49e862edc30c893f141f55b9211b7a43b"

I get these messages in console

# Compiling kernel
userdata.txt: line 29: 342c7ee49e862edc30c893f141f55b9211b7a43b: command not found
Using commit: 
It appears the commit you selected is not available?
# Root Filesystem
userdata.txt: line 29: 342c7ee49e862edc30c893f141f55b9211b7a43b: command not found

It seems odd it reports a command not found.

Sound and Bluetooth not working

Hi, first of all thank you for this great project! Apologies for another question: I cannot get sound and bluetooth to work.

  1. Sound: I have installed the full mate desktop (apt-get install task-mate-desktop). AlsaMixer does recognize bcm2835 sound card. However, there is no sound on the headphone jack:
┌────────────────────────────── AlsaMixer v1.2.2 ──────────────────────────────┐
│ Card: PulseAudio                                     F1:  Help               │
│ Chip: PulseAudio                                     F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card  │
│ Item: Master                                         Esc: Exit               │
│                                                                              │
│                                     ┌──┐                                     │
│                                     │  │                                     │
│                                     │  │                                     │
│                          ┌───── Sound Card ──────┐                           │
│                          │-  (default)           │                           │
│                          │0  bcm2835 ALSA        │                           │
│                          │   enter device name...│                           │
│                          └───────────────────────┘                           │
│                                     │▒▒│                                     │
│                                     │▒▒│                                     │
│                                     │▒▒│                                     │
│                                     │▒▒│                                     │
│                                     ├──┤                                     │
│                                     │OO│                                     │
│                                     └──┘                                     │
│                                    72<>72                                    │
│                                  < Master >                                  │
└──────────────────────────────────────────────────────────────────────────────┘
  1. Bluetooth: Bluetooth does not work and is not displayed in the control panel. There is an error message with the bluetooth service:
pi@bcm2711:/usr/local$ sudo service bluetooth status
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
     Active: active (running) since Tue 2020-05-05 10:35:34 EDT; 11h ago
       Docs: man:bluetoothd(8)
   Main PID: 608 (bluetoothd)
      Tasks: 1 (limit: 4044)
     Memory: 2.4M
     CGroup: /system.slice/bluetooth.service
             └─608 /usr/lib/bluetooth/bluetoothd

May 05 10:35:34 bcm2711 systemd[1]: Starting Bluetooth service...
May 05 10:35:34 bcm2711 bluetoothd[608]: Bluetooth daemon 5.52
May 05 10:35:34 bcm2711 systemd[1]: Started Bluetooth service.
May 05 10:35:34 bcm2711 bluetoothd[608]: Starting SDP server
May 05 10:35:35 bcm2711 bluetoothd[608]: Bluetooth management interface 1.14 in>
May 05 10:35:35 bcm2711 bluetoothd[608]: Sap driver initialization failed.
May 05 10:35:35 bcm2711 bluetoothd[608]: sap-server: Operation not permitted (1)
May 05 10:35:35 bcm2711 bluetoothd[608]: Failed to set privacy: Rejected (0x0b)
lines 1-18/18 (END)

Do you have any idea how to solve these issues?

energy consumption

One more quick question: I get a lot of undervolt warnings (yellow lightning bolt) with this image. I never got a warning with the original raspbian image. Besides switching power supply, do you have any recommendations which of your changes compared to raspbian cased the increased power demand so that I can change them back?

chroot: failed to run command ‘/debootstrap/debootstrap’: Exec format error

Hello, I am cross-building from WSL running Debian and it looks surprisingly fine. I now ran into the following error which I presume not to be triggered by me starting non-natively. Does this trigger any immediate thoughts? Would you want me to test anything?
Many thanks!
Steffen

I: Extracting tzdata...
I: Extracting usr-is-merged...
I: Extracting util-linux...
I: Extracting util-linux-extra...
I: Extracting zlib1g...
chroot: failed to run command ‘/debootstrap/debootstrap’: Exec format error
make[1]: *** [Makefile:149: all] Error 126
make[1]: Leaving directory '/home/moeller/rpi-img-builder'
make: *** [Makefile:212: menu] Error 2

Xfce4 Destop Image freeze after inactivity

With test image 'rpi-4-b-xfce4-debian-buster-2020-06-06-v8.7z',
after a period of inactivity, it does not respond, it freezes.

I fixed it, installing the package 'xscreensaver' since in debian buster the package 'xfce4-screensaver' does not exist.

Missing hardware decoding in Chromium

Hi, I noticed that the hardware support for video decoding in Chromium is missing in your build. Here is what I get on chrome://gpu

1. Raspbian
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
Hardware Protected Video Decode: Unavailable
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Disabled
Video Decode: Unavailable
Viz Display Compositor: Enabled
Viz Hit-test Surface Layer: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
2. rpi-img-builder
Canvas: Software only, hardware acceleration unavailable
Flash: Unavailable
Flash Stage3D: Unavailable
Flash Stage3D Baseline profile: Unavailable
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Unavailable
OpenGL: Unavailable
Hardware Protected Video Decode: Unavailable
Rasterization: Hardware accelerated
Skia Renderer: Enabled
Video Decode: Unavailable
Viz Display Compositor: Enabled
Vulkan: Disabled
WebGL: Hardware accelerated but at reduced performance
WebGL2: Unavailable

/What can be done to enable full hardware support in rpi-img-builder

using make commit kernels in image build

Hi!

I have sucessfully buit a the 5.15.36-rt41 kernel using

make commit board=bcm2711
ac27843a367ea253659847aeb491137bf3e9216a

with /patches/userpatches/patch-5.15.36-rt41.patch

The kernel and header deb file appear in /output

How do I install them at the beginning of run_function2 () instead of after? I have some installs within run_function2 () that require the rt kernel and headers.

image

rpi-img-builder now fails under Devuan Beowulf amd64

Guessing this is related to 7a4f97f

make ccompile
# Install all dependencies:
sudo apt install build-essential bison bc git dialog patch \
dosfstools zip unzip qemu debootstrap qemu-user-static rsync \
kmod cpio flex libssl-dev libncurses5-dev parted fakeroot swig kpartx \
aria2 pv toilet figlet lsb-release xz-utils curl e2fsprogs btrfs-progs \
distro-info-data crossbuild-essential-arm64 crossbuild-essential-armel \
gcc-8-arm-linux-gnueabi gcc-9-arm-linux-gnueabi gcc-10-arm-linux-gnueabi \
gcc-8-aarch64-linux-gnu gcc-9-aarch64-linux-gnu gcc-10-aarch64-linux-gnu \
gcc-8 gcc-9 gcc-10 debian-archive-keyring debian-keyring make
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-9-aarch64-linux-gnu is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package gcc-9-arm-linux-gnueabi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-9-arm-linux-gnueabi' has no installation candidate
E: Unable to locate package gcc-10-arm-linux-gnueabi
E: Package 'gcc-9-aarch64-linux-gnu' has no installation candidate
E: Unable to locate package gcc-10-aarch64-linux-gnu
E: Unable to locate package gcc-9
E: Unable to locate package gcc-10
make: *** [Makefile:115: ccompile] Error 100

Avoid addressing of root device via /dev/mmcblk0p2

Hi,
i was using a prepared image for the RPi 4, but looking at the sources confirm that this issue still persists. Using a mainline kernel doesn't guarantee that the root device is always /dev/mmcblk0p2, because the RPi 4 has 2 different SDHCI controller and it's very likely that the root device is under /dev/mmcblk1p2 (depending on the probing order / kernel config).

PARTUUID could be a solution for this issue. Please look at gokrazy/gokrazy#52 for possible inspiration.

armhf for the Raspberry Pi 4

Would it be possible to add support for building an rpi4 image using the armhf architecture? It would allow to use debs directly from Raspbian (such as their rpi-optimized VLC, for example)

Devuan Beowulf (but not Chimaera) image building now reporting error

I recently updated and merged the build scripts, then started to get image build failures

make image
make pri-image
make rpi2+3-image
make rpi3-image

all succeed for Chimaera, but fail for Beowulf with logs ending with

...
Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:2nKNWaxtnuvdcgxH+yjzqVcIKUqOF7FoDDArkSQ5RFU root@ubuntu-4gb-fsn1-1 (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:mRRwT+jWcyvOA3piC6qB1mDUoybUHcmwW572q70H53E root@ubuntu-4gb-fsn1-1 (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:PhEqJ2NwKdN2m/2efc3pq+JZ/EV59WHcJ2xBE50XBY8 root@ubuntu-4gb-fsn1-1 (ED25519)
invoke-rc.d: could not determine current runlevel
Processing triggers for libc-bin (2.28-10) ...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package firmware-linux is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package firmware-misc-nonfree is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package firmware-linux-nonfree
E: Package 'firmware-linux' has no installation candidate
E: Package 'firmware-misc-nonfree' has no installation candidate
E: Unable to locate package firmware-realtek
E: Unable to locate package firmware-ralink

linux-firmware-nonfree, etc. seems to not exist for either distro?

# curl https://pkgmaster.devuan.org/merged/dists/chimaera/main/binary-arm64/Packages.gz | gunzip - | grep firmware-linux
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  8 10.3M    8  879k    0     0   496k      0  0:00:21  0:00:01  0:00:20  496kPackage: firmware-linux-free
Filename: pool/DEBIAN/main/f/firmware-free/firmware-linux-free_20200122-1_all.deb
 59 10.3M   59 6319k    0     0   818k      0  0:00:12  0:00:07  0:00:05  903kRecommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: dbus, dkms, file, firmware-ath9k-htc, firmware-linux-free, hw-probe, less, lsof, lvm2, mdadm, netutils, openssh-client, time
 69 10.3M   69 7375k    0     0   842k      0  0:00:12  0:00:08  0:00:04  928kDepends: progress-linux-base-system, cryptsetup-bin, keyutils, plymouth, firmware-linux-free, spectre-meltdown-checker, dmidecode, ethtool, gpm, hdparm, ntp, nvme-cli, parted, rng-tools | rng-tools5, smartmontools
Suggests: fonts-powerline-extra, firmware-linux-nonfree, firmware-misc-nonfree, iucode-tool, amd64-microcode, intel-microcode, firmware-ast, intel-isdct, supermicro-ipmicfg
 89 10.3M   89 9455k    0     0   881k      0  0:00:11  0:00:10  0:00:01 1021kSuggests: firmware-linux
Suggests: firmware-linux
100 10.3M  100 10.3M    0     0   909k      0  0:00:11  0:00:11 --:--:-- 1074k
# curl https://pkgmaster.devuan.org/merged/dists/beowulf/main/binary-arm64/Packages.gz | gunzip - | grep firmware-linux
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Package: firmware-linux-free
Filename: pool/DEBIAN/main/f/firmware-free/firmware-linux-free_3.4_all.deb
 54 10.0M   54 5615k    0     0  1273k      0  0:00:08  0:00:04  0:00:04 1273kRecommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: less, dkms, haveged, time, firmware-linux-free, iputils-ping, netutils, file, dbus, openssh-client, lsof
 90 10.0M   90 9295k    0     0  1257k      0  0:00:08  0:00:07  0:00:01 1187kSuggests: firmware-linux
Suggests: firmware-linux
100 10.0M  100 10.0M    0     0  1247k      0  0:00:08  0:00:08 --:--:-- 1191k
root@devuan-streamer:~# curl https://pkgmaster.devuan.org/merged/dists/beowulf/main/binary-arm64/Packages.gz | gunzip - | grep firmware-linux
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  6 10.0M    6  655k    0     0   617k      0  0:00:16  0:00:01  0:00:15  616kPackage: firmware-linux-free
Filename: pool/DEBIAN/main/f/firmware-free/firmware-linux-free_3.4_all.deb
 60 10.0M   60 6239k    0     0  1032k      0  0:00:09  0:00:06  0:00:03 1121kRecommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: firmware-linux-free, apparmor
Recommends: less, dkms, haveged, time, firmware-linux-free, iputils-ping, netutils, file, dbus, openssh-client, lsof
 94 10.0M   94 9711k    0     0  1069k      0  0:00:09  0:00:09 --:--:-- 1148kSuggests: firmware-linux
Suggests: firmware-linux
100 10.0M  100 10.0M    0     0  1069k      0  0:00:09  0:00:09 --:--:-- 1133k

Make img error "ls cannot access rpi4.img"

First I want to thank you for this amazing project, really appreciate all the work you have put into this.

I am trying to build a debian img for my rpi4 and compile the kernel with LTO and clang. Everything seems to be working perfectly but on the last stage, "make image" and at the end I get an error message.

The Result page displays the following: "ls cannot access rpi-4*.img No such file or directory"
There is an img folder with a debian image, can I just use this? Or how can I solve this issue? Thanks in advance

Make images USB Bootable for rPi 4

I tried your test image for rPi4 and noticed that booting process have paths to devices hardcoded. It would make more sense to use UUIDs there.

stage1 throws "command not found" error

Hi, i get the following error message when doing "make image"

sudo: ./scripts/rpi4-stage1: command not found
make: *** [Makefile:112: image] Error 1

Any idea what command I am missing?

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.