[ipxe-devel] Could not stat bin/ipxe.dsk.bin: Value too large for defined data type?
Bernhard Übelacker
bernhardu at vr-web.de
Mon Sep 8 22:36:48 UTC 2014
Hello Steven,
(I am just a iPXE user and subscriber to this list
who just got curious about your mail.)
Do you still have this exact build tree?
I think you would need to supply some more information on the
input file, probably something like this:
ls -lisah bin/ipxe.dsk.bin
Also could you reproduce the issue in a clean directory?
And if yes you probably want to do something like this to let the people
have a little more insight what happens when you call ./util/zbin :
strace -f -o trace.txt ./util/zbin bin/ipxe.dsk.bin bin/ipxe.dsk.zinfo > bin/ipxe.dsk.zbin
grep -C2 stat trace.txt
See below what I have tried and how the build part looks at my test VM.
Kind regards,
Bernhard
Am 05.09.2014 10:46, schrieb Steven Shiau:
> Dear all,
> I compiled ipxe on Debian Wheezy 32-bit system with Linux kernel
> 3.13-0.bpo.1-amd64, but got the error:
> "Could not stat bin/ipxe.dsk.bin: Value too large for defined data type"
>
> The steps I have done:
> 1. git clone git://git.ipxe.org/ipxe.git
> 2. cd ipxe/src
> 3. make
> and after a lot of "[BUILD]", I got:
> ar: creating bin/blib.a
> [HOSTCC] util/zbin
> [VERSION] bin/version.ipxe.dsk.o
> [LD] bin/ipxe.dsk.tmp
> [BIN] bin/ipxe.dsk.bin
> [ZINFO] bin/ipxe.dsk.zinfo
> [ZBIN] bin/ipxe.dsk.zbin
> Could not stat bin/ipxe.dsk.bin: Value too large for defined data type
> make: *** [bin/ipxe.dsk.zbin] Error 1
> make: *** Deleting file `bin/ipxe.dsk.zbin'
> rm bin/version.ipxe.dsk.o bin/ipxe.dsk.bin bin/ipxe.dsk.zinfo
>
> Any idea?
> Thanks.
>
> Steven.
- installed VM with minimal Wheezy from CD
- added backports to sources
- apt-get install linux-image-3.13-0.bpo.1-amd64 initramfs-tools=0.115~bpo70+1 linux-headers-3.13-0.bpo.1-amd64 build-essential git genisoimage strace
- dpkg --purge linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common linux-image-3.2.0-4-686-pae linux-headers-686-pae linux-image-686-pae
- reboot
$ ssh benutzer at 192.168.178.81
benutzer at 192.168.178.81's password:
benutzer at debian:~/ipxe/ipxe/src$ cat /etc/debian_version
7.6
benutzer at debian:~/ipxe/ipxe/src$ uname -a
Linux debian 3.13-0.bpo.1-amd64 #1 SMP Debian 3.13.10-1~bpo70+1 (2014-04-23) x86_64 GNU/Linux
benutzer at debian:~/ipxe/ipxe/src$ dpkg --print-architecture
i386
benutzer at debian:~$ mkdir ipxe
benutzer at debian:~$ cd ipxe
benutzer at debian:~/ipxe$ git clone git://git.ipxe.org/ipxe.git
Cloning into 'ipxe'...
remote: Counting objects: 42757, done.
remote: Compressing objects: 100% (13941/13941), done.
remote: Total 42757 (delta 31990), reused 36718 (delta 27223)
Receiving objects: 100% (42757/42757), 10.25 MiB | 148 KiB/s, done.
Resolving deltas: 100% (31990/31990), done.
benutzer at debian:~/ipxe$ cd ipxe/src
benutzer at debian:~/ipxe/ipxe/src$ git describe --always --tag
v1.0.0-1686-g895d73f
benutzer at debian:~/ipxe/ipxe/src$ make
...
[BUILD] bin/undiisr.o
[AR] bin/blib.a
ar: creating bin/blib.a
[HOSTCC] util/zbin
[VERSION] bin/version.ipxe.dsk.o
[LD] bin/ipxe.dsk.tmp
[BIN] bin/ipxe.dsk.bin
[ZINFO] bin/ipxe.dsk.zinfo
[ZBIN] bin/ipxe.dsk.zbin
[FINISH] bin/ipxe.dsk
[VERSION] bin/version.ipxe.lkrn.o
[LD] bin/ipxe.lkrn.tmp
[BIN] bin/ipxe.lkrn.bin
[ZINFO] bin/ipxe.lkrn.zinfo
[ZBIN] bin/ipxe.lkrn.zbin
[FINISH] bin/ipxe.lkrn
[GENISO] bin/ipxe.iso
cp: Fehlender Zieldatei‐Operand hinter „bin/iso.dir.SYSboX“
„cp --help“ gibt weitere Informationen.
dirname: fehlender Operand
„dirname --help“ gibt weitere Informationen.
genisoimage: Uh oh, I cant find the boot image 'isolinux.bin' !
[OBJCOPY] bin/usbdisk.bin
[VERSION] bin/version.ipxe.hd.o
[LD] bin/ipxe.hd.tmp
[BIN] bin/ipxe.hd.bin
[ZINFO] bin/ipxe.hd.zinfo
[ZBIN] bin/ipxe.hd.zbin
[FINISH] bin/ipxe.hd
[FINISH] bin/ipxe.usb
[VERSION] bin/version.ipxe.pxe.o
[LD] bin/ipxe.pxe.tmp
[BIN] bin/ipxe.pxe.bin
[ZINFO] bin/ipxe.pxe.zinfo
[ZBIN] bin/ipxe.pxe.zbin
[FINISH] bin/ipxe.pxe
[VERSION] bin/version.undionly.kpxe.o
[LD] bin/undionly.kpxe.tmp
[BIN] bin/undionly.kpxe.bin
[ZINFO] bin/undionly.kpxe.zinfo
[ZBIN] bin/undionly.kpxe.zbin
[FINISH] bin/undionly.kpxe
[VERSION] bin/version.rtl8139.rom.o
[LD] bin/rtl8139.rom.tmp
[BIN] bin/rtl8139.rom.bin
[ZINFO] bin/rtl8139.rom.zinfo
[ZBIN] bin/rtl8139.rom.zbin
[FINISH] bin/rtl8139.rom
[VERSION] bin/version.8086100e.mrom.o
[LD] bin/8086100e.mrom.tmp
[BIN] bin/8086100e.mrom.bin
[ZINFO] bin/8086100e.mrom.zinfo
[ZBIN] bin/8086100e.mrom.zbin
[FINISH] bin/8086100e.mrom
[VERSION] bin/version.80861209.rom.o
[LD] bin/80861209.rom.tmp
[BIN] bin/80861209.rom.bin
[ZINFO] bin/80861209.rom.zinfo
[ZBIN] bin/80861209.rom.zbin
[FINISH] bin/80861209.rom
[VERSION] bin/version.10500940.rom.o
[LD] bin/10500940.rom.tmp
[BIN] bin/10500940.rom.bin
[ZINFO] bin/10500940.rom.zinfo
[ZBIN] bin/10500940.rom.zbin
[FINISH] bin/10500940.rom
[VERSION] bin/version.10222000.rom.o
[LD] bin/10222000.rom.tmp
[BIN] bin/10222000.rom.bin
[ZINFO] bin/10222000.rom.zinfo
[ZBIN] bin/10222000.rom.zbin
[FINISH] bin/10222000.rom
[VERSION] bin/version.10ec8139.rom.o
[LD] bin/10ec8139.rom.tmp
[BIN] bin/10ec8139.rom.bin
[ZINFO] bin/10ec8139.rom.zinfo
[ZBIN] bin/10ec8139.rom.zbin
[FINISH] bin/10ec8139.rom
[VERSION] bin/version.1af41000.rom.o
[LD] bin/1af41000.rom.tmp
[BIN] bin/1af41000.rom.bin
[ZINFO] bin/1af41000.rom.zinfo
[ZBIN] bin/1af41000.rom.zbin
[FINISH] bin/1af41000.rom
[VERSION] bin/version.8086100f.mrom.o
[LD] bin/8086100f.mrom.tmp
[BIN] bin/8086100f.mrom.bin
[ZINFO] bin/8086100f.mrom.zinfo
[ZBIN] bin/8086100f.mrom.zbin
[FINISH] bin/8086100f.mrom
[VERSION] bin/version.808610d3.mrom.o
[LD] bin/808610d3.mrom.tmp
[BIN] bin/808610d3.mrom.bin
[ZINFO] bin/808610d3.mrom.zinfo
[ZBIN] bin/808610d3.mrom.zbin
[FINISH] bin/808610d3.mrom
[VERSION] bin/version.15ad07b0.rom.o
[LD] bin/15ad07b0.rom.tmp
[BIN] bin/15ad07b0.rom.bin
[ZINFO] bin/15ad07b0.rom.zinfo
[ZBIN] bin/15ad07b0.rom.zbin
[FINISH] bin/15ad07b0.rom
===========================================================
To create a bootable floppy, type
cat bin/ipxe.dsk > /dev/fd0
where /dev/fd0 is your floppy drive. This will erase any
data already on the disk.
To create a bootable USB key, type
cat bin/ipxe.usb > /dev/sdX
where /dev/sdX is your USB key, and is *not* a real hard
disk on your system. This will erase any data already on
the USB key.
To create a bootable CD-ROM, burn the ISO image
bin/ipxe.iso to a blank CD-ROM.
These images contain drivers for all supported cards. You
can build more customised images, and ROM images, using
make bin/<rom-name>.<output-format>
===========================================================
rm bin/1af41000.rom.zbin bin/10ec8139.rom.zinfo bin/8086100f.mrom.zinfo bin/version.ipxe.dsk.o bin/ipxe.dsk.bin bin/version.10500940.rom.o bin/undionly.kpxe.bin bin/version.rtl8139.rom.o bin/ipxe.dsk.zinfo bin/version.undionly.kpxe.o bin/rtl8139.rom.zinfo bin/15ad07b0.rom.zbin bin/8086100f.mrom.zbin bin/1af41000.rom.bin bin/version.1af41000.rom.o bin/ipxe.hd.zbin bin/10500940.rom.zinfo bin/15ad07b0.rom.bin bin/undionly.kpxe.zinfo bin/ipxe.lkrn.zinfo bin/ipxe.hd.bin bin/ipxe.lkrn.zbin bin/10500940.rom.bin bin/80861209.rom.zbin bin/808610d3.mrom.zbin bin/8086100e.mrom.zbin bin/version.ipxe.hd.o bin/ipxe.hd bin/ipxe.hd.zinfo bin/808610d3.mrom.bin bin/ipxe.pxe.zbin bin/version.808610d3.mrom.o bin/8086100e.mrom.zinfo bin/version.ipxe.pxe.o bin/version.8086100f.mrom.o bin/8086100f.mrom.bin bin/rtl8139.rom.zbin bin/1af41000.rom.zinfo bin/8086100e.mrom.bin bin/15ad07b0.rom.zinfo bin/version.10ec8139.rom.o bin/ipxe.pxe.bin bin/version.ipxe.lkrn.o bin/version.15ad07b0.rom.o bin/ipxe.lkrn.bin bi
n/ipxe.pxe.zinfo bin/808610d3.mrom.zinfo bin/10ec8139.rom.bin bin/10222000.rom.zbin bin/version.8086100e.mrom.o bin/version.10222000.rom.o bin/10222000.rom.bin bin/version.80861209.rom.o bin/10222000.rom.zinfo bin/ipxe.dsk.zbin bin/rtl8139.rom.bin bin/10ec8139.rom.zbin bin/10500940.rom.zbin bin/80861209.rom.bin bin/80861209.rom.zinfo bin/undionly.kpxe.zbin
benutzer at debian:~/ipxe/ipxe/src$ ls -lisah bin/ipxe.dsk*
7219 364K -rw-r--r-- 1 benutzer benutzer 361K Sep 8 23:53 bin/ipxe.dsk
7215 6,9M -rwxr-xr-x 1 benutzer benutzer 6,9M Sep 8 23:53 bin/ipxe.dsk.tmp
7214 1,4M -rw-r--r-- 1 benutzer benutzer 1,4M Sep 8 23:53 bin/ipxe.dsk.tmp.map
benutzer at debian:~/ipxe/ipxe/src$ rm bin/ipxe.dsk*
benutzer at debian:~/ipxe/ipxe/src$ make -n
...
echo " [BIN] bin/ipxe.dsk.bin"
objcopy -O binary -R .zinfo bin/ipxe.dsk.tmp bin/ipxe.dsk.bin
echo " [ZINFO] bin/ipxe.dsk.zinfo"
objcopy -O binary -j .zinfo bin/ipxe.dsk.tmp bin/ipxe.dsk.zinfo
echo " [ZBIN] bin/ipxe.dsk.zbin"
./util/zbin bin/ipxe.dsk.bin bin/ipxe.dsk.zinfo > bin/ipxe.dsk.zbin
echo " [FINISH] bin/ipxe.dsk"
cp bin/ipxe.dsk.zbin bin/ipxe.dsk
...
benutzer at debian:~/ipxe/ipxe/src$ make
...
benutzer at debian:~/ipxe/ipxe/src$ objcopy -O binary -R .zinfo bin/ipxe.dsk.tmp bin/ipxe.dsk.bin
benutzer at debian:~/ipxe/ipxe/src$ objcopy -O binary -j .zinfo bin/ipxe.dsk.tmp bin/ipxe.dsk.zinfo
benutzer at debian:~/ipxe/ipxe/src$ ./util/zbin bin/ipxe.dsk.bin bin/ipxe.dsk.zinfo > bin/ipxe.dsk.zbin
benutzer at debian:~/ipxe/ipxe/src$ ls -lisah bin/ipxe.dsk.tmp bin/ipxe.dsk.bin bin/ipxe.dsk.zinfo bin/ipxe.dsk.zbin
7218 760K -rwxr-xr-x 1 benutzer benutzer 760K Sep 9 00:10 bin/ipxe.dsk.bin
7216 6,9M -rwxr-xr-x 1 benutzer benutzer 6,9M Sep 9 00:09 bin/ipxe.dsk.tmp
7217 364K -rw-r--r-- 1 benutzer benutzer 361K Sep 9 00:10 bin/ipxe.dsk.zbin
7214 4,0K -rwxr-xr-x 1 benutzer benutzer 128 Sep 9 00:10 bin/ipxe.dsk.zinfo
benutzer at debian:~/ipxe/ipxe/src$ strace -f -o trace.txt ./util/zbin bin/ipxe.dsk.bin bin/ipxe.dsk.zinfo > bin/ipxe.dsk.zbin
benutzer at debian:~/ipxe/ipxe/src$ grep -C2 stat trace.txt
23046 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
23046 open("/etc/ld.so.cache", O_RDONLY) = 3
23046 fstat64(3, {st_mode=S_IFREG|0644, st_size=19391, ...}) = 0
23046 mmap2(NULL, 19391, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7727000
23046 close(3) = 0
--
23046 open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY) = 3
23046 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300o\1\0004\0\0\0"..., 512) = 512
23046 fstat64(3, {st_mode=S_IFREG|0755, st_size=1441960, ...}) = 0
23046 mmap2(NULL, 1452408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf75c4000
23046 mmap2(0xf7721000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15d) = 0xf7721000
--
23046 brk(0x8416000) = 0x8416000
23046 open("bin/ipxe.dsk.bin", O_RDONLY) = 3
23046 fstat64(3, {st_mode=S_IFREG|0755, st_size=777556, ...}) = 0
23046 mmap2(NULL, 778240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7505000
23046 fstat64(3, {st_mode=S_IFREG|0755, st_size=777556, ...}) = 0
23046 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf772b000
23046 read(3, "\352\5\0\300\7\277\364\37\270\300\7\216\330\216\300\216\320\211\3741\311\216\301\273x\0\36&\3057\216\300"..., 774144) = 774144
--
23046 munmap(0xf772b000, 4096) = 0
23046 open("bin/ipxe.dsk.zinfo", O_RDONLY) = 3
23046 fstat64(3, {st_mode=S_IFREG|0755, st_size=128, ...}) = 0
23046 fstat64(3, {st_mode=S_IFREG|0755, st_size=128, ...}) = 0
23046 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf772b000
23046 read(3, "COPY\0\0\0\0\321\5\0\0\20\0\0\0PACK\340\5\0\0\356\0\0\0\20\0\0\0"..., 4096) = 128
--
23046 mmap2(NULL, 1007616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7117000
23046 munmap(0xf7117000, 1007616) = 0
23046 fstat64(1, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
23046 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf772b000
23046 write(1, "\352\5\0\300\7\277\364\37\270\300\7\216\330\216\300\216\320\211\3741\311\216\301\273x\0\36&\3057\216\300"..., 368640) = 368640
More information about the ipxe-devel
mailing list