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.
To build image of SPI-NOR flash, first, you need to get source files of SP7021 from git server of SP7021. Second, you need to run make to build all images of SP7021. After make processes complete successfully, it will create two binary files named spi_all.bin and ISPBOOOT.BIN. Third, you need to either use flash programmer to write the spi_all.bin to SPI-NOR flash or copy ISPBOOOT.BIN to an USB drive to in-system program SPI-NOR flash. Finally, set DIP-SW to “boot from SPI-NOR flash”. You are now ready to turn on SP7021 power to boot Linux from SPI-NOR flash. For details, please follow the following steps.
1. Download source files
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:
wellslu@scdiu3:~/q628/nor$ ll total 52 drwxr-xr-x 12 wellslu sp 4096 Oct 15 12:01 ./ drwxr-xr-x 19 wellslu sp 4096 Oct 15 11:53 ../ drwxr-xr-x 8 wellslu sp 4096 Apr 27 18:51 boot/ drwxr-xr-x 4 wellslu sp 4096 Aug 25 12:05 build/ drwxr-xr-x 7 wellslu sp 4096 Jul 27 12:23 crossgcc/ drwxr-xr-x 6 wellslu sp 4096 Apr 27 18:51 eCos/ drwxr-xr-x 9 wellslu sp 4096 Jun 5 09:30 freertos/ drwxr-xr-x 8 wellslu sp 4096 Aug 11 16:40 ipack/ drwxr-xr-x 7 wellslu sp 4096 Apr 27 18:51 linux/ -r--r--r-- 1 wellslu sp 23 Apr 27 18:51 Makefile drwxr-xr-x 4 wellslu sp 4096 Apr 27 18:51 nonos/ drwxr-xr-x 7 wellslu sp 4096 Apr 27 18:51 .repo/ drwxr-xr-x 3 wellslu sp 4096 Jun 29 09:44 yocto/
2. Configure environment
Run make config command on top folder. After configuration menu pops up, first, choose a board you want to build image for. For example, press 1 to choose “SP7021 Ev Board”. Second, press 1 to choose to use C chip (quad core CA7). Finally, press 3 (jffs2) or 4 (initramfs) to choose to boot from SPI-NOR flash and then enter to start to configure building environment. Refer to screenshot below,
make config starts to build compiler environment. It may take a few minutes. Please wait for make config completing the processes.
3. Modify device-tree source file
This step is for jffs2 (3) root file-system. Please skip this step if you are using initramfs (4) root file-system.
Modify device-tree node sp_spinor0 in device-tree source file linux/kernel/arch/arm/boot/dts/sp7021-ev.dts to setup operating frequency SPI-NOR flash and pins as shown below:
&sp_spinor0 { spi-max-frequency = <50000000>; spi-chip-selection = <0>; pinctrl-names = "default"; pinctrl-0 = <&spi_flash2_mux &spi_fla4b2_mux>; }
where operating frequency of SPI-NOR flash is 50 MHz and SPI-NOR flash is installed in pin-group: spi_flash2_mux and spi_fla4b2_mux. Set them base on your real hardware installation.
4. Remove SECT_4K flag of SPI-NOR flash
This step is for jffs2 (3) root file-system. Please skip this step if you are using initramfs (4) root file-system.
Some SPI-NOR flashes support 4 kB sector-erase, but mkfs.jffs2 -e option does not support 4 kB size of erase. Please remove SECT_4K flag in C file “driver/mtd/spi-nor/spi-nor.c” if your NOR flash support 4 KB sector-erase . Refer to screenshot of diff report, SECT_4K flag of Winbond w25q128 flashes are removed.
5. Build SPI-NOR image
Run make all command to start to create all images of SP7021. It may take several minutes to complete. At almost final stage of building processes, make will ask you to select the use of iBoot,
Please press x and enter to continue the processes. After make all completes, you will see screenshot 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:
Binary file spi_all.bin is a pure image of SPI-NOR flash. You can use a flash programmer to write the image into an SPI-NOR flash. Refer to step 6 for detail.
Binary file ISPBOOOT.BIN consists of boot-loader (x-boot), u-boot and image of SPI-NOR flash. You can copy it to an USB drive to in-system program SPI-NOR image to SPI-NOR flash on SP7021 boards. Refer to step 7 for detail.
6. Write your SPI-NOR flash using flash programmer
Put your SPI-NOR flash chip into socket of a flash programmer. Be careful about the pin 1 position of the chip. It should be at the same corner of pin 1 of socket. Refer to picture below, an SPI-NOR flash is placed at socket of a GZUT USB flash programmer.
Run flash programmer application, for example, run GZUT_OnePro in Windows. After application window pops up, then load binary file, spi_all.bin. Press “Auto” to start to write processes automatically (including erase, write and verify). Refer to screenshot below, a Winbond 128 Mibit (16 MiB) flash chip (W25Q128) has been programmed and verified successfully.
Remove the SPI-NOR flash chip from socket. Plug the written SPI-NOR flash into socket of SPI-NOR flash of SP7021 boards.
Note that the size of spi_all.bin is about 12 MiB. So, size of SPI-NOR flash chip should be 16 MiB (or 128 Mibit) or greater.
7. In-system program SPI-NOR flash
First, copy the file ISPBOOOT.BIN to root directory of an USB flash drive. Note that the USB flash drive should be formatted to DOS/Windows FAT32 file-system. SP7021 can only load files from an USB flash drive which is formatted to FAT32 file-system. Also note that FAT32 file-system should be in the first or the sole partition of the USB flash drive.
Second, set DIP-SW (boot-select switch) to “boot from USB”. For example, if you are using SP7021 Ev Board, please set DIP-SW to OFF-OFF-OFF-OFF-ON-OFF (1-1-1-1-0-1) for booting from USB flash drive. Refer to picture below, DIP-SW is set to OFF-OFF-OFF-OFF-ON-OFF.
Refer to Selection of boot devices of SP7021 for details of boot selection of SP7021.
Third, plug your USB flash drive which contains ISPBOOOT.BIN into either USB socket of SP7021 board.
Finally, turn on power of SP7021 board. After power on, SP7021 starts to ”boot from USB” drive. It first loads boot-loader (x-boot) from ISPBOOOT.BIN in USB flash drive. Boot-loader loads u-boot. u-boot then runs built-in scripts which writes image to SPI-NOR flash and verify it. The processes takes 1 ~ 2 minutes. Please wait for the processes completing. At the end of processes, you will see screen like:
“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”
Set DIP-SW (boot-select switch) to “boot from SPI-NOR flash”. For example, if you are using SP7021 Ev Board, please set DIP-SW to OFF-OFF-ON-OFF-ON-OFF (1-1-0-1-0-1) for booting from SPI-NOR flash. Refer to picture below, DIP-SW is set to OFF-OFF-ON-OFF-ON-OFF.
Now, you are ready to boot SP7021 Linux from SPI-NOR flash. Turn on power of SP7021 board to boot system.
Appendix A. Layout of partitions of SPI-NOR flash
Refer to layout of partitions of a 16 MiB SPI-NOR flash. There are 6 partitions in SPI-NOR flash. The figures in parenthesis of each partition is the size of the partition. Note that root file-system of Linux is built into kernel.
Appendix B. Log of ISP-ing of SPI-NOR flash
+++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 " 13100032 ISPBOOOT.BIN 1 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 ************************************************** =>
Appendix C. Log of Booting from SPI-NOR (jffs2) flash
+++iBoot v1.02 Jan 10 2019 11:20:28 -- A -- [d] iboot.c :96 [d] iboot.c :107 [d] iboot.c :877 hw_cfg=0x00015BFF bootmode=0x00000001 [d] iboot.c :837 [d] iboot.c :736 [uart_isp] [d] bootmain.c :116 dev=4 pin=0 [d] bootstrap.c :75 [d] bootstrap.c :85 auto scan... [spibare] X1 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :136 magic=0xFFFFFFFF [spi_nor] X1 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :205 mg=0xFFFFFFFF len=0xFFFFFFFF chk=0xFFFFFFFF [d] iboot.c :222 [emmc_boot] [d] bootmain.c :116 dev=2 pin=1 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init boot area fail [d] iboot.c :582 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init fail [d] iboot.c :584 [spi_nand] X1 [d] iboot.c :679 [d] bootmain.c :116 dev=6 pin=1 [d] nandop.c :418 [d] spi_nand.c :209 SPI ID=40 18 00 00 Default B0 feature: 0x00000000 Configure B0 feature to:0x00000000 [d] nandop.c :266 [d] nandop.c :283 Header not found! [d] nandop.c :421 [d] nandop.c :427 [d] iboot.c :685 [spibare] X2 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :136 magic=0x00000000 [spi_nor] X2 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :205 mg=0x54554258 len=0x00006418 chk=0x0000B9B3 [d] iboot.c :235 [d] iboot.c :258 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... 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=32 OTP Secure Boot is OFF boot! .48596 +++xBoot Apr 20 2021 17:12:54 [d] xboot.c :162 -- A -- A_G0.11(pll): 0x00445149 A_G0.3(abio): 0x00020718 A_G0.18(ioctrl): 0x00F1E004 B: b_sysclk=202M abio_ctrl=(16bit,DDR) A: a_pllc=1863M core=931M a_sysclk=465M a_pllio=1998M abio_bus=399M release cores [d] xboot.c :228 [otp_rw.c]otp_rw in o?++iBoot v1.02 Jan 10 2019 11:20:28 -- A -- [d] iboot.c :96 [d] iboot.c :107 [d] iboot.c :877 hw_cfg=0x00015BFF bootmode=0x00000001 [d] iboot.c :837 [d] iboot.c :736 [uart_isp] [d] bootmain.c :116 dev=4 pin=0 [d] bootstrap.c :75 [d] bootstrap.c :85 auto scan... [spibare] X1 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :136 magic=0xFFFFFFFF [spi_nor] X1 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :205 mg=0xFFFFFFFF len=0xFFFFFFFF chk=0xFFFFFFFF [d] iboot.c :222 [emmc_boot] [d] bootmain.c :116 dev=2 pin=1 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init boot area fail [d] iboot.c :582 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init fail [d] iboot.c :584 [spi_nand] X1 [d] iboot.c :679 [d] bootmain.c :116 dev=6 pin=1 [d] nandop.c :418 [d] spi_nand.c :209 SPI ID=40 18 00 00 Default B0 feature: 0x00000000 Configure B0 feature to:0x00000000 [d] nandop.c :266 [d] nandop.c :283 Header not found! [d] nandop.c :421 [d] nandop.c :427 [d] iboot.c :685 [spibare] X2 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :136 magic=0x00000000 [spi_nor] X2 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :205 mg=0x54554258 len=0x00006418 chk=0x0000B9B3 [d] iboot.c :235 [d] iboot.c :258 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... 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=32 OTP Secure Boot is OFF boot! .48596 +++xBoot Apr 20 2021 17:12:54 [d] xboot.c :162 -- A -- A_G0.11(pll): 0x00445149 A_G0.3(abio): 0x00020718 A_G0.18(ioctrl): 0x00F1E004 B: b_sysclk=202M abio_ctrl=(16bit,DDR) A: a_pllc=1863M core=931M a_sysclk=465M a_pllio=1998M abio_bus=399M release cores [d] xboot.c :228 [otp_rw.c]otp_rw in otp_rw.c]otp_rw out mode=0x00000011 Run draiminit@0x9E80601D Done draiminit dram test 0x00800000 - 0x00800400 load uboot@0x00200000 [d] xboot.c :331 [d] xboot.c :334 [d] xboot.c :337 load data size=427713 .. start verify in xboot! ******OTP Secure Boot is OFF, return success****** uboot_pentagram_board boot next @0x00200040 put bootinfo 130151 Run u-boot @0x00200040 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 = 0x4018 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: 00000011 .... [scr] romter boot Image Name: uboot Image Type: ARM Linux Sunplus Quick Boot Image (uncompressed) Data Size: 49088 Bytes = 47.9 KiB Load Address: 00010040 Entry Point: 00010040 Verifying Checksum ... OK [u-boot] nonos_B address 0x00010000 nonos_size= 49088 loading kernel ... SF: Detected W25Q128BV with page size 256 Bytes, erase size 64 KiB, total 16 MiB device 0 offset 0x200000, size 0x3ccb28 SF: 3984168 bytes @ 0x200000 Read: OK kernel_hdr addr = 307fc0 ******OTP Secure Boot is OFF, return success****** ## Booting kernel from Legacy Image at 00307fc0 ... Image Name: Linux-5.4.35-g8d2baab Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3984032 Bytes = 3.8 MiB Load Address: 00308000 Entry Point: 00308000 Verifying Checksum ... OK ## Flattened Device Tree blob at 1f900e98 Booting using the fdt blob at 0x1f900e98 XIP Kernel Image ... OK Loading Device Tree to 1f8f7000, end 1f8ff010 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.4.35-g8d2baab (wellslu@scdiu3) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #205 SMP PREEMPT Tue Apr 20 17:13:42 CST 2021 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: SP7021/CA7/Ev [ 0.000000] printk: bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] sp_map_io [ 0.000000] P_REG: [9c000000-9dffffff] -> [f8000000-f9ffffff] [ 0.000000] C_REG: [9ec00000-9effffff] -> [fa000000-fa3fffff] [ 0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129540 [ 0.000000] Kernel command line: console=tty1 console=ttyS0,115200 earlyprintk root=/dev/mtdblock6 rw rootfstype=jffs2 user_debug=255 rootwait mtdparts=9c000b00.spinor:64k@0(iboot)ro,64k(xboot)ro,128k(dtb),768k(uboot),1m(nonos),0x3d0000(kernel),-(rootfs) [ 0.000000] printk: log_buf_len individual max cpu contribution: 4096 bytes [ 0.000000] printk: log_buf_len total cpu_extra contributions: 12288 bytes [ 0.000000] printk: log_buf_len min size: 16384 bytes [ 0.000000] printk: log_buf_len: 32768 bytes [ 0.000000] printk: early log buf free: 14564(88%) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 508120K/522240K available (4096K kernel code, 817K rwdata, 2052K rodata, 1024K init, 229K bss, 14120K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 205 [ 0.000000] random: get_random_bytes called from start_kernel+0x1c3/0x308 with crng_init=0 [ 0.000000] @@@ Sunplus clock init [ 0.000000] plla 135475200 [ 0.000000] plle 50000000 [ 0.000000] plle_2p5 2500000 [ 0.000000] plle_25 25000000 [ 0.000000] plle_112p5 112500000 [ 0.000000] pllf 202500000 [ 0.000000] plltv 148500000 [ 0.000000] pllsys 202500000 [ 0.000000] arch_timer: cp15 timer(s) running at 27.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x63a1e71a3, max_idle_ns: 440795203123 ns [ 0.000010] sched_clock: 56 bits at 27MHz, resolution 37ns, wraps every 4398046511093ns [ 0.008131] Switching to timer-based delay loop, resolution 37ns [ 0.014973] Console: colour dummy device 80x30 [ 0.020167] printk: console [tty1] enabled [ 0.024361] Calibrating delay loop (skipped), value calculated using timer frequency.. 54.00 BogoMIPS (lpj=270000) [ 0.034916] pid_max: default: 32768 minimum: 301 [ 0.039893] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.047359] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.056222] CPU: Testing write buffer coherency: ok [ 0.061869] CPU0: update cpu_capacity 1024 [ 0.066042] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.132030] Setting up static identity map for 0x400000 - 0x400054 [ 0.138488] rcu: Hierarchical SRCU implementation. [ 0.183484] smp: Bringing up secondary CPUs ... [ 0.243940] CPU1: update cpu_capacity 1024 [ 0.243949] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.323886] CPU2: update cpu_capacity 1024 [ 0.323896] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.403971] CPU3: update cpu_capacity 1024 [ 0.403978] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.404095] smp: Brought up 1 node, 4 CPUs [ 0.438028] SMP: Total of 4 processors activated (216.00 BogoMIPS). [ 0.444406] CPU: All CPU(s) started in SVC mode. [ 0.449879] devtmpfs: initialized [ 0.459392] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.468223] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.478290] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.485751] pinctrl core: initialized pinctrl subsystem [ 0.491875] NET: Registered protocol family 16 [ 0.497145] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.505944] sp_init [ 0.508106] av1_stc: 0x00047c03 [ 0.511297] P-chip: sys = 202MHz, cpio_ctrl = (16bit, DDR) [ 0.516922] C-chip: core = 931MHz, sys = 465MHz, pllio = 1998MHz, cpio_bus = 399MHz [ 0.524703] apply partial clken to save power [ 0.529567] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.537711] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.543686] 1: ext0-mask=0xf [ 0.546619] 2: ext1-mask=0xe [ 0.566646] sppctl pctl: funcs: 156 unq_grps: 140 [ 0.571743] SP7021 PinCtl by Sunplus/Tibbo Tech.(C) 2020 [ 0.608548] fbcon: Taking over console [ 0.619009] SCSI subsystem initialized [ 0.623720] usbcore: registered new interface driver usbfs [ 0.629537] usbcore: registered new interface driver hub [ 0.635194] usbcore: registered new device driver usb [ 0.640950] videodev: Linux video capture interface: v2.00 [ 0.648106] sunplus,sp7021-ocotp 9c00af00.otp: by Sunplus (C) 2020 [ 0.656662] clocksource: Switched to clocksource arch_sys_counter [ 0.681606] register sunplus_usb_phy0_driver [ 0.686383] uphy0_irq:36 [ 0.695703] register sunplus_usb_phy1_driver [ 0.700288] uphy1_irq:37 [ 0.709329] register sunplus_usb_otg0_driver [ 0.714435] register sunplus_usb_otg1_driver [ 0.719993] HDMITX installed [ 0.722990] HDMI plug in [ 0.727126] NET: Registered protocol family 2 [ 0.732512] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.741088] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 0.749062] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.756374] TCP: Hash tables configured (established 4096 bind 4096) [ 0.763045] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.769779] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.777260] NET: Registered protocol family 1 [ 0.797143] RPC: Registered named UNIX socket transport module. [ 0.803169] RPC: Registered udp transport module. [ 0.807998] RPC: Registered tcp transport module. [ 0.812777] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.820468] hw perfevents: no interrupt-affinity property for /arm-pmu, guessing. [ 0.828578] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available [ 0.838870] Initialise system trusted keyrings [ 0.843683] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.866882] NFS: Registering the id_resolver key type [ 0.872077] Key type id_resolver registered [ 0.876330] Key type id_legacy registered [ 0.880484] jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc. [ 0.886970] Key type asymmetric registered [ 0.891140] Asymmetric key parser 'x509' registered [ 0.896187] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.903755] io scheduler mq-deadline registered [ 0.908376] io scheduler kyber registered [ 0.915646] K_TTYS: sp_uart0's Rx is in PIO mode. [ 0.920520] K_TTYS: sp_uart0's Tx is in PIO mode. [ 0.925316] 9c000900.serial: ttyS0 at MMIO 0x9c000900 (irq = 53, base_baud = 1687500) is a sp_uart0 [ 0.934637] printk: console [ttyS0] enabled [ 0.934637] printk: console [ttyS0] enabled [ 0.943075] printk: bootconsole [earlycon0] disabled [ 0.943075] printk: bootconsole [earlycon0] disabled [ 0.969072] loop: module loaded [ 0.972066] sp-spi-nor 9c000b00.spinor: w25q128 (16384 Kbytes) [ 0.972245] 7 cmdlinepart partitions found on MTD device 9c000b00.spinor [ 0.973551] Creating 7 MTD partitions on "9c000b00.spinor": [ 0.979168] 0x000000000000-0x000000010000 : "iboot" [ 0.988062] 0x000000010000-0x000000020000 : "xboot" [ 0.998171] 0x000000020000-0x000000040000 : "dtb" [ 1.007959] 0x000000040000-0x000000100000 : "uboot" [ 1.018101] 0x000000100000-0x000000200000 : "nonos" [ 1.028279] 0x000000200000-0x0000005d0000 : "kernel" [ 1.047909] 0x0000005d0000-0x000001000000 : "rootfs" [ 1.050784] libphy: Fixed MDIO Bus: probed [ 1.050907] CAN device driver interface [ 1.051618] [L2SW] L2 switch mode = 0 [ 1.053459] [L2SW] HW Addr = 00:22:60:00:88:30 [ 1.058587] [L2SW] Registered net device "eth0" successfully. [ 1.063618] libphy: sunplus_mii_bus: probed [ 1.069330] net eth0: could not add device link to 9c108000.l2sw-mii:01 err -17 [ 1.076197] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.081405] ehci-platform: EHCI generic platform driver [ 1.086870] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.092708] ohci-platform: OHCI generic platform driver [ 1.098126] register ehci0_hcd_sunplus_driver [ 1.102491] ehci0-sunplus 9c102100.usb: Generic Platform EHCI Controller [ 1.108943] ehci0-sunplus 9c102100.usb: new USB bus registered, assigned bus number 1 [ 1.116955] ehci0-sunplus 9c102100.usb: irq 14, io mem 0x9c102100 [ 1.146654] ehci0-sunplus 9c102100.usb: USB 2.0 started, EHCI 1.10 [ 1.148023] hub 1-0:1.0: USB hub found [ 1.148179] hub 1-0:1.0: 1 port detected [ 1.150019] register ehci1_hcd_sunplus_driver [ 1.153948] ehci1-sunplus 9c103100.usb: Generic Platform EHCI Controller [ 1.160369] ehci1-sunplus 9c103100.usb: new USB bus registered, assigned bus number 2 [ 1.168360] ehci1-sunplus 9c103100.usb: irq 17, io mem 0x9c103100 [ 1.196645] ehci1-sunplus 9c103100.usb: USB 2.0 started, EHCI 1.10 [ 1.197784] hub 2-0:1.0: USB hub found [ 1.197912] hub 2-0:1.0: 1 port detected [ 1.199952] register ohci0_hcd_sunplus_driver [ 1.203871] ohci_id:1,irq:15 [ 1.206509] ohci0-sunplus 9c102080.usb: Generic Platform OHCI Controller [ 1.213201] ohci0-sunplus 9c102080.usb: new USB bus registered, assigned bus number 3 [ 1.221187] ohci0-sunplus 9c102080.usb: irq 15, io mem 0x9c102080 [ 1.299572] hub 3-0:1.0: USB hub found [ 1.299706] hub 3-0:1.0: 1 port detected [ 1.300463] register ohci1_hcd_sunplus_driver [ 1.300805] ohci_id:2,irq:18 [ 1.303294] ohci1-sunplus 9c103080.usb: Generic Platform OHCI Controller [ 1.310176] ohci1-sunplus 9c103080.usb: new USB bus registered, assigned bus number 4 [ 1.317967] ohci1-sunplus 9c103080.usb: irq 18, io mem 0x9c103080 [ 1.389544] hub 4-0:1.0: USB hub found [ 1.389682] hub 4-0:1.0: 1 port detected [ 1.390584] usbcore: registered new interface driver usb-storage [ 1.392212] register sunplus_driver_udc [ 1.392212] [ 1.398544] >>> sp_udc_alloc_request... [ 1.398544] [ 1.402608] <<< sp_udc_alloc_request... [ 1.402608] [ 1.408186] zero gadget: Gadget Zero, version: Cinco de Mayo 2008 [ 1.413941] zero gadget: zero ready [ 1.418172] mousedev: PS/2 mouse device common for all mice [ 1.424311] sp7021-rtc 9c003a00.serial: registered as rtc0 [ 1.428452] [RTC] Info: sp7021-rtc loaded [ 1.432893] [DISP][_display_probe:3137] disp probe ... [ 1.437675] [DISP]irq num:4 [ 1.440641] [DISP]ttl-name general hdmi,720X480 [ 1.445942] [DISP][_display_probe:3378] disp probe done [ 1.450682] usbcore: registered new interface driver uvcvideo [ 1.455976] USB Video Class driver (1.1.1) [ 1.460705] hidraw: raw HID events driver (C) Jiri Kosina [ 1.465688] usbcore: registered new interface driver usbhid [ 1.470991] usbhid: USB HID core driver [ 1.474775] exFAT: Version 1.3.0 [ 1.478750] NET: Registered protocol family 10 [ 1.483946] Segment Routing with IPv6 [ 1.486155] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.493100] NET: Registered protocol family 17 [ 1.496390] can: controller area network core (rev 20170425 abi 9) [ 1.502933] NET: Registered protocol family 29 [ 1.506970] can: raw protocol (rev 20170425) [ 1.511181] can: broadcast manager protocol (rev 20170425 t) [ 1.516848] can: netlink gateway (rev 20190810) max_hops=1 [ 1.522464] NET: Registered protocol family 37 [ 1.526769] Key type dns_resolver registered [ 1.530986] Key type ceph registered [ 1.534763] libceph: loaded (mon/osd proto 15/24) [ 1.539514] Registering SWP/SWPB emulation handler [ 1.544334] Loading compiled-in X.509 certificates [ 1.569074] Console: switching to colour frame buffer device 90x30 [ 1.578869] sp7021-fb soc@B:fb_device: [_sp7021_fb_create_device:282] mem VA 0xe08cf000(PA 0x1e000000), Palette VA 0xdec61800(PA 0x1ec61800), UI Res 720x480, size 2768896 + 1024 [ 1.593439] sp7021-rtc 9c003a00.serial: setting system clock to 1970-01-01T00:06:09 UTC (369) [ 1.639233] random: fast init done [ 2.391760] VFS: Mounted root (jffs2 filesystem) on device 31:6. [ 2.396215] devtmpfs: mounted [ 2.401881] Freeing unused kernel memory: 1024K [ 2.405754] Run /sbin/init as init process /etc/init.d/rcS starts... Mounting other filesystems ... rc.extra [bg] End of /etc/init.d/rcS 0x00000280 0x00000008 extra done login[642]: root login on 'console' ~ #
Refer to report of df command:
~ # df -hT Filesystem Type Size Used Available Use% Mounted on /dev/root jffs2 10.2M 6.0M 4.1M 59% / devtmpfs devtmpfs 248.1M 0 248.1M 0% /dev tmpfs tmpfs 248.6M 0 248.6M 0% /dev/shm tmpfs tmpfs 248.6M 0 248.6M 0% /tmp ~ #
Type of file-system is jffs2. Total size is 10.2 MB. Used is 6.0 MB. Available is 4.1 MB.
Appendix D. Log of Booting from SPI-NOR (initramfs) flash
+++iBoot v1.02 Jan 10 2019 11:20:28 -- A -- [d] iboot.c :96 [d] iboot.c :107 [d] iboot.c :877 hw_cfg=0x00015BFF bootmode=0x00000001 [d] iboot.c :837 [d] iboot.c :736 [uart_isp] [d] bootmain.c :116 dev=4 pin=0 [d] bootstrap.c :75 [d] bootstrap.c :85 auto scan... [spibare] X1 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :136 magic=0xFFFFFFFF [spi_nor] X1 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :205 mg=0xFFFFFFFF len=0xFFFFFFFF chk=0xFFFFFFFF [d] iboot.c :222 [emmc_boot] [d] bootmain.c :116 dev=2 pin=1 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init boot area fail [d] iboot.c :582 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init fail [d] iboot.c :584 [spi_nand] X1 [d] iboot.c :679 [d] bootmain.c :116 dev=6 pin=1 [d] nandop.c :418 [d] spi_nand.c :209 SPI ID=40 18 00 00 Default B0 feature: 0x00000000 Configure B0 feature to:0x00000000 [d] nandop.c :266 [d] nandop.c :283 Header not found! [d] nandop.c :421 [d] nandop.c :427 [d] iboot.c :685 [spibare] X2 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :136 magic=0x00000000 [spi_nor] X2 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :205 mg=0x54554258 len=0x00006418 chk=0x00008399 [d] iboot.c :235 [d] iboot.c :258 mg=0x54554258 len=0x00006418 chk=0x00008399 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... FAIL signature: 9D 3C 41 A2 CB 82 42 3E 6C 02 D9 4D B8 DA 70 E7 9D 97 3F 50 F1 26 96 8B 87 42 F8 D6 7B 30 C7 F2 FB 91 DC 4E D6 29 B9 2F F4 BB F7 FB 09 54 4A C6 98 A5 81 60 A3 79 8F C6 92 0A A8 E1 C3 F7 AA 01 tV=32 OTP Secure Boot is OFF boot! .48582 +++xBoot Apr 20 2021 17:32:26 [d] xboot.c :162 -- A -- A_G0.11(pll): 0x00445149 A_G0.3(abio): 0x00020718 A_G0.18(ioctrl): 0x00F1E004 B: b_sysclk=202M abio_ctrl=(16bit,DDR) A: a_pllc=1863M core=931M a_sysclk=465M a_pllio=1998M abio_bus=399M release cores [d] xboot.c :228 [otp_rw.c]otp_rw in o?++iBoot v1.02 Jan 10 2019 11:20:28 -- A -- [d] iboot.c :96 [d] iboot.c :107 [d] iboot.c :877 hw_cfg=0x00015BFF bootmode=0x00000001 [d] iboot.c :837 [d] iboot.c :736 [uart_isp] [d] bootmain.c :116 dev=4 pin=0 [d] bootstrap.c :75 [d] bootstrap.c :85 auto scan... [spibare] X1 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :136 magic=0xFFFFFFFF [spi_nor] X1 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=1 [d] iboot.c :205 mg=0xFFFFFFFF len=0xFFFFFFFF chk=0xFFFFFFFF [d] iboot.c :222 [emmc_boot] [d] bootmain.c :116 dev=2 pin=1 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init boot area fail [d] iboot.c :582 [d] drv_sd_mmc.c :21 InitChipCtrl busclk=200000 div=1012 [d] drv_sd_mmc.c :23 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=2 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=3 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=4 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=5 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=6 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=7 high=0 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=0 high=1 [d] drv_sd_mmc.c :28 IdentifyStorage Rsp timeout (0) CMD:1 SD status0=0x0000C055 status1=0x00002200 RxRsp end err=0x00000002 cmd:1 Set rd_clk_dly=1 high=1 [d] drv_sd_mmc.c :33 init fail [d] iboot.c :584 [spi_nand] X1 [d] iboot.c :679 [d] bootmain.c :116 dev=6 pin=1 [d] nandop.c :418 [d] spi_nand.c :209 SPI ID=40 18 00 00 Default B0 feature: 0x00000000 Configure B0 feature to:0x00000000 [d] nandop.c :266 [d] nandop.c :283 Header not found! [d] nandop.c :421 [d] nandop.c :427 [d] iboot.c :685 [spibare] X2 [d] iboot.c :132 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :136 magic=0x00000000 [spi_nor] X2 [d] iboot.c :170 [d] bootmain.c :116 dev=5 pin=2 [d] iboot.c :205 mg=0x54554258 len=0x00006418 chk=0x00008399 [d] iboot.c :235 [d] iboot.c :258 mg=0x54554258 len=0x00006418 chk=0x00008399 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... FAIL signature: 9D 3C 41 A2 CB 82 42 3E 6C 02 D9 4D B8 DA 70 E7 9D 97 3F 50 F1 26 96 8B 87 42 F8 D6 7B 30 C7 F2 FB 91 DC 4E D6 29 B9 2F F4 BB F7 FB 09 54 4A C6 98 A5 81 60 A3 79 8F C6 92 0A A8 E1 C3 F7 AA 01 tV=32 OTP Secure Boot is OFF boot! .48581 +++xBoot Apr 20 2021 17:32:26 [d] xboot.c :162 -- A -- A_G0.11(pll): 0x00445149 A_G0.3(abio): 0x00020718 A_G0.18(ioctrl): 0x00F1E004 B: b_sysclk=202M abio_ctrl=(16bit,DDR) A: a_pllc=1863M core=931M a_sysclk=465M a_pllio=1998M abio_bus=399M release cores [d] xboot.c :228 [otp_rw.c]otp_rw in otp_rw.c]otp_rw out mode=0x00000011 Run draiminit@0x9E80601D Done draiminit dram test 0x00800000 - 0x00800400 load uboot@0x00200000 [d] xboot.c :331 [d] xboot.c :334 [d] xboot.c :337 load data size=427377 .. start verify in xboot! ******OTP Secure Boot is OFF, return success****** uboot_pentagram_board boot next @0x00200040 put bootinfo 130089 Run u-boot @0x00200040 U-Boot 2019.04-g3c37ae1 (Apr 20 2021 - 17:32:33 +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 = 0x4018 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: 00000011 .... [scr] romter boot Image Name: uboot Image Type: ARM Linux Sunplus Quick Boot Image (uncompressed) Data Size: 49088 Bytes = 47.9 KiB Load Address: 00010040 Entry Point: 00010040 Verifying Checksum ... OK [u-boot] nonos_B address 0x00010000 nonos_size= 49088 loading kernel ... kernel_hdr addr = 307fc0 ******OTP Secure Boot is OFF, return success****** ## Booting kernel from Legacy Image at 00307fc0 ... Image Name: Linux-5.4.35-g8d2baab Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 8697112 Bytes = 8.3 MiB Load Address: 00308000 Entry Point: 00308000 Verifying Checksum ... OK ## Flattened Device Tree blob at 1f900e98 Booting using the fdt blob at 0x1f900e98 XIP Kernel Image ... OK Loading Device Tree to 1f8f7000, end 1f8ff010 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.4.35-g8d2baab (wellslu@scdiu3) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #207 SMP PREEMPT Tue Apr 20 17:33:19 CST 2021 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: SP7021/CA7/Ev [ 0.000000] printk: bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] sp_map_io [ 0.000000] P_REG: [9c000000-9dffffff] -> [f8000000-f9ffffff] [ 0.000000] C_REG: [9ec00000-9effffff] -> [fa000000-fa3fffff] [ 0.000000] On node 0 totalpages: 130560 [ 0.000000] Normal zone: 1020 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 130560 pages, LIFO batch:31 [ 0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440 [ 0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129540 [ 0.000000] Kernel command line: console=tty1 console=ttyS0,115200 root=/dev/ram rw loglevel=8 user_debug=255 earlyprintk [ 0.000000] printk: log_buf_len individual max cpu contribution: 4096 bytes [ 0.000000] printk: log_buf_len total cpu_extra contributions: 12288 bytes [ 0.000000] printk: log_buf_len min size: 16384 bytes [ 0.000000] printk: log_buf_len: 32768 bytes [ 0.000000] printk: early log buf free: 14696(89%) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 498916K/522240K available (4096K kernel code, 807K rwdata, 1912K rodata, 10240K init, 226K bss, 23324K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 205 [ 0.000000] random: get_random_bytes called from start_kernel+0x1c3/0x344 with crng_init=0 [ 0.000000] @@@ Sunplus clock init [ 0.000000] plla 135475200 [ 0.000000] plle 50000000 [ 0.000000] plle_2p5 2500000 [ 0.000000] plle_25 25000000 [ 0.000000] plle_112p5 112500000 [ 0.000000] pllf 202500000 [ 0.000000] plltv 148500000 [ 0.000000] pllsys 202500000 [ 0.000000] arch_timer: cp15 timer(s) running at 27.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x63a1e71a3, max_idle_ns: 440795203123 ns [ 0.000010] sched_clock: 56 bits at 27MHz, resolution 37ns, wraps every 4398046511093ns [ 0.008129] Switching to timer-based delay loop, resolution 37ns [ 0.014964] Console: colour dummy device 80x30 [ 0.020212] printk: console [tty1] enabled [ 0.024434] Calibrating delay loop (skipped), value calculated using timer frequency.. 54.00 BogoMIPS (lpj=270000) [ 0.034964] pid_max: default: 32768 minimum: 301 [ 0.039939] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.047392] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.056271] CPU: Testing write buffer coherency: ok [ 0.061918] CPU0: update cpu_capacity 1024 [ 0.066093] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.132068] Setting up static identity map for 0x400000 - 0x400054 [ 0.138524] rcu: Hierarchical SRCU implementation. [ 0.183518] smp: Bringing up secondary CPUs ... [ 0.243987] CPU1: update cpu_capacity 1024 [ 0.243997] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.323915] CPU2: update cpu_capacity 1024 [ 0.323923] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.403998] CPU3: update cpu_capacity 1024 [ 0.404005] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.404124] smp: Brought up 1 node, 4 CPUs [ 0.438046] SMP: Total of 4 processors activated (216.00 BogoMIPS). [ 0.444423] CPU: All CPU(s) started in SVC mode. [ 0.449858] devtmpfs: initialized [ 0.459324] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.468109] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.478173] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.485632] pinctrl core: initialized pinctrl subsystem [ 0.491786] NET: Registered protocol family 16 [ 0.497004] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.505369] sp_init [ 0.507524] av1_stc: 0x0006c70c [ 0.510715] P-chip: sys = 202MHz, cpio_ctrl = (16bit, DDR) [ 0.516331] C-chip: core = 931MHz, sys = 465MHz, pllio = 1998MHz, cpio_bus = 399MHz [ 0.524107] apply partial clken to save power [ 0.528951] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.537100] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.543079] 1: ext0-mask=0xf [ 0.546014] 2: ext1-mask=0xe [ 0.565876] sppctl pctl: funcs: 156 unq_grps: 140 [ 0.570981] SP7021 PinCtl by Sunplus/Tibbo Tech.(C) 2020 [ 0.607943] fbcon: Taking over console [ 0.618402] SCSI subsystem initialized [ 0.623133] usbcore: registered new interface driver usbfs [ 0.628939] usbcore: registered new interface driver hub [ 0.634585] usbcore: registered new device driver usb [ 0.640254] videodev: Linux video capture interface: v2.00 [ 0.647364] sunplus,sp7021-ocotp 9c00af00.otp: by Sunplus (C) 2020 [ 0.655984] clocksource: Switched to clocksource arch_sys_counter [ 0.681159] register sunplus_usb_phy0_driver [ 0.686018] uphy0_irq:36 [ 0.695287] register sunplus_usb_phy1_driver [ 0.699874] uphy1_irq:37 [ 0.709048] register sunplus_usb_otg0_driver [ 0.713640] #@#OTG: @@@ otg reg -1676663808 112 irq 11 10000 [ 0.719667] #@#OTG: Init is B device [ 0.723688] register sunplus_usb_otg1_driver [ 0.728327] #@#OTG: @@@ otg reg -1676659712 112 irq 10 10000 [ 0.745982] #@#OTG: Init is B device [ 0.750348] HDMITX installed [ 0.753348] HDMI plug in [ 0.757085] NET: Registered protocol family 2 [ 0.762390] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.770975] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 0.778912] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.786241] TCP: Hash tables configured (established 4096 bind 4096) [ 0.792902] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.799633] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.807037] NET: Registered protocol family 1 [ 0.826440] RPC: Registered named UNIX socket transport module. [ 0.832470] RPC: Registered udp transport module. [ 0.837313] RPC: Registered tcp transport module. [ 0.842093] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.934584] hw perfevents: no interrupt-affinity property for /arm-pmu, guessing. [ 0.942977] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available [ 0.953383] Initialise system trusted keyrings [ 0.958500] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.966278] NFS: Registering the id_resolver key type [ 0.971471] Key type id_resolver registered [ 0.975721] Key type id_legacy registered [ 0.980166] Key type asymmetric registered [ 0.984342] Asymmetric key parser 'x509' registered [ 0.989412] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.996962] io scheduler mq-deadline registered [ 1.001566] io scheduler kyber registered [ 1.008859] K_TTYS: sp_uart0's Rx is in PIO mode. [ 1.013675] K_TTYS: sp_uart0's Tx is in PIO mode. [ 1.018528] 9c000900.serial: ttyS0 at MMIO 0x9c000900 (irq = 53, base_baud = 1687500) is a sp_uart0 [ 1.027825] printk: console [ttyS0] enabled [ 1.027825] printk: console [ttyS0] enabled [ 1.036262] printk: bootconsole [earlycon0] disabled [ 1.036262] printk: bootconsole [earlycon0] disabled [ 1.062268] loop: module loaded [ 1.064388] libphy: Fixed MDIO Bus: probed [ 1.064513] CAN device driver interface [ 1.065122] [L2SW] L2 switch mode = 0 [ 1.066087] [L2SW] HW Addr = 00:22:60:00:88:30 [ 1.071075] [L2SW] Registered net device "eth0" successfully. [ 1.076189] libphy: sunplus_mii_bus: probed [ 1.178894] net eth0: could not add device link to 9c108000.l2sw-mii:01 err -17 [ 1.180650] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.181616] ehci-platform: EHCI generic platform driver [ 1.187180] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.192931] ohci-platform: OHCI generic platform driver [ 1.198361] register ehci0_hcd_sunplus_driver [ 1.202685] ehci_id:1,irq:14 [ 1.205362] ehci0-sunplus 9c102100.usb: Generic Platform EHCI Controller [ 1.212046] ehci0-sunplus 9c102100.usb: new USB bus registered, assigned bus number 1 [ 1.220063] ehci0-sunplus 9c102100.usb: irq 14, io mem 0x9c102100 [ 1.245972] ehci0-sunplus 9c102100.usb: USB 2.0 started, EHCI 1.10 [ 1.247265] hub 1-0:1.0: USB hub found [ 1.247409] hub 1-0:1.0: 1 port detected [ 1.249111] hcd_irq:14,14 [ 1.251422] register ehci1_hcd_sunplus_driver [ 1.255797] ehci_id:2,irq:17 [ 1.258495] ehci1-sunplus 9c103100.usb: Generic Platform EHCI Controller [ 1.265105] ehci1-sunplus 9c103100.usb: new USB bus registered, assigned bus number 2 [ 1.273133] ehci1-sunplus 9c103100.usb: irq 17, io mem 0x9c103100 [ 1.305974] ehci1-sunplus 9c103100.usb: USB 2.0 started, EHCI 1.10 [ 1.307105] hub 2-0:1.0: USB hub found [ 1.307232] hub 2-0:1.0: 1 port detected [ 1.309053] hcd_irq:17,17 [ 1.311419] register ohci0_hcd_sunplus_driver [ 1.315789] ohci_id:1,irq:15 [ 1.318494] ohci0-sunplus 9c102080.usb: Generic Platform OHCI Controller [ 1.325107] ohci0-sunplus 9c102080.usb: new USB bus registered, assigned bus number 3 [ 1.333117] ohci0-sunplus 9c102080.usb: irq 15, io mem 0x9c102080 [ 1.408906] hub 3-0:1.0: USB hub found [ 1.409038] hub 3-0:1.0: 1 port detected [ 1.409752] register ohci1_hcd_sunplus_driver [ 1.410082] ohci_id:2,irq:18 [ 1.412620] ohci1-sunplus 9c103080.usb: Generic Platform OHCI Controller [ 1.419457] ohci1-sunplus 9c103080.usb: new USB bus registered, assigned bus number 4 [ 1.427322] ohci1-sunplus 9c103080.usb: irq 18, io mem 0x9c103080 [ 1.498850] hub 4-0:1.0: USB hub found [ 1.498983] hub 4-0:1.0: 1 port detected [ 1.499900] usbcore: registered new interface driver usb-storage [ 1.501520] register sunplus_driver_udc [ 1.501520] [ 1.507805] >>> sp_udc_alloc_request... [ 1.507805] [ 1.511910] <<< sp_udc_alloc_request... [ 1.511910] [ 1.517512] zero gadget: Gadget Zero, version: Cinco de Mayo 2008 [ 1.523249] zero gadget: zero ready [ 1.527633] mousedev: PS/2 mouse device common for all mice [ 1.533611] sp7021-rtc 9c003a00.serial: registered as rtc0 [ 1.537780] [RTC] Info: sp7021-rtc loaded [ 1.542217] [DISP][_display_probe:3137] disp probe ... [ 1.546994] [DISP]irq num:4 [ 1.549945] [DISP]ttl-name general hdmi,720X480 [ 1.555283] [DISP][_display_probe:3378] disp probe done [ 1.560018] usbcore: registered new interface driver uvcvideo [ 1.565285] USB Video Class driver (1.1.1) [ 1.569999] hidraw: raw HID events driver (C) Jiri Kosina [ 1.574987] usbcore: registered new interface driver usbhid [ 1.580314] usbhid: USB HID core driver [ 1.584083] exFAT: Version 1.3.0 [ 1.588017] NET: Registered protocol family 10 [ 1.593369] Segment Routing with IPv6 [ 1.595467] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.602450] NET: Registered protocol family 17 [ 1.605698] can: controller area network core (rev 20170425 abi 9) [ 1.612404] NET: Registered protocol family 29 [ 1.616275] can: raw protocol (rev 20170425) [ 1.620487] can: broadcast manager protocol (rev 20170425 t) [ 1.626149] can: netlink gateway (rev 20190810) max_hops=1 [ 1.631760] NET: Registered protocol family 37 [ 1.636082] Key type dns_resolver registered [ 1.640290] Key type ceph registered [ 1.644060] libceph: loaded (mon/osd proto 15/24) [ 1.648765] Registering SWP/SWPB emulation handler [ 1.653670] Loading compiled-in X.509 certificates [ 1.676089] usb 2-1: new high-speed USB device number 2 using ehci1-sunplus [ 1.678860] Console: switching to colour frame buffer device 90x30 [ 1.688709] sp7021-fb soc@B:fb_device: [_sp7021_fb_create_device:282] mem VA 0xe0879000(PA 0x1d800000), Palette VA 0xddbfec00(PA 0x1dbfec00), UI Res 720x480, size 2768896 + 1024 [ 1.703450] sp7021-rtc 9c003a00.serial: setting system clock to 1970-01-01T00:02:39 UTC (159) [ 1.732182] usb-storage 2-1:1.0: USB Mass Storage device detected [ 1.733540] Freeing unused kernel memory: 10240K [ 1.736852] scsi host0: usb-storage 2-1:1.0 [ 1.748539] random: fast init done [ 1.796217] Run /init as init process /etc/init.d/rcS starts... Mounting other filesystems ... rc.extra [bg] End of /etc/init.d/rcS 0x0000CC30 0x00000008 login[607]: root login on 'console' ~ # extra done ~ #
Refer to report of df command:
~ # df -hT Filesystem Type Size Used Available Use% Mounted on tmpfs tmpfs 248.6M 0 248.6M 0% /dev/shm tmpfs tmpfs 248.6M 0 248.6M 0% /tmp ~ #
Add Comment