WiFi Camera AlfaWise L3 Plus - installing OpenWrt

Hello, how can I install openwrt firmware Hi3518EV200 to chinesse wifi camera Alfawise L3 Plus? There is not U-Boot loader but there is ArmBoot loader. (see Log from serial console).

Log:

root@debian:/home/rwx# cu -l /dev/ttyUSB0 -s 115200
Connected.
                         
[start_armboot:150]time:18ms


[start_app:95]time:184ms
osSlabMemInit success
********hello Huawei LiteOS ARM926********

version : Huawei LiteOS V100R002C10B073
open-version : Huawei LiteOS 1.3.2
build data : Dec 12 2017 11:11:04

*******************Spi Nor ID:0xEF 0x60 0x18 0x00 0x00 0x00 0x00 0x00
Spi Nor Flash Info:
Name:"W25Q128FW" Size:16MB Block:64KB
1970-01-01-00:00:00 [(info)sdk_init:969]:  =============== SDK init start! ===============
osal_proc_mkdir - parent is NULL! proc=0x8097e5c8
<6>Hisilicon Media Memory Zone Manager
load sys.ko for Hi3518EV200...OK!
load tde.ko ...OK!
load region.ko for Hi3518EV200...OK!
load vgs.ko for Hi3518EV200...OK!
load viu.ko for Hi3518EV200...OK!
ISP Mod init!
load vpss.ko for Hi3518EV200...OK!
load rc.ko for Hi3518EV200...OK!
load venc.ko for Hi3518EV200...OK!
load chnl.ko for Hi3518EV200...OK!
load h264e.ko for Hi3518EV200...OK!
load jpege.ko for Hi3518EV200...OK!
mipi_init
init phy power successful!
load hi_mipi driver successful!
hirtc init ok. ver=Jun 12 2017, 10:49:38.
load ive.ko for Hi3518EV200...OK!
1970-01-01-00:00:00 [(info)sdk_init:1014]:  =============== SDK init ok! ===============
Tocoding FW: TSPLSHB27M01C01D006, External version: 1127.0.0.0, compile time: Dec 25 2018_10:12:33
1970-01-01-00:00:00 [(info)sys_mount_part_init:58]:  add_mtd_partition 0 param success
/param/log_debug DEBUG 0
g_type is 0
 7B  05  97  00  16
MCU get wakeup type is 0


.....................................................................................
.....................................................................................
......@@@@@@@@@.@@@@@@.....@@@@@....@@@@@@...@@@@@@@@..@@@.@@@...@@@..@@@@@@@........
.........@@@...@@@@.@@@...@@@.@@@..@@@@.@@@..@@@..@@@..@@@.@@@@..@@@.@@@@.@@@@.......
.........@@@...@@@...@@@.@@@...@@..@@@...@@@.@@@...@@@.@@@.@@@@..@@@.@@@...@@........
.........@@@...@@....@@@.@@........@@....@@@.@@@...@@@.@@@.@@@@@.@@@.@@..............
.........@@@..@@@....@@@.@@.......@@@....@@@.@@@...@@@.@@@.@@@@@@@@@@@@..@@@@@.......
.........@@@...@@....@@@.@@........@@....@@@.@@@...@@@.@@@.@@@.@@@@@.@@....@@@.......
.........@@@...@@@...@@@.@@@...@@..@@@...@@@.@@@...@@@.@@@.@@@.@@@@@.@@@...@@@.......
.........@@@...@@@@.@@@..@@@@.@@@..@@@@.@@@..@@@..@@@..@@@.@@@..@@@@.@@@@.@@@@.......
.........@@@....@@@@@@....@@@@@@....@@@@@@...@@@@@@@@..@@@.@@@...@@@..@@@@@@@........
.....................................................................................
.....................................................................................


********mmc host init ! ********
 7B  05  A7  01  27
set mipi phy attr successful!
g_wifi_wakeup_flag = 0
<3>start to register sdio modulesdio probe:pull up power on gpio
linear mode
===soi_f23 sensor mipi 1080P30fps linear mode init success!=====
HI_MPI_VENC_SetColor2Grey 0
[ERR] TZ file data error
HI_MPI_VENC_SetColor2Grey 0

mpp_video_get_frame:1326: 973ms [First venc]
load ai.ko for Hi3518EV200...OK!
load ao.ko for Hi3518EV200...OK!
load aenc.ko for Hi3518EV200...OK!
load adec.ko for Hi3518EV200...OK!
acodec [acodec_device_init ,1091]: misc addr:0x20120000, acodec addr:0x201200c4

acodec [acodec_device_init ,1107]: crg addr:0x20030000, acodec crg addr:0x2003008c

