WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2014-Oct-30 04:25:08

shixuan Zheng
Member
Registered: 2014-Oct-13
Posts: 25

how to Copy .bin Files to SD Cards

about the commend  " win-dd bs=512 seek=<base_block_addr> if=<config_file.bin> of=<sd_device_descriptor> --progress"

Q1.In the parameter" base_block_addr", how to certify the "slotNUM"?
Q2.Finally I get the correct answer.But dd report the following:
     0
     1+0 records in
     0+0 records out
is this true?

Thanks!!!

Last edited by shixuan Zheng (2014-Oct-30 06:02:16)

Offline

 

#2 2014-Oct-30 07:40:52

welsh
Administrator
From: Mango Communications
Registered: 2013-May-15
Posts: 612

Re: how to Copy .bin Files to SD Cards

Q1: There are dip switches on the WARPv3 Hardware that tell the FPGA which slot on the SD card to use to configure the FPGA.  You can find more information here.

Q2:  If you are getting 0 records in / out, then more than likely you did not program the SD card correctly.  You can always try the SD card but I doubt it will work.  Please make sure your input file (i.e. "if" parameter) and your output file (i.e. "of" parameter) are correct and that Win DD has sufficient privilege on the system to write the SD card (you may try running as administrator to see if that fixes the problem).

Offline

 

#3 2014-Oct-30 21:25:21

shixuan Zheng
Member
Registered: 2014-Oct-13
Posts: 25

Re: how to Copy .bin Files to SD Cards

Thank you for your reply.
About Q2 this is my program "win-dd bs=512 seek=131072 if=F:\WARPa\w3_ WARPLab_7.4.0.2RF.bin of=\\?\Device\Harddisk1\Partition1 --progress"But dd also report the following:
                                   0 
                                   1+0 records in
                                   0+0 records out
And I really running as administrator,so I don't know where I am wrong

Thank you sooooooo much!!!!

Offline

 

#4 2014-Oct-30 22:44:51

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: how to Copy .bin Files to SD Cards

I'm afraid there's not much we can do to help debug this. The "of" argument for dd is very system-specific. Double check that your if and of arguments are both correct. The next best option is to use dd on a Linux or OS X machine.

Offline

 

#5 2014-Oct-31 02:09:21

shixuan Zheng
Member
Registered: 2014-Oct-13
Posts: 25

Re: how to Copy .bin Files to SD Cards

Sir when I use the "w3_WARPLab_7.3.0_2RF.bin" to run the program
"win-dd bs=512 seek=131072 if=F:\WARPa\w3_ WARPLab_7.3.0_2RF.bin of=\\?\Device\Harddisk1\Partition1 --progress" dd report the following:
rawwrite dd for windows version 0.6beta3.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by terms of the GPL Version 2.

Error native opening file:0 Operating successful completion

Last edited by shixuan Zheng (2014-Oct-31 02:39:01)

Offline

 

#6 2014-Oct-31 08:23:04

welsh
Administrator
From: Mango Communications
Registered: 2013-May-15
Posts: 612

Re: how to Copy .bin Files to SD Cards

I have never seen "\\?\" as a valid drive on an OS. You should check the path to your SD card and make sure it is mounted correctly on your system.

Offline

 

#7 2014-Nov-02 18:38:54

shixuan Zheng
Member
Registered: 2014-Oct-13
Posts: 25

Re: how to Copy .bin Files to SD Cards

what do you mean by? Is that I am wrong with the"of=\\?\Device\Harddisk1\Partition1"
when I use "\\?\Device\Harddisk1\Partition0" dd report the following:
9,232,444 Error reading files:87 (Parameter Wrong)

18032+1 records in
18032+1 records out

Thank you sooooooo much!!!!!

Last edited by shixuan Zheng (2014-Nov-02 19:12:07)

Offline

 

#8 2014-Nov-02 18:48:07

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: how to Copy .bin Files to SD Cards

"\\?\Device\Harddisk1\Partition1" is a valid descriptor in Windows (as described in the SD card howto).

I do now know why your local win-dd is not working as expected. My best suggestions are to try a different SD card writer, or another PC altogether.

Offline

 

#9 2014-Nov-02 19:42:23

shixuan Zheng
Member
Registered: 2014-Oct-13
Posts: 25

Re: how to Copy .bin Files to SD Cards

When I use Matlab run the program I get the following.I am so hopeless Please help me!

