Cinap, 

Thank you for the response. 

As for me building the kernel - I did not build the user space previously. I was thinking that I just wanted a kernel. Why build the whole user space? But I was wrong. I understand. So by building the user space, I got a stripped kernel that was much more akin to what was in the last 9front image, with the new kernel weighing in at 4.8MB. Unfortunately, the new kernel exhibits the same problems as before. Some minor changes in the bootup screen, but I don’t think anything that is newly notable. I will include a transcription of it again below.

I have tried to use different USB mice and external keyboard. None of these are responsive during the 9front boot. They do work in raspian or labs 9 on the pi400. The xhcireset(BUSBNO(p->tbdf)<<20 | BUSDNO(p->tbdf)<<15 | BUSFNO(p->tbdf)<<12); was mentioned when addressing this in the labs version - so maybe the sdhc errors is preventing usb detection? Looking for the labs boot, none of the usb devices start to work until after I see "usb/hub... usb/kb... usb/kb... usb/kb... usb/kb... time…” come up in the startup, just after the detection of the additional cores. Is there any similar message I should be seeing in 9front?

I’m providing the raspian dmesg. I don’t know if it is of any use, but maybe you can glean what is hooked to which USB hub. When I booted this I had the lenovo mouse in the USB 2.0 port and the keyboard and Raspberry Pi (Pixart) mouse in USB 3.0 ports. 

Certainly if there’s any other information I need or can provide - just ask. 

Thanks again,

Mack 


Latest 9front console ‘kmesg’ on boot:

127 holes free
0x00550000 0x3e600000 1040908288
1040908288 bytes free

Plan 9
cpu0: 1800 MHz ARM Cortex-A72 r0p3
4006M Memory: 998M kernel data, 3008M user, 15011M swap
pcienable PCI.0.0.0: pcr 0->7
pcienable PCI.1.0.0: pcr 0->2
bus dev type     vid  did  intl memory
0   0/0 06 04 00 14e4 2711   0  ioa:00000000-00001000 4096 mema:600000000-600100000 1048576 ->1
1   0/0 0c 03 30 1106 3483   0  0:600000004 4096
#l0: genet: 1000Mbps port 0xFFFFFFFFBD580000 irq 189 ea dca632e63357
usbxhci: 0x1106 0x3483: port 600000000 size 4096 irq 0
cpu3: 1800MHz ARM Cortex-A72 r0p3
cpu2: 1800MHz ARM Cortex-A72 r0p3
cpu1: 1800MHz ARM Cortex-A72 r0p3
#l0: phy1 id 600d84a2 oui 80361
sdhc: readerror intr 2008002 stat 1fff0000
{repeats over 20 times}
/dev/sdM0: BCM SD Host Controller 02 Version 10
sdhc: readerror intr 2008002 stat 1fff0000
{repeats 40 or so times}
/dev/sdM0/data
bootargs is (tcp, tls, il, local!device)[]



