• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 2 [3] 4
Author Topic: end_request: I/O error, dev mtdblock0, sector 0  (Read 28393 times)
Raśl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #30 on: May 08, 2009, 08:21:43 AM »

Paste the config.log file, and please use [ code][ /code] without the spaces
Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #31 on: May 08, 2009, 08:54:30 AM »

it's too big to post it here.
The message exceeds the maximum allowed length (20000 characters).
You can get it here.
http://www.tickercom.com/archive/config.log
Logged

Raśl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #32 on: May 09, 2009, 08:18:06 AM »

Okay...let's start over.

Do this:
Code:
rm /usr/lib/libftd2* /usr/local/lib/libftd2*
mkdir ~/tmp && cd ~/tmp
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.16.tar.gz
tar zxvf libftd2xx0.4.16.tar.gz
cd libftd2xx0.4.16
cp libftd2xx.so.0.4.16 /usr/local/lib/
cp ftd2xx.h WinTypes.h /usr/include/
cd /usr/local/lib
ln -s libftd2xx.so.0.4.16 libftd2xx.so
cd /usr/lib
ln -s /usr/local/lib/libftd2xx.so.0.4.16 libftd2xx.so
ln -s /usr/local/lib/libftd2xx.so.0.4.16 libftd2xx.so.0

Now you should be able to run the configure:
./configure --enable-ft2232_ftd2xx
« Last Edit: May 09, 2009, 08:48:47 AM by Raśl Porcel » Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #33 on: May 11, 2009, 02:11:31 PM »

./configure --enable-ft2232_ftd2xx works now but ./configure --enable-ft2232_libftdi dives an error.

Code:
root@stockalerts:/trunk# ./bootstrap
Bootstrap complete; you can './configure --enable-maintainer-mode ....'
root@stockalerts:/trunk# ./configure --enable-ft2232_libftdi
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for library containing ioperm... none required
checking for library containing dlopen... -ldl
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking jtag_minidriver.h usability... no
checking jtag_minidriver.h presence... no
checking for jtag_minidriver.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking for strings.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for strndup... yes
checking for strnlen... yes
checking for gettimeofday... yes
checking for usleep... yes
checking for vasprintf... yes
checking for "./guess-rev.sh"... yes
checking whether to enable verbose JTAG I/O messages... no
checking whether to enable verbose USB I/O messages... no
checking whether to enable verbose USB communication messages... no
checking Build & Link with libftdi...... configure: error: Cannot build & run test program using libftdi
Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #34 on: May 11, 2009, 02:17:20 PM »

make gave me two errors but I didn't think they were critical.

make[1]: *** [openocd.info] Error 1
make[1]: Leaving directory `/trunk/doc'
make: *** [install-recursive] Error 1
Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #35 on: May 11, 2009, 02:53:37 PM »

Which uboot.bin I have to use.

I've got  flowing output.

Code:
root@stockalerts:/home/serge/sheeva# openocd -f /usr/local/lib/openocd/board/sheevaplug.cfg -c init -c sheevaplug_reflash_uboot
Open On-Chip Debugger 1.0 (2009-05-11-14:15) svn:1589


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
3000 kHz
dcc downloads are enabled
Info : JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (Manufacturer: 0x1e9, Part: 0x0a02, Version: 0x2)
Info : JTAG Tap/device matched
Error: unknown EmbeddedICE version (comms ctrl: 0x00000018)
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
0 0 1 0: 00052078
NAND flash device 'NAND 512MiB 3,3V 8-bit' found
Warn : invalid block: 2
Error: erase operation didn't pass, status: 0xe1
erase failed
Warn : target reentered debug state, but not at the desired exit point: 0x10000014
Error: error executing hosted NAND write
Error: timed out while waiting for target halted
Error: error executing hosted NAND write
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
Error: NAND flash access requires halted target
failed writing file uboot.bin to NAND flash 0 at offset 0x0000e000
Warn : target not halted
Runtime error, file "/usr/local/lib/openocd/board/sheevaplug.cfg", line 103:
Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #36 on: May 11, 2009, 03:06:04 PM »

a few things more. It looks like nc doesn't connect the pug.

root@stockalerts:/home/serge/sheeva# nc localhost 4444
root@stockalerts:/home/serge/sheeva#
Logged

Raśl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #37 on: May 13, 2009, 07:18:58 AM »

Well, openocd is giving you errors, thats why telnet doesn't work...

Remove the trunk directory, and do the svn checkout again, i just tested it and works fine. So...either you have a hardware problem...try it.

Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #38 on: May 13, 2009, 09:08:29 AM »

I don't think it a a hardware problem.
Maybe I did something wrong. Howe do I have to connect the plug to the computer?
1.
./configure --enable-ft2232_libftdi
gave me some errors. Could you check it. There is output above (Posted on: May 11, 2009, 02:11:31 PM).

2.
Is it correct? I have a command line after nc command.
root@stockalerts:/home/serge/sheeva# nc localhost 4444
root@stockalerts:/home/serge/sheeva#

3. Here is output for openocd but there was no anything after that. Do I have just do <CTR>+C?
Code:
root@stockalerts:/home/serge/sheeva# sudo openocd -f /usr/local/lib/openocd/board/sheevaplug.cfg
Open On-Chip Debugger 1.0 (2009-05-11-14:15) svn:1589


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
3000 kHz
dcc downloads are enabled
Info : JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (Manufacturer: 0x1e9, Part: 0x0a02, Version: 0x2)
Info : JTAG Tap/device matched
Error: unknown EmbeddedICE version (comms ctrl: 0x00000018)
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666
Warn : DBGACK set while target was in unknown state. Reset or initialize target.
target state: halted
target halted in ARM state due to debug-request, current mode: Undefined
cpsr: 0x200000db pc: 0xffff0130
MMU: disabled, D-Cache: disabled, I-Cache: disabled





Logged

Raśl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #39 on: May 13, 2009, 10:07:41 AM »

I don't think it a a hardware problem.
Maybe I did something wrong. Howe do I have to connect the plug to the computer?
With the usb cable

1.
./configure --enable-ft2232_libftdi
gave me some errors. Could you check it. There is output above (Posted on: May 11, 2009, 02:11:31 PM).
Its okay, since you're using the ftd2xx library.


2.
Is it correct? I have a command line after nc command.
root@stockalerts:/home/serge/sheeva# nc localhost 4444
root@stockalerts:/home/serge/sheeva#
Probably because its not working.
Haven't played with 'nc', try 'apt-get install telnet' and then 'telnet localhost 4444'


3. Here is output for openocd but there was no anything after that. Do I have just do <CTR>+C?
Code:
root@stockalerts:/home/serge/sheeva# sudo openocd -f /usr/local/lib/openocd/board/sheevaplug.cfg
Open On-Chip Debugger 1.0 (2009-05-11-14:15) svn:1589


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
3000 kHz
dcc downloads are enabled
Info : JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (Manufacturer: 0x1e9, Part: 0x0a02, Version: 0x2)
Info : JTAG Tap/device matched
Error: unknown EmbeddedICE version (comms ctrl: 0x00000018)
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666
Warn : DBGACK set while target was in unknown state. Reset or initialize target.
target state: halted
target halted in ARM state due to debug-request, current mode: Undefined
cpsr: 0x200000db pc: 0xffff0130
MMU: disabled, D-Cache: disabled, I-Cache: disabled

Tried doing the telnet thing after this? (on another console)
« Last Edit: May 13, 2009, 10:13:12 AM by Raśl Porcel » Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #40 on: May 13, 2009, 11:23:19 AM »

Both nc and telnet work now in a different window but
there is another problem:
Code:
root@stockalerts:~# telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> sheevaplug_init
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
0 0 1 0: 00052078

> load_image SheevaPlug_U-Boot/Compiled_Images/u-boot-rd88f6281Sheevaplug
couldn't open SheevaPlug_U-Boot/Compiled_Images/u-boot-rd88f6281Sheevaplug

>

Example 3 doesn't work ether.
Code:
root@stockalerts:~# telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> setenv ipaddr 192.168.1.235
invalid command name "setenv_ipaddr"
called at file "command.c", line 456
called at file "embedded:startup.tcl", line 89
called at file "embedded:startup.tcl", line 93
> setenv serverip 192.168.1.53
invalid command name "setenv_serverip"
called at file "command.c", line 456
called at file "embedded:startup.tcl", line 89
called at file "embedded:startup.tcl", line 93
> bubt uboot.bin
invalid command name "bubt_uboot.bin"
called at file "command.c", line 456
called at file "embedded:startup.tcl", line 89
called at file "embedded:startup.tcl", line 93
>
Logged

Raśl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #41 on: May 13, 2009, 10:32:16 PM »

Forget about example 3 for now.

For the first problem, you need to have the file:

wget 'http://www.plugcomputer.org/index.php/us/resources/downloads?func=download&id=24&chk=6b3354698bfb0eab49b2b8170b4fd50b&no_html=1
unzip SheevaPlug_U-Boot.zip
mv "SheevaPlug_U-Boot/Compiled\ Images/u-boot-rd88f6281Sheevaplug" uboot

After extracting that, run the openocd command, and after executing 'sheevaplug_init', do:
load_image uboot
and then the resume thing
Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #42 on: May 14, 2009, 09:14:37 AM »

Does everything alright with the link?
wget 'http://www.plugcomputer.org/index.php/us/resources/downloads?func=download&id=24&chk=6b3354698bfb0eab49b2b8170b4fd50b&no_html=1
I cant get the file.
Logged

Raśl Porcel
Global Moderator
Jr. Member
*****

Karma: 0
Posts: 68


View Profile
« Reply #43 on: May 14, 2009, 10:10:07 AM »

Stupid download systems...

Okay, download from here with your browser:
http://openplug.org/index.php/us/resources/downloads?func=startdown&id=24

And remember to extract it to /root, or wherever you're going to run openocd from.
Logged

sevi4310
Jr. Member
**

Karma: 0
Posts: 63


View Profile
« Reply #44 on: May 14, 2009, 03:42:52 PM »

It looks like it worked this time but I still cant get any info at my terminal window.

Here is a log:

Code:
root@stockalerts:~# telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> sheevaplug_init
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
0 0 1 0: 00052078

> load_image uboot
378216 byte written at address 0x00600000
11540 byte written at address 0x00670000
downloaded 389756 byte in 2.929965s

> resume 0x00600000

target state: halted
target halted in ARM state due to debug-request, current mode: Undefined
cpsr: 0x0000009b pc: 0xffff0004
MMU: disabled, D-Cache: disabled, I-Cache: disabled
> reset
JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (Manufacturer: 0x1e9, Part: 0x0a02, Version: 0x2)
JTAG Tap/device matched

> Connection closed by foreign host.
root@stockalerts:~#
Logged

Pages: 1 2 [3] 4
Print
Jump to: