OpenNuvoton / MA35D1_NuWriter

MA35D1 NuWriter
GNU General Public License v3.0
0 stars 0 forks source link

need steps for write pack image into NAND for booting test #2

Closed KunYi closed 1 year ago

KunYi commented 1 year ago

How to write pack image into NAND flash (WINBOND W29N08GV)on Numark-IoT-MA35D?

I verify write pack-image into SPI-NAND and SDCard success! but testing NAND device always failed.

the below are operation steps.

first step issues erase all command for NAND

$ python nuwriter.py -a ddrimg/MA35D16F987C.bin -e nand all

second step to write pack image into NAND

$ python nuwriter.py -a ddrimg/MA35D16F987C.bin -w nand  <pack image>

then switch booting from NAND the device output the below log from UART, always Err-ECC/NAND read image fail

download image to NAND flash...
Action flag: WRITE, offset 0x1c00000, len 0x2780000, opmode/flag: 0x2/0x1 
op 0x1, oob 0x64
blockNum=224,total=41418752
finish NAND image download

MA35D1 IBR 20211029
RTC power on
NAND Boot
T12
Err-ECC
header0 CRC OK!
Err-ECC
NAND read image fail
USBD Boot
TSI Connected

and check operation log. find a incorrect about Spare size: 100 the value should equal 64, not 100

$ python nuwriter.py -a ddrimg/MA35D16F987C.bin -e nand all
Successfully attached 1 device(s)

==== NAND ====
Page per block: 64
Page size: 2048
Block per flash: 4096
Bad block count: 0
Spare size: 100
Is uer config: 0
==== SPI NOR ====
ID: 0
Is uer config: 0
Quad read cmd: 0
Read sts cmd: 0
Write sts cmd: 0
Sts value: 0
Dummy byte: 0
==== eMMC ====
Block: 0
Reserved: 0
==== SPI NAND ====
Is uer config: 0
ID: 15710755
Page size: 2048
Spare size: 64
Quad read cmd: 107
Read sts cmd: 5
Write sts cmd: 1
Sts value: 2
Dummy byte: 1
Block per flash: 4096
Page per block: 64

Successfully get info from 1 device(s)
100%|##########                                                                                                                        
Successfully erased 1 device(s)

the below log from UART, and see incorret value for oob, oob=100 from following line BlockPerFlash=4096, PagePerBlock=64, PageSize=2048, oob=100

NuWriter... version Nov 17 2022 11:38:54
connect
Early suspend interrupt
Suspend interrupt :(DSTS):0x400003

Reset interrupt - (SYS_MISCISR):0x40004
Speed Detection interrupt
High Speed Detection : 0x0
Early suspend interrupt
Suspend interrupt :(DSTS):0x651001

Reset interrupt - (SYS_MISCISR):0x40004
Speed Detection interrupt
High Speed Detection : 0x0
Early suspend interrupt

Reset interrupt - (SYS_MISCISR):0x40004
Speed Detection interrupt
High Speed Detection : 0x0
*** USB_REQ_SET_ADDRESS (30)
<0x5 / 0x5>

Receive INFO(80) flash Image ...
Get INFO flash Image ...

<0x4900>

SPI NAND: QSPI->CTL = 0x805    QSPI->SSCTL = 0x5   QSPI->CLKDIV = 0x5
Auto Detect
ID=[0xefba23]
BlockPerFlash = 4096, PagePerBlock = 64
PageSize = 2048, SpareArea = 64
QuadReadCmd    = 0x6b
ReadStatusCmd  = 0x5
WriteStatusCmd = 0x1
StatusValue    = 0x2
Dummybyte      = 0x1
page 2048, spare area 64, block 64 (4096), 1
page size 2048, page/block 64
T12
finish nand: page 2048, oob 100, ecc 0x200000, 0
finish ibr-nand: page 0, oob 0, ecc 0x0, 0

BlockPerFlash=4096, PagePerBlock=64, PageSize=2048, oob=100

SD1 0x4900

sdhci_setup_cfg, caps: 0x276ec898
sdhci_setup_cfg, caps_1: 0x8008077
MMC: no card present
clock is disabled (0Hz)
selecting mode MMC legacy (freq : 0 MHz)
clock is enabled (400000Hz)
SDHCI_INT_STATUS(offest 0x30)=0x00018000
SDHCI_INT_STATUS(offest 0x30)=0x00018000
SD err=-110
SDHCI_INT_STATUS(offest 0x30)=0x00018000
Card did not respond to voltage select!
mmc_init: -95, time 1174
sd size 0 MBytes 

