reMarkable / linux

Linux kernel for reMarkable 1 & 2. zero-sugar is rM2 and zero-gravitas is rM1.
Other
272 stars 41 forks source link

zero-sugar kernel doesn't work with WiFi #9

Closed alistair23 closed 3 years ago

alistair23 commented 3 years ago

If I build the zero-sugar kernel d4e7e07a390f8b2544ca09d69142d18114149004 using the zero-sugar.dts device tree and zero-sugar_defconfig config I can successfully boot my own kernel on the rM2. However the WiFi doesn't work.

I have attached the kernel log below.

I have a single change in the device tree to get UART on the pogo pins, which causes OTG errors in the log below. I can use the same device tree with the pre-built kernel on the rM2 to get UART and the WiFi still works. So I know it isn't my DTS change.

Is there any chance you haven't pushed some WiFi patches to this repo?

I'm using the same config (checked against the pre-built kernel) and using the same rootFS so the same binary blobs are supplied. The only differences I can think of is the actual kernel source or the version of GCC being used.

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.78-13485-gb2467adeb7d3 (alistair@risc6-mainframe) (gcc version 10.2.0 (Arch Repository)) #1 SMP PREEMPT Wed Jan 27 08:44:08 PST 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: reMarkable 2.0
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0xa8000000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] percpu: Embedded 15 pages/cpu @bf71b000 s31436 r8192 d21812 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: console=ttymxc5,115200 root=/dev/mmcblk2p2 rootwait rootfstype=ext4 r
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 698760K/1048576K available (7168K kernel code, 498K rwdata, 2300K rodata, 1024K init, 417K bss, 22136K reserved, 327680K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc0800000 - 0xff800000   (1008 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x80800000   (8160 kB)
[    0.000000]       .init : 0x80b00000 - 0x80c00000   (1024 kB)
[    0.000000]       .data : 0x80c00000 - 0x80c7cbd8   ( 499 kB)
[    0.000000]        .bss : 0x80c7e000 - 0x80ce66e0   ( 418 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000008] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000021] Switching to timer-based delay loop, resolution 125ns
[    0.000364] Ignoring duplicate/late registration of read_current_timer delay
[    0.000383] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[    0.002350] Console: colour dummy device 80x30
[    0.002376] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=80000)
[    0.002393] pid_max: default: 32768 minimum: 301
[    0.002527] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002544] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003168] CPU: Testing write buffer coherency: ok
[    0.003494] CPU0: update cpu_capacity 1024
[    0.003507] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.039961] Setting up static identity map for 0x80100000 - 0x80100060
[    0.059945] Hierarchical SRCU implementation.
[    0.100033] smp: Bringing up secondary CPUs ...
[    0.170441] CPU1: update cpu_capacity 1024
[    0.170448] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.170583] smp: Brought up 1 node, 2 CPUs
[    0.170603] SMP: Total of 2 processors activated (32.00 BogoMIPS).
[    0.170612] CPU: All CPU(s) started in SVC mode.
[    0.171354] devtmpfs: initialized
[    0.175336] OF: Duplicate name in lcdif@30730000, renamed to "display#1"
[    0.180702] random: get_random_u32 called from bucket_table_alloc+0x100/0x22c with crng_init=0
[    0.180808] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.181057] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.181082] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.192329] pinctrl core: initialized pinctrl subsystem
[    0.193336] NET: Registered protocol family 16
[    0.207755] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.208748] cpuidle: using governor menu
[    0.213316] vdd1p0d: supplied by regulator-dummy
[    0.213844] vdd1p2: supplied by regulator-dummy
[    0.216270] DDR type is LPDDR3!
[    0.223315] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.223331] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.224735] imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
[    0.225257] imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
[    0.249431] usbcore: registered new interface driver usbfs
[    0.249498] usbcore: registered new interface driver hub
[    0.249610] usbcore: registered new device driver usb
[    0.249803] usb_phy_generic 30800000.aips-bus:usbphynop1: 30800000.aips-bus:usbphynop1 supply vcc not found, using dummy regulator
[    0.250145] usb_phy_generic 30800000.aips-bus:usbphynop2: 30800000.aips-bus:usbphynop2 supply vcc not found, using dummy regulator
[    0.251183] i2c i2c-0: IMX I2C adapter registered
[    0.251204] i2c i2c-0: can't use DMA, using PIO instead.
[    0.261045] bd7181x 1-004b: BD7181x: Device ID=0x41
[    0.261061] bd7181x->chip_irq=235 
[    0.971903] random: fast init done
[    1.162351] i2c i2c-1: IMX I2C adapter registered
[    1.162370] i2c i2c-1: can't use DMA, using PIO instead.
[    1.163042] i2c i2c-2: IMX I2C adapter registered
[    1.163061] i2c i2c-2: can't use DMA, using PIO instead.
[    1.163651] i2c i2c-3: IMX I2C adapter registered
[    1.163668] i2c i2c-3: can't use DMA, using PIO instead.
[    1.164122] pps_core: LinuxPPS API ver. 1 registered
[    1.164134] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.164160] PTP clock support registered
[    1.165118] MIPI CSI2 driver module loaded
[    1.165477] imx rpmsg driver is registered.
[    1.171847] clocksource: Switched to clocksource arch_sys_counter
[    1.171978] VFS: Disk quotas dquot_6.6.0
[    1.172048] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.180711] NET: Registered protocol family 2
[    1.181306] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.181397] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.181544] TCP: Hash tables configured (established 8192 bind 8192)
[    1.181655] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.181875] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.182085] NET: Registered protocol family 1
[    1.202564] RPC: Registered named UNIX socket transport module.
[    1.202577] RPC: Registered udp transport module.
[    1.202585] RPC: Registered tcp transport module.
[    1.202592] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.204596] Bus freq driver module loaded
[    1.205781] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.210689] NFS: Registering the id_resolver key type
[    1.210741] Key type id_resolver registered
[    1.210750] Key type id_legacy registered
[    1.210959] fuse init (API version 7.26)
[    1.217777] io scheduler noop registered
[    1.217796] io scheduler deadline registered
[    1.217961] io scheduler cfq registered (default)
[    1.217974] io scheduler mq-deadline registered
[    1.217983] io scheduler kyber registered
[    1.220012] mxsfb 30730000.lcdif: lcd-supply not ready, deferring
[    1.221267] imx-sdma 30bd0000.sdma: no iram assigned, using external mem
[    1.221661] imx-sdma 30bd0000.sdma: Falling back to user helper
[    1.227515] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 45, base_baud = 1500000) is a IMX
[    1.228113] 30a80000.serial: ttymxc5 at MMIO 0x30a80000 (irq = 50, base_baud = 500000) is a IMX
[    1.967151] console [ttymxc5] enabled
[    1.973087] imx sema4 driver is registered.
[    1.985966] brd: module loaded
[    1.996825] loop: module loaded
[    2.000429] imx7d-pinctrl 30330000.iomuxc: pin MX7D_PAD_EPDC_DATA08 already requested by 30a80000.serial; cannot claim for otgcontrol1
[    2.012584] imx7d-pinctrl 30330000.iomuxc: pin-21 (otgcontrol1) status -22
[    2.019470] imx7d-pinctrl 30330000.iomuxc: could not request pin 21 (MX7D_PAD_EPDC_DATA08) from group one_wire_gpio_grp  on device 30330000.iomuxc
[    2.032633] rm_otg_control otgcontrol1: Error applying setting, reverse things back
[    2.040318] rm_otg_control: probe of otgcontrol1 failed with error -22
[    2.048815] max77818 1-0066: device ID: 0x23, REV: 0x3
[    2.466070] sy7636a 3-0062: Power good GPIO registered (gpio# 181)
[    2.522946] libphy: Fixed MDIO Bus: probed
[    2.527497] usbcore: registered new interface driver kaweth
[    2.533113] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    2.540555] usbcore: registered new interface driver pegasus
[    2.546331] usbcore: registered new interface driver rtl8150
[    2.552074] usbcore: registered new interface driver r8152
[    2.557624] usbcore: registered new interface driver asix
[    2.563089] usbcore: registered new interface driver ax88179_178a
[    2.569223] usbcore: registered new interface driver cdc_ether
[    2.575117] usbcore: registered new interface driver net1080
[    2.580818] usbcore: registered new interface driver cdc_subset
[    2.586798] usbcore: registered new interface driver zaurus
[    2.592460] usbcore: registered new interface driver cdc_ncm
[    2.598125] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.604690] ehci-mxc: Freescale On-Chip EHCI Host driver
[    2.610170] usbcore: registered new interface driver usb_ehset_test
[    2.617500] usbmisc_imx 30b10200.usbmisc: 30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
[    2.627733] usbmisc_imx 30b30200.usbmisc: 30b30200.usbmisc supply vbus-wakeup not found, using dummy regulator
[    2.637979] usbmisc_imx 30b20200.usbmisc: 30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
[    2.648787] imx_usb 30b10000.usb: 30b10000.usb supply vbus not found, using dummy regulator
[    2.657667] imx_usb 30b20000.usb: 30b20000.usb supply vbus not found, using dummy regulator
[    2.680876] using random self ethernet address
[    2.685375] using random host ethernet address
[    2.690306] usb0: HOST MAC 8e:4d:08:c9:79:68
[    2.694705] usb0: MAC 56:a9:aa:77:48:66
[    2.698573] using random self ethernet address
[    2.703048] using random host ethernet address
[    2.707559] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[    2.714210] g_ether gadget: g_ether ready
[    2.721545] input: 30370000.snvs:snvs-powerkey as /devices/soc0/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
[    2.855145] input: Wacom I2C Digitizer as /devices/soc0/soc/30800000.aips-bus/30a20000.i2c/i2c-0/0-0009/input/input1
[    2.866463] cyttsp5_i2c_adapter 2-0024: cyttsp5_init: INIT CYTTSP RST gpio=13 and IRQ gpio=14 r=0
[    2.995734] cyttsp5_i2c_adapter 2-0024: cyttsp5_startup_: Operational mode
[    3.002655] cyttsp5_i2c_adapter 2-0024: cyttsp5_startup_: Reading report descriptor
[    3.117091] cyttsp5_i2c_adapter 2-0024: cyttsp5 Protocol Version: 1.7
[    3.132655] input: cyttsp5_mt as /devices/soc0/soc/30800000.aips-bus/30a40000.i2c/i2c-2/2-0024/input/input2
[    3.142775] cyttsp5_i2c_adapter 2-0024: cyttsp5_loader_probe: Successful probe 2-0024
[    3.150657] cyttsp5_loader_init: Parade TTSP FW Loader Driver (Built TTDA.03.07.844339) rc=0
[    3.159245] cyttsp5_i2c_adapter 2-0024: Falling back to user helper
[    3.166584] snvs_rtc 30370000.snvs:snvs-rtc-lp: rtc core: registered 30370000.snvs:snvs-rtc-lp as rtc0
[    3.176264] i2c /dev entries driver
[    3.180719] power_supply max77818_battery: Not all required supplies found, defer probe
[    3.188812] max77818-fuelgauge max77818-fuelgauge: failed to register supply: -517 
[    3.197283] max77818-charger max77818-charger: failed to unlock: -6
[    3.203612] max77818-charger max77818-charger: failed to init charger: 0
[    3.213645] imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
[    3.224165] sdhci: Secure Digital Host Controller Interface driver
[    3.230376] sdhci: Copyright(c) Pierre Ossman
[    3.234824] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.242172] sdhci-esdhc-imx 30b50000.usdhc: allocated mmc-pwrseq
[    3.311924] mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using ADMA
[    3.336262] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    3.343479] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.350681] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.359228] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    3.370823] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[    3.391867] mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
[    3.401691] usbcore: registered new interface driver usbhid
[    3.407458] usbhid: USB HID core driver
[    3.417135] NET: Registered protocol family 26
[    3.422552] NET: Registered protocol family 10
[    3.427945] Segment Routing with IPv6
[    3.431741] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.439359] NET: Registered protocol family 17
[    3.446946] 8021q: 802.1Q VLAN Support v1.8
[    3.451880] lib80211: common routines for IEEE802.11 drivers
[    3.457590] Key type dns_resolver registered
[    3.496487] mmc1: new high speed SDIO card at address 0001
[    3.539721] mxsfb 30730000.lcdif: Driver set to prevent frying pan mode
[    3.546367] mxsfb 30730000.lcdif: initialized
[    3.547703] sdhci-esdhc-imx 30b60000.usdhc: warning! HS400 strobe DLL status REF not lock!
[    3.553851] mmc2: new HS400 MMC card at address 0001
[    3.554618] mmcblk2: mmc2:0001 Q2J95E 7.13 GiB 
[    3.555165] mmcblk2boot0: mmc2:0001 Q2J95E partition 1 2.00 MiB
[    3.555701] mmcblk2boot1: mmc2:0001 Q2J95E partition 2 2.00 MiB
[    3.556225] mmcblk2rpmb: mmc2:0001 Q2J95E partition 3 4.00 MiB
[    3.567825]  mmcblk2: p1 p2 p3 p4
[    3.590071] imx_usb 30b10000.usb: 30b10000.usb supply vbus not found, using dummy regulator
[    3.599028] power_supply max77818_battery: max77818_battery: Found supply : max77818-charger
[    3.607732] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    4.281069] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    4.293566] imx_thermal 30000000.aips-bus:tempmon: Commercial CPU temperature grade - max:95C critical:90C passive:85C
[    4.305166] imx_usb 30b10000.usb: 30b10000.usb supply vbus not found, using dummy regulator
[    4.314548] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 2021-01-27 20:57:18 UTC (1611781038)
[    4.329694] vref-1v8: disabling
[    4.332920] brcm_reg: disabling
[    4.341146] EXT4-fs (mmcblk2p2): INFO: recovery required on readonly filesystem
[    4.348580] EXT4-fs (mmcblk2p2): write access will be enabled during recovery
[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs (mmcblk2p[    4.348580] EXT4-fs (mmcblk2p[    4.341146] EXT4-fs [    4.592158] EXT4-fs (mmcblk2p2): recovery complete
(mmcblk2p[    4.348580] EXT4-fs ([    4.600100] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
mmcblk2p[    4.341146] EXT4-fs [ [    4.610060] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
   4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounted
T4-fs ([    4.60010mmcblk2p[    4[    4.627196] Freeing unused kernel memory: 1024K
.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fre.341146] EXT4-fs [    4.59(mmcblk2p[    4.348580] EX[    4.622296] devtmpfs: mounT4-fs ([    4.60010mmcblk2p[    4[    4.627196] Fr[    4.772461] systemd[1]: /etc/systemd/system.conf.d/10-qt-env.conf:1: Assignment outside of section. Ignoring.
[    4.785315] systemd[1]: systemd 237 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)
[    4.807362] systemd[1]: Detected architecture arm.

Welcome to Codex Linux 2.5.2 (sumo)!

[    4.842532] systemd[1]: Set hostname to <reMarkable>.
[    4.958533] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[    4.975694] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    5.101198] random: systemd: uninitialized urandom read (16 bytes read)
[    5.108629] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    5.142167] random: systemd: uninitialized urandom read (16 bytes read)
[    5.149479] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    5.182286] random: systemd: uninitialized urandom read (16 bytes read)
[    5.189775] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    5.224528] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[    5.264808] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
[  OK  ] Listening on udev Control Socket.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[^[[0;32m  OK  ^[[0m] Listening on udev Control Socket.

[^[[0;32m  OK  ^[[0m] C         Mounting FUSE Control File System...
reated slice system-serial\x2dgetty.slice.

[^[[0;32m  OK          Mounting Kernel Configuration File System... 
^[[0m] Listening on udev Control Socket.

[^[[0;32m  OK  ^[[0m] C         Mounting FUSE Control File System...

reated slice system-serial\x2dgetty.slice.

[^[[0;32m  OK          Mounting Kernel Configuration File [  OK  ] Listening on Journal Socket (/dev/log).
System... 

^[[0m] Listening on udev Con         Starting Journal Service...
trol Socket.

[^[[0;32m  OK  ^[[0m] C         Starting Apply Kernel Variables...
         Mo[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
unting FUS[E  OK  ] Listening on udev Kernel Socket.
 Control[  OK  ] Created slice system-systemd\x2dfsck.slice.
 F[  OK  ] Reached target Remote File Systems.
ile Syst[  OK  ] Listening on Network Service Netlink Socket.
em...

reated slice system-serial         Starting udev Coldplug all Devices...
\x2dgetty.sli[  OK  ] cStarted Dispatch Password Requests to Console Directory Watch.
e.

[  OK  ] Started Forward Password Requests to Wall Directory Watch.

[^[  OK  ] Reached target Paths.[
[0;32m  OK [  OK  ] Created slice User and Session Slice.
   [  OK  ] Reached target Slices.
      Mounting K[  OK  ] Created slice system-busybox\x2difplugd.slice.
erne[  OK  ] Reached target Swap.
l Configuration File [^[[0;32m  OK  ^[[0m] Listening on Journal Socket (/dev/lo         Mounting Temporary Directory (/tmp)...
g).

System... 

^[[0m] Listening on udev Con         Starting Journal Service...

t[ro  OK  ] Mounted Kernel Debug File System.
l Socket.

[  OK  ] Mounted FUSE Control File System.
[^[[0;32m  OK  ^[[0m] C   [  OK  ] Mounted Kernel Configuration File System.
      Starting Apply Kernel Variables...

         Mo[^[[0;32m  OK  ^[[0m] Listening on /dev/initctl [  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started File System Check on Root Device.
[  OK  ] Started Apply Kernel Variables.
         Starting Remount Root and Kernel File Systems...
[    5.678514] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted /var/volatile.
[  OK  ] Started udev Kernel Device Manager.
         Starting Network Service...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Network Service.
[  OK  ] Started Journal Service.
         [    8.237790] random: crng init done
[    8.241902] random: 7 urandom warning(s) missed due to ratelimiting
Starting Flush Journal to Persistent Storage...
[    8.284801] systemd-journald[127]: Received request to flush runtime journal from PID 1
[    8.307581] systemd-journald[127]: File /var/log/journal/dc39bef4142a49bcb95ab0390e8497fd/system.journal corrupted or uncleanly shut down, renaming and replacing.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[    8.632675] cyttsp5_i2c_adapter 2-0024: _cyttsp5_firmware_cont_builtin: No builtin firmware
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Found device /dev/ttymxc5.
[    8.816237] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[    8.828268] imx-sdma 30bd0000.sdma: external firmware not found, using ROM firmware
[  OK  ] Found device /sys/subsystem/net/devices/usb0.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Found device /dev/mmcblk2p4.
[  OK  ] Found device /dev/mmcblk2p1.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting File System Check on /dev/mmcblk2p1...
         Starting File System Check on /dev/mmcblk2p4...
      [  OK  ] Reached target System Time Synchronized.
   Sta[  OK  ] Reached target System Initialization.
rting File System Check on /dev/mmcblk2p4...

[  OK  ] Listening on D-Bus System Message Bus Socket.
      [^[[0[  OK  ] Started Daily Cleanup of Temporary Directories.
;32m [  OK   ] Reached target Timers.
OK  ^[[0m] Reached target System Time Synchron[  OK  ] Listening on dropbear.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[^[[0;32m  OK  ^[[0m] Reached target Sockets.

[         Starting Update Engine...
^[[0;32m  OK  ^[[0m] Reached ta         Starting Login Service...
rget Basic System.

[^[[0;32m  OK  ^[[0m] Reached target Soc[  OK  ] Started Getty on tty1.
kets.

[         Starting Update Engine...

^[[0;32m  OK  ^[[0m] Reached ta         Starting Login[  OK  ] Started Serial Getty on ttymxc5.
 Service...

rget Basic System.

[^[[0;32m  OK  ^[[0m] Reached target Soc[^[[0;32m  OK[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Login Service.
         Starting dhcpcd on all interfaces...
[  OK  ] Started ifplugd on usb0.
[  OK  ] Started File System Check on /dev/mmcblk2p1.
[  OK  ] Started File System Check on /dev/mmcblk2p4.
[FAILED] Failed to start dhcpcd on all interfaces.
See 'systemctl status dhcpcd.service' for details.
[  OK  ] Started Update Engine.
         Mounting /home...
         Mounting /var/lib/uboot...
[    9.866991] EXT4-fs (mmcblk2p4): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /home.
[  OK  ] Mounted /var/lib/uboot.
[  OK  ] Stopped dhcpcd on all interfaces.
         Starting dhcpcd on all interfaces...
[  OK  ] Started reMarkable crash uploader.
[  OK  ] Started reMarkable main application.
[FAILED] Failed to start dhcpcd on all interfaces.
See 'systemctl status dhcpcd.service' for details.
[  OK  ] Stopped dhcpcd on all interfaces.
         Starting dhcpcd on all interfaces...
[FAILED] Failed to start dhcpcd on all interfaces.
See 'systemctl status dhcpcd.service' for details.
[  OK  ] Stopped dhcpcd on all interfaces.
         Starting dhcpcd on all interfaces...
[FAILED] Failed to start dhcpcd on all interfaces.
See 'systemctl status dhcpcd.service' for details.
[  OK  ] Stopped dhcpcd on all interfaces.
         Starting dhcpcd on all interfaces...
[FAILED] Failed to start dhcpcd on all interfaces.
See 'systemctl status dhcpcd.service' for details.
[  OK  ] Stopped dhcpcd on all interfaces.
[FAILED] Failed to start dhcpcd on all interfaces.
See 'systemctl status dhcpcd.service' for details.
[   13.108251] netlink: 8 bytes leftover after parsing attributes in process `xochitl'.
[   13.116127] netlink: 8 bytes leftover after parsing attributes in process `xochitl'.
[  OK  ] Stopped Serial Getty on ttymxc5.
[  OK  ] Started Serial Getty on ttymxc5.

Codex Linux 2.5.2 reMarkable ttymxc5

reMarkable login: 
alistair23 commented 3 years ago

@larsim @schultzern @steinarbakkemo

schultzern commented 3 years ago

@alistair23 hello and thanks for the interest in the reMarkable kernel. Are you rebuilding the modules and installing them as well when you are testing?

make modules_install INSTALL_MOD_PATH=<desired_path>
alistair23 commented 3 years ago

Thanks for getting back to me.

I just realised that in the above log the brcmfmac driver doesn't appear to even load, so good point. I just assumed that the modules would be loaded from the rootFS (I'm using the default rM2 rootFS).

I haven't actually spent much time getting the 4.14. kernel working. Most of my effort has been spent trying to get WiFi working with the 5.4 kernel and the 5.11. In that case I do see lots of brcmfmac logs and the device appears to start (it goes in and out of sleep) but I never get a wlan0 device. I guess that isn't up to you to help debug though (unless you want to :P )

alistair23 commented 3 years ago

I managed to get WiFi working the with 5.4 kernel. It seems like the firmware version the kernel expects has changed, combined with some timing issues. All working now though. Thanks for the help.

smartrxhub commented 1 year ago

I am experience same issue wifi wlan0 interface doesn't appear in ifconfig . if you can share more detail , how you fix.