2019年6月6日 星期四

log

[0000.126] [TegraBoot] (version 00.00.2018.01-l4t-33e7fa82)
[0000.131] Processing in cold boot mode Bootloader 2
[0000.135] A02 Bootrom Patch rev = 1023
[0000.139] Power-up reason: pmc por
[0000.142] No Battery Present
[0000.145] pmic max77620 reset reason
[0000.148] pmic max77620 NVERC : 0x40
[0000.152] RamCode = 0
[0000.154] Platform has DDR4 type RAM
[0000.157] max77620 disabling SD1 Remote Sense
[0000.161] Setting DDR voltage to 1125mv
[0000.165] Serial Number of Pmic Max77663: 0x133de9
[0000.173] Entering ramdump check
[0000.176] Get RamDumpCarveOut = 0x0
[0000.179] RamDumpCarveOut=0x0,  RamDumperFlag=0xe59ff3f8
[0000.184] Last reboot was clean, booting normally!
[0000.189] Sdram initialization is successful
[0000.193] SecureOs Carveout Base=0x00000000ff800000 Size=0x00800000
[0000.199] Lp0 Carveout Base=0x00000000ff780000 Size=0x00001000
[0000.205] BpmpFw Carveout Base=0x00000000ff700000 Size=0x00080000
[0000.211] GSC1 Carveout Base=0x00000000ff600000 Size=0x00100000
[0000.217] GSC2 Carveout Base=0x00000000ff500000 Size=0x00100000
[0000.223] GSC4 Carveout Base=0x00000000ff400000 Size=0x00100000
[0000.228] GSC5 Carveout Base=0x00000000ff300000 Size=0x00100000
[0000.234] GSC3 Carveout Base=0x000000017f300000 Size=0x00d00000
[0000.250] RamDump Carveout Base=0x00000000ff280000 Size=0x00080000
[0000.256] Platform-DebugCarveout: 0
[0000.260] Nck Carveout Base=0x00000000ff080000 Size=0x00200000
[0000.266] Non secure mode, and RB not enabled.
[0000.272] Invalid GPT Partition
[0000.287] Using BFS PT to query partitions
[0000.291] failed to load NvTbootTbootCpu from (2:0)
[0000.296] re-load NvTbootTbootCpu from (4:0)
[0000.487] Csd NumOfBlocks=249737216
[0000.497] Invalid GPT Partition
[0000.687] Using BFS PT to query partitions
[0097.011] Bootloader is not valid
[0097.018] Invalid GPT Partition

2018年6月29日 星期五

STM32F4discovery + Jlink + OpenOCD 0.9.0

1. 安裝openocd
$ sudo apt-get install openocd
2. 查看ST-LINK的vid和pid
pi@raspberrypi:~ $ lsusb
Bus 001 Device 007: ID 1366:0105 SEGGER
3. 修改stm32f4discovery.cfg,將stlink-v2-1.cfg 改為 jlink.cfg 將transport select hla_swd 改為 transport select swd
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp

source [find interface/jlink.cfg]

transport select swd

source [find target/stm32f4x.cfg]

reset_config srst_only
4. 啟用openocd
$ sudo openocd -f board/stm32f4discovery.cfg
5. 參考來源 https://blog.csdn.net/u013944565/article/details/78569746 https://www.linuxidc.com/Linux/2015-08/121321.htm https://stackoverflow.com/questions/31638347/stm32f0-st-link-v2-openocd-0-9-0-open-failed

STM32F4discovery + ST-link v2.1 + OpenOCD 0.9.0

1. 安裝openocd
$ sudo apt-get install openocd
2. 查看ST-LINK的vid和pid
pi@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 0483:374b STMicroelectronics ST-LINK/V2.1 (Nucleo-F103RB)
3. 修改stm32f4discovery.cfg,將stlink-v2.cfg 改為 stlink-v2-1.cfg
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp

source [find interface/stlink-v2-1.cfg]

transport select hla_swd

source [find target/stm32f4x.cfg]

reset_config srst_only
4. 啟用openocd
$ sudo openocd -f board/stm32f4discovery.cfg
5. 參考來源 https://blog.csdn.net/u013944565/article/details/78569746 https://www.linuxidc.com/Linux/2015-08/121321.htm https://stackoverflow.com/questions/31638347/stm32f0-st-link-v2-openocd-0-9-0-open-failed

2018年6月24日 星期日

SDK編譯

1. 安裝toolchain
$ sudo chmod 777 /opt

$ make install-glibc-toolchain
2. arm-none-linux-gnueabi-gcc -v 出現: No such file or directory
$ sudo apt-get install ia32-libs
3. make menuconfig 出現: *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. ***
$ sudo apt-get install libncurses5-dev
4. make menuconfig 出現: /bin/bash: dialog: command not found
$ sudo apt-get install dialog
5. configure: error: GNU M4 1.4 is required
$ sudo apt-get install m4
6. ./bootstrap: 18: ./bootstrap: aclocal: not found
$ sudo apt-get install automake
7. ./bootstrap: 20: ./bootstrap: libtoolize: not found
$ sudo apt-get install libtool
8. *** [flex.info] Error 1
$ sudo apt-get install flex
9. WARNING: `makeinfo' is missing on your system. You should only need it if you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy `make' (AIX, DU, IRIX). You might want to install the `Texinfo' package or the `GNU make' package. Grab either from any GNU archive site.
$ sudo apt-get install texinfo
10. ../../ylwrap: line 111: yacc: command not found
$ sudo apt-get install bison
11. /bin/sh: 1: lzop: not found
$ sudo apt-get install lzop
12. "mkimage" command not found - U-Boot images will not be built
$ sudo apt-get install uboot-mkimage

2018年6月1日 星期五

義法

推薦行程:


Day 1 國內-巴黎,機票選擇當天抵達

Day 2 巴黎藝術時尚一日:羅浮宮-聖母院-香榭麗舍大街-凱旋門

Day 3 巴黎-米蘭:艾菲爾鐵塔-塞納河遊船-老佛爺購物,晚上乘坐夜火車前往米蘭

Day 4 米蘭-威尼斯:米蘭大教堂-埃曼紐爾二世拱廊-聖馬可廣場-嘆息橋

Day 5 威尼斯-佛羅倫斯,威尼斯外島彩色島-聖馬可大教堂-貢多拉,傍晚出發前往佛羅倫斯

Day 6 佛羅倫斯藝術一日:佛羅倫斯美術學院-聖母百花大教堂-烏菲茲美術館

Day 7 佛羅倫斯-羅馬:皮蒂宮-特萊維噴泉-西班牙廣場

Day 8 羅馬:遊覽梵蒂岡博物館、聖彼得大教堂、聖天使堡….

Day 9 羅馬尋古一日:鬥獸場-真理之口-威尼斯廣場

Day 10 離開羅馬

Day 11 抵達國內


> 巴黎
建議遊玩天數3天


【巴黎市區】
艾菲爾鐵塔、凱旋門、羅浮宮、巴黎聖母院是巴黎著名四大地標建築,如果在巴黎只有一天時間,那就參觀這四個景點吧。

【巴黎近郊】
凡爾賽宮,楓丹白露宮、迪士尼、山谷購物村、吉維尼小鎮,均是可以從巴黎一日往返的近郊遊玩熱門地。

【聖米歇爾山】
> 米蘭
【米蘭市區】
【聖西羅球場】

> 威尼斯
【主島】
【外島】

> 佛羅倫斯
建議遊玩天數2天


【聖母百花大教堂】

> 羅馬
建議遊玩天數2天

【羅馬市區】
鬥獸場、許願池、萬神殿、西班牙台階、圖拉真柱…..

【梵蒂岡】
聖彼得大教堂

https://kknews.cc/travel/k844g28.html
https://kknews.cc/travel/59nb56k.html
https://kknews.cc/zh-tw/travel/j8z4q6q.html
http://www.musictravel.tw/?action=travel&id=53#

2018年5月23日 星期三

Raspberry Pi - 格式化隨身碟

格式化U盘的方法:
首先执行sudo fdisk -l查看你的u盘的序号,通常是/dev/sdb之类的,U盘分区通常是/dev/sdb1

对于u盘我们一般格式化为FAT格式或者FAT32格式,不过在linux下这些会都显示为FAT格式。我们只需要执行命令:
sudo mkfs.vfat -F 32 /dev/sdb1即可将u盘格式化为fat32格式。
假如你要把指定磁盘格式化为NTFS格式那么你需要
sudo apt-get install ntfsprogs
来安装ntfs读写工具,然后执行sudo mkfs.ntfs /dev/sda1,此过程会很慢。对于要格式化为linux ext格式的分区就更容易了:
sudo mkfs.ext4 /dev/sda1 # 格式化为ext4分区 
sudo mkfs.ext3 /dev/sda1 # 格式化为ext3分区 
sudo mkfs.ext2 /dev/sda1 #格式化为ext2分区
參考來源 https://www.jianshu.com/p/0ea8e7b7d64d

2018年5月18日 星期五

Debug STM32F4 with Jlink driver

1. 下載Windows版本 J-Link Software and Documentation Pack
https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack

2. 打開J-Link Commander,輸入命令與STM32F4連線
J-Link> usb

J-Link> device Cortex-M4

J-Link> speed 2000

J-Link> power on

J-Link> connect
3. 其它命令 3.1 mem32: Read 32-bit items.
J-Link> mem32 <Addr>, <NumItems>
3.2 w4: Write 32-bit items.
J-Link> w4 <Addr>, <Data>
3.3 loadbin: Load *.bin file into target memory.
J-Link> loadbin <filename>, <addr>
3.4 savebin: Saves target memory into binary file.
J-Link> savebin <filename>, <addr>, <NumBytes> <hex>
3.5 verifybin Veries if the specified binary is already in the target memory at the specified address.
J-Link> verifybin <filename>, <addr>

2018年5月16日 星期三

工程名詞

1. 打除水泥
電輾仔


2. 鋼筋工程
斤仔車
田嬰

3. 水電工程


4. 板模組立
巴達
砰模
濟模 
腳路


5. 灌漿: 
恐固力
南仔控
碰鋪車
空不雷沙
速拉不
哈利


http://bbs.civilgroup.org/viewtopic.php?t=9227