ma35d1 yocto 編譯環境設置
1. Ubuntu主機安裝包
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping libsdl1.2-dev xterm curl
2. 更新 packages list
$ sudo apt-get update
3. 安裝一些先決條件包,讓 apt 通過 HTTPS 使用包
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
4. 將官方 Docker 存儲庫的 Docker 官方 GPG 密鑰添加到您的系統
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add
5. 設置穩定存儲庫,將 Docker 存儲庫添加到 APT 源
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
6. 使用新添加的repo中的 Docker 包更新包資料庫
$ sudo apt-get update
7. 安裝 Docker
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
8.下載ma35d1 Docker 腳本
$ git clone https://github.com/OpenNuvoton/MA35D1_Docker_Script.git
9. 進入docker-yocto文件夾,構建docker鏡像。大約需要一個小時才能獲得710個文件
$ ./build.sh
10. 輸入docker image,你的命令行頭就像這樣
sac-m@53557c92ac53:~$
$ ./join.sh
nvt_sac-m
sac-m@53557c92ac53:~$
11. 在 ~/share 下創建ma35d1-yocto目錄夾
sac-m@3ad4f18d34a8:~/share$ mkdir ma35d1-yocto
12. 第一次使用repo時,需要設置GIT環境
sac-m@53557c92ac53:~/share/ma35d1-yocto$ git config --global user.email "test@test.test.test"
sac-m@53557c92ac53:~/share/ma35d1-yocto$ git config --global user.name "test"
sac-m@53557c92ac53:~/share/ma35d1-yocto$ git config --global http.sslverify false
13. 到 ~/share/ma35d1-yocto下設置 repo init
sac-m@53557c92ac53:~/share/ma35d1-yocto$ repo init -u https://github.com/OpenNuvoton/MA35D1_Yocto-v3.1.3.git -m meta-ma35d1/base/ma35d1.xml
14. 下載ma35d1 yocto project
sac-m@53557c92ac53:~/share/ma35d1-yocto$ repo sync
yocto下構建ma35d1鏡像
1. 設置構建配置,DISTRO選項我們通常使用nvt-ma35d1-directfb
~/yocto$ DISTRO=nvt-ma35d1-directfb MACHINE=numaker-iot-ma35d16f90 source sources/init-build-env build-iot-ma35d16f90
如果您曾經退出容器並想再次構建圖像,請source一下環境變量即可
~/ma35d1-yocto$ source sources/init-build-env build-iot-ma35d16f90/
2.選擇要構建的鏡像進行bitbake
~/ma35d1-yocto$ bitbake core-image-minimal
構建過程:


構建輸出相關的文檔:





