Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The goal of the document is to illustrate how to build SP7021 Linux image for booting from SPI-NOR flash on SP7021 boards. SP7021 build (make) system supports two types of root file-system for SPI-NOR flash. One is initramfs file-system and other is jffs2 file-system. If you choose initramfs file-system, build system merges root file-system into Linux kernel. The whole kernel (kernel + root file-system) is loaded into and operates in DRAM directly. The advantage of initramfs file-system is that accessing speed is very fast. But since it is stored in DRAM, all changes disappear when power off. If you choose jffs2 file-system, root file-system is compressed and is stored in rootfs partition of SPI-NOR flash. The drawback of jffs2 file-system is that accessing speed is slow. But all changes are kept in SPI-NOR flash when power off.

...

Source files of SP7021 can be downloaded from GitHub or Yocto server of SP7021. Refer to https://github.com/sunplus-plus1/SP7021 or 2. HOW TO GET SOURCE FILE AND PACKAGE. Refer to report of ll command for the contents of top folder of source of SP7021:

...

Please press x and enter to continue the processes. After make all completes, you will see screenshot screen like:

...

Two binary files spi_all.bin and ISPBOOOT.BIN are built and copied to folder out. You Refer to screenshot of output of ll out command:

...

“ISP all: Done” means in-system program processes are done successfully.

Note that in-system-program (ISP) of SP7021 does not support USB hub. The USB flash drive for ISP should be plugged into USB socket of SP7021 board directly.

If you are using Banana Pi BPI-F2P boards, please plug you USB flash drive to the micro USB socket for ISP. It is the only USB socket that is connected to SP7021 directly.

8. Set DIP-SW to “boot from SPI-NOR flash”

...

Code Block
+++iBoot v1.02 Jan 10 2019 11:20:28
-- B --
[d] iboot.c :96
[d] iboot.c :107
[d] iboot.c :877
hw_cfg=0x00017BFF
bootmode=0x00000017
[d] iboot.c :813
[d] iboot.c :316

[[usb_isp]]
usb0
[d] bootmain.c :116
dev=1 pin=0
find file
[d] fat_boot.c :181
[d] fat_boot.c :189
[d] ehci_usb.c :229
[d] ehci_usb.c :239

Reset EHCI
.........................
No usb device on port 0
[d] fat_boot.c :213
[d] iboot.c :285
not found
usb1
[d] bootmain.c :116
dev=1 pin=0
find file
[d] fat_boot.c :181
[d] fat_boot.c :189
[d] ehci_usb.c :229
[d] ehci_usb.c :239

Reset EHCI

usb1 connected(0ms)
enum u-disk
get dev desc (64)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 64
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
vid=85 64 pid=10 00 rev=11 00
set addr
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
get dev desc (18)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 18
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
get conf desc (9)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 9
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
get conf desc (9)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 32
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
set config 1
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
Test Unit Ready (0)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (1)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (2)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (3)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (4)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :218
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :230
part@0x00000800
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :259
[d] fat_boot.c :295
[d] fat_boot.c :314
[d] fat_boot.c :318
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :337
load file
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
mg=0x54554258
len=0x00006418
chk=0x0000B9B3
flg=0x00000001
[d] bootmain.c :338
OTP pub-key:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Verify signature...(AB) FAIL
signature:
B1 87 E3 11 8D E1 2D FD D8 E3 82 3B 92 90 4B E5
08 CF E1 80 EC 00 3F F3 86 25 75 ED 7A 73 7B 11
69 F8 E6 9F 1A CB 2A 6D E4 BE DD 9E C8 1D D4 8D
7F 17 3D EC 0F 99 97 E9 B9 74 AD D0 58 FA 59 06
tV=88
OTP Secure Boot is OFF
boot!
..336610
+++xBoot Apr 20 2021 17:12:54
[d] xboot.c :162
-- B --
B: b_sysclk=202M abio_ctrl=(16bit,DDR)
[d] xboot.c :228
[otp_rw.c]otp_rw in
otp_rw.c]otp_rw out
mode=0x00000017
[d] xboot.c :1659
[d] xboot.c :1015

{{usb_isp}}
finding file
[d] fat/fat_boot.c :284
[d] fat/fat_boot.c :294
[d] usb/ehci_usb.c :227
[d] usb/ehci_usb.c :237

Reset EHCI

