hi35xx / hi35xx-buildroot

buildroot for hisilicon hi35xx series
Other
145 stars 96 forks source link

How upload image if network not work. #9

Open SPKDevelopers opened 6 years ago

SPKDevelopers commented 6 years ago

Hello,

I have an IPG-53H13PE-WP module that only works with wifi, but when I turn on the board, wifi is not activated.

How can I upload the firmware if I can not connect via network?

When turn on I can see in Putty (Serial Port 115200):

U-Boot 2010.06-svn (Oct 14 2015 - 15:07:23)

DRAM: 256 MiB Check spi flash controller v350... Found Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17 Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E" envcrc 0xb599d235 ENV_SIZE = 0xfffc In: serial Out: serial Err: serial Press Ctrl+C to stop autoboot CFG_BOOT_ADDR:0x58040000 8192 KiB hi_sfc at 0:0 is now current device

boot load complete: 2068024 bytes loaded to 0x82000000 SAVE TO 80008000 ! Booting kernel from Legacy Image at 82000000 ... Image Name: linux Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2067960 Bytes = 2 MiB Load Address: 80008000 Entry Point: 80008000

load=0x80008000,_bss_end=80829828,image_end=80200df8,boot_sp=807c7168 Loading Kernel Image ... OK OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

And don't load.

PRINTENV

U-Boot 2010.06-svn (Oct 14 2015 - 15:07:23)

DRAM: 256 MiB Check spi flash controller v350... Found Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17 Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E" envcrc 0xb599d235 ENV_SIZE = 0xfffc In: serial Out: serial Err: serial Press Ctrl+C to stop autoboot hisilicon # printenv bootcmd=setenv setargs setenv bootargs ${bootargs};run setargs;fload;bootm 0x82000000 bootdelay=1 baudrate=115200 bootfile="uImage" da=mw.b 0x82000000 ff 1000000;tftp 0x82000000 u-boot.bin.img;sf probe 0;flwrite du=mw.b 0x82000000 ff 1000000;tftp 0x82000000 user-x.cramfs.img;sf probe 0;flwrite dr=mw.b 0x82000000 ff 1000000;tftp 0x82000000 romfs-x.cramfs.img;sf probe 0;flwrite dw=mw.b 0x82000000 ff 1000000;tftp 0x82000000 web-x.cramfs.img;sf probe 0;flwrite dc=mw.b 0x82000000 ff 1000000;tftp 0x82000000 custom-x.cramfs.img;sf probe 0;flwrite up=mw.b 0x82000000 ff 1000000;tftp 0x82000000 update.img;sf probe 0;flwrite ua=mw.b 0x82000000 ff 1000000;tftp 0x82000000 upall_verify.img;sf probe 0;flwrite tk=mw.b 0x82000000 ff 1000000;tftp 0x82000000 uImage; bootm 0x82000000 dd=mw.b 0x82000000 ff 1000000;tftp 0x82000000 mtd-x.jffs2.img;sf probe 0;flwrite ipaddr=192.168.1.10 serverip=192.168.1.107 netmask=255.255.255.0 bootargs=mem=${osmem} console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=cramfs mtdparts=hi_sfc:256K(boot),3520K(romfs),2560K(user),1280K(web),256K(custom),320K(mtd) ethaddr=00:12:15:4b:be:13 HWID=8043420004048425 NID=0x0100 muxctl0=0x200f00dc muxval0=1 gpio0=0x95 gpioval0=0 osmem=40M appSystemLanguage=SimpChinese appVideoStandard=PAL stdin=serial stdout=serial stderr=serial verify=n ver=U-Boot 2010.06-svn (Oct 14 2015 - 15:07:23)

Environment size: 1359/65532 bytes

xuhuashan commented 6 years ago

you can use y-model on serial to upload firmware. you should enter u-boot and run loady. putty sames to cannot send file via y-model, you can install a serial terminal which can send files, and then send file via y-model

the other way to program firmware is sd/mmc if it is available, you can copy the firmware to sd card via card reader, and then insert to the board, and then upgrade under u-boot

SPKDevelopers commented 6 years ago

Hello,

First of all thank you for helping me. I have several questions,

xuhuashan commented 6 years ago

sorry, it's Y-modem, it is a file transfer protocol over serial port. it can be use to transfer files from host pc to target board via serial port. u-boot has y-modem support, loady command can be used to receive file. on the other hand, you must have a serial terminal supports y-modem, as i know, SecureCRT supports x/y/z-modem protocol, if you have a linux host, minicom also has y-modem support.

to transfer file from the host pc to board, first run loady command on the target board

loady 0x81000000

and then you can send file, if you are using SecureCRT, open the "transfer" menu, select y-modem protocol, and then select the file to transfer. i'm using linux, only have minicom installed, press CTRL+A,S , and select ymodem protocol, then select which file to transfer. after transfer completed, the file will be saved to address 0x81000000.

SPKDevelopers commented 6 years ago

Ok xuhuashan, I tested with ExtraPutty and I send the file with Y-Modem, but now???

My firmware is "General_HZXM_IPC_HI3518E_50H10L_8188_S38_V4.02.R12.Nat.20161214_ALL.bin" from http://www.hasecu.com/DOCs/Firmware/General_HZXM_IPC_HI3518E_50H10L_8188_S38_V4.02.R12.Nat.20161214_ALL.bin

My capture: https://imgur.com/a/gPri2

And I working with 50H10PE Wifi Camera.

Thankkkks