From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Problem with building linux-firmware Date: Sat, 17 Aug 2024 21:18:49 +0200 Message-ID: In-Reply-To: <945e8cd4-8aad-46b5-9e59-331f1763c103@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3622215626005460395==" List-Id: --===============3622215626005460395== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Here is the start of the Building flash-images section from _build.ipfire.log= up to the time when it starts having a problem with not enough space. Regards, Adolf. Aug 17 13:58:32: Building flash-images make: Entering directory '/home/ahb/sa= ndbox/ipfire-2.x/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/ahb/sandbox/ipfire-2.x/lfs' make: Entering directory '/usr/src/lfs' rm -rf /tmp/image.img /tmp/harddisk && mkdir -p /tmp/harddisk # Allocate image on disk dd if=3D/dev/zero of=3D/tmp/image.img bs=3D512 count=3D0 seek=3D$(( 8192 + 10= 40384 + 65536=C2=A0 + 3773292 )) 0+0 records in 0+0 records out 0 bytes copied, 1.534e-05 s, 0.0 kB/s losetup /dev/loop1 /tmp/image.img # Write Partition table echo -e "8192,1040384,L,*\n1048576,65536 ,U\n1114112,3773292,L\n" | sfdisk -u= S /dev/loop1 Checking that no-one is using this disk right now ... OK Disk /dev/loop1: 2.33 GiB, 2502350848 bytes, 4887404 sectors Units: sectors of 1 * 512 =3D 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes >>> Created a new DOS (MBR) disklabel with disk identifier 0x2ce22ad4. /dev/loop1p1: Created a new partition 1 of type 'Linux' and of size 508 MiB. /dev/loop1p2: Created a new partition 2 of type 'EFI (FAT-12/16/32)' and of s= ize 32 MiB. /dev/loop1p3: Created a new partition 3 of type 'Linux' and of size 1.8 GiB. /dev/loop1p4: Done. New situation: Disklabel type: dos Disk identifier: 0x2ce22ad4 Device=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Boot=C2=A0=C2=A0 Start=C2=A0=C2=A0= =C2=A0=C2=A0 End Sectors=C2=A0 Size Id Type /dev/loop1p1 *=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8192 1048575 1040384=C2=A0= 508M 83 Linux /dev/loop1p2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1048576 1114111=C2=A0=C2=A0 65536= =C2=A0=C2=A0 32M ef EFI (FAT-12/16/32) /dev/loop1p3=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1114112 4887403 3773292=C2=A0 1.8G= 83 Linux The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Invalid argument The kernel still uses the old table. The new table will be used at the next r= eboot or after you run partprobe(8) or partx(8). Syncing disks. kpartx -v -a /dev/loop1 add map loop1p1 (253:8): 0 1040384 linear 7:1 8192 add map loop1p2 (253:9): 0 65536 linear 7:1 1048576 add map loop1p3 (253:10): 0 3773292 linear 7:1 1114112 # Format them mkfs.ext2 -F /dev/mapper/loop1p1 mke2fs 1.47.1 (20-May-2024) Discarding device blocks:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0/520192=08=08=08=08= =08=08=08=08=08=08=08=08=08 =08=08=08=08=08=08=08=08=08=08=08=08=08done Creating filesystem with 520192 1k blocks and 130048 inodes Filesystem UUID: b14abac3-0899-4a1a-868a-8b9a42ecc4a0 Superblock backups stored on blocks: =C2=A0=C2=A0 =C2=A08193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 Allocating group tables:=C2=A0 0/64=08=08=08=08=08 =08=08=08=08=08done Writing inode tables:=C2=A0 0/64=08=08=08=08=08 =08=08=08=08=08done Writing superblocks and filesystem accounting information: 0/64=08=08=08=08= =08=C2=A0=C2=A0=C2=A0=C2=A0 =08=08=08=08=08done mkfs.vfat /dev/mapper/loop1p2 mkfs.fat 4.2 (2021-01-31) mkfs.ext4 -O ^has_journal,extent -F /dev/mapper/loop1p3 mke2fs 1.47.1 (20-May-2024) Discarding device blocks:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0/471661=08=08=08=08= =08=08=08=08=08=08=08=08=08 =08=08=08=08=08=08=08=08=08=08=08=08=08done Creating filesystem with 471661 4k blocks and 118080 inodes Filesystem UUID: 1ea6ca19-4421-4298-8356-da44fdeb6f49 Superblock backups stored on blocks: =C2=A0=C2=A0 =C2=A032768, 98304, 163840, 229376, 294912 Allocating group tables:=C2=A0 0/15=08=08=08=08=08 =08=08=08=08=08done Writing inode tables:=C2=A0 0/15=08=08=08=08=08 =08=08=08=08=08done Writing superblocks and filesystem accounting information: 0/15=08=08=08=08= =08=C2=A0=C2=A0=C2=A0=C2=A0 =08=08=08=08=08done # Most systems that use Flashimages has no RTC at boot # so the interval check should disables tune2fs -i0 /dev/mapper/loop1p3 tune2fs 1.47.1 (20-May-2024) Setting interval between checks to 0 seconds # Mount root partition mount /dev/mapper/loop1p3 /tmp/harddisk # Mount boot partition mkdir -pv /tmp/harddisk/boot mkdir: created directory '/tmp/harddisk/boot' mount /dev/mapper/loop1p1 /tmp/harddisk/boot mkdir -pv /tmp/harddisk/boot/efi mkdir: created directory '/tmp/harddisk/boot/efi' mount /dev/mapper/loop1p2 /tmp/harddisk/boot/efi # Copy all files # Copy all files from /usr/src/config/rootfiles/common to /tmp/harddisk () BUILD_ARCH=3D"x86_64" BUILDTARGET=3D"x86_64-pc-linux-gnu" KVER=3D"6.6.32" /us= r/src/src/scripts/archive.files x86_64 /usr/src/config/rootfiles/common=C2=A0= | tee=C2=A0 | tar --create --format=3Dpax --acls --xattrs --xattrs-include= =3D'*' --sparse --directory=3D/ --exclude=3D"dev/pts/*" --exclude=3D"proc/*" = --exclude=3D"tmp/*" --exclude=3D"__pycache__" --files-from=3D- | tar --extrac= t --format=3Dpax --acls --xattrs --xattrs-include=3D'*' --sparse --directory= =3D/tmp/harddisk tar: usr/share/misc/magic.mgc: Wrote only 5632 of 10240 bytes tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/asm.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/autoconf.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/awk.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/c.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/cmake.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/css.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/default.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/elisp.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/groff.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/guile.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/html.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/java.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/makefile.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/man.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/nanohelp.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/nanorc.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/nftables.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/objc.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/ocaml.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/patch.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/perl.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/php.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/po.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/python.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/ruby.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/rust.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/sh.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/tcl.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/tex.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/texinfo.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/xml.nanorc: Cannot open: No such file or directory tar: usr/share/nano: Cannot mkdir: No space left on device tar: usr/share/nano/yaml.nanorc: Cannot open: No such file or directory On 17/08/2024 21:01, Adolf Belka wrote: > I noticed that linux-firmware had not been updated since last October and w= ith the AMD SinkClose vulnerability I thought it would be good to do an updat= e. > > > However I am having problems. The build works fine with the previous linux-= firmware version but with the new one I get the following failures at the fla= sh-images stage. I have done the build from fresh with a clean before the bui= ld but it makes no difference. > > > The error message sequence is as follows:- > > flash-images [=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 6 ][ FAIL ] > > =C2=A0=C2=A0=C2=A0 tar: var/state/dhcp/dhcpd.leases: Cannot open: No such f= ile or directory > =C2=A0=C2=A0=C2=A0 tar: var: Cannot mkdir: No space left on device > =C2=A0=C2=A0=C2=A0 tar: var/tmp: Cannot mkdir: No such file or directory > =C2=A0=C2=A0=C2=A0 tar: var: Cannot mkdir: No space left on device > =C2=A0=C2=A0=C2=A0 tar: var/updatecache: Cannot mkdir: No such file or dire= ctory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache: Cannot mkdir: No such file or dire= ctory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache/download: Cannot mkdir: No such fil= e or directory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache: Cannot mkdir: No such file or dire= ctory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache/metadata: Cannot mkdir: No such fil= e or directory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache: Cannot mkdir: No such file or dire= ctory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache/download: Cannot mkdir: No such fil= e or directory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache: Cannot mkdir: No such file or dire= ctory > =C2=A0=C2=A0=C2=A0 tar: var/updatecache/metadata: Cannot mkdir: No such fil= e or directory > =C2=A0=C2=A0=C2=A0 tar: var: Cannot mkdir: No space left on device > =C2=A0=C2=A0=C2=A0 tar: var/urlrepo: Cannot mkdir: No such file or directory > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/10-hinting-slight.conf: Cannot cre= ate symlink to '../../../usr/share/fontconfig/conf.avail/10-hinting-slight.co= nf': No space left on device > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/10-scale-bitmap-fonts.conf: Cannot= create symlink to '../../../usr/share/fontconfig/conf.avail/10-scale-bitmap-= fonts.conf': No space left on device > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/10-sub-pixel-none.conf: Cannot cre= ate symlink to '../../../usr/share/fontconfig/conf.avail/10-sub-pixel-none.co= nf': No space left on device > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/10-yes-antialias.conf: Cannot crea= te symlink to '../../../usr/share/fontconfig/conf.avail/10-yes-antialias.conf= ': No space left on device > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/11-lcdfilter-default.conf: Cannot = create symlink to '../../../usr/share/fontconfig/conf.avail/11-lcdfilter-defa= ult.conf': No space left on device > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/20-unhint-small-vera.conf: Cannot = create symlink to '../../../usr/share/fontconfig/conf.avail/20-unhint-small-v= era.conf': No space left on device > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/30-metric-aliases.conf: Cannot cre= ate symlink to '../../../usr/share/fontconfig/conf.avail/30-metric-aliases.co= nf': No space left on device > =C2=A0=C2=A0=C2=A0 tar: etc/fonts/conf.d/65-fonts-persian.conf: Cannot crea= te symlink to '../../../usr/share/fontconfig/conf.avail/65-fonts-persian.conf= ': No space left on device > =C2=A0=C2=A0=C2=A0 tar: srv/web/ipfire/html/captive/assets/bootstrap-grid.m= in.css: Cannot create symlink to '../../../../../../usr/share/bootstrap/css/b= ootstrap-grid.min.css': No space left on device > =C2=A0=C2=A0=C2=A0 tar: srv/web/ipfire/html/captive/assets/bootstrap-grid.m= in.css.map: Cannot create symlink to '../../../../../../usr/share/bootstrap/c= ss/bootstrap-grid.min.css.map': No space left on device > =C2=A0=C2=A0=C2=A0 tar: srv/web/ipfire/html/captive/assets/bootstrap-reboot= .min.css.map: Cannot create symlink to '../../../../../../usr/share/bootstrap= /css/bootstrap-reboot.min.css.map': No space left on device > =C2=A0=C2=A0=C2=A0 tar: srv/web/ipfire/html/captive/assets/bootstrap-reboot= .min.css: Cannot create symlink to '../../../../../../usr/share/bootstrap/css= /bootstrap-reboot.min.css': No space left on device > =C2=A0=C2=A0=C2=A0 tar: Exiting with failure status due to previous errors > =C2=A0=C2=A0=C2=A0 make: *** [flash-images:126: /usr/src/log/flash-image] E= rror 2 > =C2=A0=C2=A0=C2=A0 make: Leaving directory '/usr/src/lfs' > > ERROR: Building flash-images [ FAIL ] > > > Regards, > > Adolf. > --===============3622215626005460395==--