info-mtools
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mtools] Reading label from a large capacity memory card


From: Simon Large
Subject: Re: [Mtools] Reading label from a large capacity memory card
Date: Tue, 17 Feb 2009 11:45:41 -0000

Alain Knaff wrote:
> Simon Large wrote:
>> Alain Knaff wrote:
>>> Simon Large wrote:
>>>>> dd if=/dev/sda1 bs=512 count=1 of=bootsector.bin
>>>>> 
>>>>> Replace /dev/sda1 as appropriate. (/dev/sdb3 for third partition
>>>>> on second SCSI-like device, etc.)
>>>> Here are the boot sectors for 2 cards that I tried.
>>>> The 2GB card works OK and reports "Volume label is SIMON TEST".
>>>> The 8GB card reports "Big disks not supported on this
>>>> architecture". 
>>>> 
>>>> Using 3.9.11
>>>> 
>>>> Simon
>>> I tried it here (mtools-3.9.11-5.fc10.i386), and got no maxsize
>>> problem (I did get a different error about the FAT, but that's
>>> because I've only the boot sector).
>>> 
>>> Just to make sure, if you don't mind, could you send me the 15000
>>> first sectors (count=15000) of that disk, that should be enough for
>>> a successful mlabel on my side.
>> 
>> Attached.
> 
> Indeed. I can mdir and mlabel that just fine (shows "no label").
> 
>> Sounds like it maybe a config problem on my side. I'm compiling for
>> arm-linux here to run on an embedded Atmel ARM9 device.
>> 
>> Simon
> 
> I suspect it might indeed have something to do with certain datatypes
> (such as long long) being absent on that kind of device. Trying a
> more recent compiler might help.  

Thanks for taking the time to look anyway.

The compiler supports long long, but maybe not in the way mtools
expects. I seem to remember trying to figure this out before and giving
up. The output from configure looks like this:

address@hidden:~/target/mtools> ac_cv_func_setpgrp_void=yes
./configure --host arm-linux
configure: WARNING: If you wanted to set the --build type, don't use
--host.
    If a cross compiler is detected then cross compile mode will be
used.
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... arm-linux-gcc -E
checking for egrep... grep -E
checking whether arm-linux-gcc needs -traditional... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for install-info... /usr/local/bin/install-info
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for getpwnam in -lsun... no
checking for cam_open_device in -lcam... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking linux/unistd.h usability... yes
checking linux/unistd.h presence... yes
checking for linux/unistd.h... yes
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for memory.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/floppy.h usability... no
checking sys/floppy.h presence... no
checking for sys/floppy.h... no
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking whether llseek declared in unistd.h... no
checking whether lseek64 declared in unistd.h... yes
checking for htons... yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for strerror... yes
checking for random... yes
checking for srandom... yes
checking for strchr... yes
checking for strrchr... yes
checking for lockf... yes
checking for flock... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for atexit... yes
checking for on_exit... yes
checking for getpass... yes
checking for memmove... yes
checking for strdup... yes
checking for strcspn... yes
checking for strspn... yes
checking for strtoul... yes
checking for strtol... yes
checking for memcpy... yes
checking for strpbrk... yes
checking for memset... yes
checking for setenv... yes
checking for seteuid... yes
checking for setresuid... yes
checking for tcsetattr... yes
checking for tcflush... yes
checking for basename... yes
checking for fchdir... yes
checking for media_oldaliases... no
checking for llseek... no
checking for lseek64... yes
checking for snprintf... yes
checking for stat64... yes
checking whether setpgrp takes no argument... (cached) yes
checking for 64-bit off_t... no
checking whether arm-linux-gcc supports loff_t type... yes
checking whether arm-linux-gcc supports offset_t type... no
checking whether arm-linux-gcc supports long long type... yes
checking for utimes... yes
checking for tzset... yes
checking for gettimeofday... yes
checking declaration of sys_errlist... no
checking for X... no
checking for main in -lsocket... no
checking for main in -lnsl... yes
checking for main in -lbsd... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h

address@hidden:~/target/mtools> make -s
llong.c:12:2: warning: #warning "The following warnings about integer
overflow in expression can be safely ignored"
mformat.c: In function 'mformat':
mformat.c:1021: warning: pointer targets in passing argument 8 of
'SimpleFileOpen' differ in signedness

address@hidden:~/target/mtools>

I already modified llong.h to replace
#ifdef HAVE_LLSEEK
With
#if defined(HAVE_LLSEEK) || defined(HAVE_SEEK64)

But I think there was something else that failed to pick up 64-bit-ness.

Simon


reply via email to

[Prev in Thread] Current Thread [Next in Thread]