Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2012 17:14:40 +0200
From:      Reinhard Haller <reinhard.haller@interactive-net.de>
To:        freebsd-questions@freebsd.org
Subject:   nanobsd: UsbDevice broken?
Message-ID:  <4FF9A3E0.6000303@interactive-net.de>

next in thread | raw e-mail | index | archive | help
Hi,

I'm trying to get nanobsd working on an USB-stick.

Encountered the following problem in _.di (tail):

Filesystem  1K-blocks   Used  Avail Capacity iused  ifree %iused  Mounted on
/dev/md0s1a    947643 236357 635475    27%    4712 117686    4%  
/usr/obj/nanobsd.NANOBSD/_.mnt
Generating mtree...
Creating /dev/md0s3 with /usr/obj/nanobsd.NANOBSD//_.w/var/empty
(mounting on /usr/obj/nanobsd.NANOBSD//_.mnt)
newfs -b 4096 -f 512 -i 8192 -O1 -U -LNANOs3 /dev/md0s3
/dev/md0s3: 7.8MB (16065 sectors) block size 4096, fragment size 512
    using 4 cylinder groups of 1.96MB, 503 blks, 256 inodes.
    with soft updates
super-block backups (for fsck -b #) at:
 32, 4056, 8080, 12104
/usr/obj/nanobsd.NANOBSD//_.mnt/.
0 blocks
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused  Mounted on
/dev/md0s3      7840    1  7212     0%       2  1020    0%  
/usr/obj/nanobsd.NANOBSD/_.mnt
Writing out _.disk.image...
dd: /dev/md0s1: Input/output error
12559+0 records in
12559+0 records out
823066624 bytes transferred in 58.897047 secs (13974667 bytes/sec)
Running exit trap code
Filesystem  1K-blocks    Used     Avail Capacity iused    ifree %iused 
Mounted on
/dev/ada0p2 379804760 7180384 342239996     2%  470776 23682822    2%   /
umount: /usr/obj/nanobsd.NANOBSD//_.mnt: not a file system root directory

Replacing the line

UsbDevice Generic 1000

with

FlashDevice SanDisk 1G

gives

Filesystem  1K-blocks   Used  Avail Capacity iused  ifree %iused  Mounted on
/dev/md0s1a    982527 236354 667570    26%    4712 122582    4%  
/usr/obj/nanobsd.NANOBSD/_.mnt
Generating mtree...
Creating /dev/md0s3 with /usr/obj/nanobsd.NANOBSD//_.w/var/empty
(mounting on /usr/obj/nanobsd.NANOBSD//_.mnt)
newfs -b 4096 -f 512 -i 8192 -O1 -U -LNANOs3 /dev/md0s3
/dev/md0s3: 1.5MB (3024 sectors) block size 4096, fragment size 512
    using 4 cylinder groups of 0.37MB, 95 blks, 64 inodes.
    with soft updates
super-block backups (for fsck -b #) at:
 32, 792, 1552, 2312
/usr/obj/nanobsd.NANOBSD//_.mnt/.
0 blocks
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused  Mounted on
/dev/md0s3      1415    1  1301     0%       2   252    1%  
/usr/obj/nanobsd.NANOBSD/_.mnt
Writing out _.disk.image...
15615+1 records in
15615+1 records out
1023386112 bytes transferred in 22.597459 secs (45287663 bytes/sec)

Any suggestions?

Thanks
Reinhard

nanobsd config:

NANO_NAME=NANOBSD
NANO_PMAKE="make -j 4"
NANO_KERNEL=GENERIC
NANO_ARCH="i386"
NANO_IMAGES=1
NANO_BOOTLOADER="boot/boot0"
NANO_LABEL="NANO"
    
CONF_BUILD='
NO_KLDLOAD=YES
NO_NETGRAPH=YES
NO_PAM=YES
'

CONF_INSTALL='
NO_BLUETOOTH=YES
NO_CVS=YES
NO_FORTRAN=YES
NO_HTML=YES
NO_LPR=YES
NO_MAN=YES
NO_SENDMAIL=YES
NO_SHAREDOCS=YES
NO_EXAMPLES=YES
NO_INSTALLLIB=YES
NO_CALENDAR=YES
NO_MISC=YES
NO_SHARE=YES
'

CONF_WORLD='
NO_MODULES=YES
NO_KERBEROS=YES
NO_GAMES=YES
NO_RESCUE=YES
NO_SYSCONS=YES
NO_INFO=YES
'
#USB Stick
UsbDevice Generic 1000

#FlashDevice SanDisk 1G
    
# allow root to login via SSH
customize_cmd cust_allow_ssh_root





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF9A3E0.6000303>