Raspian Dmesg:
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.51-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1333 SMP Mon Aug 10 16:51:40 BST 2020
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 400 Rev 1.0
[    0.000000] Memory policy: Data cache writealloc
[    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] On node 0 totalpages: 1012736
[    0.000000]   DMA zone: 2304 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 816128 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s49856 r8192 d23872 u81920
[    0.000000] pcpu-alloc: s49856 r8192 d23872 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1010432
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 video=HDMI-A-1:1920x1080M@60,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48 smsc95xx.macaddr=DC:A6:32:E6:33:57 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=b42855bb-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x17cc0000-0x1bcc0000] (64MB)
[    0.000000] Memory: 3655616K/4050944K available (10240K kernel code, 725K rwdata, 2740K rodata, 2048K init, 853K bss, 133184K reserved, 262144K cma-reserved, 3264512K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 30051 entries in 59 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x340/0x518 with crng_init=0
[    0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000025] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000104] bcm2835: system timer (irq = 17)
[    0.000778] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000795] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000812] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000824] Switching to timer-based delay loop, resolution 18ns
[    0.001078] Console: colour dummy device 80x30
[    0.001111] printk: console [tty1] enabled
[    0.001161] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001182] pid_max: default: 32768 minimum: 301
[    0.001505] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001527] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002760] Disabling memory control group subsystem
[    0.002866] CPU: Testing write buffer coherency: ok
[    0.003367] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004222] Setting up static identity map for 0x200000 - 0x20003c
[    0.004411] rcu: Hierarchical SRCU implementation.
[    0.005061] smp: Bringing up secondary CPUs ...
[    0.006277] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007604] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.008875] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.009021] smp: Brought up 1 node, 4 CPUs
[    0.009036] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.009049] CPU: All CPU(s) started in HYP mode.
[    0.009060] CPU: Virtualization extensions available.
[    0.009859] devtmpfs: initialized
[    0.023252] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.023506] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023533] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.031458] pinctrl core: initialized pinctrl subsystem
[    0.032544] NET: Registered protocol family 16
[    0.036446] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.038188] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.038201] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.038557] Serial: AMBA PL011 UART driver
[    0.042162] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.060844] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-08-19 17:38, variant start
[    0.070860] raspberrypi-firmware soc:firmware: Firmware hash is e90cba19a98a0d1f2ef086b9cafcbca00778f094
[    0.124768] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.129263] vgaarb: loaded
[    0.129752] SCSI subsystem initialized
[    0.129968] usbcore: registered new interface driver usbfs
[    0.130036] usbcore: registered new interface driver hub
[    0.130168] usbcore: registered new device driver usb
[    0.131863] clocksource: Switched to clocksource arch_sys_counter
[    0.883170] VFS: Disk quotas dquot_6.6.0
[    0.883272] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.883466] FS-Cache: Loaded
[    0.883668] CacheFiles: Loaded
[    0.884602] simple-framebuffer 3e4e0000.framebuffer: framebuffer at 0x3e4e0000, 0x6e7000 bytes, mapped to 0x(ptrval)
[    0.884620] simple-framebuffer 3e4e0000.framebuffer: format=a8r8g8b8, mode=1824x984x32, linelength=7296
[    0.885117] Console: switching to colour frame buffer device 228x61
[    0.894361] simple-framebuffer 3e4e0000.framebuffer: fb0: simplefb registered!
[    0.904042] thermal_sys: Registered thermal governor 'step_wise'
[    0.904408] NET: Registered protocol family 2
[    0.905155] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.905185] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.905261] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.905339] TCP: Hash tables configured (established 8192 bind 8192)
[    0.905493] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.905526] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.905787] NET: Registered protocol family 1
[    0.906528] RPC: Registered named UNIX socket transport module.
[    0.906541] RPC: Registered udp transport module.
[    0.906553] RPC: Registered tcp transport module.
[    0.906565] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.906585] PCI: CLS 0 bytes, default 64
[    0.908498] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.910656] Initialise system trusted keyrings
[    0.910892] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[    0.921685] FS-Cache: Netfs 'nfs' registered for caching
[    0.922460] NFS: Registering the id_resolver key type
[    0.922517] Key type id_resolver registered
[    0.922529] Key type id_legacy registered
[    0.922552] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.923686] Key type asymmetric registered
[    0.923700] Asymmetric key parser 'x509' registered
[    0.923864] bounce: pool size: 64 pages
[    0.923924] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.924143] io scheduler mq-deadline registered
[    0.924157] io scheduler kyber registered
[    0.927974] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.927998] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.928062] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x0603ffffff -> 0x00f8000000
[    0.928126] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00ffffffff -> 0x0100000000
[    1.013977] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC)
[    1.014280] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.014297] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.014318] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    1.014376] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.014620] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.018052] PCI: bus0: Fast back to back transfers disabled
[    1.018073] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.018336] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.018480] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.018899] pci 0000:01:00.0: PME# supported from D0 D3hot
[    1.022302] PCI: bus1: Fast back to back transfers disabled
[    1.022321] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.022362] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.022385] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.022464] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.022487] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.022793] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.023039] pcieport 0000:00:00.0: PME: Signaling with IRQ 55
[    1.023418] pcieport 0000:00:00.0: AER: enabled with IRQ 55
[    1.023765] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    1.082284] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x7b8 took 57164 usecs
[    1.089486] iproc-rng200 fe104000.rng: hwrng registered
[    1.089798] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.090453] vc-sm: Videocore shared memory driver
[    1.090981] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.103040] brd: module loaded
[    1.115388] loop: module loaded
[    1.116787] Loading iSCSI transport class v2.0-870.
[    1.118806] libphy: Fixed MDIO Bus: probed
[    1.119389] bcmgenet fd580000.ethernet: failed to get enet clock
[    1.119407] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.119429] bcmgenet fd580000.ethernet: failed to get enet-wol clock
[    1.119448] bcmgenet fd580000.ethernet: failed to get enet-eee clock
[    1.119474] bcmgenet: Skipping UMAC reset
[    1.131903] libphy: bcmgenet MII bus: probed
[    1.221963] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.223025] usbcore: registered new interface driver r8152
[    1.223089] usbcore: registered new interface driver lan78xx
[    1.223146] usbcore: registered new interface driver smsc95xx
[    1.223563] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.223598] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.225790] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
[    1.227024] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.227041] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.227056] usb usb1: Product: xHCI Host Controller
[    1.227070] usb usb1: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.227084] usb usb1: SerialNumber: 0000:01:00.0
[    1.227668] hub 1-0:1.0: USB hub found
[    1.227769] hub 1-0:1.0: 1 port detected
[    1.228300] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.228325] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.228347] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.228801] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    1.228817] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.228832] usb usb2: Product: xHCI Host Controller
[    1.228846] usb usb2: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.228860] usb usb2: SerialNumber: 0000:01:00.0
[    1.229446] hub 2-0:1.0: USB hub found
[    1.229510] hub 2-0:1.0: 4 ports detected
[    1.230897] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.231171] dwc_otg: FIQ enabled
[    1.231182] dwc_otg: NAK holdoff enabled
[    1.231193] dwc_otg: FIQ split-transaction FSM enabled
[    1.231208] Module dwc_common_port init
[    1.231676] usbcore: registered new interface driver uas
[    1.231783] usbcore: registered new interface driver usb-storage
[    1.232027] mousedev: PS/2 mouse device common for all mice
[    1.235758] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.238387] sdhci: Secure Digital Host Controller Interface driver
[    1.238399] sdhci: Copyright(c) Pierre Ossman
[    1.238996] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.239559] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.243252] ledtrig-cpu: registered to indicate activity on CPUs
[    1.243573] hidraw: raw HID events driver (C) Jiri Kosina
[    1.243764] usbcore: registered new interface driver usbhid
[    1.243776] usbhid: USB HID core driver
[    1.244812] vchiq: vchiq_init_state: slot_zero = (ptrval)
[    1.246857] [vc_sm_connected_init]: start
[    1.256926] [vc_sm_connected_init]: end - returning 0
[    1.258997] Initializing XFRM netlink socket
[    1.259034] NET: Registered protocol family 17
[    1.259139] Key type dns_resolver registered
[    1.259605] Registering SWP/SWPB emulation handler
[    1.259927] registered taskstats version 1
[    1.259944] Loading compiled-in X.509 certificates
[    1.260420] Key type ._fscrypt registered
[    1.260432] Key type .fscrypt registered
[    1.270555] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.270638] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2
[    1.276602] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.277502] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.277516] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.326935] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.328571] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.330264] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.333320] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.334977] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.342460] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.345434] of_cfs_init
[    1.345552] of_cfs_init: OK
[    1.346816] Waiting for root device PARTUUID=b42855bb-02...
[    1.385018] random: fast init done
[    1.416442] mmc1: new high speed SDIO card at address 0001
[    1.451250] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.452308] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.455491]  mmcblk0: p1 p2
[    1.470266] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.470339] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.475441] devtmpfs: mounted
[    1.483570] Freeing unused kernel memory: 2048K
[    1.512218] Run /sbin/init as init process
[    1.591921] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.774560] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.774580] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.774617] usb 1-1: Product: USB2.0 Hub
[    1.776738] hub 1-1:1.0: USB hub found
[    1.777084] hub 1-1:1.0: 4 ports detected
[    1.889123] systemd[1]: System time before build time, advancing clock.
[    1.998096] NET: Registered protocol family 10
[    1.999415] Segment Routing with IPv6
[    2.038526] 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)
[    2.039277] systemd[1]: Detected architecture arm.
[    2.111927] usb 1-1.1: new low-speed USB device number 3 using xhci_hcd
[    2.118239] systemd[1]: Set hostname to <raspberrypi>.
[    2.250259] usb 1-1.1: New USB device found, idVendor=093a, idProduct=2510, bcdDevice= 1.00
[    2.250279] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.250295] usb 1-1.1: Product: USB Optical Mouse
[    2.250310] usb 1-1.1: Manufacturer: PixArt
[    2.260638] input: PixArt USB Optical Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:093A:2510.0001/input/input0
[    2.261037] hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:01:00.0-1.1/input0
[    2.361956] usb 1-1.2: new low-speed USB device number 4 using xhci_hcd
[    2.502541] usb 1-1.2: New USB device found, idVendor=17ef, idProduct=6099, bcdDevice= 1.14
[    2.502561] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.502578] usb 1-1.2: Product: Lenovo Traditional USB Keyboard
[    2.502592] usb 1-1.2: Manufacturer: LiteOn
[    2.514900] input: LiteOn Lenovo Traditional USB Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:17EF:6099.0002/input/input1
[    2.582631] hid-generic 0003:17EF:6099.0002: input,hidraw1: USB HID v1.11 Keyboard [LiteOn Lenovo Traditional USB Keyboard] on usb-0000:01:00.0-1.2/input0
[    2.590582] input: LiteOn Lenovo Traditional USB Keyboard System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:17EF:6099.0003/input/input2
[    2.652170] input: LiteOn Lenovo Traditional USB Keyboard Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:17EF:6099.0003/input/input3
[    2.652887] hid-generic 0003:17EF:6099.0003: input,hidraw2: USB HID v1.11 Device [LiteOn Lenovo Traditional USB Keyboard] on usb-0000:01:00.0-1.2/input1
[    2.751957] usb 1-1.3: new low-speed USB device number 5 using xhci_hcd
[    2.796541] random: systemd: uninitialized urandom read (16 bytes read)
[    2.809084] random: systemd: uninitialized urandom read (16 bytes read)
[    2.809177] systemd[1]: Reached target Swap.
[    2.809664] random: systemd: uninitialized urandom read (16 bytes read)
[    2.811662] systemd[1]: Created slice User and Session Slice.
[    2.811825] systemd[1]: Reached target Slices.
[    2.813171] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.814065] systemd[1]: Listening on Journal Socket.
[    2.820236] systemd[1]: Mounting RPC Pipe File System...
[    2.829435] systemd[1]: Starting Set the console keyboard layout...
[    2.891097] usb 1-1.3: New USB device found, idVendor=17ef, idProduct=608d, bcdDevice= 1.00
[    2.891112] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.891127] usb 1-1.3: Product: Lenovo USB Optical Mouse
[    2.891139] usb 1-1.3: Manufacturer: PixArt
[    2.904709] input: PixArt Lenovo USB Optical Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:17EF:608D.0004/input/input4
[    2.905185] hid-generic 0003:17EF:608D.0004: input,hidraw3: USB HID v1.11 Mouse [PixArt Lenovo USB Optical Mouse] on usb-0000:01:00.0-1.3/input0
[    2.925452] i2c /dev entries driver
[    3.004201] usb 1-1.4: new low-speed USB device number 6 using xhci_hcd
[    3.193393] usb 1-1.4: New USB device found, idVendor=04d9, idProduct=0007, bcdDevice= 1.61
[    3.193413] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.193430] usb 1-1.4: Product: Raspberry Pi Internal Keyboard
[    3.193446] usb 1-1.4: Manufacturer:  
[    3.223668] input:   Raspberry Pi Internal Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:04D9:0007.0005/input/input5
[    3.292794] hid-generic 0003:04D9:0007.0005: input,hidraw4: USB HID v1.11 Keyboard [  Raspberry Pi Internal Keyboard] on usb-0000:01:00.0-1.4/input0
[    3.316136] input:   Raspberry Pi Internal Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:04D9:0007.0006/input/input6
[    3.382252] hid-generic 0003:04D9:0007.0006: input,hidraw5: USB HID v1.11 Device [  Raspberry Pi Internal Keyboard] on usb-0000:01:00.0-1.4/input1
[    3.507880] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.621676] systemd-journald[120]: Received request to flush runtime journal from PID 1
[    4.261488] mc: Linux media interface: v0.10
[    4.284741] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.287158] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.287183] [vc_sm_connected_init]: start
[    4.297740] videodev: Linux video capture interface: v2.00
[    4.305438] [vc_sm_connected_init]: installed successfully
[    4.344623] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.346513] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.346728] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.353213] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.359095] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    4.360069] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.372829] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    4.372891] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    4.383213] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    4.383257] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    4.392053] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    4.392099] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    4.404213] bcm2835_audio bcm2835_audio: card created with 4 channels
[    4.408652] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    4.439423] bcm2835_audio bcm2835_audio: card created with 4 channels
[    4.530659] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    4.531148] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    4.532335] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    4.532710] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    4.532738] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    4.532758] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    4.532777] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    4.532796] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    4.534140] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    4.852889] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    4.866417] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.000941] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.031296] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    5.031319] checking generic (3e4e0000 6e7000) vs hw (0 ffffffffffffffff)
[    5.031334] fb0: switching to vc4drmfb from simple
[    5.046025] Console: switching to colour dummy device 80x30
[    5.046271] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    5.046284] [drm] No driver support for vblank timestamp query.
[    5.046296] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[    5.046860] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    5.061081] brcmfmac: F1 signature read @0x18000000=0x15294345
[    5.074320] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    5.075270] usbcore: registered new interface driver brcmfmac
[    5.090662] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43456-sdio.raspberrypi,4-model-b.txt failed with error -2
[    5.095557] Console: switching to colour frame buffer device 240x67
[    5.095606] vc4-drm gpu: fb0: vc4drmfb frame buffer device
[    5.146858] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    5.149774] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    5.150171] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    5.150536] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    5.287637] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    5.301494] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: May 14 2020 17:26:08 version 7.84.17.1 (r871554) FWID 01-3d9e1d87
[    7.153732] random: crng init done
[    7.153750] random: 7 urandom warning(s) missed due to ratelimiting
[    7.317243] uart-pl011 fe201000.serial: no DMA platform data
[    7.342799] 8021q: 802.1Q VLAN Support v1.8
[    7.583395] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    8.113336] bcmgenet: Skipping UMAC reset
[    8.115855] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    8.116236] bcmgenet fd580000.ethernet eth0: Link is Down
[    9.589868] broken atomic modeset userspace detected, disabling atomic
[   12.224661] fuse: init (API version 7.31)
[   13.231417] Bluetooth: Core ver 2.22
[   13.231469] NET: Registered protocol family 31
[   13.231473] Bluetooth: HCI device and connection manager initialized
[   13.231485] Bluetooth: HCI socket layer initialized
[   13.231493] Bluetooth: L2CAP socket layer initialized
[   13.231506] Bluetooth: SCO socket layer initialized
[   13.241356] Bluetooth: HCI UART driver ver 2.3
[   13.241365] Bluetooth: HCI UART protocol H4 registered
[   13.241429] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   13.244097] Bluetooth: HCI UART protocol Broadcom registered
[   13.351980] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   13.352008] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.438259] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.438267] Bluetooth: BNEP filters: protocol multicast
[   13.438292] Bluetooth: BNEP socket layer initialized
[   13.484424] Bluetooth: RFCOMM TTY layer initialized
[   13.484442] Bluetooth: RFCOMM socket layer initialized
[   13.484459] Bluetooth: RFCOMM ver 1.11

 


On Jan 23, 2021, at 11:11 AM, cinap_lenrek@felloff.net wrote:

In my many times trying different things, I have had a few other errors.
However, what I am showing is what I am getting now consistently having done the following.

There might be some differences in the sdhc controller driver.
I can take a look later today and see...

I’ve replaced the Pi firmware files with the latest at of today.
I then added ‘enable_gic=1’ to the config.txt file with no change.

The 9front pi4 kernel is for arm64 (armv8), where the GIC is required.
The firmware should have enabled the GIC when loading a 64-bit kernel.

Tho i had encountered some firmware bugs before where firmware disabled
the GIC (just masked interrupt routing to EL1) when the kernel image
file was not a multiple of 4 bytes. But i think they fixed that.
There are some mask registers in the GIC that we could check to
see if this is the case.

Consistent amongst the previous attempts were the same one or two errors
repeated many times, and not keyboard or mouse response
(not surprising as the newer Pis need to have their usb firmware uploaded in the kernel).

I do not know what you mean by this. The kernel does the firmware mailbox
call to notify firmware that we did a reset of the pcie controller
to load the XHCI firmware. This was a problem with the 8GB models of the
raspberry pi4 and has been addressed.

This is done in /sys/src/9/bcm64/archbcm4.c:^archbcm4link() function:

void
archbcm4link(void)
{
Pcidev *p;

/*
* The firmware resets PCI before starting the host OS because
* without SDRAM the VL805 makes inbound requests to page-in firmware
* from SDRAM. If the OS has a different PCI mapping that would all break.
* There's no way to pause and move the mappings and it's not really desirable
* for the firmware to dictate the PCI configuration. Consequently, the mailbox
* is required so that the OS can reset the VLI after asserting PCI chip reset.
*/
if((p = pcimatch(nil, 0x1106, 0x3483)) != nil)
xhcireset(BUSBNO(p->tbdf)<<20 | BUSDNO(p->tbdf)<<15 | BUSFNO(p->tbdf)<<12);

// addclock0link(wdogfeed, HZ);
}

I do not know the pi400 architecture but could it be possible that they
connected the keyboard to the DesignWave usb 2.0 controller instead?
The pi4 kernel does not include the dwc controller driver like the pi3,
because on the pi4 it is not used. On the pi400 i do not know.

In case there were newer updates to the source, I did a sysupdate on a laptop
I have with 9 and then tried to cross-compile a new kernel.

However, I get a much smaller kernel (only 2.9MB rather than the 4.4MB in the
9front Pi image. I don’t know if this is unexpected. When I try to boot that kernel.
The console screen comes up. But after CPU detection, the kernel panics and stops booting.

The 9front kernel includes a small compressed ram filesystem with a
shell environment (you can enter it by typing !rc on bootargs prompt).
Before you build the kernel, you need to have all these userspace programs
compiled for the kernel's architecture (arm64 in this case).

I do not know how you compiled the pi4 kernel, but here is how it should
work on 9front:

1) Compile userspace

cd /sys/src
objtype=arm64 mk install

2) Compile the kernel

cd /sys/src/9/bcm64
mk 'CONF=pi4' install

now, you should'v got a /arm64/9pi4 and /arm64/s9pi4.

The 9pi4 file is a stripped raw flat image that can be loaded
by the pi's firmware.

The s9pi4 file is the same kernel with the native a.out
header and debug symbols, so it can be loaded in acid
and also used for /dev/reboot'ing into it from a running system.

Hope this helps...

--
cinap