usb1 connected(2ms)
enum u-disk
get dev desc (64)
vid=85 64 pid=10 00 rev=11 00
set addr
get dev desc (18)
get conf desc (18)
get conf desc (32)
set config 1
Test Unit Ready (0)
Test Unit Ready (1)
Test Unit Ready (2)
Test Unit Ready (3)
Test Unit Ready (4)
[d] fat/fat_boot.c :343
[d] fat/fat_boot.c :355
part@0x00000800
[d] fat/fat_boot.c :397
FAT32 file system
[d] fat/fat_boot.c :473
[d] fat/fat_boot.c :505
[d] fat/fat_boot.c :509
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[?++iBoot v1.02 Jan 10 2019 11:20:28
-- B --
[d] iboot.c :96
[d] iboot.c :107
[d] iboot.c :877
hw_cfg=0x00017BFF
bootmode=0x00000017
[d] iboot.c :813
[d] iboot.c :316

[[usb_isp]]
usb0
[d] bootmain.c :116
dev=1 pin=0
find file
[d] fat_boot.c :181
[d] fat_boot.c :189
[d] ehci_usb.c :229
[d] ehci_usb.c :239

Reset EHCI
.........................
No usb device on port 0
[d] fat_boot.c :213
[d] iboot.c :285
not found
usb1
[d] bootmain.c :116
dev=1 pin=0
find file
[d] fat_boot.c :181
[d] fat_boot.c :189
[d] ehci_usb.c :229
[d] ehci_usb.c :239

Reset EHCI

usb1 connected(0ms)
enum u-disk
get dev desc (64)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 64
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
vid=85 64 pid=10 00 rev=11 00
set addr
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
get dev desc (18)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 18
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
get conf desc (9)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 9
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
get conf desc (9)
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 32
[d] ehci_usb.c :653
[d] ehci_usb.c :701
Out 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
set config 1
[d] ehci_usb.c :727
Setup 8
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 0
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :762
Test Unit Ready (0)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (1)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (2)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (3)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
Test Unit Ready (4)
[d] ehci_usb.c :459
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :218
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :230
part@0x00000800
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :259
[d] fat_boot.c :295
[d] fat_boot.c :314
[d] fat_boot.c :318
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :321
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] fat_boot.c :337
load file
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 4096
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
[d] ehci_usb.c :534
[d] ehci_usb.c :775
Out 31
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 512
[d] ehci_usb.c :653
[d] ehci_usb.c :701
In 13
[d] ehci_usb.c :653
[d] ehci_usb.c :701
[d] ehci_usb.c :842
mg=0x54554258
len=0x00006418
chk=0x0000B9B3
flg=0x00000001
[d] bootmain.c :338
OTP pub-key:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Verify signature...(AB) FAIL
signature:
B1 87 E3 11 8D E1 2D FD D8 E3 82 3B 92 90 4B E5
08 CF E1 80 EC 00 3F F3 86 25 75 ED 7A 73 7B 11
69 F8 E6 9F 1A CB 2A 6D E4 BE DD 9E C8 1D D4 8D
7F 17 3D EC 0F 99 97 E9 B9 74 AD D0 58 FA 59 06
tV=88
OTP Secure Boot is OFF
boot!
..336610
+++xBoot Apr 20 2021 17:12:54
[d] xboot.c :162
-- B --
B: b_sysclk=202M abio_ctrl=(16bit,DDR)
[d] xboot.c :228
[otp_rw.c]otp_rw in
otp_rw.c]otp_rw out
mode=0x00000017
[d] xboot.c :1659
[d] xboot.c :1015

{{usb_isp}}
finding file
[d] fat/fat_boot.c :284
[d] fat/fat_boot.c :294
[d] usb/ehci_usb.c :227
[d] usb/ehci_usb.c :237

Reset EHCI

usb1 connected(2ms)
enum u-disk
get dev desc (64)
vid=85 64 pid=10 00 rev=11 00
set addr
get dev desc (18)
get conf desc (18)
get conf desc (32)
set config 1
Test Unit Ready (0)
Test Unit Ready (1)
Test Unit Ready (2)
Test Unit Ready (3)
Test Unit Ready (4)
[d] fat/fat_boot.c :343
[d] fat/fat_boot.c :355
part@0x00000800
[d] fat/fat_boot.c :397
FAT32 file system
[d] fat/fat_boot.c :473
[d] fat/fat_boot.c :505
[d] fat/fat_boot.c :509
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :512
[d] fat/fat_boot.c :528
Run draiminit@0x9E80601D
Done draiminit
dram test 0x00800000 - 0x00800400
fat load uboot
load data size=427641
start verify in xboot!

 ******OTP Secure Boot is OFF, return success******
