-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H8247H #3
Comments
I have not tested it on the 8247H. On the 8245H, there are some things to do to perform JTAG debugging. |
In the case of normal boot, uboot and kernel will disable JTAG. |
I had already followed the previous steps! openocd -f /usr/local/share/openocd/scripts/interface/ftdi/c232hm-edhsl-0.cfg -f hi_sd5115_openocd_config/hi_sd5115_jtag.cfg -c "adapter_khz 1000" Info : Listening on port 16666 for tcl connections |
The core of sd5115 is cortex-A, not cortex-M. |
|
OpenOCD supports FT232H based devices. |
Is there a pull-up DBGSEL pin? |
Yes, I connected it direct to vcc pin 3.3v. |
This is because uboot and kernel will disable JTAG! Need to write cracked uboot (will not be able to boot the system), or damage uboot. |
Or, when the device is powered on, pull up the CE pin of Nand Flash to 3.3V, so that the CPU cannot boot from Flash. There are two ways to short-circuit:
|
I searched for the R1542 and didn't see it, maybe I'm blind!:) |
The focus is not on R1542, it is the CE pin of Nand Flash. |
Cool, now is better!
|
HuaWei StartCode 2012.02 (R13C10 Apr 22 2014 - 18:06:02) NAND: Nand(Hardware): 128 MiB U-Boot 2010.03 (R16C10 Jul 14 2016 - 14:19:37) DRAM: 128 MB In: serial I maked stupid mistake, erased Nand, now kernel image gone! |
what you did to erase Nand? |
I typed cmd nand erase, the good is i dont need use again CE pin... MEM_MODE = MEM! |
There are ways to recover, and the process is more complicated. |
It is recommended to use the FT2232H module, because the FT2232H has a maximum JTAG clock speed of 30MHz. |
Hi csersoft, How you load the mtd dump inside? |
Bad news is I did not make any backup. |
Never managed to reach that point and already discarded my HW as I quit my development due lack of time, just asking due curiosity. But maybe you can load a backup from HG8245H or similar hw (same SOIC) the hardware is very similar, probably some functions could not work but probably you can boot. |
Only need nand dump, I think your have this. |
Ethernet seems to be unavailable on the UBoot console. I used the load_image command of OpenOCD to write the dump file into memory, and then in the UBoot console, I wrote it back to flash. |
Most mtd partitions can be extracted from the firmware, such as (ubootA, ubootB, kernelA, kernelB, rootfsA, rootfsB). Some partition firmware does not exist, you need to find the backup yourself, such as (slave_paramA, slave_paramB, jffs2). The mtd partition table of a conventional Huawei ONT is as follows:
|
device nand0 , # parts = 2 NAND erase: device 0 offset 0x100000, size 0x7f00000 I tried to dump nand, after some time (60MB) openocd returns an error. |
I caught startcode of sd5115t, and has some parts different of your! |
Hi, have some problems, I think is clock speed...
c232hm-edhsl-0.cfg
interface ftdi
ftdi_vid_pid 0x0403 0x6014
ftdi_device_desc "Single RS232-HS"
adapter_khz 2000
ftdi_layout_init 0x0008 0x400b
####################################
Open On-Chip Debugger 0.10.0+dev-00954-gded67990 (2019-10-27-00:52)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
sd5115_help
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 2000 kHz
Info : JTAG tap: sd5115.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : sd5115.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR
Polling target sd5115.cpu failed, trying to reexamine
Error: Invalid ACK (7) in DAP response
The text was updated successfully, but these errors were encountered: