OpenWrt Forum Archive

Topic: Huawei B5328 (GCT GDM7243) u-boot help

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello

i am trying to communicate via serial port using usb ttl adapter  with rx tx and gnd cable
i am able to see system messages , uboot version etc , but i am unable to interrupt the boot process it says delay = 0
i need some help on how to send commands or interrupt the boot process and interract with the device.
the serial baudrate is 921600 .
the device is based on GCT GDM7243q chipset.

thanks for help
here are the serial log output .

Build Info:

  date: 2016/09/06-10:08:44

  user: root@ubuntu-will

  svnr: 

  src: /home/will/DEVELOPMENT/LTE_Router/B5328_FDD/SDK/work/uboot

  ver: 0.46e



DRAM:  128 MiB (wbd-p2)

NAND:  Built-in ECC Nand
maf_id : 0x00000098, dev_id : 0x000000a1
Pagesize : 2Kbytes
Address cycle : 4
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: Bad block at 0x000006000000
In:    serial
Out:   serial
Err:   serial
Net:    001cc910 Realtek8211  PHYCR1: 00002118-0000211c  Rx delay: 0x00802300 
    PHYCR2:0x0863->0x0842  mii0
Hit ENTER key to stop autoboot:  0 
00420000
---------------------
hdr chksum  : 0xb6780813
magic       : 0xcafebabe
timstamp    : 0x0000430e
data chksum : 0xc7e4cc0b
data size   : 0x0001ffdc
---------------------
00440000
---------------------
hdr chksum  : 0xb6630812
magic       : 0xcafebabe
timstamp    : 0x0000430d
data chksum : 0xc7e4cc0b
data size   : 0x0001ffdc
---------------------
cmnnv current block is : 0
pesifwcheck=1

boot from part_idx: 2
do_check_partition() type:linux2, Data checksum is OK!!!(w:ccd92e5a/r:ccd92e5a)!!!
do_check_partition() type:rootfs2, Data checksum is OK!!!(w:d533b401/r:d533b401)!!!

---------------------
hdr chksum  : 0x00000000
magic       : 0x00000000
timstamp    : 0x00000000
data chksum : 0x00000000
data size   : 0x00000000
---------------------
---------------------
hdr chksum  : 0x9d7b0689
magic       : 0xcafebabe
timstamp    : 0x00000000
data chksum : 0xccd92e5a
data size   : 0x00228650
---------------------
select partition
part name : linux2
offset    : 0x00e00000
size      : 0x00400000
---------------------
hdr chksum  : 0x00000000
magic       : 0x00000000
timstamp    : 0x00000000
data chksum : 0x00000000
data size   : 0x00000000
---------------------
---------------------
hdr chksum  : 0x00000000
magic       : 0x00000000
timstamp    : 0x00000000
data chksum : 0x00000000
data size   : 0x00000000
---------------------
no valid header(2)
---------------------
hdr chksum  : 0x00000000
magic       : 0x00000000
timstamp    : 0x00000000
data chksum : 0x00000000
data size   : 0x00000000
---------------------
---------------------
hdr chksum  : 0x8c82056e
magic       : 0xcafebabe
timstamp    : 0x00000000
data chksum : 0xd533b401
data size   : 0x014c0000
---------------------
select partition
part name : rootfs2
offset    : 0x03000000
size      : 0x01e00000
---------------------
hdr chksum  : 0x00000000
magic       : 0x00000000
timstamp    : 0x00000000
data chksum : 0x00000000
data size   : 0x00000000
---------------------
---------------------
hdr chksum  : 0x00000000
magic       : 0x00000000
timstamp    : 0x00000000
data chksum : 0x00000000
data size   : 0x00000000
---------------------
no valid header(2)
bootdelay=0
bootargs (default)
## Booting kernel from Legacy Image at d05fffc0 ...
   Image Name:   Linux-3.10.0-uc0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2262544 Bytes = 2.2 MiB
   Load Address: d0600000
   Entry Point:  d0600000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

(Last edited by coolirc on 25 Feb 2018, 21:15)

anyhelp would be appreciated . thanks

I seem to remember that on some routers RX is not connected - you may have to install a jumper or a few components.

tunk wrote:

I seem to remember that on some routers RX is not connected - you may have to install a jumper or a few components.

