Pages:
Author

Topic: bitmain s3 serial connect? - page 2. (Read 9707 times)

hero member
Activity: 518
Merit: 500
December 20, 2014, 07:50:15 PM
#62
From your output, you see this line:

mtdparts=ar7240-nor0:128k(u-boot),1024k(kernel),6912(rootfs),64k(config),64k(ART)

When you call erase, you want to provide one of these parts of the mtd, and that is supposed to be the root_fs, so I am thinking

erase rootfs

will do the trick, else we need to find the tags for the parts. NOTE that this method would be in lieu of the tftp flashing method, i.e that will erase the memory data that the system is booting THUS force the system to effectively do a reset and call on the NVRAM data to load.
hero member
Activity: 518
Merit: 500
December 20, 2014, 07:40:00 PM
#61
Thanks for the output, I'll browse through and see if I can spot a light at the end of the tunnell.

By the way, I meant the command altogether, i.e:

run mtd -r erase rootfs_data

newbie
Activity: 28
Merit: 0
December 20, 2014, 07:30:57 PM
#60
Yes, I did , won't except commands, run mtd, mtd, or erase rootfs_data
How do they fail? Is it verbose and if so, could you paste here?
Also, run a printenv command and report back.

Printenv:
Easy-Link> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),1024k(kernel),6912(rootfs),64k(config),64k(ART)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.1
serverip=192.168.1.100
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 345/65532 bytes

edit:
list of tried commands:

Easy-Link> run
Usage:
run     - run commands in an environment variable

Easy-Link> run mtd
## Error: "mtd" not defined
Easy-Link> erase rootfs_data
Usage:
erase   - erase FLASH memory

Easy-Link> mtd
Unknown command 'mtd' - try 'help'
Easy-Link> run erase rootfs_data
## Error: "erase" not defined
Easy-Link> help
fake   - fake
?       - alias for 'help'
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase FLASH memory
help    - print online help
httpboot- entering the backup mode.
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
progmac - Set ethernet MAC addresses
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
Easy-Link> httpboot
eth1 link down
eth1 link down
uip init...
http init...
eth1 link down
eth1 link down
eth1 link down


edit:
Any way to use "mw" command, memory write command, then "bootm" command to boot from memory, to flash through GUI?
hero member
Activity: 518
Merit: 500
December 20, 2014, 07:27:21 PM
#59
Yes, I did , won't except commands, run mtd, mtd, or erase rootfs_data
How do they fail? Is it verbose and if so, could you paste here?
Also, run a printenv command and report back.
newbie
Activity: 28
Merit: 0
December 20, 2014, 07:24:04 PM
#58
You are getting somewhere then ....
What IP did you set for your PC (tftp server) and the control board? These are supposed to be the same and as far as I can recall, you can NOT be connected to the wider network (at least from what I recall, but I could be wrong on that).

Them ALLLLLLL!

I get no response from 1.250 which the ping said was alive.

TFTP2.exe responds to 1.100 and 1.1, when I input to the S3 TFTPboot.

But it's looking for an img file

Know how to turn a .bin into a .img?

