Raspberry can't find Wanhao Duplicator d12/300 USB printer

Hello,

I have a 3D printer, a Wanhao Duplicator D12/300 and I want to test Klipper because I can not print well with the official drivers or those of Neo… As the Wanhao support leaves a lot to be desired, I hope to find some help from you :wink:

So I flashed two Raspberry 3 via the official “Raspberry Pi Imager” app to put on a new 32GB SD “MainSail 1.3.2” and configure everything from the app to access it in SSH and via the url http://klipper.local/. So far, so good…

In SSH, I did a

sudo apt update
sudo apt full-upgrade
sudo apt install git

Then, via MobaXterm, I did a make menuconfig under /klipper to set these parameters

Klipper firmware configuration

[*] Enable additional low-level configuration options
Microcontroller architecture (STMicroelectronics STM32) —>
Processor model (STM32F407) —>
Bootloader offset (bootloader 48KiB (MKS Robin Nano V3)) —>
Clock reference (8 MHz crystal) —>
Communication interface (USB (on PA11/PA12)) —>
USB identifiers —>
() GPIO pins to be configured at microcontroller start-up

All these parameters are taken from the photo of my printer’s motherboard…

  • MakerBase MKS Robin Nano V3.1 motherboard
  • STM32F407 processor
  • Bootloader the one that corresponds to my machine I think…
  • Clock: the little component referenced CPS 8.000

There are still two lines where I’m not 100% sure and it’s ChatGPT who helped me on this one…

(Top) → USB ids
Klipper firmware configuration
(0x1d50) USB vendor ID
(0x614e) USB device ID
[CHIPID USB serial number
(12345) USB serial number

and

() GPIO pins to be configured at microcontroller startup

Then I saved my config, followed by a make clean and a make

I renamed the klipper.bin file to Robin_nano_v3.bin and prepared an 8GB µSD card formatted in FAT32, 4096-byte sectors and flashed my printer.

So I’ve got my machine flashed, a usbA/usbA cable, an Rpi 3 with Klipper and MainSail v1.3.2 but I can’t activate the usb port (I’ve rebooted all equipment, tested a second RpI and a second cable)

~/klipper $ lsusb
Bus 001 Device 003 : ID 0424:ec00 Microchip Technology, Inc (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
~/klipper $ ls /dev/serial/by-id/
ls : unable to access '/dev/serial/by-id/' : No file or directory of this type
~ $ ls /dev/serial/by-path/
ls : Unable to access '/dev/serial/by-path/' : No such files or directories.
~/klipper $ ls /dev/ttyUSB*
ls : Unable to access '/dev/ttyUSB*' : No such files or directories.
~/klipper $ dmesg | tail -n 50
[    8.834440] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    8.834492] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    8.835415] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    8.836115] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    8.836736] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    8.836792] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    8.836827] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    8.836873] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    8.836904] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    8.837234] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    8.843584] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    8.863051] bcm2835_audio bcm2835_audio: card created with 8 channels
[    8.910517] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    8.930691] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    8.930820] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    8.937620] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    8.937706] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    8.947120] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    8.947207] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    8.953886] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    8.953994] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    8.963332] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    8.963412] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[    9.579683] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.650354] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.685080] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[   10.027433] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[   10.040054] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   10.042095] Console: switching to colour dummy device 80x25
[   10.064469] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[   10.079680] Registered IR keymap rc-cec
[   10.080006] rc rc0: vc4-hdmi as /devices/platform/soc/3f902000.hdmi/rc/rc0
[   10.080405] input: vc4-hdmi as /devices/platform/soc/3f902000.hdmi/rc/rc0/input0
[   10.100058] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[   10.100835] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[   10.104146] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[   10.104822] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[   10.105455] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[   10.110287] usbcore: registered new interface driver brcmfmac
[   10.111210] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[   10.140461] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[   10.145946] vc4-drm soc:gpu: [drm] Cannot find any crtc or sizes
[   10.322913] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897
[   11.783054] Adding 262140k swap on /var/swap.  Priority:-2 extents:1 across:262140k SSFS
[   11.981425] 8021q: 802.1Q VLAN Support v1.8
[   12.459364] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[   12.769240] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   12.771735] smsc95xx 1-1.1:1.0 eth0: Link is Down
[   13.907875] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   15.078273] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
~ $ dmesg | grep tty
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty1 root=PARTUUID=f47d8910-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=FR
[    0.001370] printk: console [tty1] enabled
[    3.218363] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 99, base_baud = 0) is a PL011 rev2
[    6.220806] systemd[1]: Created slice system-getty.slice.

