Mks Gen l flashing

Basic Information:

Printer Model: flying bear ghost 4
MCU / Printerboard: mks gen l v1.0

Describe your issue:

I’m trying to flahing the board with klipper firmaware but on my raspbary i can’t find serialid o another way to flashing this board
Any body have the same issue?

This board uses an ATMega 2560. So simply compile (make menuconfig) for this MCU and follow the official installation instruction (Installation - Klipper documentation). Pins should follow the RAMPS schema: klipper/generic-ramps.cfg at master · Klipper3d/klipper · GitHub

I follow the instruction but my board not appere on serial and i can flash the board

  1. Unplug the board from USB
  2. Re-plug into USB
  3. Run sudo dmesg
  4. Post the result here → Copy / paste using the code tags. See properly-format-your-text
  5. Run lsusb
  6. Post the results here (same as 4.)

this is the result of dmesg

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.103+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1529 Tue Mar 8 12:19:18 GMT 2022
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 2
[    0.000000] random: fast init done
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Reserved memory: created CMA memory pool at 0x17c00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000] On node 0 totalpages: 114688
[    0.000000]   Normal zone: 1008 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  console=ttyAMA0,115200 console=tty1 root=PARTUUID=32882f0e-02 rootfstype=ext4 fsck.repair=yes rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 374384K/458752K available (8694K kernel code, 1324K rwdata, 2828K rodata, 424K init, 836K bss, 18832K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 30738 entries in 91 pages
[    0.000000] ftrace: allocated 91 pages with 5 groups
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x324/0x564 with crng_init=1
[    0.000028] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000107] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000207] bcm2835: system timer (irq = 27)
[    0.000891] Console: colour dummy device 80x30
[    0.001564] printk: console [tty1] enabled
[    0.001666] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060400] pid_max: default: 32768 minimum: 301
[    0.060724] LSM: Security Framework initializing
[    0.061074] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061151] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.063484] cgroup: Disabling memory control group subsystem
[    0.063988] CPU: Testing write buffer coherency: ok
[    0.066128] Setting up static identity map for 0x8200 - 0x8238
[    0.067589] devtmpfs: initialized
[    0.081074] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.081541] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.081638] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.090389] pinctrl core: initialized pinctrl subsystem
[    0.092662] NET: Registered protocol family 16
[    0.097378] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.103763] audit: initializing netlink subsys (disabled)
[    0.105482] thermal_sys: Registered thermal governor 'step_wise'
[    0.106445] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.106549] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.106876] Serial: AMBA PL011 UART driver
[    0.110933] audit: type=2000 audit(0.100:1): state=initialized audit_enabled=0 res=1
[    0.130985] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.150981] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-12-01T15:07:06, variant start
[    0.161008] raspberrypi-firmware soc:firmware: Firmware hash is 71bd3109023a0c8575585ba87cbb374d2eeb038f
[    0.213453] Kprobes globally optimized
[    0.223712] bcm2835-dma 20007000.dma: DMA legacy API manager, dmachans=0x1
[    0.227071] SCSI subsystem initialized
[    0.227626] usbcore: registered new interface driver usbfs
[    0.227795] usbcore: registered new interface driver hub
[    0.227951] usbcore: registered new device driver usb
[    0.230851] clocksource: Switched to clocksource timer
[    2.242235] VFS: Disk quotas dquot_6.6.0
[    2.242448] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.242787] FS-Cache: Loaded
[    2.243238] CacheFiles: Loaded
[    2.264754] NET: Registered protocol family 2
[    2.265141] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    2.266766] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    2.266936] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    2.267076] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    2.267205] TCP: Hash tables configured (established 4096 bind 4096)
[    2.267441] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.267528] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.267997] NET: Registered protocol family 1
[    2.269450] RPC: Registered named UNIX socket transport module.
[    2.269533] RPC: Registered udp transport module.
[    2.269572] RPC: Registered tcp transport module.
[    2.269607] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.271392] hw perfevents: no irqs for PMU, sampling events not supported
[    2.271536] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    2.276380] Initialise system trusted keyrings
[    2.277062] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    2.289232] zbud: loaded
[    2.292666] FS-Cache: Netfs 'nfs' registered for caching
[    2.294258] NFS: Registering the id_resolver key type
[    2.294402] Key type id_resolver registered
[    2.294450] Key type id_legacy registered
[    2.294758] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.294825] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.296918] Key type asymmetric registered
[    2.297005] Asymmetric key parser 'x509' registered
[    2.297143] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    2.297203] io scheduler mq-deadline registered
[    2.297242] io scheduler kyber registered
[    2.300693] bcm2708_fb soc:fb: FB found 1 display(s)
[    2.313429] Console: switching to colour frame buffer device 82x26
[    2.321362] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 656x416
[    2.336311] bcm2835-rng 20104000.rng: hwrng registered
[    2.339916] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    2.347482] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    2.377343] brd: module loaded
[    2.397265] loop: module loaded
[    2.403129] Loading iSCSI transport class v2.0-870.
[    2.409312] usbcore: registered new interface driver smsc95xx
[    2.412497] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    3.144125] Core Release: 2.80a
[    3.147118] Setting default values for core params
[    3.150114] Finished setting default values for core params
[    3.353651] Using Buffer DMA mode
[    3.356578] Periodic Transfer Interrupt Enhancement - disabled
[    3.359494] Multiprocessor Interrupt Enhancement - disabled
[    3.362473] OTG VER PARAM: 0, OTG VER FLAG: 0
[    3.365553] Dedicated Tx FIFOs mode

