Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 46971

Re: Upgrading my Pogoplug

$
0
0
I'm starting to think that this isn't a problem with finding the rootfs, but more of an issue with talking to the disk from U-Boot. I created a new filesystem with the rootfs tarball, and I can't seem to boot of the disk. I keep getting timeout errors in my netconsole log.

USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
2461416 bytes read in 323 ms (7.3 MiB/s)
EHCI timed out on TD - token=0xd8d80
EHCI timed out on TD - token=0xd8d80
EHCI timed out on TD - token=0xd8d80
 ** ext4fs_devread read error - block

EDIT: After some more playing with U-Boot, I'm noticing there are times where it does not properly interrogate the USB disk. It is unable to read the partition info, and claims that it can't find the header signature.

PogoE02> usb part 1
 u s b   p a r t   1 

Partition Map for USB device 1  --   Partition Type: EFI

GUID Partition Table Header signature is wrong:0x0 != 0x5452415020494645
print_part_efi: *** ERROR: Invalid GPT ***

I rebooted back into my working Debian install, but this time I had both the USB stick and HDD plugged in. If I check the kernel dmesg, I see this interesting set of entries about my disks. I wonder why this drive is being detected as using 512-byte sectors?

[   15.280138] udevd[52]: starting version 175
[   15.299169] usb 1-1.4: Product: External USB 3.0
[   15.303812] usb 1-1.4: Manufacturer: TOSHIBA
[   15.315943] usb 1-1.4: SerialNumber: 20130717010509
[   15.394516] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   15.433344] SCSI subsystem initialized
[   15.469301] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   15.501491] libphy: orion_mdio_bus: probed
[   15.529225] scsi0 : usb-storage 1-1.2:1.0
[   15.560164] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[   15.604092] scsi1 : usb-storage 1-1.4:1.0
[   15.615623] usbcore: registered new interface driver usb-storage
[   16.527148] scsi 0:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  3.27 PQ: 0 ANSI: 2
[   16.596359] sd 0:0:0:0: [sda] 4013710 512-byte logical blocks: (2.05 GB/1.91 GiB)
[   16.607886] scsi 1:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 0201 PQ: 0 ANSI: 6
[   16.625945] sd 0:0:0:0: [sda] Write Protect is off
[   16.630782] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[   16.631335] sd 0:0:0:0: [sda] No Caching mode page found
[   16.639343] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[   16.646768] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   16.664488] sd 1:0:0:0: [sdb] 5860533160 512-byte logical blocks: (3.00 TB/2.72 TiB)
[   16.672963] sd 0:0:0:0: [sda] No Caching mode page found
[   16.685262] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   16.691984] sd 1:0:0:0: [sdb] Write Protect is off
[   16.706138] sd 1:0:0:0: [sdb] Mode Sense: 2b 00 00 00
[   16.707988] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   16.714458]  sda: sda1
[   16.719448] sd 0:0:0:0: [sda] No Caching mode page found
[   16.724809] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   16.736289] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   16.745908] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   16.847646] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:a4:5f
[   47.666186] usb 1-1.4: reset high-speed USB device number 4 using orion-ehci
[   47.786351] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   47.799078] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[   47.836848]  sdb: unknown partition table
[   47.851960] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[   47.866972] sd 1:0:0:0: [sdb] Attached SCSI disk
[   58.210365] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

If I unplug the drive and plug it back in again, I get this more sensible set of entries:

[  158.211931] usb 1-1.4: USB disconnect, device number 4
[  163.826309] usb 1-1.1: new high-speed USB device number 5 using orion-ehci
[  163.937931] usb 1-1.1: New USB device found, idVendor=0480, idProduct=d010
[  163.944860] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  163.952740] usb 1-1.1: Product: External USB 3.0
[  163.957761] usb 1-1.1: Manufacturer: TOSHIBA
[  163.962052] usb 1-1.1: SerialNumber: 20130717010509
[  163.972146] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[  163.987265] scsi2 : usb-storage 1-1.1:1.0
[  170.948423] scsi 2:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 0201 PQ: 0 ANSI: 6
[  170.966507] sd 2:0:0:0: Attached scsi generic sg1 type 0
[  170.972345] sd 2:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[  171.011270] sd 2:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[  171.033475] sd 2:0:0:0: [sdb] Write Protect is off
[  171.049547] sd 2:0:0:0: [sdb] Mode Sense: 2b 00 00 00
[  171.050159] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  171.084983] sd 2:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[  171.130093]  sdb: sdb1 sdb2 sdb3
[  171.147847] sd 2:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[  171.165987] sd 2:0:0:0: [sdb] Attached SCSI disk

Viewing all articles
Browse latest Browse all 46971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>