uboot_pentagram_board
boot next @0x00200040
put bootinfo
wake up A
A_G0.11(pll): 0x00445149
A_G0.3(abio): 0x00020718
A_G0.18(ioctrl): 0x00F1E004


U-Boot 2019.04-g3c37ae1 (Apr 20 2021 - 17:13:02 +0800)

CONFIG_SYS_CACHELINE_SIZE: 64
Model: SP7021/CA7/Ev
DRAM:  512 MiB
clk@osc0        :   27000000 Hz
clk@0           :   13500000 Hz
clk@A_pll0      : 2000000000 Hz
plla            :  135475200 Hz
plle            :   50000000 Hz
plle_2p5        :    2500000 Hz
plle_25         :   25000000 Hz
plle_112p5      :  112500000 Hz
pllf            :  202500000 Hz
plltv           :  148500000 Hz
plltv_a         :  148500000 Hz
pllsys          :  202500000 Hz
SPI:   Manufacturer id = 0x00, Device id = 0x0000
MMC:   sd: 0
In:    serial
Out:   serial
Err:   serial

Reason(s) of reset: REG(116, 22): 0x0002

After cleaning  REG(116, 22): 0x0000

arch/arm/mach-pentagram/cpu.c, arch_misc_init: TBD.
Net:
Warning: l2sw@0x9c108000 using MAC address from ROM
eth0: l2sw@0x9c108000
Hit any key to stop autoboot:  0
[scr] bootcmd started
9e809408: 00000017                               ....
[scr] ISP from USB storage
starting USB...
USB0:   ehci_sunplus_probe.383, dev_name:usb@0x9C102100,port_num:0
after write usbruncmd,usbcmd:80b01,retry_times:0
USB EHCI 1.10
USB1:   ehci_sunplus_probe.383, dev_name:usb@0x9C103100,port_num:1
after write usbruncmd,usbcmd:80b01,retry_times:1
USB EHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
2048 bytes read in 29 ms (68.4 KiB/s)
isp_main_storage=nor
## Executing script at 01000020
ISP file from USB storage
Interface:  USB
  Device 0: Vendor: JetFlash Rev: 1100 Prod: Transcend 16GB
            Type: Removable Hard Disk
            Capacity: 15480.0 MB = 15.1 GB (31703040 x 512)
Filesystem: FAT32 "NO NAME    "
 14279680   ISPBOOOT_q628.BIN
    13600   watchdog
 14281728 
 ISPBOOOTx.BIN
 13100032   ISPBOOOT.BIN

41 file(s), 0 dir(s)

Load NOR ISP script and run it...
5120 bytes read in 34 ms (146.5 KiB/s)
## Executing script at 01000000

Initialize NOR flash...
SF: Detected W25Q128BV with page size 256 Bytes, erase size 64 KiB, total 16 MiB

Erase whole chip (16 MiB)...
SF: 1048576 bytes @ 0x0 Erased: OK
SF: 1048576 bytes @ 0x100000 Erased: OK
SF: 1048576 bytes @ 0x200000 Erased: OK
SF: 1048576 bytes @ 0x300000 Erased: OK
SF: 1048576 bytes @ 0x400000 Erased: OK
SF: 1048576 bytes @ 0x500000 Erased: OK
SF: 1048576 bytes @ 0x600000 Erased: OK
SF: 1048576 bytes @ 0x700000 Erased: OK
SF: 1048576 bytes @ 0x800000 Erased: OK
SF: 1048576 bytes @ 0x900000 Erased: OK
SF: 1048576 bytes @ 0xa00000 Erased: OK
SF: 1048576 bytes @ 0xb00000 Erased: OK
SF: 1048576 bytes @ 0xc00000 Erased: OK
SF: 1048576 bytes @ 0xd00000 Erased: OK
SF: 1048576 bytes @ 0xe00000 Erased: OK
SF: 1048576 bytes @ 0xf00000 Erased: OK