[    3.369458] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = d7d14000 dma = 0x97d14000 len=9024
[    3.377991] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    3.390878] dwc_otg: Microframe scheduler enabled

[    3.391168] WARN::hcd_init_fiq:457: FIQ on core 0

[    3.396240] WARN::hcd_init_fiq:458: FIQ ASM at c065d9b4 length 36

[    3.401271] WARN::hcd_init_fiq:497: MPHI regs_base at dc810000
[    3.406427] dwc_otg 20980000.usb: DWC OTG Controller
[    3.409123] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    3.411903] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    3.414548] Init: Port Power? op_state=1
[    3.417103] Init: Power Port (0)
[    3.420194] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.425503] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.428281] usb usb1: Product: DWC OTG Controller
[    3.430984] usb usb1: Manufacturer: Linux 5.10.103+ dwc_otg_hcd
[    3.433714] usb usb1: SerialNumber: 20980000.usb
[    3.437816] hub 1-0:1.0: USB hub found
[    3.440747] hub 1-0:1.0: 1 port detected
[    3.445584] dwc_otg: FIQ enabled
[    3.445612] dwc_otg: NAK holdoff enabled
[    3.445626] dwc_otg: FIQ split-transaction FSM enabled
[    3.445655] Module dwc_common_port init
[    3.446254] usbcore: registered new interface driver usb-storage
[    3.449651] mousedev: PS/2 mouse device common for all mice
[    3.454385] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    3.459806] sdhci: Secure Digital Host Controller Interface driver
[    3.462820] sdhci: Copyright(c) Pierre Ossman
[    3.466902] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[    3.470248] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.474186] ledtrig-cpu: registered to indicate activity on CPUs
[    3.477626] hid: raw HID events driver (C) Jiri Kosina
[    3.480820] usbcore: registered new interface driver usbhid
[    3.483882] usbhid: USB HID core driver
[    3.494281] Initializing XFRM netlink socket
[    3.497559] NET: Registered protocol family 17
[    3.501100] Key type dns_resolver registered
[    3.504943] registered taskstats version 1
[    3.507661] Loading compiled-in X.509 certificates
[    3.527552] uart-pl011 20201000.serial: cts_event_workaround enabled
[    3.530434] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    4.452345] printk: console [ttyAMA0] enabled
[    4.463292] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    4.477421] sdhost: log_buf @ (ptrval) (97d13000)
[    4.486143] Indeed it is in host mode hprt0 = 00021501
[    4.604044] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    4.617787] of_cfs_init
[    4.644421] of_cfs_init: OK
[    4.652838] Waiting for root device PARTUUID=32882f0e-02...
[    4.699106] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.715919] mmc0: new high speed SDHC card at address 0007
[    4.724660] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    4.735792] mmcblk0: mmc0:0007 SD16G 14.5 GiB
[    4.743595] Indeed it is in host mode hprt0 = 00001101
[    4.815717]  mmcblk0: p1 p2
[    4.857180] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    4.867820] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    4.991551] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[    5.006330] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.022992] hub 1-1:1.0: USB hub found
[    5.034806] hub 1-1:1.0: 5 ports detected
[    5.360965] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    5.501463] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[    5.516045] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.530166] smsc95xx v2.0.0
[    5.601035] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:5e:35:bc
[   11.419202] EXT4-fs (mmcblk0p2): recovery complete
[   11.580162] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   11.594958] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[   11.614852] devtmpfs: mounted
[   11.627810] Freeing unused kernel memory: 424K
[   11.635770] Kernel memory protection not selected by kernel config.
[   11.645464] Run /sbin/init as init process
[   11.652965]   with arguments:
[   11.652985]     /sbin/init
[   11.652998]   with environment:
[   11.653013]     HOME=/
[   11.653025]     TERM=linux
[   12.423557] systemd[1]: System time before build time, advancing clock.
[   12.604490] NET: Registered protocol family 10
[   12.615107] Segment Routing with IPv6
[   12.746767] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[   12.781243] systemd[1]: Detected architecture arm.
[   12.815486] systemd[1]: Set hostname to <klipper2>.
[   14.310423] uart-pl011 20201000.serial: no DMA platform data
[   16.504030] random: systemd: uninitialized urandom read (16 bytes read)
[   16.544120] random: systemd: uninitialized urandom read (16 bytes read)
[   16.555869] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   16.576362] random: systemd: uninitialized urandom read (16 bytes read)
[   16.588253] systemd[1]: Listening on fsck to fsckd communication Socket.
[   16.603805] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   16.630312] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   16.645009] systemd[1]: Reached target Swap.
[   16.659618] systemd[1]: Listening on Journal Audit Socket.
[   16.674038] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   17.765393] systemd[1]: Mounted RPC Pipe File System.
[   17.816203] systemd[1]: Mounted POSIX Message Queue File System.
[   17.971696] systemd[1]: Starting File System Check on Root Device...
[   18.122400] systemd[1]: Mounting Kernel Configuration File System...
[   18.236175] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[   18.482815] systemd[1]: Starting Apply Kernel Variables...
[   18.645150] systemd[1]: Mounted Kernel Configuration File System.
[   18.852857] systemd[1]: Started File System Check Daemon to report status.
[   19.625168] systemd[1]: Started Journal Service.
[   21.141358] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   21.780341] systemd-journald[97]: Received request to flush runtime journal from PID 1
[   24.264863] mc: Linux media interface: v0.10
[   24.320340] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[   24.324647] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[   24.324692] [vc_sm_connected_init]: start
[   24.350522] [vc_sm_connected_init]: installed successfully
[   24.399295] videodev: Linux video capture interface: v2.00
[   24.526035] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   24.528976] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   24.562734] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[   24.606360] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[   24.631748] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[   24.642426] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[   24.643358] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[   24.647935] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[   24.648000] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[   24.648054] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[   24.650052] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[   24.650102] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[   24.662200] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[   24.662609] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[   24.695700] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   24.763180] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[   24.763272] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[   24.777137] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[   24.777230] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[   24.778189] bcm2835_audio bcm2835_audio: card created with 8 channels
[   24.807255] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[   24.807357] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[   24.823638] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[   24.823731] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[   37.465270] 8021q: 802.1Q VLAN Support v1.8
[   37.666760] random: crng init done
[   37.666800] random: 7 urandom warning(s) missed due to ratelimiting
[   38.133068] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   38.894328] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   39.030248] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   39.434617] SMSC LAN8700 usb-001:003:01: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=usb-001:003:01, irq=POLL)
[   39.452404] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   39.463611] smsc95xx 1-1.1:1.0 eth0: Link is Down
[   41.532559] smsc95xx 1-1.1:1.0 eth0: Link is Up - 100Mbps/Full - flow control off
[   41.532658] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

lsusb:

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

l

Did you follow the above posted procedure?
There is no sign of an USB device being connected. Consequently Klipper cannot find anything.
Could be:

  • Broken cable
  • Defect board
  • Defekt USB port

I added new tmc after this mod the usb start not working

Try removing all hardware (TMC, probes etc) from the board and check if it gets registered in the Operating System.
There is nothing Klipper can do, if the hardware is not “visible” in the Operating System.

the board is with out any hardware, i think is time to go away this board