20161212_jeffrey - silenceuncrio/diary GitHub Wiki
Index
- 0915 - engineering notebook
- 0955 - 上禮拜為了 nand flash 做的應該先 commit 到我 git 的 branch
nandflash
去 - 1020 - 利用
git log -2 -p
來看最後兩次的 git log - 1120 - 為了下述的改變來製作 patch
- 1205 - 上 commit 到 brach nandflash
- 1310 - 繼續 patch 吧
- 1415 - 盤一下我們之後需要將
kernel
和rootfs
燒錄到 NAND 去所需要的 tool - 1430 - monkeyjj time
- 1715 - 業務面希望在 12/23 下禮拜五寄 sample 給 digicomm
- 1825 - 明天來把
imx-kobs
這個 recipe 也 build 進來目前的 nandflash branch
0915
engineering notebook
0955
上禮拜為了 nand flash 做的應該先 commit 到我 git 的 branch nandflash
去
盤一下做了哪一些
- 套用 How-To use NAND boot on i.MX6UL EVK board 的
mx6ul_14x14_evk.h
- 目前的 dtb 整合 nand flash
- 備齊將 kernel 和 rootfs 燒錄到 NAND 去所需要的 tool
1020
利用 git log -2 -p
來看最後兩次的 git log
➜ fsl-release-bsp git:(nandflash) git log -2 -p
commit 22512bf5cec5c88b702030160b31f468385b0ab8
Author: Jeffrey Lee <[email protected]>
Date: Fri Dec 9 15:36:02 2016 +0800
prepare the tools for firmware upgrade
diff --git a/fsl-release-bsp/sources/meta-proscend/recipes-core/prosrc/p
rosrc_0.1.bb b/fsl-release-bsp/sources/meta-proscend/recipes-core/prosrc
/prosrc_0.1.bb
index 71203d6..1066dd2 100644
--- a/fsl-release-bsp/sources/meta-proscend/recipes-core/prosrc/prosrc_0
.1.bb
+++ b/fsl-release-bsp/sources/meta-proscend/recipes-core/prosrc/prosrc_0
.1.bb
@@ -16,7 +16,7 @@ INSANE_SKIP_${PN} += "already-stripped"
INSANE_SKIP_${PN} += "installed-vs-shipped "
# Runtime dependence
-RDEPENDS_${PN} += "ppp ppp-oe iptables iperf dnsmasq pptp-linux bridge-
utils dhcp-server dhcp-client openvpn openssl openssl-conf iproute2 ipro
ute2-tc procps socat strongswan cryptodev-module"
+RDEPENDS_${PN} += "ppp ppp-oe iptables iperf dnsmasq pptp-linux bridge-
utils dhcp-server dhcp-client openvpn openssl openssl-conf iproute2 ipro
ute2-tc procps socat strongswan cryptodev-module mtd-utils mtd-utils-ubi
fs"
# Build dependence
DEPENDS = "json-c rp-pppoe apr libxml2 libpcap sqlite3 xz"
1120
為了下述的改變來製作 patch
- 套用 How-To use NAND boot on i.MX6UL EVK board 的
mx6ul_14x14_evk.h
利用 bitbake u-boot-imx -c devshell
找到 U-Boot temporary source code
build@30e08a478d9e:/var/m300/fsl-release-bsp/build_small$ bitbake u-boot-imx -c devshell
- 建立新的 patch
quilt new apply_mx6ul_14x14_evk_h.patch
- notify Quilt about the files you plan to edit
quilt add include/configs/mx6ul_14x14_evk.h
- 套用 How-To use NAND boot on i.MX6UL EVK board 的
mx6ul_14x14_evk.h
- generate the final patch that contains all your modifications
quilt refresh
- copy the patch file and edit your recipe
- copy the patch file from - fsl-release-bsp\build_small\tmp\work\imx6ulevk-poky-linux-gnueabi\u-boot-imx\2015.04-r0\git\patches\apply_mx6ul_14x14_evk_h.patch
- copy the patch file to - fsl-release-bsp\sources\meta-proscend\recipes-bsp\u-boot\files\apply_mx6ul_14x14_evk_h.patch
- edit your recipe - fsl-release-bsp\sources\meta-proscend\recipes-bsp\u-boot\u-boot-imx_2015.04.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = " \
file://000_enable_ENET_CLK_when_booting.patch \
file://add_mx6ul_14x14_evk_nand_config.patch \
file://set_do_default_low.patch \
file://modify_bootup_temperature_limit.patch \
file://apply_mx6ul_14x14_evk_h.patch \
"
1205
上 commit 到 brach nandflash
commit 527c37f2d5b33f4da81043f68384688559d8ef25
Author: Jeffrey Lee <[email protected]>
Date: Mon Dec 12 11:57:53 2016 +0800
apply new 'mx6ul_14x14_evk.h' for nand flash
(END)
1310
繼續 patch 吧
參考 - https://github.com/silenceuncrio/diary/wiki/20161208_jeffrey
- 利用
bitbake linux-imx -c devshell
找到 linux kernel temporary source codefsl-release-bsp/build_small/tmp/work-shared/imx6ulevk/kernel-source
- 建立新的 patch
quilt new add_nandflash.patch
- notify Quilt about the files you plan to edit
quilt add arch/arm/boot/dts/imx6ul-14x14-evk.dts
- 套用 How-To use NAND boot on i.MX6UL EVK board 的
imx6ul-14x14-evk-gpmi-weim.dts
- generate the final patch that contains all your modifications
quilt refresh
- copy the patch file and edit your recipe
- copy the patch file from - fsl-release-bsp\build_small\tmp\work-shared\imx6ulevk\kernel-source\patches\add_nandflash.patch
- copy the patch file to - fsl-release-bsp\sources\meta-proscend\recipes-kernel\linux\files\add_nandflash.patch
- edit your recipe - fsl-release-bsp\sources\meta-proscend\recipes-kernel\linux\linux-imx_3.14.52.bbappend
linux-imx_3.14.52.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = " \
file://000_modify_eth1_phy_addr.patch \
file://001_add_uart3_to_uart5.patch \
file://002_add_RS485_device.patch \
file://003_remove_redundant_blocks_add_m300_blocks.patch \
file://test_add_SD.patch \
file://004_gpio_add_SION.patch \
file://100_add_RS485_support.patch \
file://101_remove_regulator_and_OPP_warning_message.patch \
file://102_add_usbserial_ppp_support.patch \
file://103_fix_micrel_mask_and_set_default_LEDmode.patch \
file://104_modify_cts_device_tree.patch \
file://105_fix_rs485_tx.patch \
file://106_add_led.patch \
file://107_make_system_led_blink_on_bootup.patch \
file://108_add_gpio_digital_input.patch \
file://109_make_do_as_led.patch \
file://110_ra2_io_revise.patch \
file://111_add_multiple_lan.patch \
file://112_set_do_default_low.patch \
file://113_modify_working_temperature.patch \
file://add_nandflash.patch \
"
do_copy_defconfig_append () {
cp ${BSPDIR}/sources/meta-proscend/recipes-kernel/linux/m300_defconfig ${B}/.config
cp ${BSPDIR}/sources/meta-proscend/recipes-kernel/linux/m300_defconfig ${B}/../defconfig
}
上 commit 到 brach nandflash
commit 32e356fc122d1deac19de0f065ea52fcb3bb9b99
Author: Jeffrey Lee <[email protected]>
Date: Mon Dec 12 13:50:58 2016 +0800
modify "imx6ul-14x14-evk-gpmi-weim.dts" for nand flash
(END)
1415
確認 fsl-release-bsp\sources\meta-proscend\conf\distro\proscend-m300.conf
包含 UBOOT_CONFIG = "nand"
build image...
試著用 mfgtool 燒錄到 nandflash 吧... ok
從 nandflash 開機... ok
盤一下我們之後需要將 kernel
和 rootfs
燒錄到 NAND 去所需要的 tool
- flash_erase
- nandwrite
- ubiformat
- ubiattach
- ubimkvol
- mkdir
- mount
- umount
- tar
通通都有了
1430
monkeyjj time
1715
nand flash upgrade 要加緊腳步了
業務面希望在 12/23 下禮拜五寄 sample 給 digicomm
後續的新版本可以 mail 給客戶讓他們自行做 firmware upgrade 的動作
之前為了 web 開發方便我可以直接把開發環境上的 folder 直接掛載到 m300 上某個 folder
mount -t nfs 192.168.1.200:/home/jeffrey/M300/fsl-release-bsp/proscend/prosrc prosrc
燒錄 image 我也可以這麼玩
mount -t nfs 192.168.1.200:/home/jeffrey/M300/fsl-release-bsp/build_small/images images
1825
明天來把 imx-kobs
這個 recipe 也 build 進來目前的 nandflash branch
為的就是燒錄 u-boot