thanks for your reply so to be clear the soldered rx is not in reality an rx or can you clarify more so i can communicate with the router .
here's a picture of the motherboard

i67 .tinypic.com /2dsntli.jpg      ( remove spaces )

the first pin from the left is connected RX and the fourth is TX  , the second from the left is the GND .

Hello i need some help
i managed to get shell from telnet on bash but i don't have knowledge to backup files from telnet bash shell how can i enable ssh or ftp ?
here's output

# uname -a
Linux B5328 3.10.0-uc0 #1 Wed Aug 24 09:38:10 CST 2016 armv7b GNU/Linux
# atc ati
sh: atc: command not found
# at
sh: at: command not found
# ls
bin      dev      etc      home     lib      linuxrc  mnt      proc     root     sbin     sys      tmp      usr      var
# mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (ro,relatime)
proc on /proc type proc (rw,relatime)
ram on /var type ramfs (rw,relatime)
sys on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=666)
/dev/mtdblock15 on /var/log type jffs2 (rw,relatime)
#

bash shell help output

# help
GNU bash, version 4.3.30(1)-release (arm-unknown-linux-gnu)
These shell commands are defined internally. Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.

A star (*) next to a name means that the command is disabled.

job_spec [&] history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [ar>
(( expression )) if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]... [ else COMMAND>
. filename [arguments] jobs [-lnprs] [jobspec ...] or jobs -x command [args]
: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]>
[ arg... ] let arg [arg ...]
[[ expression ]] local [option] name[=value] ...
alias [-p] [name[=value] ... ] logout [n]
bg [job_spec ...] mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantu>
bind [-lpsvPSVX] [-m keymap] [-f filename] [-q name] [-u name] [-r keyseq] [-x k> popd [-n] [+N | -N]
break [n] printf [-v var] format [arguments]
builtin [shell-builtin [arg ...]] pushd [-n] [+N | -N | dir]
caller [expr] pwd [-LP]
case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [-N nchars] [-p prompt]>
cd [-L|[-P [-e]] [-@]] [dir] readarray [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quan>
command [-pVv] command [arg ...] readonly [-aAf] [name[=value] ...] or readonly -p
compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F> return [n]
complete [-abcdefgjksuv] [-pr] [-DE] [-o option] [-A action] [-G globpat] [-W wo> select NAME [in WORDS ... ;] do COMMANDS; done
compopt [-o|+o option] [-DE] [name ...] set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
continue [n] shift [n]
coproc [NAME] command [redirections] shopt [-pqsu] [-o] [optname ...]
declare [-aAfFgilnrtux] [-p] [name[=value] ...] source filename [arguments]
dirs [-clpv] [+N] [-N] suspend [-f]
disown [-h] [-ar] [jobspec ...] test [expr]
echo [-neE] [arg ...] time [-p] pipeline
enable [-a] [-dnps] [-f filename] [name ...] times
eval [arg ...] trap [-lp] [[arg] signal_spec ...]
exec [-cl] [-a name] [command [arguments ...]] [redirection ...] true
exit [n] type [-afptP] name [name ...]
export [-fn] [name[=value] ...] or export -p typeset [-aAfFgilrtux] [-p] name[=value] ...
false ulimit [-SHabcdefilmnpqrstuvxT] [limit]
fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command] umask [-p] [-S] [mode]
fg [job_spec] unalias [-a] name [name ...]
for NAME [in WORDS ... ] ; do COMMANDS; done unset [-f] [-v] [-n] [name ...]
for (( exp1; exp2; exp3 )); do COMMANDS; done until COMMANDS; do COMMANDS; done
function name { COMMANDS ; } or name () { COMMANDS ; } variables - Names and meanings of some shell variables
getopts optstring name [arg] wait [-n] [id ...]
hash [-lr] [-p pathname] [-dt] [name ...] while COMMANDS; do COMMANDS; done
help [-dms] [pattern ...] { COMMANDS ; }
#

Hello i managed to interact with the serial interface , anyone can help me on how to take dump and flash the device through the serial interface ?

thanks
i dumped the partitions from telnet  mediafire link remove spaces and put .
  mediafire com/file/5jjxjof59i57192/nand_dumpB5328.zip

(Last edited by coolirc on 4 Apr 2018, 19:48)

The discussion might have continued from here.