2009-05-27 15:10:16     unknown partition table

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-05-27 15:10:16     unknown partition table

Jasper Horsting (BELGIUM)

Message: 74664   

 

When the kernel is started i plugd in my usb and i got this.

 

I don't get any partition.

 

 

 

 

 

 

 

root:/> usb 1-1: new full speed USB device using sl811-hcd and address 2

usb 1-1: device descriptor read/64, error -62

usb 1-1: configuration #1 chosen from 1 choice

scsi0 : SCSI emulation for USB Mass Storage devices

scsi 0:0:0:0: Direct-Access     Generic  USB Disk         1.10 PQ: 0 ANSI: 2

sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors (2022 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda:<7>usb-storage: queuecommand called

unknown partition table

sd 0:0:0:0: [sda] Attached SCSI removable disk

 

 

 

 

whats my fault?

 

thanks

TranslateQuoteReplyEditDelete

 

 

2009-05-27 15:13:29     Re: unknown partition table

Mike Frysinger (UNITED STATES)

Message: 74665   

 

has the device actually been partitioned ?  or does it use the whole disk for a single filesystem ?

QuoteReplyEditDelete

 

 

2009-05-27 15:22:05     Re: unknown partition table

Jasper Horsting (BELGIUM)

Message: 74667   

 

Id on't know mike. I followed this totorial.

 

 

 

http://docs.blackfin.uclinux.org/doku.php?id=hw:cards:usb_ez-extender

 

i did this and i have connected 1 pin for SL811 and for the BF537 stamp

Linux Kernel Configuration ISP1362 / SL811

 

and this

Test USB Mass Stroage

TranslateQuoteReplyEditDelete

 

 

2009-05-27 15:28:19     Re: unknown partition table

Mike Frysinger (UNITED STATES)

Message: 74668   

 

none of those things matter to the device you actually plugged in.  investigate whether the device you plugged in is actually partitioned.

QuoteReplyEditDelete

 

 

2009-05-27 17:06:48     Re: unknown partition table

Robin Getz (UNITED STATES)

Message: 74674   

 

Jasper:

 

What happens when you plug it into a Linux host?

 

-Robin

QuoteReplyEditDelete

 

 

2009-05-28 04:24:43     Re: unknown partition table

Jasper Horsting (BELGIUM)

Message: 74703   

 

Mike, Robin

 

 

 

I have taken an other stick and the problem is solved.

 

 

 

but i have to make a final work for school and 1 of the specifications was. that i have to boot automaitcly a program from USB

 

Boot all the way automaticly

 

uclinux boots automaticly

 

and in the rc file i have put the mount command.

 

cd /mnt

 

and then ./main

 

 

 

But he first try to mount. but it fails and after that you see the logging of a new usb

 

the usb is connected at start up

 

 

 

So he has to fully startup and than execute the program.

 

 

 

I find something about /proc/sys/kernel/hotplug when uclinux is start up but is not in the dir on my pc /uClinux-dist/romfs/proc

 

proc is the last directory

 

 

 

did you now where i have to change something that after the usb is mounted i connectid it to a map whit mount -t ...

 

 

 

thanks

TranslateQuoteReplyEditDelete

 

 

2009-05-28 12:28:54     Re: unknown partition table

Mike Frysinger (UNITED STATES)

Message: 74719   

 

please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:hotplug

QuoteReplyEditDelete

 

 

2009-05-28 16:39:28     Re: unknown partition table

Jasper Horsting (BELGIUM)

Message: 74724   

 

Hey

 

 

 

So like i sad above i can't find hotplug but i now compild with firmware

 

but  i can find /lib/firnmware

 

and also

 

BusyBox  --->

  Linux System Utilities  --->

    [*] mdev

    [*]   Support loading of firmwares

 

support of loading firmware wasn't available.

 

 

 

So do i have to need the hotplug or the firmware?

TranslateQuoteReplyEditDelete

 

 

2009-05-28 16:43:46     Re: unknown partition table

Mike Frysinger (UNITED STATES)

Message: 74726   

 

/proc is a dynamic filesystem, there is nothing in the romfs/proc/ tree.  you have to configure it dynamically on the board (usually via /etc/rc).

 

there also wont be anything in /lib/firmware because you didnt install anything there.

QuoteReplyEditDelete

 

 

2009-05-28 17:01:56     Re: unknown partition table

Jasper Horsting (BELGIUM)

Message: 74727   

 

so i have to made a script and check with a while funtion if the usb is detected. and call it from rc.

 

Becouse i cant use hotplug and firmware

TranslateQuoteReplyEditDelete

 

 

2009-05-28 17:38:20     Re: unknown partition table

Mike Frysinger (UNITED STATES)

Message: 74735   

 

why cant you use hotplug ?  firmware makes no sense at all here -- that is for loading executable code into a device.

 

QuoteReplyEditDelete

 

 

2009-05-29 04:57:13     Re: unknown partition table

Jasper Horsting (BELGIUM)

Message: 74747   

 

Mike

 

 

 

i have tryed this.

 

 

 

ib the bottem of my rc file i placed this

 

echo /etc/hotplug > /proc/sys/kernel/hotplug

 

 

 

and this is my /etc/hotplug file:

 

#!/bin/sh

/bin/mdev

# Define where to put the output message

output=/dev/ttyBF0

echo "Hotplug Script begin" > $output

/bin/mdev

# We only manage sda1 events

echo $DEVPATH | grep sda1

if [ $? -ne 0 ]

then

exit 0

fi

echo "Hotplug Script begin" > $output

# If key inserted, mount it and play one mp3 file

if [ $ACTION = "add" ]

then

mount -t vfat /dev/sda1 /mnt

echo "Key mounted" > $output

cd /mnt

./main

fi

 

 

 

and when i plug in my usb he doenst do anything

TranslateQuoteReplyEditDelete

 

 

2009-05-29 09:47:04     Re: unknown partition table

Mike Frysinger (UNITED STATES)

Message: 74772   

 

why do you execute mdev twice ?

 

did you mark the script executable ?

 

does it work if you run it manually by setting the appropriate env vars ?  did you verify the hotplug path was updated correctly ?

Attachments

    Outcomes