20160704_jeffrey - silenceuncrio/diary GitHub Wiki
- 0955 - 下午 九十秒的題目 倖存者偏差
- 1035 - 默念一遍 夠撐 90 秒
- 1100 - engineering notebook
- 1140 - review M300
- 1530 - 月會 90 秒演講 順利
- 1535 - 重新安裝 M300 開發環境
- 1545 - window m300_develop 掛載 網路磁碟
- 1550 - Ubuntu svn command checkout
- 1620 - checkout 完畢
- 1650 - M300 build process 停在下面的畫面超過十五分鐘
- 1700 - 放棄 Ubuntu 16.04
- 1735 - 安裝 Ubuntu 14.04
- 1750 - 安裝 subversion
- 1850 - checkout build code
先把下午九十秒的題目告訴 evonne - 倖存者偏差 估一下上禮拜準備的內容夠不夠講 90 秒
倖存者偏差
survivorship bias
各位同仁大家好
我是軟體研發的 jeffrey
今天要跟各位分享的題目是 倖存者偏差
什麼是 倖存者偏差 呢
(15 秒)
一種認知偏差
- 其邏輯謬誤表現為過分關注於目前人或物「倖存了某些經歷」然而往往忽略了不在視界內或無法倖存這些事件的人或物。
- 用俗語「死人不會說話」來解釋其成因意指當取得資訊之管道,僅來自於倖存者時(因為無從由死者獲得來源),此資訊可能會存在與實際情況不同之偏差。
- 這種偏差可以導致各種錯誤結論。
我們先耐著性子看一下 wiki 的解釋
我已經把一些更術語的部分刪掉了
(整個念一次... 45秒)
口語化一點來說的話
倖存者就是經歷了甚麼後存活下來的人
我們用比較客觀的角度來看什麼是 - 大難不死 必有後福
假設有那麼一群人
他們經歷了某種大難而存活了下來 或者說是成功了
也許是 十分之一 或 百分之一
啊這個後福搞不好很有話題性
然後就會有人去訪問他們
你想喔
假設有人問你是怎麼成功的時候
你怎麼可能只是說你是大難不死
一定會說更多的嘛
會有多少是自己的想像誰會知道
訪問的人就幫你的臨場發揮作了結論
甚至還有出版社覺得有話題性想幫你出本書賺點錢
結果大家看到的就是你臨場發揮的 - 我的成功之路
這就叫做 錯誤結論(指回去投影片)
看一個 wiki 的例子
例子
「賈伯斯勇於挑戰體制而成功了,所以大家應該都去嘗試。」 上述例子中卻沒有提到一樣是挑戰體制卻失敗的人,僅僅只是以一名成功者說明,卻沒說明失敗者的下場。
失敗的人雖然沒甚麼話題性
不過所謂寶貴的經驗
往往來自於失敗的人
以上就是我的九十秒分享
謝謝各位
這些默念一遍夠撐 90 秒了
下午就印一張帶進去好了
寫 engineering notebook
review M300
jammy 的情報分享 - How-To use NAND boot on i.MX6UL EVK board 先看一下
這一篇寫的口氣非常的肯定... 得感謝 jammy 才行... 真的省了我很多的時間
目前就先針對這篇文章來推進 M300 的進度
月會的 90 秒演講順利結束
紀錄一下今天為了 M300 做了什麼
重新安裝 M300 的開發環境
- Ubuntu - 16.04 - [ubuntu-16.04-desktop-amd64.iso]
- VirtualBox - 版本 5.0.24 r108355
VirtualBox 設定
- 名稱 - m300_develop
- 存放裝置 - 80.00 GB - 固定大小存放裝置 - D:\m300\VirtualBox\m300_develop.vdi
- username - jeffrey
- password - proscend
Samba 設定 - /etc/samba/smb.conf
...
[m300_develop]
path = /home/jeffrey
writable = yes
guest account = root
force user = root
public = yes
force group = root
create mask = 0660
browseable = yes
重新啟動 samba - sudo service smbd restart
and sudo service nmbd restart
這邊千萬要記得 sudo service nmbd restart
網路上八成的資訊都沒有告訴你要 restart nmbs
... 可能是 samba 在某一版本之後的做法改變了
結果就導致自己以為是 config 沒寫好
或是跟 window 10 衝到什麼的... google 的到 solution...
window 將 m300_develop 掛載成網路磁碟
直接利用 TortoiseSVN checkout - http://192.168.0.221/svn/M300
錯誤訊息如下
看來比較適當的方式還是從 Ubuntu 利用 svn command 來作 checkout 會比較適合
在 /home/jeffrey
之下執行 svn checkout http://192.168.0.221/svn/M300
checkout 完畢
...
A M300/fsl-release-bsp/proenv.sh
A M300/fsl-release-bsp/README-IMXBSP
A M300/fsl-release-bsp/README
Checked out revision 146.
jeffrey@jeffrey-VirtualBox:~$
checkout 之後切換到目錄 fsl-release-bsp
jeffrey@jeffrey-VirtualBox:~$ cd M300/
jeffrey@jeffrey-VirtualBox:~/M300$ ls
fsl-release-bsp
jeffrey@jeffrey-VirtualBox:~/M300$ cd fsl-release-bsp/
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp$ ls
build_small proenv.sh README setup-environment
downloads proscend README-IMXBSP sources
ariel 已經寫好一些常用的 script
例如 proenv.sh
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp$ cat ./proenv.sh
MACHINE=imx6ulevk source setup-environment build_small
使用 source ./proenv.sh
來執行該 script
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp$ source ./proenv.sh
Welcome to Freescale Community BSP
The Yocto Project has extensive documentation about OE including a
reference manual which can be found at:
http://yoctoproject.org/documentation
For more information about OpenEmbedded see their website:
http://www.openembedded.org/
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
meta-toolchain
meta-toolchain-sdk
adt-installer
meta-ide-support
Your configuration files at build_small have not been touched.
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp/build_small$
執行該 script 後會自動 cd 到 build_small
目錄
該目錄下可以利用 source bimage.sh
來執行 bimage.sh
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp/build_small$ ls
bcont.sh bimage.sh bpro.sh conf
bfinal.sh bitbake.lock cache sstate-cache
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp/build_small$ cat ./bimage.sh
bitbake core-image-minimal
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp/build_small$ source bimage.sh WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
WARNING: Unable to get checksum for linux-imx SRC_URI entry defconfig: file could not be found
WARNING: Unable to get checksum for mfgtool-linux-imx SRC_URI entry defconfig: file could not be found
WARNING: Unable to get checksum for linux-imx-rt SRC_URI entry defconfig: file could not be found
Parsing recipes: 84% |################################## | ETA: 00:00:34
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
哎呀... 真不希望又要重裝一次開發環境
M300 的 build process 停在下面的畫面超過十五分鐘
Parsing recipes: 86% |################################## | ETA: 00:00:34
Ctrl + C
也停不下來... 強制將 Ubuntu 重開機
想起來還有一些 Yocto Project host packages 要安裝
Essential Yocto Project host packages are:
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat libsdl1.2-dev
i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup are:
$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html \
docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils \
libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
i.MX layers host packages for a Ubuntu 12.04 host setup only are:
$ sudo apt-get install uboot-mkimage
i.MX layers host packages for a Ubuntu 14.04 host setup only are:
$ sudo apt-get install u-boot-tools
耐著性子敲一次
再 build 一次
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp/build_small$ source bimage.sh WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
WARNING: Unable to get checksum for linux-imx SRC_URI entry defconfig: file could not be found
WARNING: Unable to get checksum for mfgtool-linux-imx SRC_URI entry defconfig: file could not be found
WARNING: Unable to get checksum for linux-imx-rt SRC_URI entry defconfig: file could not be found
NOTE: Error during finalise of /home/jeffrey/M300/fsl-release-bsp/sources/poky/meta/recipes-core/meta/buildtools-tarball.bb
ERROR: ExpansionError during parsing /home/jeffrey/M300/fsl-release-bsp/sources/poky/meta/recipes-core/meta/buildtools-tarball.bb: Failure expanding variable toolchain_create_sdk_version: ExpansionError: Failure expanding variable METADATA_REVISION, expression was ${@base_detect_revision(d)} which triggered exception OSError: [Errno 12] Cannot allocate memory
Summary: There were 4 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
jeffrey@jeffrey-VirtualBox:~/M300/fsl-release-bsp/build_small$
放棄 Ubuntu 16.04 吧
安裝 Ubuntu 14.04 - [ubuntu-14.04.4-desktop-i386.iso]
- username - jeffrey
- password - proscend
安裝 subversion - sudo apt update
... sudo apt install subversion
在 /home/jeffrey
之下執行 svn checkout http://192.168.0.221/svn/M300
Yocto Project host packages 就 follow ariel 文件上寫的就好了
sudo apt install build-essential libssl-dev libboost-all-dev libdb++-dev git openssl
checkout 還要等一下
先整理待會要用的 command
- cd to
fsl-release-bsp
source proenv.sh
source bimage.sh
checkout 二十分鐘前就好了
不過剛剛和 morris 去測新到的 MIC
明天待補感想
趕快 build code 阿
- 安裝 host packages -
sudo apt install build-essential libssl-dev libboost-all-dev libdb++-dev git openssl
- cd to
fsl-release-bsp
- pass -
source proenv.sh
- pass -
source bimage.sh
- 已經 pass 過下午的錯誤了... 明天再來看