frank-w
(Frank W.)
July 1, 2023, 11:47am
1
Hi,
i have created a script for creating Debian/Ubuntu Images with files from my github repos (latest Uboot/ATF, latest LTS linux kernel) and a very basic rootfs.
login: root pw: bananapi
wan: dhcp-client
lanports: bridged 192.168.1.1/24 + dhcp-server
Network config is done using systemd-networkd (+resolved for dns)…see files in /etc/systemd/network
tested so far: bpi-r3, r2pro and r64 with kernel 6.1 and bpi-r2 (here default is kernel 5.15 because of internal wifi is not supported in 6.1).
arm64 boards using FIT-image (itb file) for kernel.
maybe some more users can test it
CI in this repo builds images and put them on my gdrive:
https://drive.google.com/drive/folders/1A5S7_82Bg4EYxjzdQ5FKyBw9Qi2C3uK-?usp=drive_link
current issues:
on r64 i have only fit-boot running…legacy boot does not work
BPI-R64> setenv root /dev/mmcblk1p5 rootfstype=ext4 rootwait
BPI-R64> setenv kernel uImage_nodt
BPI-R64> run newboot
## Error: "fit" not defined
ERROR: reserving fdt memory region failed (addr=0 size=43000000 flags=4)
15247432 bytes read in 2648 ms (5.5 MiB/s)
ERROR: reserving fdt memory region failed (addr=0 size=43000000 flags=4)
25324 bytes read in 15 ms (1.6 MiB/s)
## Booting kernel from Legacy Image at 44000000 ...
Image Name: Linux Kernel 6.1.34-main
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 15247368 Bytes = 14.5 MiB
Load Address: 40080000
Entry Point: 40080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 47000000
Booting using the fdt blob at 0x47000000
Working FDT set to 47000000
Loading Kernel Image
Loading Device Tree to 000000007e7d2000, end 000000007e7db2eb ... OK
Working FDT set to 7e7d2000
Starting kernel ...
and then board-reset…currently i have no idea whats wrong, but as fit is working not that critical.
also wifi-module has to be loaded manually with modprobe mt7615e
- fixed
Bpi-r2 has no dnsmasq yet (called in wifi.sh),try to move this to systemd. - edit: added systemd file and disabled ip/dnsmasq in wifi.sh
Hello Frank, I re-compiled the kernel several times and only knew about to replace the Image.gz from the arch/arm64/boot/Image.gz. For the modules chosen as <M> in the menuconfig, how would I compile them as .so or .ko to be able to modprobe in bananapi?
frank-w
(Frank W.)
July 2, 2023, 6:48am
3
The image create script takes the kernel (and atf/uboot) from my gitlab releases. There is currently no option to use self compiled kernel. You have to disable the python-script and point to your tar.gz file (use pack after compilation) in the sourcefiles_.conf
Which board do you use? And which option have you set as module?
edit: have added a “skipkerneldownload” option in the conf-file, which you can set and then the kernel is not downloaded from my kernel-ci instead of using the predefined kernelfile option (which you can set to your local built kernel-file - pack-option in build.sh of my kernel-repo)
R2 pro, and iwlwifi is set to M and atlantic driver is set to M. Trying to use a AQC113 10G NIC on PCIe 3.0 x 1, which I am out of mind.
But shouldn’t the build.sh that builds the kernel Image.gz also creates the .so or .ko files that I could transfer to Pi?
frank-w
(Frank W.)
July 2, 2023, 1:47pm
5
Yes it should create the .ko (kernel module) file if the option supports module. Maybe name is different to source file/folder.
And by default my image creation script uses files from my github releases (and so my config). Or do you using image and try to update kernel with your own later?
I am using all the source file from your Github repo. I would like to know where would the ./build.sh place the .ko files after compilation.
You said there is an option supporting module, are you saying there is a command option needs to be executed with ./build.sh in order to build the modules?
frank-w
(Frank W.)
July 2, 2023, 1:57pm
7
CONFIG_WLAN_VENDOR_INTEL=y
CONFIG_IWLWIFI=m
creates the module in my test (when running build.sh without arguments…building kernel+modules)…
LD [M] drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
do not see atlantic driver…how is it named?
then pack the kernel (option 1 - pack) and untar contents to the right partitions
make sure you bootup the right kernel…fit (itb file defined with fit-variable) is tried first in the image created here. you should open a new thread…this is for the Imagecreator.
newer images created have a distro_bootcmd “fallback”, but this has to be manually called from uboot-prompt
1 Like
I think I know what the problem is here:
I am doing CONFIG_WLAN_VENDOR_INTEL=m and CONFIG_IWLWIFI=m
frank-w
(Frank W.)
July 8, 2023, 6:12am
9
CONFIG_WLAN_VENDOR_INTEL does not allow m,it is bool,not tristate
https://cateee.net/lkddb/web-lkddb/WLAN_VENDOR_INTEL.html
But please use a new thread for this discussion. It is not directly related to my image creation repo.
Does this image builder support building kernels that support nftables? I would like to explore setting up a router and access point on Debian ARM, so having a firewall is critical.
frank-w
(Frank W.)
August 1, 2023, 5:19am
11
The imagebuilder uses kernel-packages from my github repo (releases). But firewall is core element of router,will add it to R3 soon - my current r3 defconfig for 6.1 contains nftables already…which options do you miss here?
But you can build your own kernel with this repo,create such package and tell the image builder to use this see here
I haven’t tried anything yet, was just asking if it had what I need first I will see about trying it this weekend and will report on what’s missing, if anything. Thank you for the quick and detailed response!
frank-w
(Frank W.)
August 1, 2023, 4:43pm
13
On R2 linux 5.15 is used,on the other boards 6.1
This is config for BPi-R3:
R64: https://github.com/frank-w/BPI-Router-Linux/blob/6.1-main/arch/arm64/configs/mt7622_bpi-r64_defconfig
R2Pro: https://github.com/frank-w/BPI-Router-Linux/blob/6.1-main/arch/arm64/configs/quartz64_defconfig
R2: https://github.com/frank-w/BPI-Router-Linux/blob/5.15-main/arch/arm/configs/mt7623n_evb_fwu_defconfig
To make it easier for users to create images i used precompiled kernels built by github CI…this way users do not need to install compilers and the build-process is faster. The logic for create the bootsectors (preloader/ATF,uboot,partitions) is done by CI in my uboot repo. The image creator collects these things pack them together and adds rootfs which is generated by buildchroot.sh
For R4 i have bootable system,but i need to clean defconfig and there is no lts with the patches (currently working on 6.5) yet and v1.0 will have some changes.maybe i add the board to the script when changes are compatible with v1.0.
zeusleon
(zeus)
September 2, 2023, 11:43am
14
I am trying to create a new image for 128Gb SD and I have several questions
This is supposed to download a new version, with the possibility of saving to an SD
git clone https://github.com/frank-w/BPI-Router-Images.git
./buildimg.sh bpi-r3 bookworm
1.- How do you create the partitions? I don’t see such a thing in the process?
2.- Where do you create them?
according to this command gunzip -c bpi-r3_sdmmc.img.gz | sudo dd bs=1M status=progress conv=notrunc,fsync of=/dev/sdX takes it to another place but in this output it gives errors
@vmwareubuntu:~/Descargas/BPI-Router-Images$ ./buildimg.sh bpi-r3 bookworm
create image for bpi-r3 (arm64) bookworm 6.1
board : bpi-r3
kernel : 6.1
board:bpi-r3 ubootfile: https://github.com/frank-w/u-boot/releases/download/CI-BUILD-2023-07-bpi-2023.07-2023-07-
board:bpi-r3 kernelfile: https://github.com/frank-w/BPI-Router-Linux/releases/download/CI-BUILD-6.1-main-6.1.50-2
ubootfile: https://github.com/frank-w/u-boot/releases/download/CI-BUILD-2023-07-bpi-2023.07-2023-07-18_0722/bpi-r
kernelfile: https://github.com/frank-w/BPI-Router-Linux/releases/download/CI-BUILD-6.1-main-6.1.50-2023-08-31_202_6.1.50-main.tar.gz
image-file: bpi-r3_sdmmc.img.gz
kernel-file: bpi-r3_6.1.50-main.tar.gz
checking for needed packages...
$1:arm64
setting arch
$2:bookworm
isdebian:1,isubuntu:0
setting distro
create chroot 'debian bookworm' for arm64
mounting tmpfs for building...
I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror https:
I: Retrieving InRelease
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on https://deb.debian.org/debian...
I: Retrieving libacl1 2.3.1-3
I: Validating libacl1 2.3.1-3
I: Retrieving adduser 3.134
I: Validating adduser 3.134
I: Retrieving libapparmor1 3.0.8-3
I: Validating libapparmor1 3.0.8-3
I: Retrieving apt 2.6.1
I: Validating apt 2.6.1
I: Retrieving apt-utils 2.6.1
I: Validating apt-utils 2.6.1
I: Retrieving libapt-pkg6.0 2.6.1
I: Validating libapt-pkg6.0 2.6.1
I: Retrieving libargon2-1 0~20171227-0.3+deb12u1
I: Validating libargon2-1 0~20171227-0.3+deb12u1
I: Retrieving libattr1 1:2.5.1-4
I: Validating libattr1 1:2.5.1-4
I: Retrieving libaudit-common 1:3.0.9-1
I: Validating libaudit-common 1:3.0.9-1
I: Retrieving libaudit1 1:3.0.9-1
I: Validating libaudit1 1:3.0.9-1
I: Retrieving base-files 12.4+deb12u1
I: Validating base-files 12.4+deb12u1
I: Retrieving base-passwd 3.6.1
I: Validating base-passwd 3.6.1
I: Retrieving bash 5.2.15-2+b2
I: Validating bash 5.2.15-2+b2
I: Retrieving libbz2-1.0 1.0.8-5+b1
I: Validating libbz2-1.0 1.0.8-5+b1
I: Retrieving ca-certificates 20230311
I: Validating ca-certificates 20230311
I: Retrieving libdebconfclient0 0.270
I: Validating libdebconfclient0 0.270
I: Retrieving coreutils 9.1-1
I: Validating coreutils 9.1-1
I: Retrieving cpio 2.13+dfsg-7.1
I: Validating cpio 2.13+dfsg-7.1
I: Retrieving cron 3.0pl1-162
I: Validating cron 3.0pl1-162
I: Retrieving cron-daemon-common 3.0pl1-162
I: Validating cron-daemon-common 3.0pl1-162
I: Retrieving libcryptsetup12 2:2.6.1-4~deb12u1
I: Validating libcryptsetup12 2:2.6.1-4~deb12u1
I: Retrieving dash 0.5.12-2
I: Validating dash 0.5.12-2
I: Retrieving libdb5.3 5.3.28+dfsg2-1
I: Validating libdb5.3 5.3.28+dfsg2-1
I: Retrieving debconf 1.5.82
I: Validating debconf 1.5.82
I: Retrieving debconf-i18n 1.5.82
I: Validating debconf-i18n 1.5.82
I: Retrieving debian-archive-keyring 2023.3
I: Validating debian-archive-keyring 2023.3
I: Retrieving debianutils 5.7-0.4
I: Validating debianutils 5.7-0.4
I: Retrieving diffutils 1:3.8-4
I: Validating diffutils 1:3.8-4
I: Retrieving dmidecode 3.4-1
I: Validating dmidecode 3.4-1
I: Retrieving dpkg 1.21.22
I: Validating dpkg 1.21.22
I: Retrieving e2fsprogs 1.47.0-2
I: Validating e2fsprogs 1.47.0-2
I: Retrieving libcom-err2 1.47.0-2
I: Validating libcom-err2 1.47.0-2
I: Retrieving libext2fs2 1.47.0-2
I: Validating libext2fs2 1.47.0-2
I: Retrieving libss2 1.47.0-2
I: Validating libss2 1.47.0-2
I: Retrieving logsave 1.47.0-2
I: Validating logsave 1.47.0-2
I: Retrieving libelf1 0.188-2.1
I: Validating libelf1 0.188-2.1
I: Retrieving findutils 4.9.0-4
I: Validating findutils 4.9.0-4
I: Retrieving gcc-12-base 12.2.0-14
I: Validating gcc-12-base 12.2.0-14
I: Retrieving libgcc-s1 12.2.0-14
I: Validating libgcc-s1 12.2.0-14
I: Retrieving libstdc++6 12.2.0-14
I: Validating libstdc++6 12.2.0-14
I: Retrieving libgdbm-compat4 1.23-3
I: Validating libgdbm-compat4 1.23-3
I: Retrieving libgdbm6 1.23-3
I: Validating libgdbm6 1.23-3
I: Retrieving libc-bin 2.36-9+deb12u1
I: Validating libc-bin 2.36-9+deb12u1
I: Retrieving libc6 2.36-9+deb12u1
I: Validating libc6 2.36-9+deb12u1
I: Retrieving libgmp10 2:6.2.1+dfsg1-1.1
I: Validating libgmp10 2:6.2.1+dfsg1-1.1
I: Retrieving gpgv 2.2.40-1.1
I: Validating gpgv 2.2.40-1.1
I: Retrieving libgnutls30 3.7.9-2
I: Validating libgnutls30 3.7.9-2
I: Retrieving grep 3.8-5
I: Validating grep 3.8-5
I: Retrieving gzip 1.12-1
I: Validating gzip 1.12-1
I: Retrieving hostname 3.23+nmu1
I: Validating hostname 3.23+nmu1
I: Retrieving ifupdown 0.8.41
I: Validating ifupdown 0.8.41
I: Retrieving init 1.65.2
I: Validating init 1.65.2
I: Retrieving init-system-helpers 1.65.2
I: Validating init-system-helpers 1.65.2
I: Retrieving iproute2 6.1.0-3
I: Validating iproute2 6.1.0-3
I: Retrieving libip4tc2 1.8.9-2
I: Validating libip4tc2 1.8.9-2
I: Retrieving libxtables12 1.8.9-2
I: Validating libxtables12 1.8.9-2
I: Retrieving iputils-ping 3:20221126-1
I: Validating iputils-ping 3:20221126-1
I: Retrieving isc-dhcp-client 4.4.3-P1-2
I: Validating isc-dhcp-client 4.4.3-P1-2
I: Retrieving isc-dhcp-common 4.4.3-P1-2
I: Validating isc-dhcp-common 4.4.3-P1-2
I: Retrieving libjansson4 2.14-2
I: Validating libjansson4 2.14-2
I: Retrieving libjson-c5 0.16-2
I: Validating libjson-c5 0.16-2
I: Retrieving libkeyutils1 1.6.3-2
I: Validating libkeyutils1 1.6.3-2
I: Retrieving kmod 30+20221128-1
I: Validating kmod 30+20221128-1
I: Retrieving libkmod2 30+20221128-1
I: Validating libkmod2 30+20221128-1
I: Retrieving libgssapi-krb5-2 1.20.1-2
I: Validating libgssapi-krb5-2 1.20.1-2
I: Retrieving libk5crypto3 1.20.1-2
I: Validating libk5crypto3 1.20.1-2
I: Retrieving libkrb5-3 1.20.1-2
I: Validating libkrb5-3 1.20.1-2
I: Retrieving libkrb5support0 1.20.1-2
I: Validating libkrb5support0 1.20.1-2
I: Retrieving less 590-2
I: Validating less 590-2
I: Retrieving libbpf1 1:1.1.0-1
I: Validating libbpf1 1:1.1.0-1
I: Retrieving libbsd0 0.11.7-2
I: Validating libbsd0 0.11.7-2
I: Retrieving libcap-ng0 0.8.3-1+b3
I: Validating libcap-ng0 0.8.3-1+b3
I: Retrieving libcap2 1:2.66-4
I: Validating libcap2 1:2.66-4
I: Retrieving libcap2-bin 1:2.66-4
I: Validating libcap2-bin 1:2.66-4
I: Retrieving libedit2 3.1-20221030-2
I: Validating libedit2 3.1-20221030-2
I: Retrieving libffi8 3.4.4-1
I: Validating libffi8 3.4.4-1
I: Retrieving libfile-find-rule-perl 0.34-3
I: Validating libfile-find-rule-perl 0.34-3
I: Retrieving libgcrypt20 1.10.1-3
I: Validating libgcrypt20 1.10.1-3
I: Retrieving libgpg-error0 1.46-1
I: Validating libgpg-error0 1.46-1
I: Retrieving libidn2-0 2.3.3-1+b1
I: Validating libidn2-0 2.3.3-1+b1
I: Retrieving liblocale-gettext-perl 1.07-5
I: Validating liblocale-gettext-perl 1.07-5
I: Retrieving libmd0 1.0.4-2
I: Validating libmd0 1.0.4-2
I: Retrieving libmnl0 1.0.4-3
I: Validating libmnl0 1.0.4-3
I: Retrieving libnftnl11 1.2.4-2
I: Validating libnftnl11 1.2.4-2
I: Retrieving libnumber-compare-perl 0.03-3
I: Validating libnumber-compare-perl 0.03-3
I: Retrieving libseccomp2 2.5.4-1+b3
I: Validating libseccomp2 2.5.4-1+b3
I: Retrieving libselinux1 3.4-1+b6
I: Validating libselinux1 3.4-1+b6
I: Retrieving libsemanage-common 3.4-1
I: Validating libsemanage-common 3.4-1
I: Retrieving libsemanage2 3.4-1+b5
I: Validating libsemanage2 3.4-1+b5
I: Retrieving libsepol2 3.4-2.1
I: Validating libsepol2 3.4-2.1
I: Retrieving libtasn1-6 4.19.0-2
I: Validating libtasn1-6 4.19.0-2
I: Retrieving libtext-charwidth-perl 0.04-11
I: Validating libtext-charwidth-perl 0.04-11
I: Retrieving libtext-glob-perl 0.11-3
I: Validating libtext-glob-perl 0.11-3
I: Retrieving libtext-iconv-perl 1.7-8
I: Validating libtext-iconv-perl 1.7-8
I: Retrieving libtext-wrapi18n-perl 0.06-10
I: Validating libtext-wrapi18n-perl 0.06-10
I: Retrieving libtirpc-common 1.3.3+ds-1
I: Validating libtirpc-common 1.3.3+ds-1
I: Retrieving libtirpc3 1.3.3+ds-1
I: Validating libtirpc3 1.3.3+ds-1
I: Retrieving libunistring2 1.0-2
I: Validating libunistring2 1.0-2
I: Retrieving libcrypt1 1:4.4.33-2
I: Validating libcrypt1 1:4.4.33-2
I: Retrieving libzstd1 1.5.4+dfsg2-5
I: Validating libzstd1 1.5.4+dfsg2-5
I: Retrieving logrotate 3.21.0-1
I: Validating logrotate 3.21.0-1
I: Retrieving dmsetup 2:1.02.185-2
I: Validating dmsetup 2:1.02.185-2
I: Retrieving libdevmapper1.02.1 2:1.02.185-2
I: Validating libdevmapper1.02.1 2:1.02.185-2
I: Retrieving liblz4-1 1.9.4-1
I: Validating liblz4-1 1.9.4-1
I: Retrieving mawk 1.3.4.20200120-3.1
I: Validating mawk 1.3.4.20200120-3.1
I: Retrieving nano 7.2-1
I: Validating nano 7.2-1
I: Retrieving libncursesw6 6.4-4
I: Validating libncursesw6 6.4-4
I: Retrieving libtinfo6 6.4-4
I: Validating libtinfo6 6.4-4
I: Retrieving ncurses-base 6.4-4
I: Validating ncurses-base 6.4-4
I: Retrieving ncurses-bin 6.4-4
I: Validating ncurses-bin 6.4-4
I: Retrieving netbase 6.4
I: Validating netbase 6.4
I: Retrieving libhogweed6 3.8.1-2
I: Validating libhogweed6 3.8.1-2
I: Retrieving libnettle8 3.8.1-2
I: Validating libnettle8 3.8.1-2
I: Retrieving libnewt0.52 0.52.23-1+b1
I: Validating libnewt0.52 0.52.23-1+b1
I: Retrieving whiptail 0.52.23-1+b1
I: Validating whiptail 0.52.23-1+b1
I: Retrieving libnftables1 1.0.6-2+deb12u1
I: Validating libnftables1 1.0.6-2+deb12u1
I: Retrieving nftables 1.0.6-2+deb12u1
I: Validating nftables 1.0.6-2+deb12u1
I: Retrieving libssl3 3.0.9-1
I: Validating libssl3 3.0.9-1
I: Retrieving openssl 3.0.9-1
I: Validating openssl 3.0.9-1
I: Retrieving libp11-kit0 0.24.1-2
I: Validating libp11-kit0 0.24.1-2
I: Retrieving libpam-modules 1.5.2-6
I: Validating libpam-modules 1.5.2-6
I: Retrieving libpam-modules-bin 1.5.2-6
I: Validating libpam-modules-bin 1.5.2-6
I: Retrieving libpam-runtime 1.5.2-6
I: Validating libpam-runtime 1.5.2-6
I: Retrieving libpam0g 1.5.2-6
I: Validating libpam0g 1.5.2-6
I: Retrieving libpcre2-8-0 10.42-1
I: Validating libpcre2-8-0 10.42-1
I: Retrieving libperl5.36 5.36.0-7
I: Validating libperl5.36 5.36.0-7
I: Retrieving perl 5.36.0-7
I: Validating perl 5.36.0-7
I: Retrieving perl-base 5.36.0-7
I: Validating perl-base 5.36.0-7
I: Retrieving perl-modules-5.36 5.36.0-7
I: Validating perl-modules-5.36 5.36.0-7
I: Retrieving libpopt0 1.19+dfsg-1
I: Validating libpopt0 1.19+dfsg-1
I: Retrieving libproc2-0 2:4.0.2-3
I: Validating libproc2-0 2:4.0.2-3
I: Retrieving procps 2:4.0.2-3
I: Validating procps 2:4.0.2-3
I: Retrieving libreadline8 8.2-1.3
I: Validating libreadline8 8.2-1.3
I: Retrieving readline-common 8.2-1.3
I: Validating readline-common 8.2-1.3
I: Retrieving sed 4.9-1
I: Validating sed 4.9-1
I: Retrieving sensible-utils 0.0.17+nmu1
I: Validating sensible-utils 0.0.17+nmu1
I: Retrieving login 1:4.13+dfsg1-1+b1
I: Validating login 1:4.13+dfsg1-1+b1
I: Retrieving passwd 1:4.13+dfsg1-1+b1
I: Validating passwd 1:4.13+dfsg1-1+b1
I: Retrieving libslang2 2.3.3-3
I: Validating libslang2 2.3.3-3
I: Retrieving libsystemd-shared 252.12-1~deb12u1
I: Validating libsystemd-shared 252.12-1~deb12u1
I: Retrieving libsystemd0 252.12-1~deb12u1
I: Validating libsystemd0 252.12-1~deb12u1
I: Retrieving libudev1 252.12-1~deb12u1
I: Validating libudev1 252.12-1~deb12u1
I: Retrieving systemd 252.12-1~deb12u1
I: Validating systemd 252.12-1~deb12u1
I: Retrieving systemd-sysv 252.12-1~deb12u1
I: Validating systemd-sysv 252.12-1~deb12u1
I: Retrieving udev 252.12-1~deb12u1
I: Validating udev 252.12-1~deb12u1
I: Retrieving sysvinit-utils 3.06-4
I: Validating sysvinit-utils 3.06-4
I: Retrieving tar 1.34+dfsg-1.2
I: Validating tar 1.34+dfsg-1.2
I: Retrieving tasksel 3.73
I: Validating tasksel 3.73
I: Retrieving tasksel-data 3.73
I: Validating tasksel-data 3.73
I: Retrieving tzdata 2023c-5
I: Validating tzdata 2023c-5
I: Retrieving usrmerge 35
I: Validating usrmerge 35
I: Retrieving bsdutils 1:2.38.1-5+b1
I: Validating bsdutils 1:2.38.1-5+b1
I: Retrieving fdisk 2.38.1-5+b1
I: Validating fdisk 2.38.1-5+b1
I: Retrieving libblkid1 2.38.1-5+b1
I: Validating libblkid1 2.38.1-5+b1
I: Retrieving libfdisk1 2.38.1-5+b1
I: Validating libfdisk1 2.38.1-5+b1
I: Retrieving libmount1 2.38.1-5+b1
I: Validating libmount1 2.38.1-5+b1
I: Retrieving libsmartcols1 2.38.1-5+b1
I: Validating libsmartcols1 2.38.1-5+b1
I: Retrieving libuuid1 2.38.1-5+b1
I: Validating libuuid1 2.38.1-5+b1
I: Retrieving mount 2.38.1-5+b1
I: Validating mount 2.38.1-5+b1
I: Retrieving util-linux 2.38.1-5+b1
I: Validating util-linux 2.38.1-5+b1
I: Retrieving util-linux-extra 2.38.1-5+b1
I: Validating util-linux-extra 2.38.1-5+b1
I: Retrieving vim-common 2:9.0.1378-2
I: Validating vim-common 2:9.0.1378-2
I: Retrieving vim-tiny 2:9.0.1378-2
I: Validating vim-tiny 2:9.0.1378-2
I: Retrieving libxxhash0 0.8.1-1
I: Validating libxxhash0 0.8.1-1
I: Retrieving liblzma5 5.4.1-0.2
I: Validating liblzma5 5.4.1-0.2
I: Retrieving zlib1g 1:1.2.13.dfsg-1
I: Validating zlib1g 1:1.2.13.dfsg-1
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting libacl1...
I: Extracting adduser...
I: Extracting apt...
I: Extracting libapt-pkg6.0...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting libdebconfclient0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb5.3...
I: Extracting debconf...
I: Extracting debian-archive-keyring...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fsprogs...
I: Extracting libcom-err2...
I: Extracting libext2fs2...
I: Extracting libss2...
I: Extracting logsave...
I: Extracting findutils...
I: Extracting gcc-12-base...
I: Extracting libgcc-s1...
I: Extracting libstdc++6...
I: Extracting libgdbm-compat4...
I: Extracting libgdbm6...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting libgmp10...
I: Extracting gpgv...
I: Extracting libgnutls30...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init-system-helpers...
I: Extracting libcap-ng0...
I: Extracting libcap2...
I: Extracting libffi8...
I: Extracting libfile-find-rule-perl...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting libidn2-0...
I: Extracting libmd0...
I: Extracting libnumber-compare-perl...
I: Extracting libseccomp2...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage2...
I: Extracting libsepol2...
I: Extracting libtasn1-6...
I: Extracting libtext-glob-perl...
I: Extracting libunistring2...
I: Extracting libcrypt1...
I: Extracting libzstd1...
I: Extracting liblz4-1...
I: Extracting mawk...
I: Extracting libtinfo6...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libhogweed6...
I: Extracting libnettle8...
I: Extracting libp11-kit0...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre2-8-0...
I: Extracting libperl5.36...
I: Extracting perl...
I: Extracting perl-base...
I: Extracting perl-modules-5.36...
I: Extracting sed...
I: Extracting login...
I: Extracting passwd...
I: Extracting libsystemd0...
I: Extracting libudev1...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting usrmerge...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting util-linux-extra...
I: Extracting libxxhash0...
I: Extracting liblzma5...
I: Extracting zlib1g...
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking libacl1:arm64...
I: Unpacking adduser...
I: Unpacking apt...
I: Unpacking libapt-pkg6.0:arm64...
I: Unpacking libattr1:arm64...
I: Unpacking libaudit-common...
I: Unpacking libaudit1:arm64...
I: Unpacking base-files...
I: Unpacking base-passwd...
I: Unpacking bash...
I: Unpacking libbz2-1.0:arm64...
I: Unpacking libdebconfclient0:arm64...
I: Unpacking coreutils...
I: Unpacking dash...
I: Unpacking libdb5.3:arm64...
I: Unpacking debconf...
I: Unpacking debian-archive-keyring...
I: Unpacking debianutils...
I: Unpacking diffutils...
I: Unpacking dpkg...
I: Unpacking e2fsprogs...
I: Unpacking libcom-err2:arm64...
I: Unpacking libext2fs2:arm64...
I: Unpacking libss2:arm64...
I: Unpacking logsave...
I: Unpacking findutils...
I: Unpacking gcc-12-base:arm64...
I: Unpacking libgcc-s1:arm64...
I: Unpacking libstdc++6:arm64...
I: Unpacking libgdbm-compat4:arm64...
I: Unpacking libgdbm6:arm64...
I: Unpacking libc-bin...
I: Unpacking libc6:arm64...
I: Unpacking libgmp10:arm64...
I: Unpacking gpgv...
I: Unpacking libgnutls30:arm64...
I: Unpacking grep...
I: Unpacking gzip...
I: Unpacking hostname...
I: Unpacking init-system-helpers...
I: Unpacking libcap-ng0:arm64...
I: Unpacking libcap2:arm64...
I: Unpacking libffi8:arm64...
I: Unpacking libfile-find-rule-perl...
I: Unpacking libgcrypt20:arm64...
I: Unpacking libgpg-error0:arm64...
I: Unpacking libidn2-0:arm64...
I: Unpacking libmd0:arm64...
I: Unpacking libnumber-compare-perl...
I: Unpacking libseccomp2:arm64...
I: Unpacking libselinux1:arm64...
I: Unpacking libsemanage-common...
I: Unpacking libsemanage2:arm64...
I: Unpacking libsepol2:arm64...
I: Unpacking libtasn1-6:arm64...
I: Unpacking libtext-glob-perl...
I: Unpacking libunistring2:arm64...
I: Unpacking libcrypt1:arm64...
I: Unpacking libzstd1:arm64...
I: Unpacking liblz4-1:arm64...
I: Unpacking mawk...
I: Unpacking libtinfo6:arm64...
I: Unpacking ncurses-base...
I: Unpacking ncurses-bin...
I: Unpacking libhogweed6:arm64...
I: Unpacking libnettle8:arm64...
I: Unpacking libp11-kit0:arm64...
I: Unpacking libpam-modules:arm64...
I: Unpacking libpam-modules-bin...
I: Unpacking libpam-runtime...
I: Unpacking libpam0g:arm64...
I: Unpacking libpcre2-8-0:arm64...
I: Unpacking libperl5.36:arm64...
I: Unpacking perl...
I: Unpacking perl-base...
I: Unpacking perl-modules-5.36...
I: Unpacking sed...
I: Unpacking login...
I: Unpacking passwd...
I: Unpacking libsystemd0:arm64...
I: Unpacking libudev1:arm64...
I: Unpacking sysvinit-utils...
I: Unpacking tar...
I: Unpacking tzdata...
I: Unpacking usrmerge...
I: Unpacking bsdutils...
I: Unpacking libblkid1:arm64...
I: Unpacking libmount1:arm64...
I: Unpacking libsmartcols1:arm64...
I: Unpacking libuuid1:arm64...
I: Unpacking mount...
I: Unpacking util-linux...
I: Unpacking util-linux-extra...
I: Unpacking libxxhash0:arm64...
I: Unpacking liblzma5:arm64...
I: Unpacking zlib1g:arm64...
I: Configuring required packages...
I: Configuring libtext-glob-perl...
I: Configuring debian-archive-keyring...
I: Configuring libaudit-common...
I: Configuring libsemanage-common...
I: Configuring debconf...
I: Configuring libnumber-compare-perl...
I: Configuring gcc-12-base:arm64...
I: Configuring tzdata...
I: Configuring ncurses-base...
I: Configuring libgcc-s1:arm64...
I: Configuring libc6:arm64...
I: Configuring libudev1:arm64...
I: Configuring libffi8:arm64...
I: Configuring libmd0:arm64...
I: Configuring libxxhash0:arm64...
I: Configuring libattr1:arm64...
I: Configuring sysvinit-utils...
I: Configuring libtasn1-6:arm64...
I: Configuring debianutils...
I: Configuring mawk...
I: Configuring libdebconfclient0:arm64...
I: Configuring base-files...
I: Configuring libbz2-1.0:arm64...
I: Configuring libdb5.3:arm64...
I: Configuring libblkid1:arm64...
I: Configuring libstdc++6:arm64...
I: Configuring libgdbm6:arm64...
I: Configuring libtinfo6:arm64...
I: Configuring bash...
I: Configuring libzstd1:arm64...
I: Configuring liblzma5:arm64...
I: Configuring libgpg-error0:arm64...
I: Configuring liblz4-1:arm64...
I: Configuring libc-bin...
I: Configuring ncurses-bin...
I: Configuring libacl1:arm64...
I: Configuring libunistring2:arm64...
I: Configuring libsmartcols1:arm64...
I: Configuring libgcrypt20:arm64...
I: Configuring zlib1g:arm64...
I: Configuring libcrypt1:arm64...
I: Configuring libidn2-0:arm64...
I: Configuring libcom-err2:arm64...
I: Configuring diffutils...
I: Configuring libseccomp2:arm64...
I: Configuring libcap2:arm64...
I: Configuring hostname...
I: Configuring libcap-ng0:arm64...
I: Configuring libext2fs2:arm64...
I: Configuring libnettle8:arm64...
I: Configuring libgmp10:arm64...
I: Configuring libp11-kit0:arm64...
I: Configuring libaudit1:arm64...
I: Configuring libuuid1:arm64...
I: Configuring libss2:arm64...
I: Configuring libgdbm-compat4:arm64...
I: Configuring libsepol2:arm64...
I: Configuring libpcre2-8-0:arm64...
I: Configuring logsave...
I: Configuring gpgv...
I: Configuring util-linux-extra...
I: Configuring libhogweed6:arm64...
I: Configuring e2fsprogs...
I: Configuring libsystemd0:arm64...
I: Configuring libselinux1:arm64...
I: Configuring libgnutls30:arm64...
I: Configuring libpam0g:arm64...
I: Configuring libapt-pkg6.0:arm64...
I: Configuring sed...
I: Configuring findutils...
I: Configuring libmount1:arm64...
I: Configuring libsemanage2:arm64...
I: Configuring base-passwd...
I: Configuring bsdutils...
I: Configuring tar...
I: Configuring libpam-modules-bin...
I: Configuring coreutils...
I: Configuring util-linux...
I: Configuring dpkg...
I: Configuring mount...
I: Configuring dash...
I: Configuring libpam-modules:arm64...
I: Configuring grep...
I: Configuring perl-base...
I: Configuring perl-modules-5.36...
I: Configuring gzip...
I: Configuring passwd...
I: Configuring libpam-runtime...
I: Configuring libperl5.36:arm64...
I: Configuring login...
I: Configuring adduser...
I: Configuring apt...
I: Configuring perl...
I: Configuring libfile-find-rule-perl...
I: Configuring usrmerge...
I: Configuring init-system-helpers...
I: Configuring libc-bin...
I: Unpacking the base system...
I: Unpacking apt-utils...
I: Unpacking ca-certificates...
I: Unpacking cpio...
I: Unpacking cron...
I: Unpacking debconf-i18n...
I: Unpacking dmidecode...
I: Unpacking libelf1:arm64...
I: Unpacking ifupdown...
I: Unpacking init...
I: Unpacking iproute2...
I: Unpacking libxtables12:arm64...
I: Unpacking iputils-ping...
I: Unpacking isc-dhcp-client...
I: Unpacking isc-dhcp-common...
I: Unpacking libjansson4:arm64...
I: Unpacking libkeyutils1:arm64...
I: Unpacking kmod...
I: Unpacking libgssapi-krb5-2:arm64...
I: Unpacking libk5crypto3:arm64...
I: Unpacking libkrb5-3:arm64...
I: Unpacking libkrb5support0:arm64...
I: Unpacking less...
I: Unpacking libbpf1:arm64...
I: Unpacking libbsd0:arm64...
I: Unpacking libcap2-bin...
I: Unpacking libedit2:arm64...
I: Unpacking liblocale-gettext-perl...
I: Unpacking libmnl0:arm64...
I: Unpacking libnftnl11:arm64...
I: Unpacking libtext-charwidth-perl:arm64...
I: Unpacking libtext-iconv-perl:arm64...
I: Unpacking libtext-wrapi18n-perl...
I: Unpacking libtirpc-common...
I: Unpacking libtirpc3:arm64...
I: Unpacking logrotate...
I: Unpacking nano...
I: Unpacking libncursesw6:arm64...
I: Unpacking netbase...
I: Unpacking libnewt0.52:arm64...
I: Unpacking whiptail...
I: Unpacking libnftables1:arm64...
I: Unpacking nftables...
I: Unpacking openssl...
I: Unpacking libpopt0:arm64...
I: Unpacking libproc2-0:arm64...
I: Unpacking procps...
I: Unpacking libreadline8:arm64...
I: Unpacking readline-common...
I: Unpacking sensible-utils...
I: Unpacking libslang2:arm64...
I: Unpacking udev...
I: Unpacking tasksel...
I: Unpacking tasksel-data...
I: Unpacking fdisk...
I: Unpacking vim-common...
I: Unpacking vim-tiny...
I: Configuring the base system...
I: Configuring cpio...
I: Configuring libtext-iconv-perl:arm64...
I: Configuring libtext-charwidth-perl:arm64...
I: Configuring libkeyutils1:arm64...
I: Configuring apt-utils...
I: Configuring init...
I: Configuring libtirpc-common...
I: Configuring less...
I: Configuring kmod...
I: Configuring libtext-wrapi18n-perl...
I: Configuring libjansson4:arm64...
I: Configuring libkrb5support0:arm64...
I: Configuring libcap2-bin...
I: Configuring vim-common...
I: Configuring libslang2:arm64...
I: Configuring libproc2-0:arm64...
I: Configuring libmnl0:arm64...
I: Configuring udev...
I: Configuring libncursesw6:arm64...
I: Configuring libk5crypto3:arm64...
I: Configuring libxtables12:arm64...
I: Configuring nano...
I: Configuring sensible-utils...
I: Configuring procps...
I: Configuring netbase...
I: Configuring isc-dhcp-common...
I: Configuring libkrb5-3:arm64...
I: Configuring dmidecode...
I: Configuring openssl...
I: Configuring libbsd0:arm64...
I: Configuring libelf1:arm64...
I: Configuring iputils-ping...
I: Configuring readline-common...
I: Configuring liblocale-gettext-perl...
I: Configuring libbpf1:arm64...
I: Configuring libpopt0:arm64...
I: Configuring logrotate...
I: Configuring libnewt0.52:arm64...
I: Configuring libedit2:arm64...
I: Configuring libreadline8:arm64...
I: Configuring cron...
I: Configuring debconf-i18n...
I: Configuring libnftnl11:arm64...
I: Configuring vim-tiny...
I: Configuring fdisk...
I: Configuring ca-certificates...
I: Configuring libgssapi-krb5-2:arm64...
I: Configuring whiptail...
I: Configuring libtirpc3:arm64...
I: Configuring libnftables1:arm64...
I: Configuring nftables...
I: Configuring iproute2...
I: Configuring isc-dhcp-client...
I: Configuring ifupdown...
I: Configuring tasksel...
I: Configuring tasksel-data...
I: Configuring libc-bin...
I: Configuring ca-certificates...
I: Base system installed successfully.
[sudo] password for gabriel:
Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:2 http://ftp.de.debian.org/debian bookworm InRelease [151 kB]
Get:3 http://ftp.de.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:4 http://security.debian.org/debian-security bookworm-security/main Sources [37.3 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/non-free-firmware Sources [784 B]
Get:6 http://security.debian.org/debian-security bookworm-security/main arm64 Packages [58.1 kB]
Get:7 http://security.debian.org/debian-security bookworm-security/main Translation-en [34.4 kB]
Get:8 http://security.debian.org/debian-security bookworm-security/non-free-firmware Translation-en [464 B]
Get:9 http://ftp.de.debian.org/debian bookworm/main Sources [9640 kB]
Get:10 http://ftp.de.debian.org/debian bookworm/non-free-firmware Sources [6156 B]
Get:11 http://ftp.de.debian.org/debian bookworm/non-free Sources [78.3 kB]
Get:12 http://ftp.de.debian.org/debian bookworm/contrib Sources [51.2 kB]
Get:13 http://ftp.de.debian.org/debian bookworm/main arm64 Packages [8803 kB]
Get:14 http://ftp.de.debian.org/debian bookworm/main Translation-en [6078 kB]
Get:15 http://ftp.de.debian.org/debian bookworm/contrib arm64 Packages [45.1 kB]
Get:16 http://ftp.de.debian.org/debian bookworm/contrib Translation-en [48.7 kB]
Get:17 http://ftp.de.debian.org/debian bookworm/non-free arm64 Packages [76.1 kB]
Get:18 http://ftp.de.debian.org/debian bookworm/non-free Translation-en [67.2 kB]
Get:19 http://ftp.de.debian.org/debian bookworm/non-free-firmware arm64 Packages [5856 B]
Get:20 http://ftp.de.debian.org/debian bookworm/non-free-firmware Translation-en [20.9 kB]
Get:21 http://ftp.de.debian.org/debian bookworm-updates/main Sources [1748 B]
Get:22 http://ftp.de.debian.org/debian bookworm-updates/main arm64 Packages [4960 B]
Get:23 http://ftp.de.debian.org/debian bookworm-updates/main Translation-en [3632 B]
Fetched 25.3 MB in 41s (618 kB/s)
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
libcbor0.8 libfido2-1 libnsl2 libwrap0 openssh-client openssh-sftp-server runit-helper ucf
Suggested packages:
keychain libpam-ssh monkeysphere ssh-askpass molly-guard ufw
Recommended packages:
xauth default-logind | logind | libpam-systemd ncurses-term
The following NEW packages will be installed:
libcbor0.8 libfido2-1 libnsl2 libwrap0 openssh-client openssh-server openssh-sftp-server runit-helper ucf
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1655 kB of archives.
After this operation, 9648 kB of additional disk space will be used.
Get:1 http://ftp.de.debian.org/debian bookworm/main arm64 libcbor0.8 arm64 0.8.0-2+b1 [26.0 kB]
Get:2 http://ftp.de.debian.org/debian bookworm/main arm64 libfido2-1 arm64 1.12.0-2+b1 [72.6 kB]
Get:3 http://ftp.de.debian.org/debian bookworm/main arm64 openssh-client arm64 1:9.2p1-2 [931 kB]
Get:4 http://ftp.de.debian.org/debian bookworm/main arm64 openssh-sftp-server arm64 1:9.2p1-2 [60.3 kB]
Get:5 http://ftp.de.debian.org/debian bookworm/main arm64 ucf all 3.0043+nmu1 [55.2 kB]
Get:6 http://ftp.de.debian.org/debian bookworm/main arm64 runit-helper all 2.15.2 [6520 B]
Get:7 http://ftp.de.debian.org/debian bookworm/main arm64 libnsl2 arm64 1.3.0-2 [36.9 kB]
Get:8 http://ftp.de.debian.org/debian bookworm/main arm64 libwrap0 arm64 7.6.q-32 [54.7 kB]
Get:9 http://ftp.de.debian.org/debian bookworm/main arm64 openssh-server arm64 1:9.2p1-2 [412 kB]
Fetched 1655 kB in 1s (1236 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "es:en",
LC_ALL = (unset),
LC_PAPER = "es_ES.UTF-8",
LC_NUMERIC = "es_ES.UTF-8",
LC_IDENTIFICATION = "es_ES.UTF-8",
LC_MEASUREMENT = "es_ES.UTF-8",
LC_NAME = "es_ES.UTF-8",
LC_TELEPHONE = "es_ES.UTF-8",
LC_ADDRESS = "es_ES.UTF-8",
LC_MONETARY = "es_ES.UTF-8",
LC_TIME = "es_ES.UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
Selecting previously unselected package libcbor0.8:arm64.
(Reading database ... 11250 files and directories currently installed.)
Preparing to unpack .../0-libcbor0.8_0.8.0-2+b1_arm64.deb ...
Unpacking libcbor0.8:arm64 (0.8.0-2+b1) ...
Selecting previously unselected package libfido2-1:arm64.
Preparing to unpack .../1-libfido2-1_1.12.0-2+b1_arm64.deb ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../2-openssh-client_1%3a9.2p1-2_arm64.deb ...
Unpacking openssh-client (1:9.2p1-2) ...
Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../3-openssh-sftp-server_1%3a9.2p1-2_arm64.deb ...
Unpacking openssh-sftp-server (1:9.2p1-2) ...
Selecting previously unselected package ucf.
Preparing to unpack .../4-ucf_3.0043+nmu1_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0043+nmu1) ...
Selecting previously unselected package runit-helper.
Preparing to unpack .../5-runit-helper_2.15.2_all.deb ...
Selecting previously unselected package libnsl2:arm64.
Preparing to unpack .../6-libnsl2_1.3.0-2_arm64.deb ...
Unpacking libnsl2:arm64 (1.3.0-2) ...
Selecting previously unselected package libwrap0:arm64.
Preparing to unpack .../7-libwrap0_7.6.q-32_arm64.deb ...
Unpacking libwrap0:arm64 (7.6.q-32) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../8-openssh-server_1%3a9.2p1-2_arm64.deb ...
Unpacking openssh-server (1:9.2p1-2) ...
Setting up runit-helper (2.15.2) ...
Setting up libcbor0.8:arm64 (0.8.0-2+b1) ...
Setting up ucf (3.0043+nmu1) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libnsl2:arm64 (1.3.0-2) ...
Setting up openssh-client (1:9.2p1-2) ...
Setting up libwrap0:arm64 (7.6.q-32) ...
Setting up openssh-sftp-server (1:9.2p1-2) ...
Setting up openssh-server (1:9.2p1-2) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...
3072 SHA256:ESlIPyFnXrpgg48UCaMGoeJhRQLYxgPP56/J/Z9y22c root@vmwareubuntu (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:iaeT0+XlyiZtCOySGOAZJihxUaLOB7br4S6kJ95Ttus root@vmwareubuntu (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:emmgiXb6yOreyxAGfUEReODOI/REsdgkpN3atWO53dE root@vmwareubuntu (ED25519)
invoke-rc.d: could not determine current runlevel
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
Processing triggers for libc-bin (2.36-9+deb12u1) ...
PermitRootLogin=yes
bpi
umounting tmpfs...
-rw-rw-r-- 1 gabriel gabriel 7,2M sep 2 12:55 bpi-r3_sdmmc.img.gz
-rw-r--r-- 1 root root 203M sep 2 13:18 bookworm_arm64.tar.gz
-rw-rw-r-- 1 gabriel gabriel 24K sep 2 12:55 bpi-r3_6.1.50-main.tar.gz
unpack imgfile...
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
Selecting previously unselected package libcbor0.8:arm64.
(Reading database ... 11250 files and directories currently installed.)
Preparing to unpack .../0-libcbor0.8_0.8.0-2+b1_arm64.deb ...
Unpacking libcbor0.8:arm64 (0.8.0-2+b1) ...
Selecting previously unselected package libfido2-1:arm64.
umounting tmpfs...
-rw-rw-r-- 1 gabriel gabriel 7,2M sep 2 12:55 bpi-r3_sdmmc.img.gz
-rw-r--r-- 1 root root 203M sep 2 13:18 bookworm_arm64.tar.gz
-rw-rw-r-- 1 gabriel gabriel 24K sep 2 12:55 bpi-r3_6.1.50-main.tar.gz
unpack imgfile...
setting up imgfile to loopdev...
losetup: bpi-r3_bookworm_6.1.img: error al configurar dispositivo de bucle: Dispositivo o recurso ocupado
mounting loopdev...
mount: /home/gabriel/Descargas/BPI-Router-Images/mnt/BPI-BOOT: el dispositivo especial /dev/loop13p5 no existe.
mounting BPI-BOOT failed
frank-w
(Frank W.)
September 2, 2023, 12:15pm
15
They are created in my uboot repo (atf branch) via github actions ci
#r64 needs special MBR
sudo dd of=${LDEV} if=r64_header_sdmmc.bin
sudo dd of=${LDEV} if=build/${PLAT}/release/bl2.img bs=512 seek=1024
sudo dd of=${LDEV} if=build/${PLAT}/release/fip.bin bs=512 seek=2048
#re-read part table
sudo losetup -d $LDEV
sudo losetup -P $LDEV $IMGDIR/$IMGNAME.img 1> /dev/null #2>&1
sudo mkfs.vfat "${LDEV}p4" -n BPI-BOOT #1> /dev/null 2>&1
sudo mkfs.ext4 -O ^metadata_csum,^64bit "${LDEV}p5" -L BPI-ROOT #1> /dev/null 2>&1
;;
"bpi-r3")
bootstart=17408
bootend=$(( ${bootstart}+(${bootsize}*1024*2)-1 ))
rootstart=$(( ${bootend}+1 ))
rootend=$(( ${rootstart} + (${rootsize}*1024*2) ))
sudo sgdisk -o ${LDEV}
sudo sgdisk -a 1 -n 1:34:8191 -A 1:set:2 -t 1:8300 -c 1:"bl2" ${LDEV}
#sudo sgdisk --attributes=1:set:2 ${LDEV}
sudo sgdisk -a 1 -n 2:8192:9215 -t 2:8300 -c 2:"u-boot-env" ${LDEV}
sudo sgdisk -a 1 -n 3:9216:13311 -t 3:8300 -c 3:"factory" ${LDEV}
sudo sgdisk -a 1 -n 4:13312:17407 -t 4:8300 -c 4:"fip" ${LDEV}
Called here:
Maybe you miss losetup (should be always installed as it is part of package mount)? Or partprobe above fails or is missing (package parted)…
Can you try calling the script with
LANG=C ./buildimg.sh ...
And put log in file and upload/put link here to be better readable
The dev/pts error is not critical…rootfs seems to be created completely
i updated the script a bit and add basic package-check and some more checks for returncode
zeusleon
(zeus)
September 2, 2023, 6:20pm
16
I ask this because I suppose that after the process, I will have to save the .iso somewhere
I downloaded and cloned because I assume that the necessary files are on said site and this is needed to make the image.
If I run the command as user, it won’t let me, so I have to do it again with sudo -s
When I try to make a new image for my SD I have to admit that I don’t know how the structure is, and although I like challenges, this challenge I don’t know where to start since I only have one command, I don’t know if you have to start from the SD to make the image, or how to run the script*
frank-w
(Frank W.)
September 2, 2023, 6:23pm
17
it downloads some prebuilt files from github releases and uses them to build them together. so user needs e.g. no compile-tools and have not to wait till atf,u-boot and kernel is comiled
my u-boot-repo already creates the basic image without rootfs and kernel (including gpt layout, atf binaries and uboot)
kernel is built in my kernel-repo and here the script takes the last LTS kernel (except r2 where 5.15 is taken)…see beginning of script
the script does sudo where needed (for mounting and for copy rootfs)
the resulting file is a img.gz file…similar to packed iso-file…script shows the filename after it completes successfully. in your case the rootfs is already installed, so this step is skipped next time so it goes faster
zeusleon
(zeus)
September 2, 2023, 6:29pm
18
It seems that I am new to this but I have been more than 20 years and still, I have to ask
Where do you have to execute this so that it ends up making an image or it can be saved in the sd.?
my SD is big, that’s how I wanted it, therefore the partitions can be even bigger.
frank-w
(Frank W.)
September 2, 2023, 8:07pm
19
you can increase partitions after flashing to sdcard (and reinsert) with gparted. else you need to do all manual what my pipelines and the script do
zeusleon
(zeus)
September 3, 2023, 4:42pm
20
But…
How many partitions are created?
Does the SD have to be mounted with this script?
Does this script calculate the sd?
Where do you have or are you given the mounting address?
I am sorry to tell you that the explanations that it stops using are very small and with this it is very difficult to use it