[PR #313] gets thingino t41qn device booting on qemu fully without much error #441

Open
opened 2026-01-31 21:31:17 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/qemu/qemu/pull/313

State: closed
Merged: No


>   -kernel vmlinux \
>   -dtb wyze_camv4_t41nq.dtb \
>   -append "console=ttyS1,115200 mem=77M@0x0 nosmp root=/dev/mtdblock4 rootfstype=squashfs init=/bin/sh mtdparts=sfc0_nor:256k(boot),32k(env),224k(config),1984k(kernel),6208k(rootfs),-(rootfs_data) sdhci.debug_quirks=0x40" \
>   -mtdblock flash.bin \
>   -nographic
WARNING: Image format was not specified for 'flash.bin' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-mipsel: warning: CPU input clock is not connected to any output clock, using default frequency of 200 MHz.
[    0.000000] Linux version 4.4.94 (buildroot@buildroot) (buildroot-gcc-14.3.0) #1 SMP PREEMPT Sun Sep 7 20:46:40 UTC 2025
[    0.000000] CPU0 RESET ERROR PC:00000000
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00132100 (Ingenic XBurst@II)
[    0.000000] FPU revision is: 0073f300
[    0.000000] MIPS: machine is wyze,camv4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04d00000 @ 00000000 (usable)
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000004cfffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000004cfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000004cfffff]
[    0.000000] [SMP] Slave CPU(s) 1 available.
[    0.000000] Primary instruction cache 64kB, VIPT, 8-way, linesize 32 bytes.
[    0.000000] Primary data cache 64kB, 8-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Unified secondary cache 64kB 8-way, linesize 4 bytes.
[    0.000000] PERCPU: Embedded 10 pages/cpu @81122000 s8496 r8192 d24272 u40960
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 19558
[    0.000000] Kernel command line: console=ttyS1,115200 mem=77M@0x0 nosmp root=/dev/mtdblock4 rootfstype=squashfs init=/bin/sh mtdparts=sfc0_nor:256k(boot),32k(env),224k(config),1984k(kernel),6208k(rootfs),-(rootfs_data) sdhci.debug_quirks=0x40
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 71272K/78848K available (4226K kernel code, 246K rwdata, 1268K rodata, 268K init, 149K bss, 7576K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] parse cpu-intc-iomap, intc define in dt is too large!
[    0.000000] core irq setup finished and percpu irq inited! NR_IRQS = 419
[    0.000000] t41 Clock Power Management Unit init sucess!
[    0.000000] parse cpu-ost-iomap, ost number define in dt is too large!
[    0.000000] percpu cpu_num:0 timerevent init
[    0.000000] clockevents_config_and_register success.
[    0.000000] clocksource: jz_clocksource: mask: 0x7fffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000000] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.002032] Calibrating delay loop... 2584.57 BogoMIPS (lpj=12922880)
[    0.308921] pid_max: default: 32768 minimum: 301
[    0.310843] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.311237] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.344822] [SMP] Prepare 0 cores., cpu: 0
[    0.393340] Brought up 1 CPUs
[    0.411995] devtmpfs: initialized
[    0.432411] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.433309] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.436643] pinctrl core: initialized pinctrl subsystem
[    0.448181] NET: Registered protocol family 16
[    0.483549] ingenic pinctrl 10010000.pinctrl: 4 gpio chip add success, pins 128
[    0.488661] ingenic pinctrl 10010000.pinctrl: ingenic pinctrl probe success
[    0.504239] dmmu_init 807 PTRS_PER_PTE = 1024
[    0.608284] ingenic-dma 13420000.dma: INGENIC SoC DMA initialized
[    0.616538] usbcore: registered new interface driver usbfs
[    0.618148] usbcore: registered new interface driver hub
[    0.618965] usbcore: registered new device driver usb
[    0.622448] inno phy probe success
[    0.000706] clocksource: Switched to clocksource jz_clocksource
[    0.010037] NET: Registered protocol family 2
[    0.020885] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.021579] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.022114] TCP: Hash tables configured (established 1024 bind 1024)
[    0.024885] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.025448] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.027780] NET: Registered protocol family 1
[    0.031570] RPC: Registered named UNIX socket transport module.
[    0.031954] RPC: Registered udp transport module.
[    0.032220] RPC: Registered tcp transport module.
[    0.032481] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.068474] squashfs: version 4.0 (2021/14/49) Phillip Lougher 
[    0.086027] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.101920] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    0.102939] io scheduler noop registered
[    0.103258] io scheduler deadline registered
[    0.103720] io scheduler cfq registered (default)
[    0.108506] Ingenic drawbox probe sucess!
[    0.111640] vpu_register
[    0.111919] helix probe success
[    0.113917] dma_malloc of jzaip_t is ok! size = 1024 Bytes
[    0.115388] Error: Second CacheLine size.
[    0.115636] dma_malloc of jzaip_f is ok! size = 106600 Bytes
[    0.116443] Error: Second CacheLine size.
[    0.116659] dma_malloc of jzaip_p is ok! size = 221184 Bytes
[    0.117360] @@@ AIP driver init sucess (Version: H20230331a) @@@
[    0.125340] 10031000.serial: ttyS1 at MMIO 0x10031000 (irq = 58, base_baud = 3000000) is a uart1
[    0.128383] console [ttyS1] enabled
[    0.128383] console [ttyS1] enabled
[    0.129384] bootconsole [early0] disabled
[    0.129384] bootconsole [early0] disabled
[    1.345537] brd: module loaded
[    1.447991] loop: module loaded
[    1.457343] ingenic-tcu 10002000.tcu: Ingenic TCU driver register completed ret = 0
[    1.466321] ingenic-sfc 13440000.sfc0: Found Supported nor device, BE = 32K, id = ef4018, name = WIN25Q128
[    1.467758] ingenic-sfc 13440000.sfc0: nor flash now use standard mode!
[    1.469627] 6 cmdlinepart partitions found on MTD device sfc0_nor
[    1.470476] Creating 6 MTD partitions on "sfc0_nor":
[    1.471476] 0x000000000000-0x000000040000 : "boot"
[    1.487598] 0x000000040000-0x000000048000 : "env"
[    1.500949] 0x000000048000-0x000000080000 : "config"
[    1.503505] 0x000000080000-0x000000270000 : "kernel"
[    1.506269] 0x000000270000-0x000000880000 : "rootfs"
[    1.508863] 0x000000880000-0x000001000000 : "rootfs_data"
[    1.522966] ingenic-sfc 13440000.sfc0: SPI NOR MTD LOAD OK
[    1.523705] ingenic-sfc 13450000.sfc1: Cannot get sfc max frequency
[    1.524176] ingenic-sfc 13450000.sfc1: sfc control init error!
[    1.525781] ingenic-sfc: probe of 13450000.sfc1 failed with error -2110709760
[    1.527750] dwc-mac 134b0000.mac: Get mac-mode value failed
[    1.528755] dwc-mac: probe of 134b0000.mac failed with error -22
[    1.529679] usbcore: registered new interface driver asix
[    1.530750] usbcore: registered new interface driver ax88179_178a
[    1.531410] usbcore: registered new interface driver cdc_ether
[    1.532264] usbcore: registered new interface driver net1080
[    1.533184] usbcore: registered new interface driver cdc_subset
[    1.533936] usbcore: registered new interface driver zaurus
[    1.534665] usbcore: registered new interface driver cdc_ncm
[    1.535743] dwc2 13500000.otg: Configuration mismatch. Forcing host mode
[    1.537036] OTG CLK 0
[    1.540694] CPCCR CLK 0
[    1.541057] dwc2 13500000.otg: Bad value for GSNPSID: 0x00000000
[    1.543886] i2c /dev entries driver
[    6.620640]  (null): enable i2c0 failed
[    6.624013] ingenic-i2c 10050000.i2c: register i2c0 success.
[   11.700404]  (null): enable i2c1 failed
[   11.701679] ingenic-i2c 10051000.i2c: register i2c1 success.
[   16.780413]  (null): enable i2c2 failed
[   16.781686] ingenic-i2c 10052000.i2c: register i2c2 success.
[   16.785077] sdhci: Secure Digital Host Controller Interface driver
[   16.785564] sdhci: Copyright(c) Pierre Ossman
[   16.792153] ingenic,sdhci 13060000.msc: allocated mmc-pwrseq
[   16.793455] mmc0: Hardware doesn't specify base clock frequency.
[   16.793912] ingenic,sdhci 13060000.msc: sdhci_add_host() failed
[   16.795637] ingenic,sdhci 13070000.msc: allocated mmc-pwrseq
[   16.796061] mmc1: Hardware doesn't specify base clock frequency.
[   16.796474] ingenic,sdhci 13070000.msc: sdhci_add_host() failed
[   16.799193] Netfilter messages via NETLINK v0.30.
[   16.801836] ip_set: protocol 6
[   16.803252] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.809516] NET: Registered protocol family 10
[   16.830680] sit: IPv6 over IPv4 tunneling driver
[   16.835694] NET: Registered protocol family 17
[   16.836913] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[   16.843088] soc_vpu probe success,version:1.0.0-03203fd46d
[   16.902478] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[   16.907998] devtmpfs: mounted
[   16.954090] Freeing unused kernel memory: 268K
[   16.971072] random: nonblocking pool is initialized
/bin/sh: can't access tty; job control turned off
~ # /sbin/soc
t41nq
~ # /sbin/```
**Original Pull Request:** https://github.com/qemu/qemu/pull/313 **State:** closed **Merged:** No --- ```matteius@matteius-Ryzen9:/tmp/qemu-t41-test$ cd /tmp/qemu-t41-test && /home/matteius/qemu/build/qemu-system-mipsel -M ingenic-t41 -m 128M \ > -kernel vmlinux \ > -dtb wyze_camv4_t41nq.dtb \ > -append "console=ttyS1,115200 mem=77M@0x0 nosmp root=/dev/mtdblock4 rootfstype=squashfs init=/bin/sh mtdparts=sfc0_nor:256k(boot),32k(env),224k(config),1984k(kernel),6208k(rootfs),-(rootfs_data) sdhci.debug_quirks=0x40" \ > -mtdblock flash.bin \ > -nographic WARNING: Image format was not specified for 'flash.bin' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. qemu-system-mipsel: warning: CPU input clock is not connected to any output clock, using default frequency of 200 MHz. [ 0.000000] Linux version 4.4.94 (buildroot@buildroot) (buildroot-gcc-14.3.0) #1 SMP PREEMPT Sun Sep 7 20:46:40 UTC 2025 [ 0.000000] CPU0 RESET ERROR PC:00000000 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00132100 (Ingenic XBurst@II) [ 0.000000] FPU revision is: 0073f300 [ 0.000000] MIPS: machine is wyze,camv4 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 04d00000 @ 00000000 (usable) [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000004cfffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000004cfffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000004cfffff] [ 0.000000] [SMP] Slave CPU(s) 1 available. [ 0.000000] Primary instruction cache 64kB, VIPT, 8-way, linesize 32 bytes. [ 0.000000] Primary data cache 64kB, 8-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Unified secondary cache 64kB 8-way, linesize 4 bytes. [ 0.000000] PERCPU: Embedded 10 pages/cpu @81122000 s8496 r8192 d24272 u40960 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 19558 [ 0.000000] Kernel command line: console=ttyS1,115200 mem=77M@0x0 nosmp root=/dev/mtdblock4 rootfstype=squashfs init=/bin/sh mtdparts=sfc0_nor:256k(boot),32k(env),224k(config),1984k(kernel),6208k(rootfs),-(rootfs_data) sdhci.debug_quirks=0x40 [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 71272K/78848K available (4226K kernel code, 246K rwdata, 1268K rodata, 268K init, 149K bss, 7576K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] parse cpu-intc-iomap, intc define in dt is too large! [ 0.000000] core irq setup finished and percpu irq inited! NR_IRQS = 419 [ 0.000000] t41 Clock Power Management Unit init sucess! [ 0.000000] parse cpu-ost-iomap, ost number define in dt is too large! [ 0.000000] percpu cpu_num:0 timerevent init [ 0.000000] clockevents_config_and_register success. [ 0.000000] clocksource: jz_clocksource: mask: 0x7fffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000000] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.002032] Calibrating delay loop... 2584.57 BogoMIPS (lpj=12922880) [ 0.308921] pid_max: default: 32768 minimum: 301 [ 0.310843] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.311237] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.344822] [SMP] Prepare 0 cores., cpu: 0 [ 0.393340] Brought up 1 CPUs [ 0.411995] devtmpfs: initialized [ 0.432411] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.433309] futex hash table entries: 512 (order: 2, 16384 bytes) [ 0.436643] pinctrl core: initialized pinctrl subsystem [ 0.448181] NET: Registered protocol family 16 [ 0.483549] ingenic pinctrl 10010000.pinctrl: 4 gpio chip add success, pins 128 [ 0.488661] ingenic pinctrl 10010000.pinctrl: ingenic pinctrl probe success [ 0.504239] dmmu_init 807 PTRS_PER_PTE = 1024 [ 0.608284] ingenic-dma 13420000.dma: INGENIC SoC DMA initialized [ 0.616538] usbcore: registered new interface driver usbfs [ 0.618148] usbcore: registered new interface driver hub [ 0.618965] usbcore: registered new device driver usb [ 0.622448] inno phy probe success [ 0.000706] clocksource: Switched to clocksource jz_clocksource [ 0.010037] NET: Registered protocol family 2 [ 0.020885] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.021579] TCP bind hash table entries: 1024 (order: 1, 8192 bytes) [ 0.022114] TCP: Hash tables configured (established 1024 bind 1024) [ 0.024885] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.025448] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.027780] NET: Registered protocol family 1 [ 0.031570] RPC: Registered named UNIX socket transport module. [ 0.031954] RPC: Registered udp transport module. [ 0.032220] RPC: Registered tcp transport module. [ 0.032481] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.068474] squashfs: version 4.0 (2021/14/49) Phillip Lougher [ 0.086027] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 0.101920] jitterentropy: Initialization failed with host not compliant with requirements: 2 [ 0.102939] io scheduler noop registered [ 0.103258] io scheduler deadline registered [ 0.103720] io scheduler cfq registered (default) [ 0.108506] Ingenic drawbox probe sucess! [ 0.111640] vpu_register [ 0.111919] helix probe success [ 0.113917] dma_malloc of jzaip_t is ok! size = 1024 Bytes [ 0.115388] Error: Second CacheLine size. [ 0.115636] dma_malloc of jzaip_f is ok! size = 106600 Bytes [ 0.116443] Error: Second CacheLine size. [ 0.116659] dma_malloc of jzaip_p is ok! size = 221184 Bytes [ 0.117360] @@@ AIP driver init sucess (Version: H20230331a) @@@ [ 0.125340] 10031000.serial: ttyS1 at MMIO 0x10031000 (irq = 58, base_baud = 3000000) is a uart1 [ 0.128383] console [ttyS1] enabled [ 0.128383] console [ttyS1] enabled [ 0.129384] bootconsole [early0] disabled [ 0.129384] bootconsole [early0] disabled [ 1.345537] brd: module loaded [ 1.447991] loop: module loaded [ 1.457343] ingenic-tcu 10002000.tcu: Ingenic TCU driver register completed ret = 0 [ 1.466321] ingenic-sfc 13440000.sfc0: Found Supported nor device, BE = 32K, id = ef4018, name = WIN25Q128 [ 1.467758] ingenic-sfc 13440000.sfc0: nor flash now use standard mode! [ 1.469627] 6 cmdlinepart partitions found on MTD device sfc0_nor [ 1.470476] Creating 6 MTD partitions on "sfc0_nor": [ 1.471476] 0x000000000000-0x000000040000 : "boot" [ 1.487598] 0x000000040000-0x000000048000 : "env" [ 1.500949] 0x000000048000-0x000000080000 : "config" [ 1.503505] 0x000000080000-0x000000270000 : "kernel" [ 1.506269] 0x000000270000-0x000000880000 : "rootfs" [ 1.508863] 0x000000880000-0x000001000000 : "rootfs_data" [ 1.522966] ingenic-sfc 13440000.sfc0: SPI NOR MTD LOAD OK [ 1.523705] ingenic-sfc 13450000.sfc1: Cannot get sfc max frequency [ 1.524176] ingenic-sfc 13450000.sfc1: sfc control init error! [ 1.525781] ingenic-sfc: probe of 13450000.sfc1 failed with error -2110709760 [ 1.527750] dwc-mac 134b0000.mac: Get mac-mode value failed [ 1.528755] dwc-mac: probe of 134b0000.mac failed with error -22 [ 1.529679] usbcore: registered new interface driver asix [ 1.530750] usbcore: registered new interface driver ax88179_178a [ 1.531410] usbcore: registered new interface driver cdc_ether [ 1.532264] usbcore: registered new interface driver net1080 [ 1.533184] usbcore: registered new interface driver cdc_subset [ 1.533936] usbcore: registered new interface driver zaurus [ 1.534665] usbcore: registered new interface driver cdc_ncm [ 1.535743] dwc2 13500000.otg: Configuration mismatch. Forcing host mode [ 1.537036] OTG CLK 0 [ 1.540694] CPCCR CLK 0 [ 1.541057] dwc2 13500000.otg: Bad value for GSNPSID: 0x00000000 [ 1.543886] i2c /dev entries driver [ 6.620640] (null): enable i2c0 failed [ 6.624013] ingenic-i2c 10050000.i2c: register i2c0 success. [ 11.700404] (null): enable i2c1 failed [ 11.701679] ingenic-i2c 10051000.i2c: register i2c1 success. [ 16.780413] (null): enable i2c2 failed [ 16.781686] ingenic-i2c 10052000.i2c: register i2c2 success. [ 16.785077] sdhci: Secure Digital Host Controller Interface driver [ 16.785564] sdhci: Copyright(c) Pierre Ossman [ 16.792153] ingenic,sdhci 13060000.msc: allocated mmc-pwrseq [ 16.793455] mmc0: Hardware doesn't specify base clock frequency. [ 16.793912] ingenic,sdhci 13060000.msc: sdhci_add_host() failed [ 16.795637] ingenic,sdhci 13070000.msc: allocated mmc-pwrseq [ 16.796061] mmc1: Hardware doesn't specify base clock frequency. [ 16.796474] ingenic,sdhci 13070000.msc: sdhci_add_host() failed [ 16.799193] Netfilter messages via NETLINK v0.30. [ 16.801836] ip_set: protocol 6 [ 16.803252] ip_tables: (C) 2000-2006 Netfilter Core Team [ 16.809516] NET: Registered protocol family 10 [ 16.830680] sit: IPv6 over IPv4 tunneling driver [ 16.835694] NET: Registered protocol family 17 [ 16.836913] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 16.843088] soc_vpu probe success,version:1.0.0-03203fd46d [ 16.902478] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. [ 16.907998] devtmpfs: mounted [ 16.954090] Freeing unused kernel memory: 268K [ 16.971072] random: nonblocking pool is initialized /bin/sh: can't access tty; job control turned off ~ # /sbin/soc t41nq ~ # /sbin/```
claunia added the pull-request label 2026-01-31 21:31:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#441