Finish get INFO!!

debug LED is Port 9 bit 15
<0x1 / 0x1>

download image to NAND flash...
Action flag: ERASE, offset 0x0, len 0x0, opmode/flag: 0x3/0x0 
op 0x0, oob 0x64
NAND erase !!!

start = 0, count = 0
total 0 bad block
finish NAND image download

snippet log of NAND write operation, got wrong oob size

download image to NAND flash...
Action flag: WRITE, offset 0xe0000, len 0xd506, opmode/flag: 0x2/0x0 
op 0x0, oob 0x64
blockNum=7,total=54534
finish NAND image download
<0x1 / 0x1>

download image to NAND flash...
Action flag: WRITE, offset 0x100000, len 0x1615f5, opmode/flag: 0x2/0x1 
op 0x1, oob 0x64
blockNum=8,total=1447413
finish NAND image download
<0x1 / 0x1>

download image to NAND flash...
Action flag: WRITE, offset 0x300000, len 0x10000, opmode/flag: 0x2/0x1 
op 0x1, oob 0x64
blockNum=24,total=65536
finish NAND image download
<0x1 / 0x1>

download image to NAND flash...
Action flag: WRITE, offset 0x3c0000, len 0x9378, opmode/flag: 0x2/0x1 
op 0x1, oob 0x64
blockNum=30,total=37752
finish NAND image download
<0x1 / 0x1>

download image to NAND flash...
Action flag: WRITE, offset 0x400000, len 0xd67200, opmode/flag: 0x2/0x1 
op 0x1, oob 0x64
blockNum=32,total=14053888
finish NAND image download
<0x1 / 0x1>

download image to NAND flash...
Action flag: WRITE, offset 0x1c00000, len 0x2780000, opmode/flag: 0x2/0x1 
op 0x1, oob 0x64
blockNum=224,total=41418752
finish NAND image download
ychuang3 commented 1 year ago

Please refer to the Buildroot user manual section 3.3 from the following link: https://www.nuvoton.com/resource-download.jsp?tp_GUID=UG132022112308521448

KunYi commented 1 year ago

Right, follow the manual operation steps burnNAND to got the below error result

download image to NAND flash...
Action flag: WRITE, offset 0x1c00000, len 0x2780000, opmode/flag: 0x2/0x1 
op 0x1, oob 0x64
blockNum=224,total=41418752
finish NAND image download

MA35D1 IBR 20211029
RTC power on
NAND Boot
T12
Err-ECC
header0 CRC OK!
Err-ECC
NAND read image fail
USBD Boot
TSI Connected
ychuang3 commented 1 year ago

It seems that you have modified the NAND related power-on setting switch. Please make sure power-on setting 4 ~ 7 are all in OFF.

By the way, the command flow should be:

  1. python nuwriter.py –a ddrimg/MA35D16F987C.bin
  2. python nuwriter.py –e nand all
  3. python nuwriter.py –w nand
KunYi commented 1 year ago

Thank you so much. You are right. It depend power-on setting. due to I keep ON state of SW.7 (sdcard1) for SD card booting verify The setting will invoke the error OOB/Spare to 100(0x64)

currently boot success