hisi sdio load sucuess, sdio enum done.
{oal_sdio_func_probe::shutdown wifi after init sdio.
}sdio probe:pull down power on gpio
oal_create_singlethread_workqueue::wlan_pm_wq single_workqueue
[firmware_get_cfg]ram_reg_test_cfg maybe not exist!
[plat_firmware_init]ram_reg_test_cfg maybe not exist, please check
plat_init:: platform_main_init finish!
liteos plat init ok!
hisi wifi hcc transfer thread enter
wiphy_register start.
wal_init_wlan_netdev wlan0.
wal_init_wlan_netdev p2p0.
[hmac_wow_set_host_state]{Hmac_wow::state[0]->[1]!}
[hmac_wow_init]{hmac_wow_init, time = 1264, ul_wow_event = [000001DF];g_auc_timer_debug[0] = 5, g_auc_timer_debug[1]:5}
host_main_init finish!
Hi1131_host_main_init finish!
[ERR] ****[osCmdReg] shell is not yet initialized!
[ERR] ****[osCmdReg] shell is not yet initialized!
[ERR] ****[osCmdReg] shell is not yet initialized!
[ERR] ****[osCmdReg] shell is not yet initialized!
[ERR] ****[osCmdReg] shell is not yet initialized!
[hisi_wlan_get_wakeup_reason]{hisi_wlan_get_wakeup_reason::WOW, REASON[0].0:NUL,1:Mag,2:NetTCP,3:NetUDP,4:DisassocRx,
5:DisassocTx,6:Auth,7:KeepAlive,8:Host,9:Log,10:SSID Wakeup.}
Sec check OK!
sec version is #TS100
1970-01-01-00:00:02 [start_network():362]-----> To start network time 2430ms
set led stat: 6
[xml_config_init, 183]
[xml_config_init, 209] xmlfile(/param/config.xml) root(profile)
19700101 00:00:02.451350 [1] [ConfigFile.c(258) SetParamEx]key:devicename, value:Camera.
set led stat: 6                                                                                                                                                                                                                                                                
Mount procfs finished.                                                                                                                                                                                                                                                        

Huawei LiteOS # 19700101 00:00:02.480188 [1] [ConfigFile.c(258) SetParamEx]key:username, value:.                                                                                                                                                                              
19700101 00:00:02.483948 [1] [ConfigFile.c(258) SetParamEx]key:unifiedid, value:.                                                                                                                                                                                              
19700101 00:00:02.567765 [1] [ConfigFile.c(258) SetParamEx]key:locale, value:.                                                                                                                                                                                                
19700101 00:00:02.570741 [1] [ConfigFile.c(258) SetParamEx]key:motionsensitivity, value:0.                                                                                                                                                                                    
19700101 00:00:02.579564 [1] [ConfigFile.c(258) SetParamEx]key:timezone, value:Asia/Shanghai (GMT+08:00) offset 28800.                                                                                                                                                        
 7B  06  95 19700101 00:00:02.636402 [1] [ConfigFile.c(258) SetParamEx] 05 key:cameraoffstauts, value:0.                                                                                                                                                                      
 01  13
19700101 00:00:02.666820 [1] [ConfigFile.c(258) SetParamEx]key:camerawifi, value:.                                                                                                                                                                                            
19700101 00:00:02.675246 [1] [ConfigFile.c(258) SetParamEx]key:sounddetection, value:1.                                                                                                                                                                                        
19700101 00:00:02.683779 [1] [ConfigFile.c(258) SetParamEx]key:soundsensitivity, value:80.                                                                                                                                                                                    
MCU version: 1281                                                                                                                                                                                                                                                              
19700101 00:00:02.729219 [1] [ConfigFile.c(258) SetParamEx]key:turnontime, value:0.                                                                                                                                                                                            
19700101 00:00:02.733239 [1] [ConfigFile.c(258) SetParamEx]key:unmutetime, value:0.                                                                                                                                                                                            
19700101 00:00:02.741364 [1] [ConfigFile.c(258) SetParamEx]key:hdvideo, value:1.                                                                                                                                                                                              
19700101 00:00:02.753589 [1] [ConfigFile.c(258) SetParamEx]key:cloudrecordtime, value:0.                                                                                                                                                                                      
19700101 00:00:02.762137 [1] [ConfigFile.c(258) SetParamEx]key:cameraratote, value:0.                                                                                                                                                                                          
19700101 00:00:02.781144 [1] [ConfigFile.c(258) SetParamEx]key:facedetection, value:1.                                                                                                                                                                                        
19700101 00:00:02.789534 [1] [ConfigFile.c(258) SetParamEx]key:tamperdetection, value:1.                                                                                                                                                                                      
19700101 00:00:02.803778 [1] [ConfigFile.c(258) SetParamEx]key:cloudrecordstatus, value:0.                                                                                                                                                                                    
19700101 00:00:02.812914 [1] [ConfigFile.c(258) SetParamEx]key:upnsdid, value:NoUPNS.                                                                                                                                                                                          
19700101 00:00:02.820870 [1] [ConfigFile.c(258) SetParamEx]key:cloudtoken, value:.                                                                                                                                                                                            
19700101 00:00:02.834016 [1] [ConfigFile.c(258) SetParamEx]key:clouddid, value:.                                                                                                                                                                                              
19700101 00:00:02.841905 [1] [ConfigFile.c(258) SetParamEx]key:configmotiondetection, value:1.                                                                                                                                                                                
19700101 00:00:02.851143 [1] [ConfigFile.c(258) SetParamEx]key:devled, value:1.                                                                                                                                                                                                
19700101 00:00:02.873602 [1] [ConfigFile.c(258) SetParamEx]key:devinfrared, value:1.                                                                                                                                                                                          
19700101 00:00:02.881802 [1] [ConfigFile.c(258) SetParamEx]key:devnightmode, value:2.                                                                                                                                                                                          
19700101 00:00:02.890125 [1] [ConfigFile.c(258) SetParamEx]key:checkupdateinterval, value:0.                                                                                                                                                                                  
19700101 00:00:02.920371 [1] [ConfigFile.c(258) SetParamEx]key:updateprestatus, value:0.                                                                                                                                                                                      
19700101 00:00:02.928901 [1] [ConfigFile.c(258) SetParamEx]key:volumemute, value:1.                                                                                                                                                                                            
19700101 00:00:02.957568 [1] [ConfigFile.c(258) SetParamEx]key:checkdisabledupdate, value:0.
19700101 00:00:02.965391 [1] [ConfigFile.c(258) SetParamEx]key:antiflicker, value:50.
19700101 00:00:02.988055 [1] [ConfigFile.c(258) SetParamEx]key:getrebootlog, value:0.
19700101 00:00:02.991919 [1] [ConfigFile.c(258) SetParamEx]key:updateid, value:.
19700101 00:00:02.999883 [1] [ConfigFile.c(258) SetParamEx]key:updatetype, value:0.
19700101 00:00:03.023226 [1] [ConfigFile.c(258) SetParamEx]key:updateversion, value:.
19700101 00:00:03.031314 [1] [ConfigFile.c(258) SetParamEx]key:secret, value:.
19700101 00:00:03.039100 [1] [ConfigFile.c(258) SetParamEx]key:notificationinterval, value:15.
19700101 00:00:03.063380 [1] [ConfigFile.c(258) SetParamEx]key:personcountsch, value:0.
19700101 00:00:03.071791 [1] [ConfigFile.c(258) SetParamEx]key:personstauts, value:0.
19700101 00:00:03.080169 [1] [ConfigFile.c(258) SetParamEx]key:personcounttime, value:0.
19700101 00:00:03.090250 [1] [ConfigFile.c(258) SetParamEx]key:newproductkey, value:.
19700101 00:00:03.100981 [1] [ConfigFile.c(258) SetParamEx]key:newsecret, value:.
19700101 00:00:03.108482 [1] [ConfigFile.c(258) SetParamEx]key:lastrelayipport, value:.
19700101 00:00:03.117284 [1] [ConfigFile.c(258) SetParamEx]key:keepliveserver, value:.
19700101 00:00:03.133560 [1] [ConfigFile.c(258) SetParamEx]key:relayudpport, value:50020.
19700101 00:00:03.141342 [1] [ConfigFile.c(258) SetParamEx]key:pingdata, value:.
19700101 00:00:03.149267 [1] [ConfigFile.c(258) SetParamEx]key:wakeupdata, value:.
/param/closeli_log_debug DEBUG 0
hisi_wlan_set_keepalive_switch:l_ret = -12
{hisi_wlan_set_wakeup_ssid::return err code -12!}

Successfully initialized wpa_supplicant
wal_netdev_open,dev_name is:wlan0
[firmware_download_function]download firmware, count [1], current time [190000]us, max time [190000]us
get rates from device
[wlan_power_on]power on, count [1], current time [210000]us, max time [210000]us
hcc state off[0]=>on [1]
hisi_customize_wifi::ampdu_tx_max_num:64get rates from device
wal_cfg_vap_h2d_event succ
[hmac_wow_set_dmac_cfg]hmac_wow_set_dmac_cfg, flag[0], wow_event[000001DF]
[hmac_wow_set_dmac_cfg]hmac_wow_set_dmac_cfg,ssid wakeup,uc_ssid_set_flag:0
wal_set_random_mac_to_mib,mac is:fc:6b:f0
wpa_supplicant normal run!
Dlog LV:1, FI:4010, LI:1675, P1:0x00000001 , P2:0x0000157b
 7B  05  A7  01  27
