
bojsza

Tagság: 2009-06-14 22:18:15 Tagszám: #75364 Hozzászólások: 5731
|
12753. Elküldve:
2015-05-28 11:18:55 |
[.] |
http://www.netboard.hu/viewref.php?post=13534155
How To Flash A Dbox2 Using Serial Cable Only.
This guide has been written for those who, like myself, found that
the only avenue left open to them was to flash their Dbox2 using a serial
modem lead, as the normal method of using Image Flashing Assistant
(IFA) had not been successful. Make sure before you start this procedure
that you print this info out to make it easier to follow and that you place
the attached file (u-boot.mot) in the root of C drive.
Ignore all quotes "" as they are simply there to simplify
matters. Please note that all the input text is "case sensitive" so keep it
in lower case only, no CAPITALS.
To start with switch off Dbox from the mains and connect it to
your PC using serial modem cable only, as this method does not require
the use of any network cables or ports. Start up your computer and then
start Hyper Terminal by selecting "Start", then "Run" and then type in
"hypertrm". This will start Hyper Terminal.
Hyper Terminal first asks you to give the new connection a name
and an icon, so call the session "dbox" but we can forget about the icon.
Click OK. Then when it says "Connect using" select your appropriate com
port, usually com1. DO NOT select TCP/IP (Winsock). Then you have
to configure the Com port properties, any errors here and the PC will not
communicate with the Dbox, so please double check they are as
follows:-
Bits per second - 9600
Data bits - 8
Parity - None
Stop bits - 1
Flow control - Xon/Xoff
Press OK to save settings once you have double checked they are as
above. Hyper Terminal should now say that it is "connected" in the
bottom left hand corner of its window. Now press and hold the "UP"
button on your Dbox (not the remote) and turn the power to it back on.
Once you see writing like the example given below displayed in the
Hyper Terminal window it is safe to release the UP button (normally
within seconds).
Êdebug: DDF: Calibrating delay loop... debug: DDF: 67.79 BogoMIPS
debug: BMon V1.0 mID 01
debug: feID 7a gtxID 0b
debug: fpID 5a dsID 01-29.b7.19.07.00.00-d2
debug: HWrev X5 SWrev 0.81
debug: B/Ex/Fl(MB) 32/00/08
WATCHDOG reset enabled
debug: &_text 0x10000, &_etext 0x26160, &_data 0x26160, &_edata
0x29c50
debug: &_end 0x347dc, &__stack 0x400000
debug: Memory tests (0x400000 -- 0x2000000)
debug: NumberTest: debug: passed
debug: MarchTest: debug: passed
debug: PermTest: debug: passed
dbox2:root>
At the prompt type "dl 800000" then press Enter. This message
should appear "S record load, offset: 800000"
OK, now click on the "Transfer" tab at the top of Hyper Terminal and
select "send text file", then when the pop up box appears select "All
Files" from the drop down menu at the bottom and then you can
negotiate to the location that you have stored the file named "u-
boot.mot", for this example we will use the root of C drive. Once you
have found it click on it and press "Open" to start the file transfer. At this
point you need to find something to do for 45 minutes or so smile. There is
also no on screen verification that it is actually doing anything, but have
faith.
After the file has been successfully transferred this message should
appear:-
"dl: start address 0x800000"
"dbox2:root >"
"dbox2:root >"
If so then type in the following:-
"chorus 800000" then press Enter. This process starts the file we have
just downloaded. We need to stop the attempted connection by pressing
the "ctrl" and "c" keys together (ctrl+c) on the keyboard. You need to do
this two or three times until the message "Abort" appears. Then type the
following:-
"loadb 120000 115200" then press Enter. U-boot announces "## Switch
Baud rate to 115200 bps and press ENTER...". In Hyper Terminal stop
the connection by selecting "Call" then "Disconnect". Click "File" then
"Properties" then "Configure" and change the "Bits per second" from
"9600" to "115200". Click on OK twice to leave the menus.
Select "Call" from Hyper Terminal then "Call" from its menu to
reconnect to Dbox. Press Enter on the keyboard to proceed to next step.
U-boot announces "## ready for binary (Kermit) download to
0x00120000 at 115200 bps". Click on "Transfer" again on the top of
Hyper Terminal and select "Send File". At this point you direct the
program to the image that you wish to download into your Dbox. Just
use any one of the images available from the download section as they
are all "Without Bootloader" already. Once image is selected choose
"Kermit" Protocol from the drop down menu at the bottom. Click on
"Send". At this point you need to find something to do for another 45
minutes or so smile. However, this time you can clearly see the progress of
the transmitted file within Hyper Terminal and the LCD on the Dbox will
show "loading kernel" during the process.
After transfer is complete u-boot announces:-
"## total size = 0x007E0000 = 8257536 bytes"
"## start ADDR = 0x00120000"
"## Switch baud rate to 9600 bps and press ESC"
In Hyper Terminal stop the connection by selecting "Call" then
"Disconnect". Click "File" then "Properties" then "Configure" and change
the "Bits per second" back from "115200" to "9600". Click on OK twice to
leave the menus. Select "Call" from Hyper Terminal then "Call" from its
menu to reconnect to Dbox. Press "Escape" key on the keyboard to
proceed to next step. U-boot prompt appears again " = > " so finally
type in these instructions:-
"protect off 10020000 107fffff" then press Enter.
"erase 10020000 107fffff" then press Enter and wait approx 1 minute till
it erases all sectors (70 in total).
"cp.l 120000 10020000 1f8000" then press Enter. This starts the internal
Image Flashing process. Wait approx 2 minutes and "Done" should
appear in Hyper Terminal window.
Shut down Hyper Terminal program
(you need not save anything) unplug Dbox2 from the mains and remove
serial lead too. Then apply power to your Dbox2 and hopefully you have
just done what you thought was impossible. Well done, you deserve a
cuppa.
Nincs egyszerűbb dolog a világon, mint egy megoldott probléma. / Blaise Pascal / |
|
|
[előzmény: (12751) skystar, 2015-05-28 09:15:13]
|
|