ユーザ用ツール

サイト用ツール


playground:mae4xx:bootloader_operations:start

u-boot での操作

  • Console: USB micro-B に接続 (FTDI)


Firmware Update

Firmware File Download

(MAE) # tftpboot mae4xx_xenial_v3_0_0testing.img
Using eth1 device
TFTP from server 192.168.253.1; our IP address is 192.168.253.221
Filename 'mae4xx_xenial_v3_0_0testing.img'.
Load address: 0x48000000
Loading: #################################################################
         #################################################################
         #################################################################
〜〜〜 中略 〜〜〜
         #################################################################
         #################################################################
         #################################################################
         #########################################
done
Bytes transferred = 76933210 (495e85a hex)


Firmware contents 確認

(MAE) # zipextract $fileaddr $filesize
Archive: 
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
 3659232  Stored  3659232   0% 2017-09-22 09:19 ba0d7c9f  kernel.img
  604160  Stored   604160   0% 2017-09-22 09:19 f40c3c5e  kmod.img
 2834804  Stored  2834804   0% 2017-09-22 09:20 4540c307  initramfs.img
69804032  Stored 69804032   0% 2017-09-22 09:20 f5da6a6c  rootfs.img
   27536  Defl:N     6898  75% 2017-09-22 09:19 ccedb3ff  dtb.img
  100137  Defl:N    23184  77% 2017-09-22 09:19 ed316397  .config
--------          -------  ---                            -------
77029901         76932310   1%                            6 files


firmup

(MAE) # firmup $fileaddr $filesize
firmup: zip addr: 48000000, zip len: 76933210 ==> extract buffer addr: 4c95e85d
* search kernel.img...
file 'kernel.img' compression type is COMP_NONE, stored at addr: 48000044, size: 3659232 (0x0037d5e0)
* updating kernel...

device nand0 <nand0>, # parts = 1
 #: name                size            offset          mask_flags
 0: nand0.ubi           0x20000000      0x00000000      0

active partition: nand0,0 - (nand0.ubi) 0x20000000 @ 0x00000000

defaults:
mtdids  : nand0=nand0
mtdparts: mtdparts=nand0:512M(nand0.ubi)
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000020000000 : "mtd=0"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size:   262144 bytes (256 KiB)
UBI: logical eraseblock size:    253952 bytes
UBI: smallest flash I/O unit:    4096
UBI: VID header offset:          4096 (aligned 4096)
UBI: data offset:                8192
UBI: fixable bit-flip detected at PEB 171
UBI: attached mtd2 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            512 MiB
UBI: number of good PEBs:        2048
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     12
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 2048
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 332/9
3659232 bytes written to volume kernel.0
* search dtb.img...
file 'dtb.img' total length extracted: 27536 (0x00006b90)
* updating dtb...
27536 bytes written to volume dtb.0
* search initramfs.img...
file 'initramfs.img' compression type is COMP_NONE, stored at addr: 48410ead, size: 2834804 (0x002b4174)
* updating initramfs...
2834804 bytes written to volume initramfs.0
* search kmod.img...
file 'kmod.img' compression type is COMP_NONE, stored at addr: 4837d666, size: 604160 (0x00093800)
* updating kmod...
604160 bytes written to volume kmod.0
* search rootfs.img...
file 'rootfs.img' compression type is COMP_NONE, stored at addr: 486c5065, size: 69804032 (0x04292000)
* updating rootfs...
69804032 bytes written to volume rootfs.0
* search opt.img...
zip_extract: file 'opt.img' not found in zip archive.
  -> not found.
* search u-boot.bin.img...
zip_extract: file 'u-boot.bin.img' not found in zip archive.
  -> not found.
SF: Detected S25FL256S with page size 64 KiB, total 32 MiB
* set latest firmware area: 0
(MAE) # 


Firmup/Boot history

Firmup history

(MAE) # firminfo -h
firminfo - get/set firmup history

Usage:
firminfo firminfo [[OPTIONS]] <arg>
-g <nums>  get firmup history
-s <area>  set firmup history
-q         be quiet
(MAE) # firminfo -g 10
SF: Detected S25FL256S with page size 64 KiB, total 32 MiB
=== firmup history ===
 - entry 0:
   timestamp: 1507608945 (2017/10/10 13:15:45)
   area: 0x10
 - entry 1:
   timestamp: 1507607812 (2017/10/10 12:56:52)
   area: 0x11
 - entry 2:
   timestamp: 1506917910 (2017/10/02 13:18:30)
   area: 0x10
 - entry 3:
   timestamp: 1506904673 (2017/10/02 09:37:53)
   area: 0x11
 - entry 4:
   timestamp: 1506829539 (2017/10/01 12:45:39)
   area: 0x10
 - entry 5:
   timestamp: 1506667118 (2017/09/29 15:38:38)
   area: 0x11
 - entry 6:
   timestamp: 1506653802 (2017/09/29 11:56:42)
   area: 0x10
 - entry 7:
   timestamp: 1506586740 (2017/09/28 17:19:00)
   area: 0x11
 - entry 8:
   timestamp: 1506586164 (2017/09/28 17:09:24)
   area: 0x10
 - entry 9:
   timestamp: 1506580286 (2017/09/28 15:31:26)
   area: 0x11
(MAE) # 


Boot history

(MAE) # bootinfo -h
bootinfo - get/set boot history

Usage:
bootinfo bootinfo [[OPTIONS]] <arg>
-g <nums>   get boot history
-s <area>   set boot history
-q          be quiet
(MAE) # bootinfo -g 10
=== boot history ===
 - entry 0:
   timestamp: 1507767905 (2017/10/12 09:25:05)
   area: 0x10
   stat: 0x3f (Boot succeeded)
 - entry 1:
   timestamp: 1507609036 (2017/10/10 13:17:16)
   area: 0x10
   stat: 0x3f (Boot succeeded)
 - entry 2:
   timestamp: 1507607852 (2017/10/10 12:57:32)
   area: 0x11
   stat: 0x3f (Boot succeeded)
 - entry 3:
   timestamp: 1507602067 (2017/10/10 11:21:07)
   area: 0x10
   stat: 0x3f (Boot succeeded)
 - entry 4:
   timestamp: 1506917992 (2017/10/02 13:19:52)
   area: 0x10
   stat: 0x3f (Boot succeeded)
 - entry 5:
   timestamp: 1506904808 (2017/10/02 09:40:08)
   area: 0x11
   stat: 0x3f (Boot succeeded)
 - entry 6:
   timestamp: 1506901562 (2017/10/02 08:46:02)
   area: 0x10
   stat: 0x3f (Boot succeeded)
 - entry 7:
   timestamp: 1506830076 (2017/10/01 12:54:36)
   area: 0x10
   stat: 0x3f (Boot succeeded)
 - entry 8:
   timestamp: 1506829561 (2017/10/01 12:46:01)
   area: 0x10
   stat: 0x3f (Boot succeeded)
 - entry 9:
   timestamp: 1506667494 (2017/09/29 15:44:54)
   area: 0x11
   stat: 0x3f (Boot succeeded)
playground/mae4xx/bootloader_operations/start.txt · 最終更新: 2017/10/17 15:18 by admin