Displaying 3 results from an estimated 3 matches for "sectbuf".
2002 Jun 23
1
Using MTOOLS in place of loopback mounting
...e
$MCOPY ldlinux.sys $LETTER:
# values from syslinux.c (calculated and converted to base 10);
# these are the offset and length of the portion of the boot sector
# which stays the same and is not to be altered by copying in the
# SYSLINUX boot sector.
BSCOPYSTART=11
BSCOPYLEN=51
# xpread(dev_fd, sectbuf, 512, offset);
# memcpy(bootsect+bsCopyStart, sectbuf+bsCopyStart, bsCopyLen);
# xpwrite(dev_fd, bootsect, 512, offset);
$DD if=$IMAGE of=$TEMP bs=512 count=1
$DD conv=notrunc if=ldlinux.bss of=$IMAGE bs=512 count=1
$DD conv=notrunc if=$TEMP of=$IMAGE bs=1 seek=$BSCOPYSTART skip=$BSCOPYSTART count=...
2009 Mar 30
0
[PATCH]some changes in linux/syslinux.c
...m not
wrong since it's my first patch).
diff --git a/linux/syslinux.c b/linux/syslinux.c
index 37a54fd..5d38e6f 100644
--- a/linux/syslinux.c
+++ b/linux/syslinux.c
@@ -316,7 +316,6 @@ void do_umount(const char *mntpath, int cookie)
int main(int argc, char *argv[])
{
static unsigned char sectbuf[SECTOR_SIZE];
- unsigned char *dp;
const unsigned char *cdp;
int dev_fd, fd;
struct stat st;
@@ -498,7 +497,7 @@ int main(int argc, char *argv[])
goto umount;
}
- dp += nb;
+ cdp += nb;
left -= nb;
}
--
regards
liu Aleaxander
2015 Jan 02
13
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
Hello,
Happy New Year!
These patches make syslinux/linux support ext2/3/4, and it doesn't
require the root privilege, I'd like to add a separate e2fs/syslinux, if
that is more appropriate, it should be easy to do that.
I put these patches on github so that you can easily get them in case
you'd like to test them. (The repo's name is sys_tmp, which avoids
confusing others, I will