將image 文件燒錄到EVB 運行後的log:
MA35D1 IBR 20211029
RTC power on
NAND Boot
header0 CRC OK!
finish
INFO: ma35d1 config setup
INFO: CA-PLL is 800000000 Hz
POR: 0xb00
INFO: Boot from NAND
INFO: NAND: Size 1024MB, Page 2048, pages per block 64, oob size 64, bit correct 8
NOTICE: BL2: v2.3(release):tc-v1.0.001-25-gba98f9b83-dirty
NOTICE: BL2: Built : 02:57:30, Feb 9 2023
INFO: BL2: Doing platform setup
INFO: BL2: Loading image id 3
INFO: Loading image id=3 at address 0x28025000
INFO: Image id=3 loaded: 0x28025000 - 0x280321a1
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x9f800000
INFO: Image id=4 loaded: 0x9f800000 - 0x9f80001c
INFO: OPTEE ep=0x9f800000
INFO: OPTEE header info:
INFO: magic=0x4554504f
INFO: version=0x2
INFO: arch=0x1
INFO: flags=0x0
INFO: nb_images=0x1
INFO: BL2: Loading image id 21
INFO: Loading image id=21 at address 0x9f800000
INFO: Image id=21 loaded: 0x9f800000 - 0x9f85f558
INFO: BL2: Skip loading image id 22
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0x85500000
INFO: Image id=5 loaded: 0x85500000 - 0x855e975f
NOTICE: BL2: Booting BL31
INFO: Entry point address = 0x28025000
INFO: SPSR = 0x3cd
INFO: ma35d1 config setup
INFO: CA-PLL is 800000000 Hz
NOTICE: BL31: v2.3(release):tc-v1.0.001-25-gba98f9b83-dirty
NOTICE: BL31: Built : 02:57:30, Feb 9 2023
INFO: ARM GICv2 driver initialized
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x85500000
INFO: SPSR = 0x3c9
U-Boot 2020.07 (Feb 07 2023 - 07:39:44 +0000)
CPU: Nuvoton MA35D1
Model: Nuvoton MA35D1 U-boot
DRAM: 112 MiB
WDT: Not found!
NAND: 1024 MiB
MMC: sdhci@40190000: 0
Loading Environment from NAND... OK
In: serial@40700000
Out: serial@40700000
Err: serial@40700000
Net:
Warning: ethernet@40120000 using MAC address from DT
eth0: ethernet@40120000 [PRIME]
Warning: ethernet@40130000 using MAC address from DT
, eth1: ethernet@40130000
Hit any key to stop autoboot: 0
Booting from nand ... ...
NAND read: device 0 offset 0x400000, size 0x1800000
25165824 bytes read: OK
NAND read: device 0 offset 0x3c0000, size 0x40000
262144 bytes read: OK
## Flattened Device Tree blob at 85000000
Booting using the fdt blob at 0x85000000
Loading Device Tree to 00000000864dd000, end 00000000864e93e3 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd040]
[ 0.000000] Linux version 5.10.140 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Tue Feb 7 08:56:02 UTC 2023
[ 0.000000] Machine model: Nuvoton MA35D1-IoT
[ 0.000000] Memory limited to 504MB
[ 0.000000] efi: UEFI not found.
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x000000009f7fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x9f6fb000-0x9f6fcfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x000000009f7fffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000008001ffff]
[ 0.000000] node 0: [mem 0x0000000080020000-0x000000008007ffff]
[ 0.000000] node 0: [mem 0x0000000080080000-0x0000000089ffffff]
[ 0.000000] node 0: [mem 0x000000008a000000-0x000000008f7fffff]
[ 0.000000] node 0: [mem 0x000000008f800000-0x000000009f7fffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009f7fffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 21 pages/cpu s48920 r8192 d28904 u86016
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 127008
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: noinitrd ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs rw rootwait=1 console=ttyS0,115200n8 rdinit=/sbin/init mem=504M
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 401176K/516096K available (8320K kernel code, 1436K rwdata, 2364K rodata, 1472K init, 566K bss, 114920K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: Offload RCU callbacks from CPUs: (none).
[ 0.000000] arch_timer: cp15 timer(s) running at 12.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2c47f4ee7, max_idle_ns: 440795202497 ns
[ 0.000010] sched_clock: 56 bits at 12MHz, resolution 83ns, wraps every 4398046511096ns
[ 0.000583] Console: colour dummy device 80x25
[ 0.273100] printk: console [ttyS0] enabled
[ 0.277373] Calibrating delay loop (skipped), value calculated using timer frequency.. 24.00 BogoMIPS (lpj=12000)
[ 0.287569] pid_max: default: 32768 minimum: 301
[ 0.292388] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.299640] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.310461] rcu: Hierarchical SRCU implementation.
[ 0.315787] EFI services will not be available.
[ 0.320794] smp: Bringing up secondary CPUs ...
[ 0.326229] Detected VIPT I-cache on CPU1
[ 0.326336] CPU1: Booted secondary processor 0x0000000001 [0x411fd040]
[ 0.326518] smp: Brought up 1 node, 2 CPUs
[ 0.341033] SMP: Total of 2 processors activated.
[ 0.345716] CPU features: detected: 32-bit EL0 Support
[ 0.350829] CPU features: detected: CRC32 instructions
[ 0.357732] CPU: All CPU(s) started at EL2
[ 0.361784] alternatives: patching kernel code
[ 0.367450] devtmpfs: initialized
[ 0.388864] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.398586] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.405574] pinctrl core: initialized pinctrl subsystem
[ 0.411785] DMI not present or invalid.
[ 0.416343] NET: Registered protocol family 16
[ 0.421883] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.428926] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.436649] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.445563] thermal_sys: Registered thermal governor 'step_wise'
[ 0.445573] thermal_sys: Registered thermal governor 'user_space'
[ 0.452282] cpuidle: using governor menu
[ 0.462741] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.469532] ASID allocator initialised with 65536 entries
[ 0.501526] ma35d1-clk 40460200.clock-controller: Nuvoton MA35D1 Clock Driver
[ 0.518057] Nuvoton MA35D1 CAPLL/DDRPLL Read Only.
[ 0.522806] Nuvoton MA35D1 CAPLL/DDRPLL Read Only.
[ 0.534261] ma35d1-pinctrl pinctrl: initialized NVT pinctrl driver
[ 0.540384] ma35d1-pinctrl pinctrl: gpioa registered 16 GPIOs
[ 0.546945] ma35d1-pinctrl pinctrl: gpiob registered 16 GPIOs
[ 0.553248] ma35d1-pinctrl pinctrl: gpioc registered 16 GPIOs
[ 0.559557] ma35d1-pinctrl pinctrl: gpiod registered 16 GPIOs
[ 0.565849] ma35d1-pinctrl pinctrl: gpioe registered 16 GPIOs
[ 0.572152] ma35d1-pinctrl pinctrl: gpiof registered 16 GPIOs
[ 0.578423] ma35d1-pinctrl pinctrl: gpiog registered 16 GPIOs
[ 0.584745] ma35d1-pinctrl pinctrl: gpioh registered 16 GPIOs
[ 0.591005] ma35d1-pinctrl pinctrl: gpioi registered 16 GPIOs
[ 0.597288] ma35d1-pinctrl pinctrl: gpioj registered 16 GPIOs
[ 0.603555] ma35d1-pinctrl pinctrl: gpiok registered 16 GPIOs
[ 0.609864] ma35d1-pinctrl pinctrl: gpiol registered 16 GPIOs
[ 0.616138] ma35d1-pinctrl pinctrl: gpiom registered 16 GPIOs
[ 0.622411] ma35d1-pinctrl pinctrl: gpion registered 16 GPIOs
[ 0.649010] cryptd: max_cpu_qlen set to 1000
[ 0.663971] SCSI subsystem initialized
[ 0.668053] usbcore: registered new interface driver usbfs
[ 0.673563] usbcore: registered new interface driver hub
[ 0.678868] usbcore: registered new device driver usb
[ 0.684164] mc: Linux media interface: v0.10
[ 0.688428] videodev: Linux video capture interface: v2.00
[ 0.694847] Advanced Linux Sound Architecture Driver Initialized.
[ 0.702858] clocksource: Switched to clocksource arch_sys_counter
[ 0.725147] NET: Registered protocol family 2
[ 0.729757] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.738265] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.746657] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.754403] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.761583] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.768086] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.774600] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.781702] NET: Registered protocol family 1
[ 0.786861] RPC: Registered named UNIX socket transport module.
[ 0.792727] RPC: Registered udp transport module.
[ 0.797394] RPC: Registered tcp transport module.
[ 0.802074] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.822519] Initialise system trusted keyrings
[ 0.827219] workingset: timestamp_bits=42 max_order=17 bucket_order=0
[ 0.850418] NFS: Registering the id_resolver key type
[ 0.855582] Key type id_resolver registered
[ 0.859703] Key type id_legacy registered
[ 0.863749] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.949935] NET: Registered protocol family 38
[ 0.954341] Key type asymmetric registered
[ 0.958388] Asymmetric key parser 'x509' registered
[ 0.963298] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.970624] io scheduler mq-deadline registered
[ 0.975126] io scheduler kyber registered
[ 0.983038] 40700000.serial: ttyS0 at I/O 0x40700000 (irq = 14, base_baud = 1500000) is a MA35D1
[ 0.993026] 407a0000.serial: ttyS10 at I/O 0x407a0000 (irq = 15, base_baud = 1500000) is a MA35D1
[ 1.003074] 407c0000.serial: ttyS12 at I/O 0x407c0000 (irq = 16, base_baud = 1500000) is a MA35D1
[ 1.013127] 407d0000.serial: ttyS13 at I/O 0x407d0000 (irq = 17, base_baud = 1500000) is a MA35D1
[ 1.023209] 407e0000.serial: ttyS14 at I/O 0x407e0000 (irq = 18, base_baud = 1500000) is a MA35D1
[ 1.033696] Register MA35D1 TRNG optee client driver.
[ 1.055084] brd: module loaded
[ 1.058325] Register MA35D1 KS optee client driver.
[ 1.064430] SCSI Media Changer driver v0.25
[ 1.069080] ma35d1 mtd nand driver version: 20200921
[ 1.074862] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xd3
[ 1.081149] nand: Winbond W29N08GV
[ 1.084530] nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.092156] attach: page 2048, SMRA size 64, 60
[ 1.097395] Bad block table not found for chip 0
[ 1.102549] Bad block table not found for chip 0
[ 1.107116] Scanning device for bad blocks
[ 1.440329] Bad block table written to 0x00003ffe0000, version 0x01
[ 1.447992] Bad block table written to 0x00003ffc0000, version 0x01
[ 1.455036] 5 fixed-partitions partitions found on MTD device nand0
[ 1.461259] Creating 5 MTD partitions on "nand0":
[ 1.465952] 0x000000000000-0x000000300000 : "nand-uboot"
[ 1.474227] 0x000000300000-0x0000003c0000 : "nand-uboot-env"
[ 1.482213] 0x0000003c0000-0x000000400000 : "nand-device-tree"
[ 1.490344] 0x000000400000-0x000001c00000 : "nand-kernel"
[ 1.498240] 0x000001c00000-0x000008000000 : "nand-rootfs"
[ 1.506956] fmi-sm: registered successfully! mtdid=nand0
[ 1.514766] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.520037] spi-nand spi0.0: 512 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.528820] 5 fixed-partitions partitions found on MTD device spi0.0
[ 1.535132] Creating 5 MTD partitions on "spi0.0":
[ 1.539908] 0x000000000000-0x000000300000 : "spinand-uboot"
[ 1.550099] 0x000000300000-0x0000003c0000 : "spinand-uboot-env"
[ 1.558920] 0x0000003c0000-0x000000400000 : "spinand-device-tree"
[ 1.567457] 0x000000400000-0x000001c00000 : "spinand-kernel"
[ 1.591714] 0x000001c00000-0x000008000000 : "spinand-rootfs"
[ 1.674445] CAN device driver interface
[ 1.679787] m_can_platform 403d0000.can: m_can device registered (irq=19, version=32)
[ 1.688869] ma35d1-gmac 40120000.ethernet: IRQ eth_wake_irq not found
[ 1.695252] ma35d1-gmac 40120000.ethernet: IRQ eth_lpi not found
[ 1.701409] ma35d1-gmac 40120000.ethernet: Set TX delay(0x0).
[ 1.707105] ma35d1-gmac 40120000.ethernet: Set RX delay(0x0).
[ 1.713193] ma35d1-gmac 40120000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[ 1.720110] ma35d1-gmac 40120000.ethernet: DWMAC1000
[ 1.725119] ma35d1-gmac 40120000.ethernet: DMA HW capability register supported
[ 1.732396] ma35d1-gmac 40120000.ethernet: RX Checksum Offload Engine supported
[ 1.739681] ma35d1-gmac 40120000.ethernet: COE Type 2
[ 1.744701] ma35d1-gmac 40120000.ethernet: TX Checksum insertion supported
[ 1.751549] ma35d1-gmac 40120000.ethernet: Enhanced/Alternate descriptors
[ 1.758308] ma35d1-gmac 40120000.ethernet: Enabled extended descriptors
[ 1.764895] ma35d1-gmac 40120000.ethernet: Ring mode enabled
[ 1.770528] ma35d1-gmac 40120000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 1.783983] ma35d1-gmac 40130000.ethernet: IRQ eth_wake_irq not found
[ 1.790373] ma35d1-gmac 40130000.ethernet: IRQ eth_lpi not found
[ 1.796681] ma35d1-gmac 40130000.ethernet: Set TX delay(0x0).
[ 1.802386] ma35d1-gmac 40130000.ethernet: Set RX delay(0x0).
[ 1.808591] ma35d1-gmac 40130000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[ 1.815504] ma35d1-gmac 40130000.ethernet: DWMAC1000
[ 1.820513] ma35d1-gmac 40130000.ethernet: DMA HW capability register supported
[ 1.827789] ma35d1-gmac 40130000.ethernet: RX Checksum Offload Engine supported
[ 1.835069] ma35d1-gmac 40130000.ethernet: COE Type 2
1. Ubuntu主機安裝包
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping libsdl1.2-dev xterm curl
2. 更新 packages list
$ sudo apt-get update
3. 安裝一些先決條件包,讓 apt 通過 HTTPS 使用包
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
4. 將官方 Docker 存儲庫的 Docker 官方 GPG 密鑰添加到您的系統
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add
5. 設置穩定存儲庫,將 Docker 存儲庫添加到 APT 源
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
6. 使用新添加的repo中的 Docker 包更新包資料庫
$ sudo apt-get update
7. 安裝 Docker
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
8.下載ma35d1 Docker 腳本
$ git clone https://github.com/OpenNuvoton/MA35D1_Docker_Script.git
9. 進入docker-yocto文件夾,構建docker鏡像。大約需要一個小時才能獲得710個文件
$ ./build.sh
10. 輸入docker image,你的命令行頭就像這樣
sac-m@53557c92ac53:~$
$ ./join.sh
nvt_sac-m
sac-m@53557c92ac53:~$
11. 在 ~/share 下創建ma35d1-yocto目錄夾
sac-m@3ad4f18d34a8:~/share$ mkdir ma35d1-yocto
12. 第一次使用repo時,需要設置GIT環境
sac-m@53557c92ac53:~/share/ma35d1-yocto$ git config --global user.email "test@test.test.test"
sac-m@53557c92ac53:~/share/ma35d1-yocto$ git config --global user.name "test"
sac-m@53557c92ac53:~/share/ma35d1-yocto$ git config --global http.sslverify false
13. 到 ~/share/ma35d1-yocto下設置 repo init
sac-m@53557c92ac53:~/share/ma35d1-yocto$ repo init -u https://github.com/OpenNuvoton/MA35D1_Yocto-v3.1.3.git -m meta-ma35d1/base/ma35d1.xml
14. 下載ma35d1 yocto project
sac-m@53557c92ac53:~/share/ma35d1-yocto$ repo sync
yocto下構建ma35d1鏡像
1. 設置構建配置,DISTRO選項我們通常使用nvt-ma35d1-directfb
~/yocto$ DISTRO=nvt-ma35d1-directfb MACHINE=numaker-iot-ma35d16f90 source sources/init-build-env build-iot-ma35d16f90
如果您曾經退出容器並想再次構建圖像,請source一下環境變量即可
~/ma35d1-yocto$ source sources/init-build-env build-iot-ma35d16f90/
2.選擇要構建的鏡像進行bitbake
~/ma35d1-yocto$ bitbake core-image-minimal
構建過程:


