Running Supervivi on Linux

Samyukta Ramnath
I am trying to use the Supervivi Transfer Tool on Linux.

I downloaded Supervivi-USB-Transfer-Tool.zip (Linux Bianry) from this site:
http://code.google.com/p/supervivi-transfer-tool/downloads/list

While trying to run the .exe file, I also installed libusb.wine and
libmono-winforms (using sudo apt-get install)

However, when I run the Supervivi (.exe file), The Supervivi window appears
cut-off from the side.The window size is unchangeable, some controls are
inaccessible.I have attached a screenshot of the same.

(I have tried changing the resolution,resizing,moving the window etc)

Has anyone encountered the same problem, or any other source to use
Supervivi Transfer Tool on Linux?

sundeep
Hi Samyukta

U have to USBPUSH to transfer the file onto board on linux...not an exe
files

davef
Check molyfab's website/forum, I don't know if it still exists.

I run it on my Linux host and it displays correctly.  Are you 64bit?

I haven't used it, but the title suggests that the USBPUSH functionality is
incorporated in it.

Samyukta Ramnath
Hello
I installed minicom on my Ubuntu 12.04.04 system.I was trying to Section 5
of the Quickstart manual.

After pressing 'q' in the minicom and typing:
load ram 0x31000000 149492 u

I opened another terminal to do USBPUSH. I checked with the lsusb command
to get the required output as mentioned.

However after this command:
$sudo platform-mini2440/sysroot-host/bin/usbpush
platform-mini2440/images/barebox-image

I get this error:
Unable to claim USB interface;device or resource busy

What can go wrong in the procedure ?

Thanks and Regards

sundeep
Hi Samyukta,

what r u trying to do? Want to load vivi bootloader or configure the board
of Uboot. May i know what is ur end aim now?

davef
Copy/paste the output you got doing lsusb

Never had a problem here. Are you also searching the gmane website for 
PTXdist mini2440 as well for hints?

Samyukta Ramnath
Here's the output of my lsusb command:

Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 003 Device 002: ID 413c:2107 Dell Computer Corp. 
Bus 003 Device 003: ID 0461:4e22 Primax Electronics, Ltd 
Bus 003 Device 004: ID 0403:6001 Future Technology Devices International,
Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 006: ID 5345:1234 Owon PDS6062T Oscilloscope
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

And here's the output when I do USBPUSH:
Unable to claim usb interface 1 of device: Device or resource busy

Thanks Davef,I will look into the gmane website too.

Sundeep, I am trying to use the Pengutronix Board Support Package.(We could
access the ADC with your image and measure humidity) I have build the image
of barebox ,kernel,rootfs etc now. I want to load them on the board using
USBPUSH and minicom.

davef
I would be asking why it says interface 1.

Try swapping ports on your hub.  I had a problem where my keyboard had to
be in particular socket on a specific hub, the first one by memory.

davef
https://rowley.zendesk.com/forums/51134/entries/45561

Maybe, list the files that are in /etc/udev/rules.d

I am sure that there is not a file by that name on the Pengutronix distro
but maybe something else has gone wrong.

Have you done a dmesg?

davef
that would be /lib/udev/rules.d on the Pengutronix BSP

Samyukta Ramnath
I tried swapping ports on the hub. But it does not work.

I get the following output with the dmesg | grep tty command:
[    0.000000] console [tty0] enabled
[ 7765.795302] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now
connected from ttyUSB0
[ 7767.506641] usb 3-9: FTDI USB Serial Device converter now attached to
ttyUSB0

I followed instructions on the site:
https://rowley.zendesk.com/forums/51134/entries/45561
and created a file as they have mentioned in both the locations:
/etc/udev/rules.d and /lib/udev/rules.d
However the error persists.

I think the error is somewhere in the driver used by the port ttyUSB0.
With the command : usb-devices
I get the following info about my device:

T:  Bus=03 Lev=01 Prnt=01 Port=09 Cnt=01 Dev#= 17 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=5345 ProdID=1234 Rev=01.00
S:  Manufacturer=System MCU
S:  Product=SEC S3C2410X Test B/D
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=50mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=secbulk

Even though the driver secbulk is seen to be used here, I can see the
folder 3-9:1-0 created in /sys/bus/usb/drivers/ftdi_sio and not in secbulk
folder.

Also, many sites mentioned about enabling libusb and preventing usbhid from
claiming ttyUSB0.
The driver usbhid doesn't seem to create a problem here since it is not
opening the my device on bus 03 and port 09. I also tried installing libusb
with the command :
sudo apt-get install libusb-dev

However the functions like libusb_open etc are not recognized.

I understand this is a question related to very basics. However I am not
able to cope up with it.I was wondering if I can get help in resolving this
issue. What is the correct method to do USBPUSH?

Thanks a lot..

davef
What is your host machine?  32 or 64bit?

davef
and which Linux distro are you running on it?

Samyukta Ramnath
I am using a 64 bit machine with Ubuntu 12.04.04 installed on it

davef
If you drop <64 bit> in
http://blog.gmane.org/gmane.comp.embedded.ptxdist.oselas.community I see
some threads, but do not know if they have been sorted or not.  Or, if they
are applicable to your situation.

Juergen .... help!

sudhakar_G
Hi davef ,
       
        I installed minicom on my Ubuntu 14.04  system.I was trying to
Section 5 of the Quickstart manual.

After pressing 'q' in the minicom and typing:
load ram 0x31000000 149492 u

I opened another terminal to do USBPUSH. I checked with the lsusb command
to get the required output as mentioned.

However after this command:
$sudo platform-mini2440/sysroot-host/bin/usbpush
platform-mini2440/images/barebox-image


I get this error:
Unable to claim usb interface 1 of device: Device or resource busy

WHERE AM IS DOING WRONG ? Pls hele me..

Regards,
Sudhakar.G

davef
I dropped: 

Unable to claim usb interface 1 of device

into Google and as well as many other hits there is this one:

http://www.friendlyarm.net/forum/topic/609

Any of those help?

Abhi11
Hi sudhakar_G

Can you send me the quickstart manual which you are using.I have couple of
user manual which I have downloaded from internet but they are not seem to
be much useful.

My emal-id- abhitheextremeeng@gmail.com

Kindly send me the manual

Thanks
Abhi

sudhakar_G
Hi 
     Please find the link 
http://www.pengutronix.com/oselas/bsp/pengutronix/mini2440_bsp_en.html

look for this ...

Documentation
A quickstart how to build the BSP and deploy the Mini2440 can be found
here:
OSELAS.BSP-Pengutronix-Mini2440-Quickstart.pdf

komurelli
i am trying to find USBPUSH .the source code link  not found.is there any
other ways to push the files to the target board.