20190114_jeffrey - silenceuncrio/diary GitHub Wiki
0925
盤一下這禮拜的待做項目
- M300
- Set to SIM 1 slot in uboot
- WiFi: hidden page (ATE)
- WiFi: warm reboot cause hang
- Cisco DMVPN
- Wizard
- MFG tool with UBI
- M360
- Schedule Reboot
M300 - Set to SIM 1 slot in uboot
是上禮拜五臨時追加的
因為是 Hytec 要的 所以最優先處理
M300 - WiFi: hidden page (ATE)
是要幫 jessy 加 web ui
jessy 已經 commit 到 M300 branch hotfix/v1.76-wifi-eva
先利用早上的時間把 ui 做完
pull 最新的 M300 branch hotfix/v1.76-wifi-eva
build image
- Products/Vendor = M300/16_MTK_WIFI
build fail
Summary: 1 task failed:
/home/user/meta-proscend/recipes-kernel/mt7601-JEDI/mt7601-JEDI-STA_v1.9.bb, do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
參考 https://github.com/silenceuncrio/diary/wiki/20181226_jeffrey
clean 一下 - bitbake -c cleansstate mt7601-JEDI-ST
user@be6d814a16da:~/build_small$ bitbake -c cleansstate mt7601-JEDI-ST
Loading cache: 100% |###########################################| ETA: 00:00:00
Loaded 2778 entries from dependency cache.
ERROR: Nothing PROVIDES 'mt7601-JEDI-ST'. Close matches:
mt7601-JEDI-STA
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
連 cleansstate 也出錯
問一下 jessy
jessy 表示再讓他 check 一下
1035
M300 - Set to SIM 1 slot in uboot
這個 issue 要解在 branch v1.75-mfg
1045
等待 jessy check 的同時
我先來寫 CGI
1125
jessy 上 code 了
先把剛剛的進度做個保留 - git stash
pull 最新的 M300 branch hotfix/v1.76-wifi-eva
build image
mfgtoo 燒錄...
燒錄的同時把剛剛保留的進度再還原 - git stash apply
1410
M300 - WiFi: hidden page (ATE)
是要幫 jessy 加 web ui
反正是隱藏頁面
多國語言就算了
iweb 的 _register_http_endpoint() 也算了
就是不用 login 只要知道隱藏頁面的網址就可以 apply 的意思
build image
mfgtool 燒錄
頁面 ok
已告知 jessy 說 apply fail 的事情
先上 code 吧
commit 4b27c5be7e1e297273a36b28b08c2aa1cd8fcbd6
Refs: [hotfix/v1.76-wifi-eva], {origin/hotfix/v1.76-wifi-eva}
Author: jeffrey <[email protected]>
Date: Mon Jan 14 14:30:59 2019 +0800
add hidden page 'Wireless (ATE):
for example: if your device ip is 192.168.1.1, use http://192.168.1.1/#/wifi_ate to enter this hidden page
proscend/prosrc/webcgi/Makefile | 1 +
proscend/prosrc/webcgi/wifi_ate.c | 172 ++++++++++++++++++++++
proscend/prosrc/www/app/feature/wifi_ate.html | 174 +++++++++++++++++++++++
proscend/prosrc/www/app/feature/wifi_ate.js | 66 +++++++++
proscend/prosrc/www/app/services/icos.service.js | 12 ++
proscend/prosrc/www/src/index.html.src | 1 +
6 files changed, 426 insertions(+)
1435
M300 - Set to SIM 1 slot in uboot
開工
先 checkout branch v1.75-mfg
➜ M300 git:(hotfix/v1.76-wifi-eva) ✗ git checkout v1.75-mfg
Switched to branch 'v1.75-mfg'
Your branch is behind 'origin/v1.75-mfg' by 4 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
➜ M300 git:(v1.75-mfg) ✗ git pull
First, rewinding head to replay your work on top of it...
Fast-forwarded v1.75-mfg to 28323c7b83e01748508ed2a2ffe89e10894ff2f6.
build image
- Products/Vendor = M300/10_GPS_HYTEC
build 會出錯
aaron 表示跟 library 新舊有關
等他把 library commit 上去我再 pull
1525
aaron 已 commit
pull 後繼續 build
mfgtool 燒錄
1610
花點時間從自己的日記找尋開發 uboot 的流程
- https://github.com/silenceuncrio/diary/wiki/20161206_jeffrey
- m300 nand flash 整理過去的情報
- https://github.com/silenceuncrio/diary/wiki/20161214_jeffrey
- 修改 uboot 並套用
目前 bitbake u-boot-imx -c devshell
無法使用
但可由 bitbake u-boot-imx -c compile -f
得知 u-boot-imx 的 source code 在
M300/build_small/tmp\work/m300-poky-linux-gnueabi/u-boot-imx/2015.04-r0/git
為了描述方便
把 <u-boot-imx-src>
= M300/build_small/tmp\work/m300-poky-linux-gnueabi/u-boot-imx/2015.04-r0
試著從 <u-boot-imx-src>/temp/log.do_compile
找找看是那些 file 被 compile 了
可以利用 arm-poky-linux-gnueabi-gcc
這個字眼
1735
手痠死了
../lib/asm-offsets.c
../lib/asm-offsets.c
../arch/arm/lib/asm-offsets.c
../arch/arm/lib/asm-offsets.c
../arch/arm/cpu/u-boot.lds
../arch/arm/cpu/armv7/cache_v7.c
../arch/arm/lib/vectors.S
../arch/arm/imx-common/iomux-v3.c
../arch/arm/lib/crt0.S
../arch/arm/lib/relocate.S
../arch/arm/lib/bootm-fdt.c
../board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
../arch/arm/lib/bootm.c
../arch/arm/imx-common/cpu.c
../arch/arm/cpu/armv7/cpu.c
../arch/arm/cpu/armv7/cp15.c
../arch/arm/lib/sections.c
../arch/arm/imx-common/speed.c
../arch/arm/cpu/armv7/syslib.c
../arch/arm/lib/stack.c
../arch/arm/imx-common/i2c-mxv7.c
../arch/arm/imx-common/misc.c
../arch/arm/cpu/armv7/lowlevel_init.S
../arch/arm/lib/interrupts.c
../arch/arm/cpu/armv7/mx6/soc.c
../arch/arm/cpu/armv7/start.S
../arch/arm/imx-common/syscounter.c
../arch/arm/lib/reset.c
../arch/arm/imx-common/cmd_bmode.c
../arch/arm/lib/cache.c
../arch/arm/cpu/armv7/mx6/clock.c
../arch/arm/lib/cache-cp15.c
../common/main.c
../disk/part.c
../common/exports.c
../arch/arm/lib/eabi_compat.c
../common/hash.c
../drivers/dma/apbh_dma.c
../drivers/gpio/mxc_gpio.c
../common/cli_hush.c
../drivers/core/device.c
../common/autoboot.c
../common/board_f.c
../drivers/i2c/i2c_core.c
../drivers/core/lists.c
../drivers/core/root.c
../drivers/i2c/mxc_i2c.c
../common/board_r.c
../drivers/core/uclass.c
../common/board_info.c
../common/cmd_boot.c
../common/cmd_bootm.c
../common/bootm.c
../drivers/mtd/mtdcore.c
../drivers/core/util.c
../common/bootm_os.c
../drivers/core/device-remove.c
../common/cmd_help.c
../common/cmd_version.c
../common/env_attr.c
../drivers/crypto/fsl/sec.c
../common/env_callback.c
../common/env_flags.c
../common/env_nand.c
../drivers/input/input.c
../drivers/mtd/nand/nand.c
../drivers/mtd/nand/nand_bbt.c
../common/cmd_source.c
../common/cmd_bdinfo.c
../drivers/misc/mxc_ocotp.c
../common/cmd_cache.c
../drivers/pcmcia/tqm8xx_pcmcia.c
../common/cmd_console.c
../drivers/mtd/nand/nand_ids.c
../drivers/rtc/date.c
../common/cmd_echo.c
../drivers/mtd/nand/nand_util.c
../common/cmd_exit.c
../drivers/mtd/nand/nand_ecc.c
../drivers/thermal/thermal-uclass.c
../common/cmd_fdt.c
../drivers/thermal/imx_thermal.c
../common/fdt_support.c
../drivers/mtd/nand/nand_base.c
../drivers/watchdog/imx_watchdog.c
../drivers/mtd/nand/mxs_nand.c
../drivers/net/fec_mxc.c
../common/cmd_flash.c
../common/cmd_fuse.c
../common/cmd_i2c.c
../common/cmd_itest.c
../drivers/net/phy/phy.c
../common/cmd_load.c
../common/cmd_mem.c
../drivers/net/phy/micrel.c
../common/miiphyutil.c
../common/cmd_mii.c
../common/cmd_mdio.c
../common/cmd_misc.c
../drivers/serial/serial.c
../common/cmd_nand.c
../common/cmd_net.c
../drivers/spi/spi.c
../drivers/usb/eth/usb_ether.c
../drivers/serial/serial_mxc.c
../drivers/usb/host/ehci-hcd.c
../drivers/usb/eth/asix.c
../drivers/usb/host/ehci-mx6.c
../common/cmd_pcmcia.c
../common/cmd_test.c
../common/cmd_usb.c
../common/usb.c
../common/usb_hub.c
../common/usb_storage.c
../fs/fs.c
../common/cmd_ximg.c
../common/flash.c
../common/splash.c
../common/cmd_nvedit.c
../common/env_common.c
../lib/libfdt/fdt.c
../common/console.c
../lib/libfdt/fdt_ro.c
../lib/zlib/zlib.c
../common/dlmalloc.c
../common/dlmalloc.c
../common/malloc_simple.c
../common/image.c
../lib/libfdt/fdt_rw.c
../lib/crc7.c
../lib/crc8.c
../lib/crc16.c
../common/image-fdt.c
../lib/gunzip.c
../lib/libfdt/fdt_strerror.c
../lib/initcall.c
../lib/libfdt/fdt_sw.c
../common/memsize.c
../lib/lmb.c
../lib/ldiv.c
../common/stdio.c
../lib/net_utils.c
../lib/libfdt/fdt_wip.c
../common/cli_simple.c
../common/cli.c
../common/cli_readline.c
../lib/libfdt/fdt_empty_tree.c
../common/command.c
../lib/libfdt/fdt_addresses.c
../common/s_record.c
../lib/qsort.c
../common/xyzModem.c
../lib/strmhz.c
../net/checksum.c
../common/cmd_disk.c
../lib/list_sort.c
../net/arp.c
../net/bootp.c
../lib/hashtable.c
../net/eth.c
../test/dm/cmd_dm.c
../net/nfs.c
../lib/errno.c
../lib/display_options.c
../net/ping.c
../lib/crc32.c
../lib/ctype.c
../lib/div64.c
../net/tftp.c
../lib/hang.c
../lib/linux_compat.c
../lib/linux_string.c
../lib/string.c
../lib/time.c
../lib/vsprintf.c
../examples/standalone/stubs.c
../examples/standalone/hello_world.c
../board/freescale/mx6ul_14x14_evk/imximage.cfg
不過這樣就可以利用 source insight 來 trace 了