MA35D1 IBR 20211029
RTC power on
NAND Boot
header0 CRC OK!
finish
INFO:    ma35d1 config setup
INFO:    1.25V
WARNING: CA-PLL is 800000000 Hz without PSCI setting.
POR: 0x900
INFO:    Boot from NAND
INFO:    NAND: Size 1024MB, Page 2048, pages per block 64, oob size 64, bit correct 8
NOTICE:  BL2: v2.6(release):v2.6-dirty
NOTICE:  BL2: Built : 13:14:26, Nov 23 2021
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 - 0x280331a2
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 - 0x9f8645b0
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 - 0x855eedaf
NOTICE:  BL2: Booting BL31
INFO:    Entry point address = 0x28025000
INFO:    SPSR = 0x3cd
INFO:    ma35d1 config setup
INFO:    1.25V
WARNING: CA-PLL is 800000000 Hz without PSCI setting.
NOTICE:  BL31: v2.6(release):v2.6-dirty
NOTICE:  BL31: Built : 13:14:26, Nov 23 2021
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 (Nov 23 2022 - 06:17:00 +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 00000000864d8000, end 00000000864e4377 ... 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) 11.2.1 20220111, GNU ld (GNU2
[    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 0x9f6fc000-0x9f6fdfff]
[    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=ttyM
[    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, 2356K rodata, 1472K init, 564K )
[    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: 4407952s
[    0.000009] sched_clock: 56 bits at 12MHz, resolution 83ns, wraps every 4398046511096ns
[    0.000594] Console: colour dummy device 80x25
[    0.273891] printk: console [ttyS0] enabled
[    0.278160] Calibrating delay loop (skipped), value calculated using timer frequency.. 24.00 BogoMIPS (lpj=1200)
[    0.288355] pid_max: default: 32768 minimum: 301
[    0.293180] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.300431] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.311248] rcu: Hierarchical SRCU implementation.
[    0.316578] EFI services will not be available.
[    0.321585] smp: Bringing up secondary CPUs ...
[    0.327032] Detected VIPT I-cache on CPU1
[    0.327143] CPU1: Booted secondary processor 0x0000000001 [0x411fd040]
[    0.327324] smp: Brought up 1 node, 2 CPUs
[    0.341840] SMP: Total of 2 processors activated.
[    0.346523] CPU features: detected: 32-bit EL0 Support
[    0.351637] CPU features: detected: CRC32 instructions
[    0.358525] CPU: All CPU(s) started at EL2
[    0.362579] alternatives: patching kernel code
[    0.368317] devtmpfs: initialized
[    0.389733] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.399452] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.406421] pinctrl core: initialized pinctrl subsystem
[    0.412629] DMI not present or invalid.
[    0.417199] NET: Registered protocol family 16
[    0.422767] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.429801] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.437512] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.446407] thermal_sys: Registered thermal governor 'step_wise'
[    0.446418] thermal_sys: Registered thermal governor 'user_space'
[    0.453134] cpuidle: using governor menu
[    0.463486] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.470277] ASID allocator initialised with 65536 entries
[    0.502270] ma35d1-clk 40460200.clock-controller: Nuvoton MA35D1 Clock Driver
[    0.518913] Nuvoton MA35D1 CAPLL/DDRPLL Read Only.
[    0.523662] Nuvoton MA35D1 CAPLL/DDRPLL Read Only.
[    0.535044] ma35d1-pinctrl pinctrl: initialized NVT pinctrl driver
[    0.541172] ma35d1-pinctrl pinctrl: gpioa registered 16 GPIOs
[    0.547757] ma35d1-pinctrl pinctrl: gpiob registered 16 GPIOs
[    0.554057] ma35d1-pinctrl pinctrl: gpioc registered 16 GPIOs
[    0.560376] ma35d1-pinctrl pinctrl: gpiod registered 16 GPIOs
[    0.566662] ma35d1-pinctrl pinctrl: gpioe registered 16 GPIOs
[    0.572983] ma35d1-pinctrl pinctrl: gpiof registered 16 GPIOs
[    0.579249] ma35d1-pinctrl pinctrl: gpiog registered 16 GPIOs
[    0.585583] ma35d1-pinctrl pinctrl: gpioh registered 16 GPIOs
[    0.591850] ma35d1-pinctrl pinctrl: gpioi registered 16 GPIOs
[    0.598127] ma35d1-pinctrl pinctrl: gpioj registered 16 GPIOs
[    0.604408] ma35d1-pinctrl pinctrl: gpiok registered 16 GPIOs
[    0.610715] ma35d1-pinctrl pinctrl: gpiol registered 16 GPIOs
[    0.616992] ma35d1-pinctrl pinctrl: gpiom registered 16 GPIOs
[    0.623258] ma35d1-pinctrl pinctrl: gpion registered 16 GPIOs
[    0.650725] cryptd: max_cpu_qlen set to 1000
[    0.665772] SCSI subsystem initialized
[    0.669812] usbcore: registered new interface driver usbfs
[    0.675336] usbcore: registered new interface driver hub
[    0.680659] usbcore: registered new device driver usb
[    0.685924] mc: Linux media interface: v0.10
[    0.690185] videodev: Linux video capture interface: v2.00
[    0.696623] Advanced Linux Sound Architecture Driver Initialized.
[    0.704630] clocksource: Switched to clocksource arch_sys_counter
[    0.727209] NET: Registered protocol family 2
[    0.731835] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.740284] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.748697] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.756442] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.763640] TCP: Hash tables configured (established 4096 bind 4096)
[    0.770129] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.776653] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.783770] NET: Registered protocol family 1
[    0.788939] RPC: Registered named UNIX socket transport module.
[    0.794804] RPC: Registered udp transport module.
[    0.799472] RPC: Registered tcp transport module.
[    0.804152] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.824729] Initialise system trusted keyrings
[    0.829466] workingset: timestamp_bits=42 max_order=17 bucket_order=0
[    0.852780] NFS: Registering the id_resolver key type
[    0.857835] Key type id_resolver registered
[    0.861955] Key type id_legacy registered
[    0.865988] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.954161] NET: Registered protocol family 38
[    0.958572] Key type asymmetric registered
[    0.962621] Asymmetric key parser 'x509' registered
[    0.967523] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.974837] io scheduler mq-deadline registered
[    0.979339] io scheduler kyber registered
[    0.987293] 40700000.serial: ttyS0 at I/O 0x40700000 (irq = 14, base_baud = 1500000) is a MA35D1
[    0.997274] 407a0000.serial: ttyS10 at I/O 0x407a0000 (irq = 15, base_baud = 1500000) is a MA35D1
[    1.007304] 407c0000.serial: ttyS12 at I/O 0x407c0000 (irq = 16, base_baud = 1500000) is a MA35D1
[    1.017358] 407d0000.serial: ttyS13 at I/O 0x407d0000 (irq = 17, base_baud = 1500000) is a MA35D1
[    1.027383] 407e0000.serial: ttyS14 at I/O 0x407e0000 (irq = 18, base_baud = 1500000) is a MA35D1
[    1.037950] Register MA35D1 TRNG optee client driver.
[    1.059127] brd: module loaded
[    1.062353] Register MA35D1 KS optee client driver.
[    1.068535] SCSI Media Changer driver v0.25 
[    1.073173] ma35d1 mtd nand driver version: 20200921
[    1.078975] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xd3
[    1.085261] nand: Winbond W29N08GV
[    1.088641] nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.096271] attach: page 2048, SMRA size 64, 60
[    1.101569] Bad block table not found for chip 0
[    1.106734] Bad block table not found for chip 0
[    1.111292] Scanning device for bad blocks
[    1.443106] Bad block table written to 0x00003ffe0000, version 0x01
[    1.450814] Bad block table written to 0x00003ffc0000, version 0x01
[    1.457759] 5 fixed-partitions partitions found on MTD device nand0
[    1.463989] Creating 5 MTD partitions on "nand0":
[    1.468683] 0x000000000000-0x000000300000 : "nand-uboot"
[    1.476989] 0x000000300000-0x0000003c0000 : "nand-uboot-env"
[    1.484982] 0x0000003c0000-0x000000400000 : "nand-device-tree"
[    1.493072] 0x000000400000-0x000001c00000 : "nand-kernel"
[    1.501018] 0x000001c00000-0x000008000000 : "nand-rootfs"
[    1.509705] fmi-sm: registered successfully! mtdid=nand0
[    1.517552] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.522824] spi-nand spi0.0: 512 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.531601] 5 fixed-partitions partitions found on MTD device spi0.0
[    1.537944] Creating 5 MTD partitions on "spi0.0":
[    1.542725] 0x000000000000-0x000000300000 : "spinand-uboot"
[    1.552910] 0x000000300000-0x0000003c0000 : "spinand-uboot-env"
[    1.561677] 0x0000003c0000-0x000000400000 : "spinand-device-tree"
[    1.570258] 0x000000400000-0x000001c00000 : "spinand-kernel"
[    1.594393] 0x000001c00000-0x000008000000 : "spinand-rootfs"
[    1.676832] CAN device driver interface
[    1.682157] m_can_platform 403d0000.can: m_can device registered (irq=19, version=32)
[    1.691201] ma35d1-gmac 40120000.ethernet: IRQ eth_wake_irq not found
[    1.697598] ma35d1-gmac 40120000.ethernet: IRQ eth_lpi not found
[    1.703761] ma35d1-gmac 40120000.ethernet: Set TX delay(0x0).
[    1.709448] ma35d1-gmac 40120000.ethernet: Set RX delay(0x0).
[    1.715533] ma35d1-gmac 40120000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    1.722451] ma35d1-gmac 40120000.ethernet:   DWMAC1000
[    1.727460] ma35d1-gmac 40120000.ethernet: DMA HW capability register supported
[    1.734736] ma35d1-gmac 40120000.ethernet: RX Checksum Offload Engine supported
[    1.742021] ma35d1-gmac 40120000.ethernet: COE Type 2
[    1.747041] ma35d1-gmac 40120000.ethernet: TX Checksum insertion supported
[    1.753889] ma35d1-gmac 40120000.ethernet: Enhanced/Alternate descriptors
[    1.760648] ma35d1-gmac 40120000.ethernet: Enabled extended descriptors
[    1.767234] ma35d1-gmac 40120000.ethernet: Ring mode enabled
[    1.772868] ma35d1-gmac 40120000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.786305] ma35d1-gmac 40130000.ethernet: IRQ eth_wake_irq not found
[    1.792699] ma35d1-gmac 40130000.ethernet: IRQ eth_lpi not found
[    1.799008] ma35d1-gmac 40130000.ethernet: Set TX delay(0x0).
[    1.804719] ma35d1-gmac 40130000.ethernet: Set RX delay(0x0).
[    1.810823] ma35d1-gmac 40130000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    1.817751] ma35d1-gmac 40130000.ethernet:   DWMAC1000
[    1.822762] ma35d1-gmac 40130000.ethernet: DMA HW capability register supported
[    1.830032] ma35d1-gmac 40130000.ethernet: RX Checksum Offload Engine supported
[    1.837307] ma35d1-gmac 40130000.ethernet: COE Type 2
[    1.842332] ma35d1-gmac 40130000.ethernet: TX Checksum insertion supported
[    1.849180] ma35d1-gmac 40130000.ethernet: Enhanced/Alternate descriptors
[    1.855938] ma35d1-gmac 40130000.ethernet: Enabled extended descriptors
[    1.862526] ma35d1-gmac 40130000.ethernet: Ring mode enabled
[    1.868159] ma35d1-gmac 40130000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.881056] usbcore: registered new interface driver rtl8192cu
[    1.888050] dwc2 40200000.usb: supply vusb_d not found, using dummy regulator
[    1.895374] dwc2 40200000.usb: supply vusb_a not found, using dummy regulator
[    1.904340] dwc2 40200000.usb: Configuration mismatch. dr_mode forced to device
[    1.911734] dwc2 40200000.usb: EPs: 9, dedicated fifos, 3000 entries in SPRAM
[    1.920153] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.926638] ehci-platform: EHCI generic platform driver
[    1.932095] ehci-ma35d1: Nuvoton MA35D1 EHCI driver
[    1.958672] ma35d1-ehci 40140000.ehci: EHCI Host Controller
[    1.964223] ma35d1-ehci 40140000.ehci: new USB bus registered, assigned bus number 1
[    1.972111] ma35d1-ehci 40140000.ehci: irq 21, io mem 0x40140000
[    1.984660] ma35d1-ehci 40140000.ehci: USB 2.0 started, EHCI 1.00
[    1.992002] hub 1-0:1.0: USB hub found
[    1.995745] hub 1-0:1.0: 1 port detected
[    2.000913] ma35d1-ehci 401c0000.ehci: EHCI Host Controller
[    2.006455] ma35d1-ehci 401c0000.ehci: new USB bus registered, assigned bus number 2
[    2.014297] ma35d1-ehci 401c0000.ehci: irq 22, io mem 0x401c0000
[    2.026661] ma35d1-ehci 401c0000.ehci: USB 2.0 started, EHCI 1.00
[    2.033877] hub 2-0:1.0: USB hub found
[    2.037646] hub 2-0:1.0: 1 port detected
[    2.042601] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.048797] ohci-platform: OHCI generic platform driver
[    2.054185] ohci-ma35d1: Nuvoton MA35D1 OHCI driver
[    2.059220] usb-ohci 40150000.ohci: at 0x(____ptrval____), irq 0
[    2.065188] usb-ohci 40150000.ohci: OHCI Host Controller
[    2.070476] usb-ohci 40150000.ohci: new USB bus registered, assigned bus number 3
[    2.078085] usb-ohci 40150000.ohci: irq 23, io mem 0x40150000
[    2.140901] hub 3-0:1.0: USB hub found
[    2.144661] hub 3-0:1.0: 1 port detected
[    2.149639] usb-ohci 401d0000.ohci: at 0x(____ptrval____), irq 0
[    2.155603] usb-ohci 401d0000.ohci: OHCI Host Controller
[    2.160893] usb-ohci 401d0000.ohci: new USB bus registered, assigned bus number 4
[    2.168484] usb-ohci 401d0000.ohci: irq 24, io mem 0x401d0000
[    2.230888] hub 4-0:1.0: USB hub found
[    2.234665] hub 4-0:1.0: 1 port detected
[    2.240123] usbcore: registered new interface driver uas
[    2.245564] usbcore: registered new interface driver usb-storage
[    2.252342] ma35d1-adc 40420000.adc: Nuvoton MA35D1 ADC Driver
[    2.258130] ma35d1-adc 40420000.adc: Use default pressure threshold select
[    2.264961] ma35d1-adc 40420000.adc: Use default convert delay time
[    2.271226] ====>clk is 200000
[    2.282739] input: MA35D1 Touch Screen as /devices/platform/40420000.adc/input/input0
[    2.295271] i2c /dev entries driver
[    2.300046] ma35d1-i2c 40810000.i2c: i2c-0: ma35d1 I2C adapter
[    2.307106] ma35d1-i2c 40820000.i2c: i2c-1: ma35d1 I2C adapter
[    2.314033] ma35d1-i2c 40840000.i2c: i2c-2: ma35d1 I2C adapter
[    2.320931] ma35d1-i2c 40850000.i2c: i2c-3: ma35d1 I2C adapter
[    2.327742] usbcore: registered new interface driver uvcvideo
[    2.333425] USB Video Class driver (1.1.1)
[    2.339094] sdhci: Secure Digital Host Controller Interface driver
[    2.345214] sdhci: Copyright(c) Pierre Ossman
[    2.349555] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.356500] sdhci-ma35d1 40190000.sdhci: Got CD GPIO
[    2.361489] sdhci-ma35d1 40190000.sdhci: Got WP GPIO
[    2.399673] mmc0: SDHCI controller on 40190000.sdhci [40190000.sdhci] using ADMA
[    2.408953] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    2.415485] MA35D1 PRNG is not enabled when MA35D1 TRNG is used.
[    2.423218] MA35D1 Crypto AES engine enabled.
[    2.431002] MA35D1 Crypto SHA engine enabled.
[    2.435666] MA35D1 Crypto ECC engine enabled.
[    2.440183] MA35D1 Crypto RSA engine enabled.
[    2.445036] usbcore: registered new interface driver usbhid
[    2.450542] usbhid: USB HID core driver
[    2.455681] remoteproc remoteproc0: rproc is available
[    2.461737] optee: probing for conduit method.
E/TC:? 0 ma35d1_tsi_init:70 Wait TSI_Sync.
E/TC:? 0 ma35d1_tsi_init:66 TSI F/W version: 20210415
E/TC:? 0 ma35d1_tsi_init:80 Load TSI image successful.
[    2.466151] optee: revision 3.18 (1ee64703)
[    2.496036] optee get TRNG STAT=0x0, ISTAT=0x0
[    2.505392] optee: initialized driver
[    2.655603] NET: Registered protocol family 10
[    2.661980] Segment Routing with IPv6
[    2.665710] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.672580] NET: Registered protocol family 17
[    2.676999] can: controller area network core
[    2.681393] NET: Registered protocol family 29
[    2.685779] can: raw protocol
[    2.688724] can: broadcast manager protocol
[    2.692891] can: netlink gateway - max_hops=1
[    2.697768] Key type dns_resolver registered
[    2.702734] Loading compiled-in X.509 certificates
[    2.739734] ubi0: default fastmap pool size: 40
[    2.744233] ubi0: default fastmap WL pool size: 20
[    2.748981] ubi0: attaching mtd4
[    2.934862] ubi0: scanning is finished
[    2.961482] ubi0: volume 0 ("rootfs") re-sized from 314 to 634 LEBs
[    2.968780] ubi0: attached mtd4 (name "nand-rootfs", size 100 MiB)
[    2.974906] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.981745] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.988504] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.995436] ubi0: good PEBs: 800, bad PEBs: 0, corrupted PEBs: 0
[    3.001419] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    3.008612] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1349507554
[    3.017709] ubi0: available PEBs: 0, total reserved PEBs: 800, PEBs reserved for bad PEB handling: 160
[    3.027007] ubi0: background thread "ubi_bgt0d" started, PID 158
[    3.034204] input: gpio_keys_test as /devices/platform/gpio_keys_test/input/input1
[    3.042931] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.054131] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.060814] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.061852] Nuvoton MA35D1 CAPLL/DDRPLL Cannot disable.
[    3.069435] cfg80211: failed to load regulatory.db
[    3.074575] Nuvoton MA35D1 CAPLL/DDRPLL Cannot disable.
[    3.075566] ALSA device list:
[    3.087480]   #0: ma35d1_IIS
[    3.092289] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    3.098150] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 163
[    3.138934] UBIFS (ubi0:0): start fixing up free space
[    5.472748] UBIFS (ubi0:0): free space fixup complete
[    5.485493] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    5.492837] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    5.502712] UBIFS (ubi0:0): FS size: 79106048 bytes (75 MiB, 623 LEBs), journal size 9023488 bytes (8 MiB, 72 L)
[    5.513111] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    5.518916] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID F46F6AA8-281D-4067-9E5E-98777C448A22, sl
[    5.539053] VFS: Mounted root (ubifs filesystem) on device 0:14.
[    5.550949] devtmpfs: mounted
[    5.555304] Freeing unused kernel memory: 1472K
[    5.559918] Run /sbin/init as init process
[    6.302210] systemd[1]: System time before build time, advancing clock.
[    6.388241] systemd[1]: systemd 250.5+ running in system mode (-PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK -SECC)
[    6.421217] systemd[1]: Detected architecture arm64.