Code:

>> clear all
>> wl_setup
Setting up WARPLab Paths...
   removing path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\classes'
   removing path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\util'
   removing path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\util\inifile'
   removing path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\config'
   removing path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\mex'
   adding path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\classes'
   adding path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\util'
   adding path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\util\inifile'
   adding path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\mex'
   adding path 'F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\config'
   saving path


A wl_config.ini file was found in your path. Values specified in this
configuration file will be used as defaults in the construction of the
new file.


------------------------------------------------------------
Please enter a WARPLab Ethernet interface address.

Pressing enter without typing an input will use a default
IP address of: 10.0.0.250

WARPNet Ethernet Interface Address: 
   defaulting to 10.0.0.250


------------------------------------------------------------
Please enter a WARPLab host ID.
Valid host IDs are integers in the range of [200,254]

Pressing enter without typing an input will use a default
host ID of: 250

WARPLab Host ID: 
   defaulting to 250


------------------------------------------------------------
Please enter a unicast starting port.

Pressing enter without typing an input will use a default
unicast starting port of: 9000

Unicast Starting Port: 
   defaulting to 9000


------------------------------------------------------------
Please enter a broadcast port.

Pressing enter without typing an input will use a default
broadcast port of: 10000

Broadcast Port: 
   defaulting to 10000


------------------------------------------------------------
Select from the following available transports:
   For better transport performance, please setup the WARPLab Mex UDP transport: 
      http://warpproject.org/trac/wiki/WARPLab/MEX 
[1] (default) Java UDP
Selection: 
   setting to java


------------------------------------------------------------
Enable jumbo frame support? (experimental)
[1] (default) false
[2]           true
Selection: 
   setting to false


------------------------------------------------------------


Setup Complete
wl_ver():
WARPLab v7.4.0 

Framework Location:
F:\WARP\WARPx\Demo\warplab\WARPLab_Reference_Design_7.4.0\M_Code_Reference\
>> clear
>> N=1;nodes=wl_initNodes(N);wl_nodeCmd(nodes,'identify');disp(nodes)

Error in node 1 with ID = 0: 
ME = 

  MException with properties:

    identifier: 'wl_transport_eth_java:send:noReply'
       message: 'maximum number of retransmissions met without reply from node'
         cause: {0x1 cell}
         stack: [6x1 struct]

Error message follows:
maximum number of retransmissions met without reply from node

Error using wl_initNodes (line 162)
The following nodes with IDs = [ 0 ] are not responding. Please ensure that the nodes have been
configured with the WARPLab bitstream.

Offline

 

#10 2014-Nov-02 19:57:57

shixuan Zheng
Member
Registered: 2014-Oct-13
Posts: 25

Re: how to Copy .bin Files to SD Cards

It's said that the SD card have 2GB but when I check this SD card it just have 30.4MB,is that wrong?

Offline

 

#11 2014-Nov-02 23:14:50

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: how to Copy .bin Files to SD Cards

It's said that the SD card have 2GB but when I check this SD card it just have 30.4MB,is that wrong?

We ship 2GB SD cards with WARP v3 kits. The cards are pre-formatted with a 32MB FAT partition with the rest unformatted. This allows the card to be mounted on a PC. The FPGA bitstreams are stored past the 32MB partition (hence the "seek=131072" argument).

Offline

 

#12 2014-Nov-02 23:16:28

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: how to Copy .bin Files to SD Cards

When I use Matlab run the program I get the following.

Did you follow the steps in the WARPLab quick start? Are your WARP nodes configured with the WARPLab reference design bistream? Are the node DIP switches set to unique values starting at 0? Is each node connected to a 1Gb Ethernet switch?

Offline

 

#13 2020-Aug-19 23:47:39

tengluo
Member
Registered: 2020-Aug-18
Posts: 2

Re: how to Copy .bin Files to SD Cards

shixuan Zheng wrote:

Sir when I use the "w3_WARPLab_7.3.0_2RF.bin" to run the program
"win-dd bs=512 seek=131072 if=F:\WARPa\w3_ WARPLab_7.3.0_2RF.bin of=\\?\Device\Harddisk1\Partition1 --progress" dd report the following:
rawwrite dd for windows version 0.6beta3.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by terms of the GPL Version 2.

Error native opening file:0 Operating successful completion

请问这个问题解决了?解决方法方便告诉一下吗?谢谢

Offline

 

Board footer