wal_netdev_stop,dev_name is:wlan0
[plat_pm]wlan_pm_close start!!
hcc state on [1]=>off[0]
Clear queue:1,total 1 hcc tx pkts!
[firmware_download_function]download firmware, count [2], current time [190000]us, max time [190000]us
get rates from device
[wlan_power_on]power on, count [2], current time [190000]us, max time [210000]us
hcc state off[0]=>on [1]
get rates from device
[hmac_wow_set_dmac_cfg]hmac_wow_set_dmac_cfg, flag[0], wow_event[000001DF]
[hmac_wow_set_dmac_cfg]hmac_wow_set_dmac_cfg,ssid wakeup,uc_ssid_set_flag:0
wal_cfg80211_change_virtual_intf,dev_name is:wlan0
wal_set_random_mac_to_mib,mac is:fc:6b:f0
Using interface wlan0 with hwaddr fc:6b:f0:25:5b:79 and ssid "TOSEE_PLUS_25-5b-79"
wal_start_vap,dev_name is:wlan0
wal_cfg80211_start_ap::exit.
Dlog LV:1, FI:4010, LI:1675, P1:0x00000001 , P2:0x000016e5

Thx a lot,
patalia.

See OpenWrt on hisilicon SOCs - hi35xxx

Good morning,
thx for your quick response. This link I was reading one week ago and I was reading all about installing fw on openipc.org.Problem is with used commands. Where to enter commands? In bash console on my debian are missing. In serial console in shell Huawei LiteOS are missing? I know that those commands are Uboot commands. All commands log from Huawei LiteOS over serial link see log below.

My wifi camera have not a LAN connector. It have only usb connector and wifi over Tosee plus application installed from Google play. Serial communication (Rx, Tx) I found on the PCB.

LOG:

Huawei LiteOS # help
*******************shell commands:*************************

arp           call          cat           cat_logmpp    cd            cp            cpup          detailused    
dns           ex            findsym       flip          format        free          freedetail    freenode      
freeslab      getid         help          hiddrs        himd          himm          hwi           i2c_read      
i2c_write     ifconfig      lddrop        ls            maxusedslab   mclose        memcheck      memdetail     
mkdir         mopen         mount         nand_bad      netstat       ntpdate       partinfo      partition     
ping          pir           pwd           readreg       reset         rm            rmdir         rmid          
rtsp          sem           set_c_debug   set_cfg       set_debug     setid         sf_read       sf_write      
ssp_read      ssp_write     start_pq      statfs        steam_debug   swtmr         sync          systeminfo    
task          telnet        tftp          touch         uart_close    uart_config   uart_read     uart_write    
umount        uname         upgrade       usednode      writeproc     writereg

Thx a lot, patalia.

well, there's a help, and depending on capabilities, the tftp command might be the only one you need.

Please refer to https://openipc.org/ for installation instructions.

You dont understand me. Is it possible that armboot console is off? I dont know how to halt boot sequence during booting OS. I have tried a lot to do (during boot: hit any keys, ctrl+Q, ctrl+C, *, F10, push button "reset"...) but nothing has helped. I am not a IT specialist. It is impossible to knows all.

..Maybe it will be to help someone.
To enter to U-Boot console on wifi camera AlfaWiseL3Plus: hit reset button and any key and switch on the camera. The reset button and any key must be still pushed because the break time is too short.

LOG:

[start_armboot:150]time:18ms
enter uboot normal----------------sf read 0x82000000 0x40000 0x40000



System startup


U-Boot TOCO_3.0.0 (Dec 25 2018 - 10:12:51)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xef 0x60 0x18
Block:64KB Chip:16MB Name:"W25Q128FW"
SPI Nor total size: 16MB
MMC:   
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
LED RED OFF!
LED BLUE OFF!
*No SD card found!
Hit any key to stop autoboot:  0 
Toco hisilicon # help                                   
?       - alias for 'help'
base    - print or set address offset
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
getinfo - print hardware information
go      - start application at address 'addr'
help    - print command description/usage
hwdec   - usage:simple version. hwdec dest_addr src_addr 
loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - mmcinfo <dev num>-- display MMC info
mtest   - simple RAM read/write test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv  - set environment variables
sf      - SPI flash sub-system
startApp- usage:simple version. startApp 1: wifi wakeup  2: normal
tftp    - tftp  - download or upload image via network using TFTP protocol
version - print monitor version
Toco hisilicon #

Patalia

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.