構建輸出相關的文檔:





將image 文件燒錄到EVB 運行後的log:
MA35D1 IBR 20211029
RTC power on
NAND Boot
header0 CRC OK!
finish
INFO: ma35d1 config setup
INFO: CA-PLL is 800000000 Hz
POR: 0xb00
INFO: Boot from NAND
INFO: NAND: Size 1024MB, Page 2048, pages per block 64, oob size 64, bit correct 8
NOTICE: BL2: v2.3(release):tc-v1.0.001-25-gba98f9b83-dirty
NOTICE: BL2: Built : 02:57:30, Feb 9 2023
INFO: BL2: Doing platform setup
INFO: BL2: Loading image id 3
INFO: Loading image id=3 at address 0x28025000
INFO: Image id=3 loaded: 0x28025000 - 0x280321a1
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x9f800000
INFO: Image id=4 loaded: 0x9f800000 - 0x9f80001c
INFO: OPTEE ep=0x9f800000
INFO: OPTEE header info:
INFO: magic=0x4554504f
INFO: version=0x2
INFO: arch=0x1
INFO: flags=0x0
INFO: nb_images=0x1
INFO: BL2: Loading image id 21
INFO: Loading image id=21 at address 0x9f800000
INFO: Image id=21 loaded: 0x9f800000 - 0x9f85f558
INFO: BL2: Skip loading image id 22
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0x85500000
INFO: Image id=5 loaded: 0x85500000 - 0x855e975f
NOTICE: BL2: Booting BL31
INFO: Entry point address = 0x28025000
INFO: SPSR = 0x3cd
INFO: ma35d1 config setup
INFO: CA-PLL is 800000000 Hz
NOTICE: BL31: v2.3(release):tc-v1.0.001-25-gba98f9b83-dirty
NOTICE: BL31: Built : 02:57:30, Feb 9 2023
INFO: ARM GICv2 driver initialized
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x85500000
INFO: SPSR = 0x3c9
U-Boot 2020.07 (Feb 07 2023 - 07:39:44 +0000)
CPU: Nuvoton MA35D1
Model: Nuvoton MA35D1 U-boot
DRAM: 112 MiB
WDT: Not found!
NAND: 1024 MiB
MMC: sdhci@40190000: 0
Loading Environment from NAND... OK
In: serial@40700000
Out: serial@40700000
Err: serial@40700000
Net:
Warning: ethernet@40120000 using MAC address from DT
eth0: ethernet@40120000 [PRIME]
Warning: ethernet@40130000 using MAC address from DT
, eth1: ethernet@40130000
Hit any key to stop autoboot: 0
Booting from nand ... ...
NAND read: device 0 offset 0x400000, size 0x1800000
25165824 bytes read: OK
NAND read: device 0 offset 0x3c0000, size 0x40000
262144 bytes read: OK
## Flattened Device Tree blob at 85000000
Booting using the fdt blob at 0x85000000
Loading Device Tree to 00000000864dd000, end 00000000864e93e3 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd040]
[ 0.000000] Linux version 5.10.140 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Tue Feb 7 08:56:02 UTC 2023
[ 0.000000] Machine model: Nuvoton MA35D1-IoT
[ 0.000000] Memory limited to 504MB
[ 0.000000] efi: UEFI not found.
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x000000009f7fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x9f6fb000-0x9f6fcfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x000000009f7fffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000008001ffff]
[ 0.000000] node 0: [mem 0x0000000080020000-0x000000008007ffff]
[ 0.000000] node 0: [mem 0x0000000080080000-0x0000000089ffffff]
[ 0.000000] node 0: [mem 0x000000008a000000-0x000000008f7fffff]
[ 0.000000] node 0: [mem 0x000000008f800000-0x000000009f7fffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009f7fffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 21 pages/cpu s48920 r8192 d28904 u86016
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 127008
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: noinitrd ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs rw rootwait=1 console=ttyS0,115200n8 rdinit=/sbin/init mem=504M
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 401176K/516096K available (8320K kernel code, 1436K rwdata, 2364K rodata, 1472K init, 566K bss, 114920K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: Offload RCU callbacks from CPUs: (none).
[ 0.000000] arch_timer: cp15 timer(s) running at 12.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2c47f4ee7, max_idle_ns: 440795202497 ns
[ 0.000010] sched_clock: 56 bits at 12MHz, resolution 83ns, wraps every 4398046511096ns
[ 0.000583] Console: colour dummy device 80x25
[ 0.273100] printk: console [ttyS0] enabled
[ 0.277373] Calibrating delay loop (skipped), value calculated using timer frequency.. 24.00 BogoMIPS (lpj=12000)
[ 0.287569] pid_max: default: 32768 minimum: 301
[ 0.292388] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.299640] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.310461] rcu: Hierarchical SRCU implementation.
[ 0.315787] EFI services will not be available.
[ 0.320794] smp: Bringing up secondary CPUs ...
[ 0.326229] Detected VIPT I-cache on CPU1
[ 0.326336] CPU1: Booted secondary processor 0x0000000001 [0x411fd040]
[ 0.326518] smp: Brought up 1 node, 2 CPUs
[ 0.341033] SMP: Total of 2 processors activated.
[ 0.345716] CPU features: detected: 32-bit EL0 Support
[ 0.350829] CPU features: detected: CRC32 instructions
[ 0.357732] CPU: All CPU(s) started at EL2
[ 0.361784] alternatives: patching kernel code
[ 0.367450] devtmpfs: initialized
[ 0.388864] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.398586] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.405574] pinctrl core: initialized pinctrl subsystem
[ 0.411785] DMI not present or invalid.
[ 0.416343] NET: Registered protocol family 16
[ 0.421883] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.428926] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.436649] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.445563] thermal_sys: Registered thermal governor 'step_wise'
[ 0.445573] thermal_sys: Registered thermal governor 'user_space'
[ 0.452282] cpuidle: using governor menu
[ 0.462741] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.469532] ASID allocator initialised with 65536 entries
[ 0.501526] ma35d1-clk 40460200.clock-controller: Nuvoton MA35D1 Clock Driver
[ 0.518057] Nuvoton MA35D1 CAPLL/DDRPLL Read Only.
[ 0.522806] Nuvoton MA35D1 CAPLL/DDRPLL Read Only.
[ 0.534261] ma35d1-pinctrl pinctrl: initialized NVT pinctrl driver
[ 0.540384] ma35d1-pinctrl pinctrl: gpioa registered 16 GPIOs
[ 0.546945] ma35d1-pinctrl pinctrl: gpiob registered 16 GPIOs
[ 0.553248] ma35d1-pinctrl pinctrl: gpioc registered 16 GPIOs
[ 0.559557] ma35d1-pinctrl pinctrl: gpiod registered 16 GPIOs
[ 0.565849] ma35d1-pinctrl pinctrl: gpioe registered 16 GPIOs
[ 0.572152] ma35d1-pinctrl pinctrl: gpiof registered 16 GPIOs
[ 0.578423] ma35d1-pinctrl pinctrl: gpiog registered 16 GPIOs
[ 0.584745] ma35d1-pinctrl pinctrl: gpioh registered 16 GPIOs
[ 0.591005] ma35d1-pinctrl pinctrl: gpioi registered 16 GPIOs
[ 0.597288] ma35d1-pinctrl pinctrl: gpioj registered 16 GPIOs
[ 0.603555] ma35d1-pinctrl pinctrl: gpiok registered 16 GPIOs
[ 0.609864] ma35d1-pinctrl pinctrl: gpiol registered 16 GPIOs
[ 0.616138] ma35d1-pinctrl pinctrl: gpiom registered 16 GPIOs
[ 0.622411] ma35d1-pinctrl pinctrl: gpion registered 16 GPIOs
[ 0.649010] cryptd: max_cpu_qlen set to 1000
[ 0.663971] SCSI subsystem initialized
[ 0.668053] usbcore: registered new interface driver usbfs
[ 0.673563] usbcore: registered new interface driver hub
[ 0.678868] usbcore: registered new device driver usb
[ 0.684164] mc: Linux media interface: v0.10
[ 0.688428] videodev: Linux video capture interface: v2.00
[ 0.694847] Advanced Linux Sound Architecture Driver Initialized.
[ 0.702858] clocksource: Switched to clocksource arch_sys_counter
[ 0.725147] NET: Registered protocol family 2
[ 0.729757] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.738265] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.746657] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.754403] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.761583] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.768086] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.774600] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.781702] NET: Registered protocol family 1
[ 0.786861] RPC: Registered named UNIX socket transport module.
[ 0.792727] RPC: Registered udp transport module.
[ 0.797394] RPC: Registered tcp transport module.
[ 0.802074] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.822519] Initialise system trusted keyrings
[ 0.827219] workingset: timestamp_bits=42 max_order=17 bucket_order=0
[ 0.850418] NFS: Registering the id_resolver key type
[ 0.855582] Key type id_resolver registered
[ 0.859703] Key type id_legacy registered
[ 0.863749] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.949935] NET: Registered protocol family 38
[ 0.954341] Key type asymmetric registered
[ 0.958388] Asymmetric key parser 'x509' registered
[ 0.963298] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.970624] io scheduler mq-deadline registered
[ 0.975126] io scheduler kyber registered
[ 0.983038] 40700000.serial: ttyS0 at I/O 0x40700000 (irq = 14, base_baud = 1500000) is a MA35D1
[ 0.993026] 407a0000.serial: ttyS10 at I/O 0x407a0000 (irq = 15, base_baud = 1500000) is a MA35D1
[ 1.003074] 407c0000.serial: ttyS12 at I/O 0x407c0000 (irq = 16, base_baud = 1500000) is a MA35D1
[ 1.013127] 407d0000.serial: ttyS13 at I/O 0x407d0000 (irq = 17, base_baud = 1500000) is a MA35D1
[ 1.023209] 407e0000.serial: ttyS14 at I/O 0x407e0000 (irq = 18, base_baud = 1500000) is a MA35D1
[ 1.033696] Register MA35D1 TRNG optee client driver.
[ 1.055084] brd: module loaded
[ 1.058325] Register MA35D1 KS optee client driver.
[ 1.064430] SCSI Media Changer driver v0.25
[ 1.069080] ma35d1 mtd nand driver version: 20200921
[ 1.074862] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xd3
[ 1.081149] nand: Winbond W29N08GV
[ 1.084530] nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.092156] attach: page 2048, SMRA size 64, 60
[ 1.097395] Bad block table not found for chip 0
[ 1.102549] Bad block table not found for chip 0
[ 1.107116] Scanning device for bad blocks
[ 1.440329] Bad block table written to 0x00003ffe0000, version 0x01
[ 1.447992] Bad block table written to 0x00003ffc0000, version 0x01
[ 1.455036] 5 fixed-partitions partitions found on MTD device nand0
[ 1.461259] Creating 5 MTD partitions on "nand0":
[ 1.465952] 0x000000000000-0x000000300000 : "nand-uboot"
[ 1.474227] 0x000000300000-0x0000003c0000 : "nand-uboot-env"
[ 1.482213] 0x0000003c0000-0x000000400000 : "nand-device-tree"
[ 1.490344] 0x000000400000-0x000001c00000 : "nand-kernel"
[ 1.498240] 0x000001c00000-0x000008000000 : "nand-rootfs"
[ 1.506956] fmi-sm: registered successfully! mtdid=nand0
[ 1.514766] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.520037] spi-nand spi0.0: 512 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.528820] 5 fixed-partitions partitions found on MTD device spi0.0
[ 1.535132] Creating 5 MTD partitions on "spi0.0":
[ 1.539908] 0x000000000000-0x000000300000 : "spinand-uboot"
[ 1.550099] 0x000000300000-0x0000003c0000 : "spinand-uboot-env"
[ 1.558920] 0x0000003c0000-0x000000400000 : "spinand-device-tree"
[ 1.567457] 0x000000400000-0x000001c00000 : "spinand-kernel"
[ 1.591714] 0x000001c00000-0x000008000000 : "spinand-rootfs"
[ 1.674445] CAN device driver interface
[ 1.679787] m_can_platform 403d0000.can: m_can device registered (irq=19, version=32)
[ 1.688869] ma35d1-gmac 40120000.ethernet: IRQ eth_wake_irq not found
[ 1.695252] ma35d1-gmac 40120000.ethernet: IRQ eth_lpi not found
[ 1.701409] ma35d1-gmac 40120000.ethernet: Set TX delay(0x0).
[ 1.707105] ma35d1-gmac 40120000.ethernet: Set RX delay(0x0).
[ 1.713193] ma35d1-gmac 40120000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[ 1.720110] ma35d1-gmac 40120000.ethernet: DWMAC1000
[ 1.725119] ma35d1-gmac 40120000.ethernet: DMA HW capability register supported
[ 1.732396] ma35d1-gmac 40120000.ethernet: RX Checksum Offload Engine supported
[ 1.739681] ma35d1-gmac 40120000.ethernet: COE Type 2
[ 1.744701] ma35d1-gmac 40120000.ethernet: TX Checksum insertion supported
[ 1.751549] ma35d1-gmac 40120000.ethernet: Enhanced/Alternate descriptors
[ 1.758308] ma35d1-gmac 40120000.ethernet: Enabled extended descriptors
[ 1.764895] ma35d1-gmac 40120000.ethernet: Ring mode enabled
[ 1.770528] ma35d1-gmac 40120000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 1.783983] ma35d1-gmac 40130000.ethernet: IRQ eth_wake_irq not found
[ 1.790373] ma35d1-gmac 40130000.ethernet: IRQ eth_lpi not found
[ 1.796681] ma35d1-gmac 40130000.ethernet: Set TX delay(0x0).
[ 1.802386] ma35d1-gmac 40130000.ethernet: Set RX delay(0x0).
[ 1.808591] ma35d1-gmac 40130000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[ 1.815504] ma35d1-gmac 40130000.ethernet: DWMAC1000
[ 1.820513] ma35d1-gmac 40130000.ethernet: DMA HW capability register supported
[ 1.827789] ma35d1-gmac 40130000.ethernet: RX Checksum Offload Engine supported
[ 1.835069] ma35d1-gmac 40130000.ethernet: COE Type 2
[ 1.840104] ma35d1-gmac 40130000.ethernet: TX Checksum insertion supported
[ 1.846943] ma35d1-gmac 40130000.ethernet: Enhanced/Alternate descriptors
[ 1.853702] ma35d1-gmac 40130000.ethernet: Enabled extended descriptors
[ 1.860288] ma35d1-gmac 40130000.ethernet: Ring mode enabled
[ 1.865922] ma35d1-gmac 40130000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 1.878793] usbcore: registered new interface driver rtl8192cu
[ 1.885748] dwc2 40200000.usb: supply vusb_d not found, using dummy regulator
[ 1.893098] dwc2 40200000.usb: supply vusb_a not found, using dummy regulator
[ 2.101497] dwc2 40200000.usb: Configuration mismatch. dr_mode forced to device
[ 2.108865] dwc2 40200000.usb: EPs: 9, dedicated fifos, 3000 entries in SPRAM
[ 2.117275] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.123756] ehci-platform: EHCI generic platform driver
[ 2.129213] ehci-ma35d1: Nuvoton MA35D1 EHCI driver
[ 2.177887] ma35d1-ehci 40140000.ehci: EHCI Host Controller
[ 2.183434] ma35d1-ehci 40140000.ehci: new USB bus registered, assigned bus number 1
[ 2.191342] ma35d1-ehci 40140000.ehci: irq 21, io mem 0x40140000
[ 2.203938] ma35d1-ehci 40140000.ehci: USB 2.0 started, EHCI 1.00
[ 2.211250] hub 1-0:1.0: USB hub found
[ 2.214999] hub 1-0:1.0: 1 port detected
[ 2.220126] ma35d1-ehci 401c0000.ehci: EHCI Host Controller
[ 2.225670] ma35d1-ehci 401c0000.ehci: new USB bus registered, assigned bus number 2
[ 2.233520] ma35d1-ehci 401c0000.ehci: irq 22, io mem 0x401c0000
[ 2.245885] ma35d1-ehci 401c0000.ehci: USB 2.0 started, EHCI 1.00
[ 2.253060] hub 2-0:1.0: USB hub found
[ 2.256800] hub 2-0:1.0: 1 port detected
[ 2.261710] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.267871] ohci-platform: OHCI generic platform driver
[ 2.273243] ohci-ma35d1: Nuvoton MA35D1 OHCI driver
[ 2.278263] usb-ohci 40150000.ohci: at 0x(____ptrval____), irq 0
[ 2.284228] usb-ohci 40150000.ohci: OHCI Host Controller
[ 2.289519] usb-ohci 40150000.ohci: new USB bus registered, assigned bus number 3
[ 2.297145] usb-ohci 40150000.ohci: irq 23, io mem 0x40150000
[ 2.359140] hub 3-0:1.0: USB hub found
[ 2.362908] hub 3-0:1.0: 1 port detected
[ 2.367887] usb-ohci 401d0000.ohci: at 0x(____ptrval____), irq 0
[ 2.373867] usb-ohci 401d0000.ohci: OHCI Host Controller
[ 2.379144] usb-ohci 401d0000.ohci: new USB bus registered, assigned bus number 4
[ 2.386740] usb-ohci 401d0000.ohci: irq 24, io mem 0x401d0000
[ 2.449063] hub 4-0:1.0: USB hub found
[ 2.452804] hub 4-0:1.0: 1 port detected
[ 2.458206] usbcore: registered new interface driver uas
[ 2.463633] usbcore: registered new interface driver usb-storage
[ 2.470363] ma35d1-adc 40420000.adc: Nuvoton MA35D1 ADC Driver
[ 2.476149] ma35d1-adc 40420000.adc: Use default pressure threshold select
[ 2.482981] ma35d1-adc 40420000.adc: Use default convert delay time
[ 2.500691] input: MA35D1 Touch Screen as /devices/platform/40420000.adc/input/input0
[ 2.510236] i2c /dev entries driver
[ 2.515038] ma35d1-i2c 40810000.i2c: i2c-0: ma35d1 I2C adapter
[ 2.522163] ma35d1-i2c 40820000.i2c: i2c-1: ma35d1 I2C adapter
[ 2.529092] ma35d1-i2c 40840000.i2c: i2c-2: ma35d1 I2C adapter
[ 2.535967] ma35d1-i2c 40850000.i2c: i2c-3: ma35d1 I2C adapter
[ 2.542735] usbcore: registered new interface driver uvcvideo
[ 2.548420] USB Video Class driver (1.1.1)
[ 2.554030] sdhci: Secure Digital Host Controller Interface driver
[ 2.560145] sdhci: Copyright(c) Pierre Ossman
[ 2.564475] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.571457] sdhci-ma35d1 40190000.sdhci: Got CD GPIO
[ 2.576444] sdhci-ma35d1 40190000.sdhci: Got WP GPIO
[ 2.614664] mmc0: SDHCI controller on 40190000.sdhci [40190000.sdhci] using ADMA
[ 2.624047] SMCCC: SOC_ID: ID = jep106:043b:0000 Revision = 0x00000000
[ 2.630694] MA35D1 PRNG is not enabled when MA35D1 TRNG is used.
[ 2.638449] MA35D1 Crypto AES engine enabled.
[ 2.646334] MA35D1 Crypto SHA engine enabled.
[ 2.651047] MA35D1 Crypto ECC engine enabled.
[ 2.655635] MA35D1 Crypto RSA engine enabled.
[ 2.660501] usbcore: registered new interface driver usbhid
[ 2.666014] usbhid: USB HID core driver
[ 2.671167] remoteproc remoteproc0: rproc is available
[ 2.678399] optee: probing for conduit method.
E/TC:? 0 ma35d1_tsi_init:83 Wait TSI_Sync.
E/TC:? 0 ma35d1_tsi_init:79 TSI F/W version: 20210415
E/TC:? 0 ma35d1_tsi_init:93 Load TSI image successful.
[ 2.682821] optee: revision 3.9 (49e947a8)
[ 2.712745] optee get TRNG STAT=0x0, ISTAT=0x0
[ 2.722155] optee: initialized driver
[ 2.871752] NET: Registered protocol family 10
[ 2.878252] Segment Routing with IPv6
[ 2.881966] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.888858] NET: Registered protocol family 17
[ 2.893251] can: controller area network core
[ 2.897672] NET: Registered protocol family 29
[ 2.902057] can: raw protocol
[ 2.905004] can: broadcast manager protocol
[ 2.909171] can: netlink gateway - max_hops=1
[ 2.914054] Key type dns_resolver registered
[ 2.919143] Loading compiled-in X.509 certificates
[ 2.924659] mmc0: error -84 whilst initialising SD card
[ 2.957774] ubi0: default fastmap pool size: 40
[ 2.962267] ubi0: default fastmap WL pool size: 20
[ 2.967081] ubi0: attaching mtd4
[ 3.142375] mmc0: new ultra high speed SDR104 SDHC card at address 59b4
[ 3.150241] mmcblk0: mmc0:59b4 USDU1 14.7 GiB
[ 3.156760] mmcblk0: p1
[ 3.259690] ubi0: scanning is finished
[ 3.272230] ubi0: attached mtd4 (name "nand-rootfs", size 100 MiB)
[ 3.278366] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 3.285195] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 3.291957] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 3.298886] ubi0: good PEBs: 800, bad PEBs: 0, corrupted PEBs: 0
[ 3.304867] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 3.312061] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 2081683224
[ 3.321160] ubi0: available PEBs: 0, total reserved PEBs: 800, PEBs reserved for bad PEB handling: 160
[ 3.330457] ubi0: background thread "ubi_bgt0d" started, PID 159
[ 3.337614] input: gpio_keys_test as /devices/platform/gpio_keys_test/input/input1
[ 3.346286] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.357518] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.364155] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.365128] Nuvoton MA35D1 CAPLL/DDRPLL Cannot disable.
[ 3.372714] cfg80211: failed to load regulatory.db
[ 3.377893] Nuvoton MA35D1 CAPLL/DDRPLL Cannot disable.
[ 3.387891] ALSA device list:
[ 3.390822] #0: ma35d1_IIS
[ 3.395187] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 3.401070] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 164
[ 3.410015] UBIFS (ubi0:0): recovery needed
[ 3.471829] UBIFS (ubi0:0): recovery completed
[ 3.476400] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 3.483746] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 3.493614] UBIFS (ubi0:0): FS size: 79106048 bytes (75 MiB, 623 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 3.504012] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 3.509821] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID C6AEE62B-BDEC-43A7-9ABE-CF32E294289B, small LPT model
[ 3.521818] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 3.528668] devtmpfs: mounted
[ 3.533170] Freeing unused kernel memory: 1472K
[ 3.537793] Run /sbin/init as init process
[ 3.839004] systemd[1]: System time before build time, advancing clock.
[ 3.919827] systemd[1]: systemd 244 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[ 3.943755] systemd[1]: Detected architecture arm64.
Welcome to Nuvoton Release Distro 5.5-dunfell (dunfell)!
[ 3.984744] systemd[1]: Set hostname to <numaker-iot-ma35d16f90>.
[ 4.835478] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.843033] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 4.855379] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 4.872005] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 4.883661] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.892694] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ 4.904927] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.914684] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 4.926903] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ 4.947320] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ 4.962916] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ 4.972587] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 4.984468] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 4.993726] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 5.009066] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 5.019048] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 5.064702] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[ 5.074942] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 5.087898] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 5.099642] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 5.113824] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 5.125711] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 5.137661] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 5.146418] systemd[1]: Condition check resulted in POSIX Message Queue File System being skipped.
[ 5.164747] systemd[1]: Mounting Kernel Debug File System...
Mounting Kernel Debug File System...
[ 5.184182] systemd[1]: Mounting Temporary Directory (/tmp)...
Mounting Temporary Directory (/tmp)...
[ 5.195642] systemd[1]: Condition check resulted in Create list of static device nodes for the current kernel being skipped.
[ 5.207395] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 5.238300] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 5.252163] systemd[1]: Condition check resulted in Load Kernel Modules being skipped.
[ 5.261248] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[ 5.277161] systemd[1]: Mounting Kernel Configuration File System...
Mounting Kernel Configuration File System...
[ 5.303384] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 5.332593] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 5.378498] systemd[1]: Starting udev Coldplug all Devices...
Starting udev Coldplug all Devices...
[ 5.411054] systemd[1]: Mounted Kernel Debug File System.
[ OK ] Mounted Kernel Debug File System.
[ 5.423808] systemd[1]: Mounted Temporary Directory (/tmp).
[ OK ] Mounted Temporary Directory (/tmp).
[ 5.440134] systemd[1]: Mounted Kernel Configuration File System.
[ OK ] Mounted Kernel Configuration File System.
[ 5.467343] systemd[1]: Started Remount Root and Kernel File Systems.
[ OK ] Started Remount Root and Kernel File Systems.
[ 5.494610] systemd[1]: Started Apply Kernel Variables.
[ OK ] Started Apply Kernel Variables.
[ 5.519773] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 5.536783] systemd[1]: Condition check resulted in Create System Users being skipped.
[ 5.568292] systemd[1]: Starting Create Static Device Nodes in /dev...
Starting Create Static Device Nodes in /dev...
[ 5.680165] systemd[1]: Started Create Static Device Nodes in /dev.
[ OK ] Started Create Static Device Nodes in /dev.
[ 5.701173] systemd[1]: Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems (Pre).
[ 5.720463] systemd[1]: Mounting /var/volatile...
Mounting /var/volatile...
[ 5.740813] systemd[1]: Starting udev Kernel Device Manager...
Starting udev Kernel Device Manager...
[ 5.756557] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ 5.769290] systemd[189]: systemd-udevd.service: ProtectHostname=yes is configured, but the kernel does not support UTS namespaces, ignoring namespace setup.
[ OK ] Mounted /var/volatile.
Starting Flush Journal to Persistent Storage...
Starting Load/Save Random Seed...
[ 5.843552] random: systemd: uninitialized urandom read (16 bytes read)
[ 5.854514] random: systemd-journal: uninitialized urandom read (16 bytes read)
[ OK ] Reached target Local File Systems.
[ 5.897765] systemd-journald[178]: Received client request to flush runtime journal.
[ OK ] Started Flush Journal to Persistent Storage.
[ 5.931430] random: systemd: uninitialized urandom read (16 bytes read)
Starting Create Volatile Files and Directories...
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Create Volatile Files and Directories.
Starting Network Service...
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started udev Coldplug all Devices.
[ 6.890746] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.972398] random: systemd: uninitialized urandom read (16 bytes read)
[ OK ] Started Network Service.
[ 7.124186] ma35d1-gmac 40130000.ethernet eth1: PHY [stmmac-1:01] driver [RTL8201F Fast Ethernet] (irq=POLL)
[ 7.157626] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.213628] ma35d1-vc8k 40290000.vc8k: registered nuvoton,ma35d1-vc8k-dec as /dev/video0
[ 7.261221] ma35d1-gmac 40130000.ethernet eth1: No Safety Features support found
[ 7.268769] ma35d1-gmac 40130000.ethernet eth1: No MAC Management Counters available
[ 7.276530] ma35d1-gmac 40130000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[ 7.313304] ma35d1-vc8k 40290000.vc8k: PP default enabled
[ 7.318739] ma35d1-vc8k 40290000.vc8k: fb_width = 1024
[ 7.323862] ma35d1-vc8k 40290000.vc8k: fb_height = 600
[ 7.328932] ma35d1-vc8k 40290000.vc8k: fb_fmt = BA24
[ 7.333895] ma35d1-vc8k 40290000.vc8k: ppc.frame_buf_w = 1024
[ 7.339595] ma35d1-vc8k 40290000.vc8k: ppc.frame_buf_h = 600
[ 7.345224] ma35d1-vc8k 40290000.vc8k: ppc.img_out_x = 0
[ 7.350577] ma35d1-vc8k 40290000.vc8k: ppc.img_out_y = 0
[ 7.355830] ma35d1-vc8k 40290000.vc8k: ppc.img_out_w = 1024
[ 7.361401] ma35d1-vc8k 40290000.vc8k: ppc.img_out_h = 600
[ 7.385472] ma35d1-gmac 40130000.ethernet eth1: configuring for phy/rmii link mode
[ 7.407897] ma35d1-vc8k 40290000.vc8k: VC8000 reserved memory: vaddr: 0xffff800012000000, paddr: 0x8a800000 size 0x2000000
[ 7.418932] ma35d1-vc8k 40290000.vc8k: Reserved memory used as device coherent memory.
[ 7.447723] ma35d1-vc8k 40290000.vc8k: MA35D1 VC8000 probe OK. [1.0.4]
[ 7.503822] ma35d1-gmac 40120000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[ 7.532571] ma35d1-gmac 40120000.ethernet eth0: No Safety Features support found
[ 7.540069] ma35d1-gmac 40120000.ethernet eth0: No MAC Management Counters available
[ 7.547814] ma35d1-gmac 40120000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 7.611933] random: crng init done
[ 7.615298] random: 57 urandom warning(s) missed due to ratelimiting
[ 7.630208] ma35d1-gmac 40120000.ethernet eth0: configuring for phy/rgmii-id link mode
[ OK ] Started Network Time Synchronization.
[ OK ] Started Load/Save Random Seed.
[ OK ] Reached target System Time Set.
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target Hardware activated USB gadget.
Starting Network Name Resolution...
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Save/Restore Sound Card State...
[ OK ] Started Kernel Logging Service.
[ OK ] Started System Logging Service.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
Starting Login Service...
[ OK ] Started TEE Supplicant.
[ OK ] Started Save/Restore Sound Card State.
[ OK ] Reached target Sound Card.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Started Login Service.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
Nuvoton Release Distro 5.5-dunfell numaker-iot-ma35d16f90 ttyS0
numaker-iot-ma35d16f90 login: root
root@numaker-iot-ma35d16f90:~#
完畢!
評論