~ $ dmesg
in the next post

Who can help me?

Rgds

~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023
[    0.000000] random: crng init done
[    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x0000000037ffffff]
[    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 0x0000000000000000-0x0000000037ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000037ffffff]
[    0.000000] percpu: Embedded 29 pages/cpu s78504 r8192 d32088 u118784
[    0.000000] pcpu-alloc: s78504 r8192 d32088 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 225792
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty1 root=PARTUUID=f47d8910-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=FR
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 614032K/917504K available (11776K kernel code, 2106K rwdata, 3688K rodata, 4160K init, 1077K bss, 41328K reserved, 262144K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 39744 entries in 156 pages
[    0.000000] ftrace: allocated 156 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: bcm2836_arm_irqchip_handle_irq
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000391] Console: colour dummy device 80x25
[    0.001372] printk: console [tty1] enabled
[    0.001465] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800)
[    0.001533] pid_max: default: 32768 minimum: 301
[    0.001733] LSM: Security Framework initializing
[    0.002017] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.002090] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.004053] cgroup: Disabling memory control group subsystem
[    0.007342] cblist_init_generic: Setting adjustable number of callback queues.
[    0.007393] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.007690] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.008038] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.008714] rcu: Hierarchical SRCU implementation.
[    0.008753] rcu:     Max phase no-delay instances is 1000.
[    0.010579] EFI services will not be available.
[    0.011369] smp: Bringing up secondary CPUs ...
[    0.013109] Detected VIPT I-cache on CPU1
[    0.013294] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.015064] Detected VIPT I-cache on CPU2
[    0.015205] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.016982] Detected VIPT I-cache on CPU3
[    0.017127] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.017343] smp: Brought up 1 node, 4 CPUs
[    0.017507] SMP: Total of 4 processors activated.
[    0.017542] CPU features: detected: 32-bit EL0 Support
[    0.017576] CPU features: detected: 32-bit EL1 Support
[    0.017613] CPU features: detected: CRC32 instructions
[    0.017813] CPU: All CPU(s) started at EL2
[    0.017864] alternatives: applying system-wide alternatives
[    0.020539] devtmpfs: initialized
[    0.045580] Enabled cp15_barrier support
[    0.045667] Enabled setend support
[    0.046030] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.046106] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.059178] pinctrl core: initialized pinctrl subsystem
[    0.060642] DMI not present or invalid.
[    0.061716] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.073885] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.074358] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.075926] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.076122] audit: initializing netlink subsys (disabled)
[    0.076577] audit: type=2000 audit(0.076:1): state=initialized audit_enabled=0 res=1
[    0.077652] thermal_sys: Registered thermal governor 'step_wise'
[    0.077787] cpuidle: using governor menu
[    0.078539] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.078866] ASID allocator initialised with 32768 entries
[    0.079159] Serial: AMBA PL011 UART driver
[    0.096461] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.120700] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-03-17T10:52:42, variant start
[    0.124719] raspberrypi-firmware soc:firmware: Firmware hash is 82f3750a65fadae9a38077e3c2e217ad158c8d54
[    0.137903] KASLR enabled
[    0.193754] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[    0.200787] SCSI subsystem initialized
[    0.201199] usbcore: registered new interface driver usbfs
[    0.201337] usbcore: registered new interface driver hub
[    0.201470] usbcore: registered new device driver usb
[    0.202142] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.202525] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[    0.203003] pps_core: LinuxPPS API ver. 1 registered
[    0.203042] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.203115] PTP clock support registered
[    0.204928] vgaarb: loaded
[    0.206199] clocksource: Switched to clocksource arch_sys_counter
[    0.207242] VFS: Disk quotas dquot_6.6.0
[    0.207384] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.207715] FS-Cache: Loaded
[    0.208012] CacheFiles: Loaded
[    0.222858] NET: Registered PF_INET protocol family
[    0.223673] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.226313] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.226403] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.226469] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.226628] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.227035] TCP: Hash tables configured (established 8192 bind 8192)
[    0.227329] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.227430] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.227822] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.228945] RPC: Registered named UNIX socket transport module.
[    0.228992] RPC: Registered udp transport module.
[    0.229028] RPC: Registered tcp transport module.
[    0.229062] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.229121] PCI: CLS 0 bytes, default 64
[    0.231973] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.232424] kvm [1]: IPA Size Limit: 40 bits
[    0.234283] kvm [1]: Hyp mode initialized successfully
[    2.012790] Initialise system trusted keyrings
[    2.013440] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    2.026903] zbud: loaded
[    2.031613] NFS: Registering the id_resolver key type
[    2.031712] Key type id_resolver registered
[    2.031749] Key type id_legacy registered
[    2.031954] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.032002] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.034263] Key type asymmetric registered
[    2.034311] Asymmetric key parser 'x509' registered
[    2.034480] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    2.034934] io scheduler mq-deadline registered
[    2.034980] io scheduler kyber registered
[    2.046568] simple-framebuffer 3eaa9000.framebuffer: framebuffer at 0x3eaa9000, 0x151800 bytes
[    2.046649] simple-framebuffer 3eaa9000.framebuffer: format=a8r8g8b8, mode=720x480x32, linelength=2880
[    2.050483] Console: switching to colour frame buffer device 90x30
[    2.055454] simple-framebuffer 3eaa9000.framebuffer: fb0: simplefb registered!
[    2.065570] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    2.071544] bcm2835-rng 3f104000.rng: hwrng registered
[    2.074683] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    2.080851] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    2.103987] brd: module loaded
[    2.120575] loop: module loaded
[    2.123767] Loading iSCSI transport class v2.0-870.
[    2.133350] usbcore: registered new interface driver r8152
[    2.135490] usbcore: registered new interface driver lan78xx
[    2.137513] usbcore: registered new interface driver smsc95xx
[    2.140161] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.870769] Core Release: 2.80a
[    2.872602] Setting default values for core params
[    2.874492] Finished setting default values for core params
[    3.076831] Using Buffer DMA mode
[    3.078624] Periodic Transfer Interrupt Enhancement - disabled
[    3.080437] Multiprocessor Interrupt Enhancement - disabled
[    3.082296] OTG VER PARAM: 0, OTG VER FLAG: 0
[    3.084107] Dedicated Tx FIFOs mode