Edit: .1.100 was it's pre brick IP address
It is not a matter of turning a bin into an img file as the original upload takes the bin file. It may be a matter of simply changing the extension (or indeed telling the tftp server to look for a bin rather than img ... don't ask me how)

Din you try and type in the run mtd .... command?

Yes, I did , won't except commands, run mtd, mtd, or erase rootfs_data
hero member
Activity: 518
Merit: 500
December 20, 2014, 07:02:39 PM
#57
You are getting somewhere then ....
What IP did you set for your PC (tftp server) and the control board? These are supposed to be the same and as far as I can recall, you can NOT be connected to the wider network (at least from what I recall, but I could be wrong on that).

Them ALLLLLLL!

I get no response from 1.250 which the ping said was alive.

TFTP2.exe responds to 1.100 and 1.1, when I input to the S3 TFTPboot.

But it's looking for an img file

Know how to turn a .bin into a .img?

Edit: .1.100 was it's pre brick IP address
It is not a matter of turning a bin into an img file as the original upload takes the bin file. It may be a matter of simply changing the extension (or indeed telling the tftp server to look for a bin rather than img ... don't ask me how)

Din you try and type in the run mtd .... command?
newbie
Activity: 28
Merit: 0
December 20, 2014, 06:36:01 PM
#56
You are getting somewhere then ....
What IP did you set for your PC (tftp server) and the control board? These are supposed to be the same and as far as I can recall, you can NOT be connected to the wider network (at least from what I recall, but I could be wrong on that).

Them ALLLLLLL!

I get no response from 1.250 which the ping said was alive.

TFTP2.exe responds to 1.100 and 1.1, when I input to the S3 TFTPboot.

But it's looking for an img file

Know how to turn a .bin into a .img?

Edit: .1.100 was it's pre brick IP address
hero member
Activity: 518
Merit: 500
December 20, 2014, 06:28:25 PM
#55
You are getting somewhere then ....
What IP did you set for your PC (tftp server) and the control board? These are supposed to be the same and as far as I can recall, you can NOT be connected to the wider network (at least from what I recall, but I could be wrong on that).
newbie
Activity: 28
Merit: 0
December 20, 2014, 06:22:57 PM
#54
Quote
From your log, the ethernet seems to be up, so yes, you should be able to get a network connection. All you are left with is having the TFTP server up and flashing your image. It is a simple thing ..... here's a link: http://ftp://priede.bf.lu.lv/pub/OS/ruuteri/Lynksys/WRT54G/tftp.htm
But there are lots of articles on the web about this too, now what you are left with is setting up the TFTP server and flashing.

Edit: does this help:

Easy-Link> ping 192.168.1.250
eth1 link down
Using eth0 device
host 192.168.1.250 is alive

Number 5 is alive

edit: sorry link didn't work, but you wouldn't happen to be a polish biologist would you?

Now we know you have a network connection, what is left is setting up the TFTP server, placing your firmware file in its public directory and flashing it. Here's another link on how to flash using a TFTP server: http://wiki.openwrt.org/doc/howto/generic.flashing.tftp

EDIT: PS> Since you will not be flashing onto virgin hardware, you'll need to keep the serial onnected and interupting the boot process.

OK, I'm flying by the seat of my pats here, I've gotten TFTP2.exe for windows (still not great at linux)
It prepares files for flashing to IP addresses, as far as I can tell.
I used my open I address .250, nothing

then used command TFTPboot: to this output from putty:

Easy-Link> tftpboot
eth1 link down
dup 1 speed 100
*** Warning: no boot file name; using '0101A8C0.img'
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
eth1 link down
*** Warning: no boot file name; using '0101A8C0.img'
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x81000000
Loading: T T

Which continues to cycle the "T"'s searching for an input.

I tried IP 1.100 and IP 1.1
But it seems it's looking for a file called "0101A8C0.img"
I renamed the .bin fie to this with no success.

TFTP has a progress bar saying it has to erase first, but times out, on all files and IP addresses

Edit: you mentioned virgin hardware, would the "erase   - erase FLASH memory help?"
hero member
Activity: 518
Merit: 500
December 20, 2014, 05:42:42 PM
#53
Quote
From your log, the ethernet seems to be up, so yes, you should be able to get a network connection. All you are left with is having the TFTP server up and flashing your image. It is a simple thing ..... here's a link: http://ftp://priede.bf.lu.lv/pub/OS/ruuteri/Lynksys/WRT54G/tftp.htm
But there are lots of articles on the web about this too, now what you are left with is setting up the TFTP server and flashing.

Edit: does this help:

Easy-Link> ping 192.168.1.250
eth1 link down
Using eth0 device
host 192.168.1.250 is alive

Number 5 is alive

edit: sorry link didn't work, but you wouldn't happen to be a polish biologist would you?

Now we know you have a network connection, what is left is setting up the TFTP server, placing your firmware file in its public directory and flashing it. Here's another link on how to flash using a TFTP server: http://wiki.openwrt.org/doc/howto/generic.flashing.tftp

EDIT: PS> Since you will not be flashing onto virgin hardware, you'll need to keep the serial onnected and interupting the boot process.
newbie
Activity: 28
Merit: 0
December 20, 2014, 05:38:07 PM
#52
Quote
From your log, the ethernet seems to be up, so yes, you should be able to get a network connection. All you are left with is having the TFTP server up and flashing your image. It is a simple thing ..... here's a link: http://ftp://priede.bf.lu.lv/pub/OS/ruuteri/Lynksys/WRT54G/tftp.htm
But there are lots of articles on the web about this too, now what you are left with is setting up the TFTP server and flashing.

Edit: does this help:

Easy-Link> ping 192.168.1.250
eth1 link down
Using eth0 device
host 192.168.1.250 is alive

Number 5 is alive

edit: sorry link didn't work, but you wouldn't happen to be a polish biologist would you?
hero member
Activity: 518
Merit: 500
December 20, 2014, 05:36:05 PM
#51
Is there a way to go through the ethernet from the connection I can get? Is there a ping test I can do through the ethernet? it there a way to push through the serial connection I have going on? "reset" reset CPU will that help anything.

From your log, the ethernet seems to be up, so yes, you should be able to get a network connection. All you are left with is having the TFTP server up and flashing your image. It is a simple thing ..... here's a link: http://ftp://priede.bf.lu.lv/pub/OS/ruuteri/Lynksys/WRT54G/tftp.htm
But there are lots of articles on the web about this too, now what you are left with is setting up the TFTP server and flashing.
newbie
Activity: 28
Merit: 0
December 20, 2014, 05:31:39 PM
#50
Please please please, I have no idea what your talking about. I will use google.
But can I please have a noob version, I not only think it will help me, but a few others too.
Honestly, I am trying to help you here and neither am I an expert at this. I did, though, have an instance a long while ago where I wanted to hack the router that my ISP had locked and, via google, got acquainted with this openwrt hacking stuff. So you'll have to bear with me as much as I am trying to recall the process; it can be done though, no doubt! The only difference with the S3 board is it does not seem to have the otherwise "standard" commands that I encountered on my jaunt ....

Sorry for the pressure, just a big brick next to me.

Does this help:

Easy-Link> ping 192.168.1.250
eth1 link down
Using eth0 device
host 192.168.1.250 is alive
hero member
Activity: 518
Merit: 500
December 20, 2014, 05:30:08 PM
#49
Please please please, I have no idea what your talking about. I will use google.
But can I please have a noob version, I not only think it will help me, but a few others too.
Honestly, I am trying to help you here and neither am I an expert at this. I did, though, have an instance a long while ago where I wanted to hack the router that my ISP had locked and, via google, got acquainted with this openwrt hacking stuff. So you'll have to bear with me as much as I am trying to recall the process; it can be done though, no doubt! The only difference with the S3 board is it does not seem to have the otherwise "standard" commands that I encountered on my jaunt ....
newbie
Activity: 28
Merit: 0
December 20, 2014, 05:24:18 PM
#48
You do realise that the route you have taken will involve putting your bin file into a TFTP server and upload that to the control board? As you may have realised from your pastebin log, the OS / filesystem on your board is completely messed and can not start so the ONLY option is to upload / overwrite the bin file from a TFTP server - but we need to know whether you can connect to a network from that prompt.

Please please please, I have no idea what your talking about. I will use google.
But can I please have a noob version, I not only think it will help me, but a few others too.

Is there a way to go through the ethernet from the connection I can get? Is there a ping test I can do through the ethernet? it there a way to push through the serial connection I have going on? "reset" reset CPU will that help anything.

Please, and thank you in advance.

Edit : yes tried run mtd nada
hero member
Activity: 518
Merit: 500
December 20, 2014, 05:02:41 PM
#47
You do realise that the route you have taken will involve putting your bin file into a TFTP server and upload that to the control board? As you may have realised from your pastebin log, the OS / filesystem on your board is completely messed and can not start so the ONLY option is to upload / overwrite the bin file from a TFTP server - but we need to know whether you can connect to a network from that prompt.

EDIT: Seeing run is a command, did you try: run mtd -r erase rootfs_data
newbie
Activity: 28
Merit: 0
December 20, 2014, 04:35:03 PM
#46
Did you press enter as soon as you saw text scrolling to get to the prompt? You probably missed a step ..... try over again and copy & paste here all the text that is sent to the putty screen.

Here is a second pastebin this is complete output:

http://pastebin.com/hMDKtHih

I hit p in boot to get to:

U-Boot 1.1.4 (Apr 11 2013 - 01:45:00)

U-boot for ELink, build by huangfc(QQ:343669866)

Taobao:http://huangfc.taobao.com

model:ELink M150
DRAM:  64 MB
led turning on for 1s...
id read 0x100000ff
flash size 8388608, sector count = 128
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:ff:ff:ff
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:ff:ff:fe
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Autobooting in 1 seconds,Press p to stop autoboot!!
Easy-Link>

Just need to get a non corrupt firmware on it.
hero member
Activity: 518
Merit: 500
December 20, 2014, 04:02:15 PM
#45
Did you press enter as soon as you saw text scrolling to get to the prompt? You probably missed a step ..... try over again and copy & paste here all the text that is sent to the putty screen.
newbie
Activity: 28
Merit: 0
December 20, 2014, 03:34:14 PM
#44
type help or -help or ? or anything!

help worked
Now you know all the secrets .....

type help or -help or ? or anything!

help worked
Now you know all the secrets .....
Yeah

fake   - fake
?       - alias for 'help'
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase FLASH memory
help    - print online help
httpboot- entering the backup mode.
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
progmac - Set ethernet MAC addresses
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version


 still can't quite see where to get in:

mtd -r erase rootfs_data

I read that as mount a drive, erase drive, but then how do I get on a none corrupt firmware?

MTD isn't even a recognised command!!!!?Huh!!!??!?!?!?!?!?
hero member
Activity: 518
Merit: 500
December 20, 2014, 03:27:13 PM
#43
type help or -help or ? or anything!

help worked
Now you know all the secrets .....
Pages:
Jump to: