[debian-non-standard] Problems installing debian on FSG-3 (boots from flash, but cannot see internal disk)

juan--nsd82 at lavera.dnsalias.net juan--nsd82 at lavera.dnsalias.net
Wed Jan 30 22:43:12 CET 2008


Tomasz Chmielewski wrote:
> But I think the disk was there - look what initramfs built in the kernel 
> 
> We compare all partitions that are available for kernel:
> 
> cat /proc/partitions
> 
> and if one of them is sdb:
> 
>...... 
> 
> This means, the kernel saw sda and sdb, so there were two devices 
> connected.
>
Maybe, but today I did the 2nd attempt. Right after booting from 
pendrive. I connected and executed the commands you'll see at the end of 
this message (with results).

proc/partitions has no trace of sdb

mount command shows sdb2. But /proc/mounts shows sda2

> You should have asked here first. ;)
Yeah! I should 8-)
> It should work out of the box. If not, there is something wrong, but 
> without a dmesg, it's hard to tell anything meaningful.
> 
A full dmesg is at the end. Do you see anything strange?

I miss something between
scsi2 : sata_via
				and
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $

My next step will be repeating everything with a different internal HD 
and share my results

Best regards and thanks for your help
   Juan
p.D: Just to be sure we are aligned. The kernel and config I flashed to 
mtd had following checksums:
sum vmlinuz-fsg3-2.6.20-arm
15712  1287
sum redboot-config
59639   128

******* Transcript follows:

Script started on Wed Jan 30 22:12:16 2008
sh-3.2$ ssh root at 192.168.111.188
The authenticity of host '192.168.111.188 (192.168.111.188)' can't be 
established.
RSA key fingerprint is 4b:15:68:60:45:80:f3:50:86:05:38:34:eb:92:8b:24.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.111.188' (RSA) to the list of known 
hosts.

root at 192.168.111.188's password:
Linux fsg-3-usb 2.6.20 #60 PREEMPT Wed Feb 21 12:18:31 CET 2007 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
fsg-3-usb:~# dmesg
Linux version 2.6.20 (build at syn4) (gcc version 4.1.1) #60 PREEMPT Wed 
Feb 21 12:18:31 CET 2007
CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=0000397f
Machine: Freecom FSG-3
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
   DMA zone: 128 pages used for memmap
   DMA zone: 0 pages reserved
   DMA zone: 16256 pages, LIFO batch:3
   Normal zone: 0 pages used for memmap
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 16256
Kernel command line:  console=ttyS0,115200 mem=64M panic=5
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62208KB available (2388K code, 146K data, 136K init)
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers disabled
dmabounce: registered device 0000:00:0c.0 on pci bus
dmabounce: registered device 0000:00:0d.0 on pci bus
dmabounce: registered device 0000:00:0e.0 on pci bus
dmabounce: registered device 0000:00:0e.1 on pci bus
dmabounce: registered device 0000:00:0e.2 on pci bus
SCSI subsystem initialized
libata version 2.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
sata_via 0000:00:0c.0: version 2.0
PCI: enabling device 0000:00:0c.0 (0000 -> 0001)
sata_via 0000:00:0c.0: routed to hard irq line 6
ata1: SATA max UDMA/133 cmd 0x1420 ctl 0x142A bmdma 0x1400 irq 22
ata2: SATA max UDMA/133 cmd 0x1430 ctl 0x143A bmdma 0x1408 irq 22
ata3: PATA max UDMA/133 cmd 0x1440 ctl 0x144A bmdma 0x1410 irq 22
scsi0 : sata_via
ata1: SATA link down (SStatus 0 SControl 310)
ATA: abnormal status 0x7F on port 0x1427
scsi1 : sata_via
ata2: SATA link down (SStatus 0 SControl 310)
ATA: abnormal status 0x7F on port 0x1437
scsi2 : sata_via
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
IXP4XX-Flash.0: Found an alias at 0x400000 for the chip at 0x0
IXP4XX-Flash.0: Found an alias at 0x800000 for the chip at 0x0
IXP4XX-Flash.0: Found an alias at 0xc00000 for the chip at 0x0
  Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=32
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x3e0000
7 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 7 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00040000 : "RedBoot"
0x00040000-0x00080000 : "unallocated"
0x00080000-0x00200000 : "kern1"
0x00200000-0x00380000 : "kern2"
0x00380000-0x003c0000 : "unallocated"
0x003c0000-0x003e0000 : "RedBoot config"
0x003e0000-0x00400000 : "FIS directory"
PCI: enabling device 0000:00:0e.2 (0140 -> 0142)
ehci_hcd 0000:00:0e.2: EHCI Host Controller
ehci_hcd 0000:00:0e.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0e.2: irq 23, io mem 0x48022000
ehci_hcd 0000:00:0e.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
PCI: enabling device 0000:00:0e.0 (0140 -> 0142)
ohci_hcd 0000:00:0e.0: OHCI Host Controller
ohci_hcd 0000:00:0e.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0e.0: irq 23, io mem 0x48020000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
PCI: enabling device 0000:00:0e.1 (0140 -> 0142)
ohci_hcd 0000:00:0e.1: OHCI Host Controller
ohci_hcd 0000:00:0e.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:0e.1: irq 23, io mem 0x48021000
usb 1-4: new high speed USB device using ehci_hcd and address 2
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
usb 1-4: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi3 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
XScale DSP coprocessor detected.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing init memory: 136K
Time: OSTS clocksource has been installed.
scsi 3:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 
ANSI: 0 CCS
SCSI device sda: 2031616 512-byte hdwr sectors (1040 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 2031616 512-byte hdwr sectors (1040 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
  sda: sda1 sda2
sd 3:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
IXP4XX Q Manager 0.2.1 initialized.
IXP4XX NPE driver Version 0.3.0 initialized
ixp4xx_mac driver 0.3.1: eth0 on NPE-B with PHY[5] initialized
ixp4xx_mac driver 0.3.1: eth1 on NPE-C with PHY[4] initialized
swapped image found
Image loaded to NPE-B Func:0, Rel: 2:1, Status: 82c00000
swapped image found
Image loaded to NPE-C Func:5, Rel: 2:1, Status: 82c00000
EXT3 FS on sda2, internal journal
loop: loaded (max 8 devices)
isl1208 0-006f: chip found, driver version 0.2
isl1208 0-006f: rtc core: registered isl1208 as rtc0
hwmon-vid: Unknown VRM version of your CPU
eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
Link of eth0 is full-duplex
eth1: link down
fsg-3-usb:~# fdisk -l

Disk /dev/sda: 1040 MB, 1040187392 bytes
32 heads, 62 sectors/track, 1024 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          80       79329   82  Linux swap / Solaris
/dev/sda2              81         573      489056   83  Linux
fsg-3-usb:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb2               473608    289184    159972  65% /
tmpfs                    31196         0     31196   0% /lib/init/rw
udev                     10240        20     10220   1% /dev
tmpfs                    31196         0     31196   0% /dev/shm
none                     31196         0     31196   0% /tmp
fsg-3-usb:~# mount
/dev/sdb2 on / type ext3 (rw,noatime,nodiratime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
none on /tmp type tmpfs (rw)
fsg-3-usb:~# cat /proc/mounts
rootfs / rootfs rw 0 0
proc /proc proc rw 0 0
/dev/sda2 / ext3 rw,noatime,nodiratime,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
/dev/sda2 /dev/.static/dev ext3 rw,data=ordered 0 0
tmpfs /dev tmpfs rw 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
none /tmp tmpfs rw 0 0
fsg-3-usb:~# cat /proc/partitions
major minor  #blocks  name

   31     0        256 mtdblock0
   31     1        256 mtdblock1
   31     2       1536 mtdblock2
   31     3       1536 mtdblock3
   31     4        256 mtdblock4
   31     5        128 mtdblock5
   31     6        128 mtdblock6
    8     0    1015808 sda
    8     1      79329 sda1
    8     2     489056 sda2
fsg-3-usb:~# cat /proc/scsi/scsi
Attached devices:
Host: scsi3 Channel: 00 Id: 00 Lun: 00
   Vendor:          Model: USB DISK 2.0     Rev: PMAP
   Type:   Direct-Access                    ANSI SCSI revision: 02
fsg-3-usb:~# lspci
00:0c.0 RAID bus controller: VIA Technologies, Inc. VT6421 IDE RAID 
Controller (rev 50)
00:0d.0 Ethernet controller: Marvell Technology Group Ltd. 88w8335 
[Libertas] 802.11b/g Wireless (rev 43)
00:0e.0 USB Controller: NEC Corporation USB (rev 43)
00:0e.1 USB Controller: NEC Corporation USB (rev 43)
00:0e.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
fsg-3-usb:~# fdisk /dev/sda

Command (m for help): q

fsg-3-usb:~# fdisk /dev/sdb

Unable to open /dev/sdb
fsg-3-usb:~# logout

Connection to 192.168.111.188 closed.

sh-3.2$ exit

Script done on Wed Jan 30 22:18:39 2008





More information about the debian-non-standard mailing list