Code Monkey home page Code Monkey logo

Comments (10)

coolirc avatar coolirc commented on June 9, 2024

i was able to make a connection using serial port with rx tx and gnd now i was able to printenv but i am unable to ping to pc using address 192.168.0.10 which i set manually .
is it because the current env variable ethact=mii0
gatewayip=192.168.0.1
netmask=255.255.255.0
ipaddr=192.168.0.1
serverip=192.168.0.10
ethact=mii0
pesifwcheck=1

here is the output of the command printenv :

`
GDM7243> printenv
baudrate=921600
fs_permission=ro
nand0=gdm7243
mtdparts=mtdparts=gdm7243:512k(u-boot),512k(env),1m(rev0),1m(ltenv),1m(wmnv),1m(cmnnv),1m(cmnnv2),4m(rev1),4m(linux),4m(linux2),30m(rootfs),30m(rootfs2),5m(tk),5m(tk2),512k(customize),2560k(log),32m(update)
kernel_exec_addr=0xd05fffc0
kernel_load_addr=0xd0600000
file_load_addr=0xd0008000
cleanenv=nand erase.part env
linuxdn=loady ${kernel_load_addr}
imagedn=loady ${file_load_addr}
linuxsave=image write ${kernel_load_addr} linux ${filesize}
linux0save=image write_part ${kernel_load_addr} linux ${filesize}
linux2save=image write_part ${kernel_load_addr} linux2 ${filesize}
rootfssave=image write ${file_load_addr} rootfs ${filesize}
rootfs0save=image write_part ${file_load_addr} rootfs ${filesize}
rootfs2save=image write_part ${file_load_addr} rootfs2 ${filesize}
tksave=image write ${file_load_addr} tk ${filesize}
tk0save=image write_part ${file_load_addr} tk ${filesize}
tk0save=image write_part ${file_load_addr} tk2 ${filesize}
linuxsave2=nand erase.part linux;nand write ${kernel_load_addr} linux ${filesize}
rootfssave2=nand erase.part rootfs;nand write.jffs2 ${file_load_addr} rootfs ${filesize}
paramsave=nand erase.part param;nand write ${file_load_addr} param ${filesize}
bootsave=nand erase.part u-boot;nand write ${file_load_addr} u-boot ${filesize}
bswoecc=nand erase.part u-boot;nand write.woecc ${file_load_addr} u-boot ${filesize}
setbootargs=set bootargs console=ttyS0,${baudrate} boot=nand mem=${mem} ubi.mtd=10,2048 root=ubi0:rootfs ${fs_permission} rootfstype=ubifs ${mtdparts}
bootcmd=image read ${kernel_exec_addr} linux;bootm ${kernel_exec_addr}
bootcmd2=run setbootargs;nand read ${kernel_exec_addr} linux;bootm ${kernel_exec_addr}
webupdatekernel=0
webupdaterootfs=0
setfactrst=0
webupdkernelcmd=nand erase.part linux;nand read ${kernel_load_addr} upuimg ${partsize};nand write ${kernel_load_addr} linux ${partsize}
webupdrootfscmd=nand erase.part rootfs;nand read ${file_load_addr} upram ${partsize};nand write ${file_load_addr} rootfs ${partsize}
webupdatecmd=run webupdkernelcmd;run webupdrootfscmd;run bootcmd
factrstcmd=nand erase.part linux;nand read ${kernel_load_addr} factrst0 ${partsize};nand write ${kernel_load_addr} linux ${partsize};nand erase.part rootfs;nand read ${file_load_addr} factrst1 ${partsize};nand write ${file_load_addr} rootfs ${partsize}
upuimgsave=nand erase.part upuimg;nand write ${kernel_load_addr} upuimg ${filesize}
upramsave=nand erase.part upram;nand write.jffs2 ${file_load_addr} upram ${filesize}
factrst0save=nand erase.part factrst0;nand write.jffs2 ${kernel_load_addr} factrst0 ${filesize}
factrst1save=nand erase.part factrst1;nand write.jffs2 ${file_load_addr} factrst1 ${filesize}
tftpuboot=tftp ${file_load_addr} u-boot.bin
tftplinux=tftp ${kernel_load_addr} uImage
tftpcramfs=tftp ${file_load_addr} ramdisk.cramfs
tftpjffs2=tftp ${file_load_addr} ramdisk.jffs2
tftpubifs=tftp ${file_load_addr} ramdisk.ubifs
tftptk=tftp ${file_load_addr} tk.gz
ethaddr=00:0a:3b:f0:01:30
gatewayip=192.168.0.1
netmask=255.255.255.0
ipaddr=192.168.0.1
serverip=192.168.0.10
ethact=mii0
pesifwcheck=1
mtdids=nand0=gdm7243
mem=80M
op_bootargs=auto
bootdelay=5
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=u-boot
pesifwcheckerr=1
bootargs=console=/dev/null,921600 boot=nand mem=80M ubi.mtd=10,2048 root=ubi0:rootfs ro rootfstype=ubifs mtdparts=gdm7243:512k(u-boot),512k(env),1m(rev0),1m(ltenv),1m(wmnv),1m(cmnnv),1m(cmnnv2),4m(rev1),4m(linux),4m(linux2),30m(rootfs),30m(rootfs2),5m(tk),5m(tk2),512k(customize),2560k(log),32m(update) bl_ver=0.46e checksum=disable active=linux,rootfs,unknown grf=gdm7243q

Environment size: 3645/131068 bytes
GDM7243>

`

`bootargs (auto)

Booting kernel from Legacy Image at d05fffc0 ...

Image Name: Linux-3.10.0-uc0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2317840 Bytes = 2.2 MiB
Load Address: d0600000
Entry Point: d0600000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
GDM7243>
`

`GDM7243> mtdparts

device nand0 , # parts = 17
#: name size offset mask_flags
0: u-boot 0x00080000 0x00000000 0
1: env 0x00080000 0x00080000 0
2: rev0 0x00100000 0x00100000 0
3: ltenv 0x00100000 0x00200000 0
4: wmnv 0x00100000 0x00300000 0
5: cmnnv 0x00100000 0x00400000 0
6: cmnnv2 0x00100000 0x00500000 0
7: rev1 0x00400000 0x00600000 0
8: linux 0x00400000 0x00a00000 0
9: linux2 0x00400000 0x00e00000 0
10: rootfs 0x01e00000 0x01200000 0
11: rootfs2 0x01e00000 0x03000000 0
12: tk 0x00500000 0x04e00000 0
13: tk2 0x00500000 0x05300000 0
14: customize 0x00080000 0x05800000 0
15: log 0x00280000 0x05880000 0
16: update 0x02000000 0x05b00000 0

active partition: nand0,0 - (u-boot) 0x00080000 @ 0x00000000

defaults:
mtdids : nand0=gdm7243
mtdparts: mtdparts=gdm7243:512k(u-boot),512k(env),1m(rev0),1m(ltenv),1m(wmnv),1m(cmnnv),1m(cmnnv2),4m(rev1),4m(linux),4m(linux2),30m(rootfs),30m(rootfs2),5m(tk),5m(tk2),512k(customize),2560k(log),32m(update)
`
i deleted from telnet the partition of the kernel so the device is not able to load the kernel but i have a nand dump of each partition already made before on a working one .
now my question is how can i perform a backup of that partition using uboot ?

thanks for help

uboot version is 2010

`U-Boot 2010.09 (Sep 06 2016 - 10:08:39)GCT GDM7243

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
`

from u-boot_mod.

CodeFetch avatar CodeFetch commented on June 9, 2024

This is not a forum and we don't offer help for random Huawei devices. Do us a favor and close this issue...

from u-boot_mod.

coolirc avatar coolirc commented on June 9, 2024

Thanks for your reply i'll close the ticket , i'd expected some help from your side but thanks ...

from u-boot_mod.

CodeFetch avatar CodeFetch commented on June 9, 2024

@coolirc This is just not the correct place, because this project has nothing to do with Huawei U-Boot and opening an issue in a different software project is not the correct way to ask for help. We don't know anything about Huawei-U-Boots and especially I don't know what you want to achieve. If you want to get a dump of the partitions, try to read it out directly. If that doesn't work, write a script that abuses the md command.

from u-boot_mod.

pepe2k avatar pepe2k commented on June 9, 2024

@CodeFetch

This is not a forum and we don't offer help for random Huawei devices. Do us a favor and close this issue...

"We"? Why are you speaking on my behalf? This is not your repository and not your project, so next time please be nice for others and speak only on your behalf.

Cheers,
Piotr

from u-boot_mod.

CodeFetch avatar CodeFetch commented on June 9, 2024

Understood, but "we" was meant as people having to do with ath79 U-Boot. If you ask about motor issues with your yacht in a sports sailboat forum, I guess sailors would refer to themselves as "we", too. And I think it's also not nice to bug people opening an issue/bug report asking for help for a unrelated thing like in a forum.

from u-boot_mod.

coolirc avatar coolirc commented on June 9, 2024

well i'm not totally out of subject like you say , i was hoping to port uboot to that board since it's a new chip and since that repository was named U-boot_Mod so it's actually being in the subject .

from u-boot_mod.

CodeFetch avatar CodeFetch commented on June 9, 2024

@coolirc Ah okay... This U-Boot-Mod is for special WLAN routers with Qualcomm/Atheros chipsets. Your Huawei has a Realtek chipset and as you were already told in OpenWrt forum, chances are bad for easily supporting this device without source-code or proper specifications.

Write an email to Huawei and ask them where to find the source code and if they don't have it available e.g. on the accompanying CD or on the internet, tell them they need to release the source-code as it's a GPL violation otherwise. This also includes the U-Boot source code (while I doubt that you need a custom U-Boot at all).

Personally I think this device is not worth the effort for trying to write a custom U-Boot or even supporting it in OpenWrt, because it is overpriced. I recommend you to sell it on eBay before it's getting completely outdated and worthless. I have bought a Huawei 4G router 2 years ago for $150 which at that moment costed more than $400 on eBay. Now it sells for under $30.

from u-boot_mod.

coolirc avatar coolirc commented on June 9, 2024

sources : https://github.com/torvalds/linux/tree/master/drivers/staging/gdm724x

from u-boot_mod.

CodeFetch avatar CodeFetch commented on June 9, 2024

@coolirc That's only the source code for the SoC. Please ask in the OpenWrt forum for help.

from u-boot_mod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.