Welcome to MA35D1 Unoffical Release Distro 5.5-kirkstone (kirkstone)!

[    6.460397] systemd[1]: Hostname set to <numaker-iot-ma35d16f90>.
[    6.471774] systemd[1]: Initializing machine ID from random generator.
[    6.679891] systemd[164]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.
[    7.467260] systemd[1]: Queued start job for default target Multi-User System.
[    7.550177] systemd[1]: Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/getty.
[    7.565944] systemd[1]: Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/modprobe.
[    7.581598] systemd[1]: Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/serial-getty.
[    7.597327] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    7.610954] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[    7.629437] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[    7.645244] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[    7.655186] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    7.667508] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[    7.677244] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[    7.695721] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    7.705718] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    7.757765] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity.
[    7.770785] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    7.783787] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    7.795391] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[    7.811768] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    7.823930] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    7.836847] systemd[1]: Listening on User Database Manager Socket.
[  OK  ] Listening on User Database Manager Socket.
[    7.849830] systemd[1]: Huge Pages File System was skipped because of a failed condition check (ConditionPathEx.
[    7.863368] systemd[1]: POSIX Message Queue File System was skipped because of a failed condition check (Condit.
[    7.887100] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    7.898550] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPath.
[    7.920789] systemd[1]: Mounting Temporary Directory /tmp...
         Mounting Temporary Directory /tmp...
[    7.934445] systemd[1]: Create List of Static Device Nodes was skipped because of a failed condition check (Con.
[    7.961371] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[    7.980476] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[    7.999318] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[    8.010030] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (Condi.
[    8.024766] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not.
[    8.037594] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[    8.061596] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    8.074695] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.
[    8.093145] systemd[1]: Starting Generate network units from Kernel command line...
         Starting Generate network …ts from Kernel command line...
[    8.121227] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[    8.144128] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    8.181911] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[    8.251977] systemd[1]: Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Debug File System.
[    8.264828] systemd[1]: Mounted Temporary Directory /tmp.
[  OK  ] Mounted Temporary Directory /tmp.
[    8.289138] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    8.303692] systemd[1]: Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module configfs.
[    8.329254] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    8.347994] systemd[1]: Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module drm.
[    8.364400] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[    8.383936] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Module fuse.
[    8.404508] systemd[1]: Finished Generate network units from Kernel command line.
[  OK  ] Finished Generate network units from Kernel command line.
[    8.433792] systemd[1]: Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Remount Root and Kernel File Systems.
[    8.458578] systemd[1]: Finished Apply Kernel Variables.
[  OK  ] Finished Apply Kernel Variables.
[    8.477922] systemd[1]: Reached target Preparation for Network.
[  OK  ] Reached target Preparation for Network.
[    8.494972] systemd[1]: FUSE Control File System was skipped because of a failed condition check (ConditionPath.
[    8.533380] systemd[1]: Mounting Kernel Configuration File System...
         Mounting Kernel Configuration File System...
[    8.557512] systemd[1]: Rebuild Hardware Database was skipped because all trigger condition checks failed.
[    8.572545] systemd[1]: Platform Persistent Storage Archival was skipped because of a failed condition check (C.
[    8.595020] systemd[1]: Starting Create System Users...
         Starting Create System Users...
[    8.630729] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Configuration File System.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Create System Users.
         Starting Creat[    8.782673] systemd-journald[180]: Received client request to flush runtime journal.
e Static Device Nodes in /dev...
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
         Mounting /var/volatile...
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Mounted /var/volatile.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Rebuild Dynamic Linker Cache...
         Starting Create Volatile Files and Directories...
[    9.238148] random: crng init done
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Rebuild Journal Catalog...
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting Network Configuration...
[  OK  ] Finished Rebuild Dynamic Linker Cache.
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Finished Rebuild Journal Catalog.
         Starting Update is Completed...
[  OK  ] Finished Update is Completed.
[   10.480905] ma35d1-vc8k 40290000.vc8k: registered nuvoton,ma35d1-vc8k-dec as /dev/video0
[   10.539934] ma35d1-vc8k 40290000.vc8k: PP default enabled
[   10.545400] ma35d1-vc8k 40290000.vc8k: fb_width = 1024
[   10.550537] ma35d1-vc8k 40290000.vc8k: fb_height = 600
[   10.555658] ma35d1-vc8k 40290000.vc8k: fb_fmt = BA24
[   10.560595] ma35d1-vc8k 40290000.vc8k: vid_max_width = 1920
[   10.566136] ma35d1-vc8k 40290000.vc8k: vid_max_height = 1080
[   10.571762] ma35d1-vc8k 40290000.vc8k: vid_max_instance = 1
[   10.577307] ma35d1-vc8k 40290000.vc8k: vid_refbuf_cnt = 6
[   10.582683] ma35d1-vc8k 40290000.vc8k: refbuf_size = 3670016
[   10.588324] ma35d1-vc8k 40290000.vc8k: ppc.frame_buf_w = 1024
[   10.594039] ma35d1-vc8k 40290000.vc8k: ppc.frame_buf_h = 600
[   10.599703] ma35d1-vc8k 40290000.vc8k: ppc.img_out_x = 0
[   10.604994] ma35d1-vc8k 40290000.vc8k: ppc.img_out_y = 0
[   10.610273] ma35d1-vc8k 40290000.vc8k: ppc.img_out_w = 1024
[   10.615819] ma35d1-vc8k 40290000.vc8k: ppc.img_out_h = 600
[   10.994270] ma35d1-vc8k 40290000.vc8k: VC8000 reserved memory: vaddr: 0xffff800012000000, paddr: 0x8a800000 siz0
[   11.054977] ma35d1-vc8k 40290000.vc8k: MA35D1 VC8000 probe OK
[  OK  ] Started Network Configuration.
[   11.605993] ma35d1-gmac 40130000.ethernet eth1: PHY [stmmac-1:01] driver [RTL8201F Fast Ethernet] (irq=POLL)
[   11.635792] ma35d1-gmac 40130000.ethernet eth1: No Safety Features support found
[   11.643303] ma35d1-gmac 40130000.ethernet eth1: No MAC Management Counters available
[   11.651080] ma35d1-gmac 40130000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   11.680595] ma35d1-gmac 40130000.ethernet eth1: configuring for phy/rmii link mode
[   11.714926] ma35d1-gmac 40120000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[   11.742806] ma35d1-gmac 40120000.ethernet eth0: No Safety Features support found
[   11.750294] ma35d1-gmac 40120000.ethernet eth0: No MAC Management Counters available
[   11.758019] ma35d1-gmac 40120000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   11.795972] ma35d1-gmac 40120000.ethernet eth0: configuring for phy/rgmii-id link mode
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
[  OK  ] Reached target Hardware activated USB gadget.
         Starting Load Kernel Module fuse...
         Starting Network Name Resolution...
[  OK  ] Finished Load Kernel Module fuse.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting Save/Restore Sound Card State...
[  OK  ] Started Kernel Logging Service.
[  OK  ] Started System Logging Service.
         Starting D-Bus System Message Bus...
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
         Starting User Login Management...
[  OK  ] Started TEE Supplicant.
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Network Name Resolution.
[  OK  ] Started User Login Management.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.

MA35D1 Unoffical Release Distro 5.5-kirkstone numaker-iot-ma35d16f90 ttyS0

numaker-iot-ma35d16f90 login: