20190107_jeffrey - silenceuncrio/diary GitHub Wiki
一早出門找不到皮包
上班也就沒辦法刷卡
繼續 wizard
- M300 branch = develop
-
Product/Vendor
=M300/0_GENERIC
目前 wizard apply 很不穩
例如 Step 3. LAN Setting Apply fail
這不是 icos 回應的 apply fail
而是 CGI 本身的執行沒有回應
有時候是 Step 2. WAN Setting 會出錯
我先試著在每個 step apply 之後在呼叫下一個 apply 之前能暫停一下 比如 0.5 秒之類的
wifi 新的 config 先幫忙加
- M300 branch = hotfix/v1.76
-
Product/Vendor
=M300/16_MTK_WIFI
幫忙在 uboot 去把 E4 這個 GPIO 先拉成 high
E4 這根腳要參考 P:\2_Projects\3_Wireless\M300_M301\RA4\CPU BOARD\Schematic 的 cpu_board_ra2_20170202.pdf
參考 https://github.com/silenceuncrio/diary/wiki/20170210_jeffrey
CPU PIN | Instance | Signal | Pad | Mode |
---|---|---|---|---|
E4 | GPIO4 | IO21 | CSI_DATA00 | ALT5 |
利用以下的 uboot command 來點燈
- GPIO4_GDIR - mw 0x020A8004 00200000 1
- SW_MUX_CTL_PAD_CSI_DATA00 - mw 0x020E01E4 0x00000005 1
修改如下
diff --git a/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local b/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local
index d5211ca..703fbf6 100644
--- a/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local
+++ b/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local
@@ -42,8 +42,8 @@ function core_uboot_env_loose_indicate {
# apply the uboot env variables related to current application
/usr/sbin/icos/uboot_env.sh
-# run bootcmd_v1.3 define in uboot_env.sh
-fw_setenv bootcmd 'run bootcmd_v1.3'
+# run bootcmd_v1.4 define in uboot_env.sh
+fw_setenv bootcmd 'run bootcmd_v1.4'
diff --git a/proscend/prosrc/icos/script/uboot_env.sh b/proscend/prosrc/icos/script/uboot_env.sh
old mode 100755
new mode 100644
index 08b8f72..f502461
--- a/proscend/prosrc/icos/script/uboot_env.sh
+++ b/proscend/prosrc/icos/script/uboot_env.sh
@@ -3,7 +3,7 @@
-uboot_env_ver=1.3
+uboot_env_ver=1.4
@@ -71,7 +71,7 @@ fi'
# sys led - GPIO2-IO20
# +----------+--------+-----------+------+
# | Instance | Signal | Pad | Mode |
-# | GPIO2 | IO20 | SD1_DATA2 | ALT5 |
+# | GPIO2 | IO20 | SD1_DATA2 | ALT5 |
# +----------+--------+-----------+------+
#
# SW_MUX_CTL_PAD_SD1_DATA2 - select mux mode: ALT5 mux port
@@ -135,6 +135,22 @@ mw 0x0209C000 C0000000 1; mw 0x020AC000 00000080 1'
+# IO control power - GPIO4-IO21
+# +----------+--------+------------+------+
+# | Instance | Signal | Pad | Mode |
+# | GPIO4 | IO21 | CSI_DATA00 | ALT5 |
+# +----------+--------+------------+------+
+#
+# SW_MUX_CTL_PAD_CSI_DATA00 - select mux mode: ALT5 mux port
+# - mw 0x020E01E4 0x00000005 1
+# GPIO4_GDIR - define the direction of the GPIO4-IO21 as OUTPUT
+# - mw 0x020A8004 00200000 1
+# GPIO4_DR - define the value of the GPIO2-IO20 OUTPUT to 0 - pull low
+# - mw 0x020A8000 00200000 1
+fw_setenv turnon_iocontrolpower 'mw 0x020E01E4 0x00000005 1; mw 0x020A8004 00200000 1; mw 0x020A8000 00200000 1'
+
+
+
@@ -146,7 +162,7 @@ mw 0x0209C000 C0000000 1; mw 0x020AC000 00000080 1'
fw_setenv bootdelay 0
-fw_setenv bootcmd_v1.3 'run turnon_sysled; run reset_ethernet_and_mobile; \
+fw_setenv bootcmd_v1.4 'run turnon_iocontrolpower; run turnon_sysled; run reset_ethernet_and_mobile; \
run app_choose; \
echo run bootargs_${app_primary}; run bootargs_${app_primary}; \
run nandread_${app_primary}; \
@@ -162,8 +178,8 @@ fw_setenv uboot_env_ver $uboot_env_ver
# bondary for protect the uboot env
-fw_setenv uboot_env_1.3_bondary_1 'therer are 3 bondary'
-fw_setenv uboot_env_1.3_bondary_2 'therer are 3 bondary'
-fw_setenv uboot_env_1.3_bondary_3 'therer are 3 bondary'
+fw_setenv uboot_env_1.4_bondary_1 'therer are 3 bondary'
+fw_setenv uboot_env_1.4_bondary_2 'therer are 3 bondary'
+fw_setenv uboot_env_1.4_bondary_3 'therer are 3 bondary'
這是屬於 nandflash 版本的修改方式
emmc 的先不管
build image 來看看
mfgtool 燒錄
利用 uboot_env.sh
去修改 uboot env 的方式
需要一次的開機後才能套用
套用後重新拔插電
sysled 約三秒後才會亮
console 約 5 秒才有 output
...
NAND read: device 0 offset 0xe00000, size 0x100000
1048576 bytes read: OK
Saving Environment to NAND...
Erasing NAND...
Erasing at 0x3e0000 -- 100% complete.
Writing to NAND... OK
Kernel image @ 0x80800000 [ 0x000000 - 0x4ea270 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300a23c
Starting kernel ...
而且 uboot 一開始的 output 無法顯示
目前 M300 nandflash 的板子行為是
- 一上電約 2 秒 sysled 燈會亮
uboot 的 output 如下
U-Boot 2015.04imx_v2015.04_4.1.15_1.2.0_ga+gede7538 (Jun 05 2018 - 08:41:48)
CPU: Freescale i.MX6UL rev1.1 at 396 MHz
CPU: Temperature 25 C
Reset cause: POR
Board: MX6UL 14x14 EVK
I2C: ready
DRAM: 512 MiB
force_idle_bus: sda=0 scl=0 sda.gp=0x1d scl.gp=0x1c
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: Phy 1 not found
PHY reset timed out
FEC1
Error: FEC1 address not set.
Normal Boot
Hit any key to stop autoboot: 0
run primary app
run bootargs_a
bootargs for room a
NAND read: device 0 offset 0x400000, size 0x800000
8388608 bytes read: OK
NAND read: device 0 offset 0xe00000, size 0x100000
1048576 bytes read: OK
Saving Environment to NAND...
Erasing NAND...
Erasing at 0x3e0000 -- 100% complete.
Writing to NAND... OK
Kernel image @ 0x80800000 [ 0x000000 - 0x4ea270 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300a23c
Starting kernel ...
字眼小修
commit aca2036dad0bd5703a89b096d4d4365ba686f60b
Refs: [hotfix/v1.76], {origin/hotfix/v1.76}
Author: jeffrey <[email protected]>
Date: Mon Jan 7 17:24:45 2019 +0800
wording change: Status: 'WIFI' -> 'WiFi'
proscend/prosrc/www/app/locale-en.json | 2 +-
proscend/prosrc/www/app/locale-fr.json | 2 +-
proscend/prosrc/www/app/locale-zh-tw.json | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
之前在 status page 加的 Roaming
field
<tr>
<td>Roaming</td>
<td>
<span ng-show="vm.status.lte_cur_roaming == 1">Yes</span>
<span ng-show="vm.status.lte_cur_roaming != 1">No</span>
</td>
<td>--</td>
</tr>
只有加在有 GPS 的 ng-show 部分
趕緊把沒有 GPS 的機種的 status 也補上 Roaming
field
commit 9ca162f639f0d7c713b0f5d7c3c8599e1a1539cd
Refs: [hotfix/v1.76], {origin/hotfix/v1.76}
Author: jeffrey <[email protected]>
Date: Mon Jan 7 17:51:21 2019 +0800
add 'Roaming' field at 'Status' web page
proscend/prosrc/www/brand_advice/app/feature/status.html.src | 10 ++++++++++
proscend/prosrc/www/brand_ctcu/app/feature/status.html.src | 10 ++++++++++
proscend/prosrc/www/brand_cxr/app/feature/status.html.src | 10 ++++++++++
proscend/prosrc/www/brand_digicomm/app/feature/status.html.src | 10 ++++++++++
proscend/prosrc/www/brand_hytec/app/feature/status.html.src | 10 ++++++++++
proscend/prosrc/www/brand_nobrand/app/feature/status.html.src | 10 ++++++++++
proscend/prosrc/www/brand_planet/app/feature/status.html.src | 10 ++++++++++
7 files changed, 70 insertions(+)