20161209_jeffrey - silenceuncrio/diary GitHub Wiki

Index

  • 0840 - 昨天已修改了 dtb 讓 m300 能支援 nand flash
  • 0920 - ariel 希望我重新畫一下對於 2g nand flash 的 partition 規劃
  • 1050 - merge from "SIM_STATUS_T" type from "icos_shm.h"
  • 1110 - 利用 git 建一個 branch nandflash
  • 1115 - 修改 sources\meta-proscend\recipes-core\prosrc\prosrc_0.1.bb
  • 1315 - 找一下 `mtd-utils' 相對應的 bb file
  • 1410 - mtd-utils 相關的 log 可以在下面的 path 找到
  • 1530 - 當時缺少下述 tool 的問題目前已經知道怎麼回事了
  • 1550 - monkeyjj time

0840

昨天已修改了 dtb 讓 m300 能支援 nand flash

  • sources\meta-proscend\recipes-kernel\linux\linux-imx_3.14.52.bbappend
  • sources\meta-proscend\recipes-kernel\linux\files\test_nand_flash.patch

不過會讓 sdcard 開機異常

所以還不能 commit 到 svn

目前對於 nand flash 的工作進度要使用其他的方式來做紀錄

看一下 git 怎麼來做 branch

0920

ariel 希望我重新畫一下對於 2g nand flash 的 partition 規劃

待會十點可以討論

1050

Revision: 1513
Author: jeffrey
Date: 2016年12月9日 上午 10:50:54
Message:
merge from "SIM_STATUS_T" type from "icos_shm.h"
----
Modified : /fsl-release-bsp/proscend/prosrc/webcgi/icos_shm.c
Modified : /fsl-release-bsp/proscend/prosrc/www/app/locale-en.json

1110

利用 git 建一個 branch nandflash

參考 - https://github.com/silenceuncrio/diary/wiki/20160809_jeffrey

盤一下將 kernelrootfs 燒錄到 NAND 去所需要的 tool

月底前就先不考慮 dual image 的事情

先專心做好 nand flash firmware upgrade

1115

修改 sources\meta-proscend\recipes-core\prosrc\prosrc_0.1.bb

新增一個 runtime dependence - mtd-utils

...
# Runtime dependence
RDEPENDS_${PN} += "ppp ppp-oe iptables iperf dnsmasq pptp-linux bridge-utils dhcp-server dhcp-client openvpn openssl openssl-conf iproute2 iproute2-tc procps socat strongswan cryptodev-module mtd-utils"
...

1315

找一下 `mtd-utils' 相對應的 bb file

build@30e08a478d9e:/var/m300/fsl-release-bsp/sources$ find . -name "mtd*.bb"
./poky/meta/recipes-graphics/wayland/mtdev_1.1.5.bb
./poky/meta/recipes-devtools/mtd/mtd-utils_git.bb
./poky/documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb

看起來像是 ./poky/meta/recipes-devtools/mtd/mtd-utils_git.bb

SUMMARY = "Tools for managing memory technology devices"
HOMEPAGE = "http://www.linux-mtd.infradead.org/"
SECTION = "base"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
                    file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c"

DEPENDS = "zlib lzo e2fsprogs util-linux"

PV = "1.5.1+git${SRCPV}"

SRCREV = "9f107132a6a073cce37434ca9cda6917dd8d866b"
SRC_URI = "git://git.infradead.org/mtd-utils.git \
           file://add-exclusion-to-mkfs-jffs2-git-2.patch \
           file://fix-armv7-neon-alignment.patch \
           file://0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch \
"

S = "${WORKDIR}/git/"

EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"

do_install () {
	oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
}

PACKAGES =+ "mtd-utils-jffs2 mtd-utils-ubifs mtd-utils-misc"

FILES_mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool"
FILES_mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*"
FILES_mtd-utils-misc = "${sbindir}/nftl* ${sbindir}/ftl* ${sbindir}/rfd* ${sbindir}/doc* ${sbindir}/serve_image ${sbindir}/recv_image"

BBCLASSEXTEND = "native"

# git/.compr.c.dep:46: warning: NUL character seen; rest of line ignored
# git/.compr.c.dep:47: *** missing separator.  Stop.
PARALLEL_MAKE = ""

1410

mtd-utils 相關的 log 可以在下面的 path 找到

build_small\tmp\work\cortexa7hf-vfp-neon-poky-linux-gnueabi\mtd-utils\1.5.1+gitAUTOINC+9f107132a6-r0\temp

觀察一下 log.do_install

看看到底 install 了啥

1530

參考 - https://github.com/silenceuncrio/diary/wiki/20160809_jeffrey

當時缺少下述 tool 的問題目前已經知道怎麼回事了

  • ubiformat
  • ubiattach
  • ubimkvol

一樣是修改 sources\meta-proscend\recipes-core\prosrc\prosrc_0.1.bb

要新增兩個 runtime dependence - mtd-utilsmtd-utils-ubifs

...
# Runtime dependence
RDEPENDS_${PN} += "ppp ppp-oe iptables iperf dnsmasq pptp-linux bridge-utils dhcp-server dhcp-client openvpn openssl openssl-conf iproute2 iproute2-tc procps socat strongswan cryptodev-module mtd-utils mtd-utils-ubifs"
...

這樣一來我們將 kernelrootfs 燒錄到 NAND 去所需要的 tool 就都備齊了

1550

monkeyjj time