[syslinux] SYSLINUX 3.40-pre15 -- more library work, Linux-loading demo module
Ferenc Wagner
wferi at niif.hu
Tue Apr 3 09:41:46 PDT 2007
Ferenc Wagner <wferi at niif.hu> writes:
> Even with this, my dhcpinfo.dat file is nothing but 12 zero bytes.
> I'm trying to investigate this further, but could use some guidance.
Sprinkling some printf-s into the code results the following output:
1260 bytes: 2 1 6 0 62 9c 3c dd 0 8 80 0 0 ...
initramfs_add_file: data_len=1260, len=1260, filename=/dhcpinfo.dat, do_mkdir=0, mode=1ed
initramfs_mknod: filename=/dhcpinfo.dat, do_mkdir=0, mode=81ed, len=1260, major=0, minor=1
initramfs_mknod: bytes=124
initramfs_mknod: buffer length=123, pad=2 (2)
initramfs_mknod: buffer=07070100000001000081ed00000000000000000000000100000000000004ec00000000000000010000000000000001000004ed00000000/dhcpinfo.dat
The data is there, and the buffer seems mostly sensible, although I'm
not familiar with the cpio format. namesize (the butlast field) is
the only serious outlier, I'm fixing that and will report back.
--
Feri.
More information about the Syslinux
mailing list