Program image to flash...
1048576 bytes read in 44 ms (22.7 MiB/s)
device 0 offset 0x0, size 0x100000
SF: 1048576 bytes @ 0x0 Written: OK
1048576 bytes read in 50 ms (20 MiB/s)
device 0 offset 0x100000, size 0x100000
SF: 1048576 bytes @ 0x100000 Written: OK
1048576 bytes read in 49 ms (20.4 MiB/s)
device 0 offset 0x200000, size 0x100000
SF: 1048576 bytes @ 0x200000 Written: OK
1048576 bytes read in 50 ms (20 MiB/s)
device 0 offset 0x300000, size 0x100000
SF: 1048576 bytes @ 0x300000 Written: OK
1048576 bytes read in 50 ms (20 MiB/s)
device 0 offset 0x400000, size 0x100000
SF: 1048576 bytes @ 0x400000 Written: OK
1048576 bytes read in 49 ms (20.4 MiB/s)
device 0 offset 0x500000, size 0x100000
SF: 1048576 bytes @ 0x500000 Written: OK
1048576 bytes read in 50 ms (20 MiB/s)
device 0 offset 0x600000, size 0x100000
SF: 1048576 bytes @ 0x600000 Written: OK
1048576 bytes read in 44 ms (22.7 MiB/s)
device 0 offset 0x700000, size 0x100000
SF: 1048576 bytes @ 0x700000 Written: OK
1048576 bytes read in 43 ms (23.3 MiB/s)
device 0 offset 0x800000, size 0x100000
SF: 1048576 bytes @ 0x800000 Written: OK
1048576 bytes read in 43 ms (23.3 MiB/s)
device 0 offset 0x900000, size 0x100000
SF: 1048576 bytes @ 0x900000 Written: OK
1048576 bytes read in 43 ms (23.3 MiB/s)
device 0 offset 0xa00000, size 0x100000
SF: 1048576 bytes @ 0xa00000 Written: OK
495616 bytes read in 29 ms (16.3 MiB/s)
device 0 offset 0xb00000, size 0x79000
SF: 495616 bytes @ 0xb00000 Written: OK

Verifying...
device 0 offset 0x0, size 0x100000
SF: 1048576 bytes @ 0x0 Read: OK
md5 for 01000000 ... 010fffff ==> 283f2c43248f8cbeaf82638e9626e6ca
md5sum: OK.
device 0 offset 0x100000, size 0x100000
SF: 1048576 bytes @ 0x100000 Read: OK
md5 for 01000000 ... 010fffff ==> 2f7bc78a98e4b9cf561ac1793b1f9f7a
md5sum: OK.
device 0 offset 0x200000, size 0x100000
SF: 1048576 bytes @ 0x200000 Read: OK
md5 for 01000000 ... 010fffff ==> 2f9f5e9cddff6e574a6142221d6bd55b
md5sum: OK.
device 0 offset 0x300000, size 0x100000
SF: 1048576 bytes @ 0x300000 Read: OK
md5 for 01000000 ... 010fffff ==> 6aeb06eb474613e0bcf1cf02e8f3c60b
md5sum: OK.
device 0 offset 0x400000, size 0x100000
SF: 1048576 bytes @ 0x400000 Read: OK
md5 for 01000000 ... 010fffff ==> c9460c0e937c90586a67312a8a2884ff
md5sum: OK.
device 0 offset 0x500000, size 0x100000
SF: 1048576 bytes @ 0x500000 Read: OK
md5 for 01000000 ... 010fffff ==> fe8f6257567d9ed5c4be2bafba70b6fc
md5sum: OK.
device 0 offset 0x600000, size 0x100000
SF: 1048576 bytes @ 0x600000 Read: OK
md5 for 01000000 ... 010fffff ==> 936b674b1d7a378beb1460fa48ad53d6
md5sum: OK.
device 0 offset 0x700000, size 0x100000
SF: 1048576 bytes @ 0x700000 Read: OK
md5 for 01000000 ... 010fffff ==> 994f5a88be7e45cf5909b05a3a19e962
md5sum: OK.
device 0 offset 0x800000, size 0x100000
SF: 1048576 bytes @ 0x800000 Read: OK
md5 for 01000000 ... 010fffff ==> 5606b8aa0bb6e9233930bfab0b39fc5a
md5sum: OK.
device 0 offset 0x900000, size 0x100000
SF: 1048576 bytes @ 0x900000 Read: OK
md5 for 01000000 ... 010fffff ==> 890b41c432543ce151ef13122fa0b11c
md5sum: OK.
device 0 offset 0xa00000, size 0x100000
SF: 1048576 bytes @ 0xa00000 Read: OK
md5 for 01000000 ... 010fffff ==> d084a40d0ff729ef6e9d0fd16fe2670b
md5sum: OK.
device 0 offset 0xb00000, size 0x79000
SF: 495616 bytes @ 0xb00000 Read: OK
md5 for 01000000 ... 01078fff ==> 7cc8e23ce2da1c926acdc902113509f3
md5sum: OK.
**************************************************
              ISP all: Done
**************************************************
=>

...