From owner-freebsd-fs@FreeBSD.ORG Mon Nov 8 16:32:27 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F377106566C for ; Mon, 8 Nov 2010 16:32:27 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0734E8FC0C for ; Mon, 8 Nov 2010 16:32:26 +0000 (UTC) Received: by pzk12 with SMTP id 12so497681pzk.13 for ; Mon, 08 Nov 2010 08:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=kWS+q2CIU2lyQgKhVEyK9bL1WqM66n/QNaVYFYvGShs=; b=ZhrAMS7FF/4WSvs3lV3a6GJi3pXRH3x/RlLCOR/A6w6HlBmEAMywYMbwBPiwsyZbhB E4ZFDW8IGmV1FTS2Bz/ZnuijwFhfLNl9OHLFdyfj3NVYW+QFesWr2ze/IY4uwdCGL1zi EwlR5Cgfta+UjPcEe6iFLmDsCi2oGMvbnvj0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=B5OiWTEV6gjYW//duRaGd8zt2BUmZ7afSAkpqp1UcyIYKo8Q9KnKihmjvxRbKOYEQ3 OT8+EuttQb6jmLZ1+MHeGgHZt7JmgXfPPwDrcrjJKy0RRXw0DTW9IuEfwVDB5jCTsPun HxixWKYDCSs7SXXvuR+JD/U/CUCgRl6nHtEbQ= MIME-Version: 1.0 Received: by 10.229.225.199 with SMTP id it7mr5377936qcb.33.1289232617849; Mon, 08 Nov 2010 08:10:17 -0800 (PST) Received: by 10.229.182.77 with HTTP; Mon, 8 Nov 2010 08:10:17 -0800 (PST) Date: Mon, 8 Nov 2010 17:10:17 +0100 Message-ID: From: Monthadar Al Jaberi To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: problem mounting from flash [Invalid sectorsize] [g_vfs_done() error=22] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2010 16:32:27 -0000 Hi, I dont know if I am asking on the wrong place. But it has todo with filesystem and onboard flash (16MB) on a RouterStation Pro board. I am running a FreeBSD Current 201010, with the kernel configuration file specified in /usr/src/sys/mips/conf/AR71XX with device geom_redboot. but I get this error when I try to mount from flash: mount /dev/redboot/fs /var/fs mount: /dev/redboot/fs Invalid sectorsize 65536 for superblock size 8192: Invalid argument So I guessed it has todo with the flash configured in 64k sectors according to the boot output. ... mx25l0: at cs 0 on spibus0 mx25l0: mx25ll128, sector 65536 bytes, 256 sectors ... So I just tried to change SBLOCKSIZE from 8129 to 65536 in /usr/src/sys/ufs/ffs/fs.h, but then I got this error: mount /dev/redboot/fs /mnt/fs g_vfs_done():redboot/fs[READ(offset=8192, length=65536)]error = 22 mount: /dev/redboot/fs : Invalid argument The filesystem is generated from an empty skeleton using: makefs -t ffs -B big -s 128k image-name directory-path Then I transfer the image to the flash using Redboot bootloader. Am I generating an incorrect filesystem image? I dont understand offset and length in the last error message. I couldnt use cat to dump the content in /dev/redboot/fs gives an invalid argument error. But I can use read(fd, buf, 65536) to read data. Has to be 64k (hint from http://wiki.freebsd.org/AdrianChadd/UbiquityRouterstationPro). Any help is much appreciated. -- //Monthadar Al Jaberi