[    3.091026] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = ffffffc008459000 dma = 0x00000000df000000 len=9024
[    3.096162] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    3.104146] dwc_otg: Microframe scheduler enabled

[    3.104226] WARN::hcd_init_fiq:497: MPHI regs_base at ffffffc00806d000
[    3.107285] dwc_otg 3f980000.usb: DWC OTG Controller
[    3.108846] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    3.110493] dwc_otg 3f980000.usb: irq 74, io mem 0x00000000
[    3.112089] Init: Port Power? op_state=1
[    3.113657] Init: Power Port (0)
[    3.115775] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    3.119036] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.120778] usb usb1: Product: DWC OTG Controller
[    3.122515] usb usb1: Manufacturer: Linux 6.1.21-v8+ dwc_otg_hcd
[    3.124239] usb usb1: SerialNumber: 3f980000.usb
[    3.127121] hub 1-0:1.0: USB hub found
[    3.128870] hub 1-0:1.0: 1 port detected
[    3.131913] dwc_otg: FIQ enabled
[    3.131933] dwc_otg: NAK holdoff enabled
[    3.131949] dwc_otg: FIQ split-transaction FSM enabled
[    3.131977] Module dwc_common_port init
[    3.132878] usbcore: registered new interface driver uas
[    3.134734] usbcore: registered new interface driver usb-storage
[    3.136787] mousedev: PS/2 mouse device common for all mice
[    3.145842] sdhci: Secure Digital Host Controller Interface driver
[    3.147510] sdhci: Copyright(c) Pierre Ossman
[    3.150035] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.155765] ledtrig-cpu: registered to indicate activity on CPUs
[    3.158055] hid: raw HID events driver (C) Jiri Kosina
[    3.160058] usbcore: registered new interface driver usbhid
[    3.161731] usbhid: USB HID core driver
[    3.172317] NET: Registered PF_PACKET protocol family
[    3.174208] Key type dns_resolver registered
[    3.178261] registered taskstats version 1
[    3.179966] Loading compiled-in X.509 certificates
[    3.182909] Key type .fscrypt registered
[    3.184492] Key type fscrypt-provisioning registered
[    3.212919] uart-pl011 3f201000.serial: there is not valid maps for state default
[    3.216011] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    3.217875] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 99, base_baud = 0) is a PL011 rev2
[    3.227372] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    3.229733] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    3.234784] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    3.236476] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[    3.242468] Indeed it is in host mode hprt0 = 00021501
[    3.264147] sdhost: log_buf @ 00000000e0fac841 (c2788000)
[    3.316419] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    3.325576] of_cfs_init
[    3.327529] of_cfs_init: OK
[    3.331250] Waiting for root device PARTUUID=f47d8910-02...
[    3.354663] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.359947] mmc0: new high speed SDHC card at address 59b4
[    3.363763] mmcblk0: mmc0:59b4 SN32G 29.7 GiB
[    3.372216]  mmcblk0: p1 p2
[    3.375312] mmcblk0: mmc0:59b4 SN32G 29.7 GiB (quirks 0x00004000)
[    3.396609] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.398509] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.419451] mmc1: new high speed SDIO card at address 0001
[    3.434279] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.436472] Indeed it is in host mode hprt0 = 00001101
[    3.646746] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[    3.650578] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.653833] hub 1-1:1.0: USB hub found
[    3.655966] hub 1-1:1.0: 5 ports detected
[    3.820521] EXT4-fs (mmcblk0p2): recovery complete
[    3.830672] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[    3.834407] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.851463] devtmpfs: mounted
[    3.865630] Freeing unused kernel memory: 4160K
[    3.868248] Run /sbin/init as init process
[    3.870109]   with arguments:
[    3.870124]     /sbin/init
[    3.870140]   with environment:
[    3.870154]     HOME=/
[    3.870199]     TERM=linux
[    3.946289] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.046824] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[    4.050773] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.056848] smsc95xx v2.0.0
[    4.587023] systemd[1]: System time before build time, advancing clock.
[    4.594449] SMSC LAN8700 usb-001:003:01: attached PHY driver (mii_bus:phy_addr=usb-001:003:01, irq=184)
[    4.599957] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:91:43:c9
[    4.803705] NET: Registered PF_INET6 protocol family
[    4.808703] Segment Routing with IPv6
[    4.810931] In-situ OAM (IOAM) with IPv6
[    4.898379] systemd[1]: systemd 247.3-7+deb11u6 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    4.906290] systemd[1]: Detected architecture arm64.
[    4.942833] systemd[1]: Set hostname to <klipper>.
[    6.201920] systemd[1]: Queued start job for default target Multi-User System.
[    6.236825] systemd[1]: Created slice system-getty.slice.
[    6.244025] systemd[1]: Created slice system-modprobe.slice.
[    6.250764] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    6.256925] systemd[1]: Created slice User and Session Slice.
[    6.262522] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    6.267911] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    6.274314] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    6.281617] systemd[1]: Reached target Local Encrypted Volumes.
[    6.286854] systemd[1]: Reached target Paths.
[    6.291658] systemd[1]: Reached target Slices.
[    6.296410] systemd[1]: Reached target Swap.
[    6.302618] systemd[1]: Listening on Syslog Socket.
[    6.308594] systemd[1]: Listening on fsck to fsckd communication Socket.
[    6.314011] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    6.320939] systemd[1]: Listening on Journal Audit Socket.
[    6.327102] systemd[1]: Listening on Journal Socket (/dev/log).
[    6.333528] systemd[1]: Listening on Journal Socket.
[    6.341273] systemd[1]: Listening on udev Control Socket.
[    6.347332] systemd[1]: Listening on udev Kernel Socket.
[    6.353391] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    6.390957] systemd[1]: Mounting POSIX Message Queue File System...
[    6.403191] systemd[1]: Mounting RPC Pipe File System...
[    6.417105] systemd[1]: Mounting Kernel Debug File System...
[    6.430393] systemd[1]: Mounting Kernel Trace File System...
[    6.436104] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    6.456766] systemd[1]: Starting Restore / save the current clock...
[    6.469378] systemd[1]: Starting Set the console keyboard layout...
[    6.483539] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    6.500371] systemd[1]: Starting Load Kernel Module configfs...
[    6.513940] systemd[1]: Starting Load Kernel Module drm...
[    6.528469] systemd[1]: Starting Load Kernel Module fuse...
[    6.542762] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    6.557747] systemd[1]: Starting File System Check on Root Device...
[    6.607632] systemd[1]: Starting Journal Service...
[    6.622609] fuse: init (API version 7.37)
[    6.639791] systemd[1]: Starting Load Kernel Modules...
[    6.665123] systemd[1]: Starting Coldplug All udev Devices...
[    6.696014] systemd[1]: Mounted POSIX Message Queue File System.
[    6.710032] systemd[1]: Mounted RPC Pipe File System.
[    6.716530] systemd[1]: Mounted Kernel Debug File System.
[    6.723233] systemd[1]: Mounted Kernel Trace File System.
[    6.744887] systemd[1]: Finished Restore / save the current clock.
[    6.762138] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    6.780359] systemd[1]: modprobe@configfs.service: Succeeded.
[    6.785657] systemd[1]: Finished Load Kernel Module configfs.
[    6.789203] i2c_dev: i2c /dev entries driver
[    6.796533] systemd[1]: modprobe@drm.service: Succeeded.
[    6.801666] systemd[1]: Finished Load Kernel Module drm.
[    6.810106] systemd[1]: modprobe@fuse.service: Succeeded.
[    6.815359] systemd[1]: Finished Load Kernel Module fuse.
[    6.824240] systemd[1]: Finished Load Kernel Modules.
[    6.887152] systemd[1]: Mounting FUSE Control File System...
[    6.907892] systemd[1]: Mounting Kernel Configuration File System...
[    6.946015] systemd[1]: Started File System Check Daemon to report status.
[    6.981103] systemd[1]: Starting Apply Kernel Variables...
[    7.017473] systemd[1]: Finished File System Check on Root Device.
[    7.023950] systemd[1]: Mounted FUSE Control File System.
[    7.029544] systemd[1]: Mounted Kernel Configuration File System.
[    7.062736] systemd[1]: Starting Remount Root and Kernel File Systems...
[    7.074620] systemd[1]: Finished Apply Kernel Variables.
[    7.080161] systemd[1]: Started Journal Service.
[    7.283646] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.
[    7.414167] systemd-journald[144]: Received client request to flush runtime journal.
[    7.444221] systemd-journald[144]: File /var/log/journal/023d649880b241d2a96373b67043adfb/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    9.197390] mc: Linux media interface: v0.10
[    9.245521] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    9.281618] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    9.281676] [vc_sm_connected_init]: start
[    9.298894] [vc_sm_connected_init]: installed successfully
[    9.312294] videodev: Linux video capture interface: v2.00
[    9.327359] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    9.377615] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    9.386692] bcm2835_audio bcm2835_audio: card created with 8 channels
[    9.394755] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    9.408022] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    9.408786] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    9.409803] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    9.410840] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    9.410902] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    9.410951] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    9.410983] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    9.411034] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    9.417316] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    9.418338] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    9.419138] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    9.419822] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    9.419877] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    9.419913] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    9.419943] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    9.419972] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    9.420538] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    9.612690] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    9.625154] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    9.661896] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    9.662009] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    9.672076] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    9.672170] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    9.690390] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    9.690519] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    9.711097] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    9.711203] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    9.724515] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[    9.724635] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[   10.429089] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   10.498574] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   10.522484] Console: switching to colour dummy device 80x25
[   10.523567] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[   10.540574] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[   10.586981] Registered IR keymap rc-cec
[   10.587331] rc rc0: vc4-hdmi as /devices/platform/soc/3f902000.hdmi/rc/rc0
[   10.587696] input: vc4-hdmi as /devices/platform/soc/3f902000.hdmi/rc/rc0/input0
[   10.616018] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[   10.616755] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[   10.619487] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[   10.623638] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[   10.639693] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[   10.640264] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[   10.728408] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[   10.733605] vc4-drm soc:gpu: [drm] Cannot find any crtc or sizes
[   10.881112] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[   10.930713] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[   10.932085] usbcore: registered new interface driver brcmfmac
[   11.193289] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897
[   12.359521] Adding 262140k swap on /var/swap.  Priority:-2 extents:1 across:262140k SSFS
[   12.480577] 8021q: 802.1Q VLAN Support v1.8
[   12.965029] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[   13.265229] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   13.267822] smsc95xx 1-1.1:1.0 eth0: Link is Down
[   14.371408] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   16.178523] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead

Who can help me?

Rgds

Hi Akhlan,
are you a Klipper beginner?
Is this your printer? Wanhao Duplicator D12/300 3D Printer Review – 3D Tech Valley

Yes i’m beginner, i never used Klipper… And yes it’s my printer, my first printer…

Ok, so we know that. Good thing is you have Linux knowledge!

Reading the review from above gives me the impression, there will be no problem installing Klipper on your printer.

Warning! Don’t try to install Klipper, if you don’t exactly know what you are doing! You might delete the bootloader on your µC of your printer board. This is recoverable, but a little tricky.

Please check, if this is your printer board and post the writing on the µC.

Main part of Klipper on a printer is a file called printer.cfg. You may find examples here klipper/config at master · Klipper3d/klipper · GitHub. Too bad, your printer isn’t listed yet.
But a quick search in the WWW gave me Wanhao D12 (300) - Klipper - Direct Drive - Dragon - Orbiter - Wanhao - Forum pour les imprimantes 3D et l'impression 3D. My French isn’t that good, but I think you might find a printer.cfg in this forum. Download it.

Else, please read a lot :wink: Overview - Klipper documentation, Knowledge Base - Klipper, and Welcome! | Ellis’ Print Tuning Guide

I’m very positive, you get your Wanhao Duplicator running with Klipper.

Thanks hcet14,

my µC is an STM32, my processor an STM32F407

I’m French, so it’s easier for me to read your link… I know this web page but it’s an old tutorial and some links are dead…

I’m reading your documents but it’s a bit complicated :smiley:

I continue…

Thanks hcet14,

my µC is an STM32, my processor an STM32F407

I’m French, so it’s easier for me to read your link… I know this web page but it’s an old tutorial and some links are dead…

I’m reading your documents but it’s a bit complicated :smiley:

I continue…

This is a well-known board, and there should be no major issues. Also see:

Mind that renaming the klipper.bin file is required.

There also seems to be a dedicated page here: Klipper Wanhao D12 installation - YUMI-LAB documentation

Overall, it seems like a classic issue of flashing the board. The relevant reasons are listed here: Issues flashing the printer board

1 Like

The link Sineos provided leads to GitHub - Yumi-Lab/yumi-config: cfg files for YUMI products where you may find the right printer.cfg.

Regarding installation of Klipper, I would choose the KIAUH way https://klipper.discourse.group/t/installing-klipper-with-kiauh.