Close

LoShark DO run the mainline Linux kernel

A project log for LoShark

The Ultra-Compact Powerhouse for LoRa Debugging and Connectivity

reimu-notmoeReimu NotMoe 08/02/2023 at 19:060 Comments

As of 2023-08-02, this comment appeared below the CNX software article. It appears to be from a upstream Linux maintainer.

And here are my responses:

LoShark (tested on X1501 EVB with LoShark's rootfs) running the latest rc kernel (with X1000 as target):


This is the complete boot log. Many things are broken, as expected. But you get a working shell.
X-Loader Build: 2023-06-28 - 19:08:31

EPC: 0x80101c24
stage2 inited
uImage name: Linux-6.5.0-rc4-LoShark+
uImage size: 1020740
uImage load addr: 80100000
uImage endpoint addr: 8030cff4
Jumping to 8030cff4
[    0.000000] Linux version 6.5.0-rc4-LoShark+ (root@Rinyuki-Laptop) (mipsel-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #11 PREEMPT Thu Aug  3 04:13:47 CST 2023
[    0.000000] CPU0 revision is: 2ed1024f (Ingenic XBurst)
[    0.000000] FPU revision is: 00330000
[    0.000000] MIPS: machine is YSH & ATIL General Board CU1000-Neo
[    0.000000] earlycon: x1000_uart0 at MMIO 0x10032000 (options '115200n8')
[    0.000000] printk: bootconsole [x1000_uart0] enabled
[    0.000000] **********************************************************
[    0.000000] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
[    0.000000] **                                                      **
[    0.000000] ** This system shows unhashed kernel memory addresses   **
[    0.000000] ** via the console, logs, and other interfaces. This    **
[    0.000000] ** might reduce the security of your system.            **
[    0.000000] **                                                      **
[    0.000000] ** If you see this message and you are not debugging    **
[    0.000000] ** the kernel, report this immediately to your system   **
[    0.000000] ** administrator!                                       **
[    0.000000] **                                                      **
[    0.000000] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
[    0.000000] **********************************************************
[    0.000000] User-defined physical RAM map overwrite
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 16kB, VIVT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 128kB, 4-way, linesize 128 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x00000000007fffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x00000000007fffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000007fffff]
[    0.000000] Kernel command line: console=ttyS2@115200n8 earlycon mem=8M@0x0 loglevel=7 devtmpfs.mount=1 clk_ignore_unused no_hash_pointers
[    0.000000] Dentry cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping off.  Total pages: 2032
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 4812K/8192K available (2122K kernel code, 141K rwdata, 220K rodata, 644K init, 86K bss, 3380K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: ingenic-ost: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1274173631191 ns
[    0.000003] sched_clock: 32 bits at 1500kHz, resolution 666ns, wraps every 1431655764658ns
[    0.008517] Calibrating delay loop... 1002.49 BogoMIPS (lpj=501248)
[    0.022791] pid_max: default: 4096 minimum: 301
[    0.033908] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.041296] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.056642] rcu: Hierarchical SRCU implementation.
[    0.061517] rcu:     Max phase no-delay instances is 400.
[    0.068357] devtmpfs: initialized
[    0.076543] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.086469] futex hash table entries: 16 (order: -5, 192 bytes, linear)
[    0.094303] pinctrl core: initialized pinctrl subsystem
[    0.100175] cpuidle: using governor menu
[    0.118361] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.128163] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.138171] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.148548] gpio gpiochip3: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.160090] clocksource: Switched to clocksource ingenic-ost
[    0.181331] workingset: timestamp_bits=30 max_order=11 bucket_order=0
[    0.190445] JFS: nTxBlock = 37, nTxLock = 300
[    0.203735] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.213363] printk: console [ttyS2] disabled
[    0.218304] 10032000.serial: ttyS2 at MMIO 0x10032000 (irq = 49, base_baud = 1500000) is a 16550A
[    0.227393] printk: console [ttyS2] enabled
[    0.227393] printk: console [ttyS2] enabled
[    0.235777] printk: bootconsole [x1000_uart0] disabled
[    0.235777] printk: bootconsole [x1000_uart0] disabled
[    0.260853] loop: module loaded
[    0.264883] spi-ingenic 10043000.spi: DMA not available.
[    0.271533] spi spi0.0: Fixed dependency cycle(s) with /spi@10043000/expander@0/sc16is752
[    0.281273] i2c_dev: i2c /dev entries driver
[    0.286304] jz4780-i2c 10050000.i2c-controller: Bus frequency is 400 KHz
[    0.298363] jz4740-mmc 13460000.mmc: Failed to get dma_tx channel
[    0.315647] dwc2 13500000.usb: Configuration mismatch. dr_mode forced to device
[    0.334842] dwc2 13500000.usb: dwc2_core_reset: HANG! Soft Reset timeout GRSTCTL_CSFTRST
[    0.342992] jz4740-mmc 13460000.mmc: Ingenic SD/MMC card driver registered
[    0.349931] dwc2: probe of 13500000.usb failed with error -16
[    0.355762] jz4740-mmc 13460000.mmc: Using PIO, 4-bit mode
[    0.362022] clk: Not disabling unused clocks
[    0.372037] Freeing unused kernel image (initmem) memory: 644K
[    0.378117] This architecture does not have kernel memory protection.
[    0.384643] Run /init as init process
[    0.413297] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.428333] mmc0: new high speed SDHC card at address 0001
[    0.441179] mmcblk0: mmc0:0001 SD16G 29.2 GiB
[    0.454210]  mmcblk0: p1 p2
[    1.849133] random: crng init done
/sys/class/leds/red:indicator/brightness: No such file or directory
[    1.854729] process '/jfs_fsck' started with executable stack
jfs_fsck version 1.1.15, 04-Mar-2011
processing started: 1/1/1970 0:00:01
Using default parameter: -p
The current device is:  /dev/mmcblk0p1
Block size in bytes:  4096
Filesystem size in blocks:  32768
**Phase 0 - Replay Journal Log
Filesystem is clean.
mount: mounting debugfs on /sys/kernel/debug failed: No such file or directory
mkdir: can't create directory '/run/lock/': Read-only file system
vm.dirty_expire_centisecs = 1000
vm.min_free_kbytes = 64
Running sysctl: OK
Starting Hardware: /sbin/init-hardware.sh: line 3: can't create /sys/class/leds/red:indicator/brightness: nonexistent directory
OK
Starting Storage: umount: can't unmount /mnt: Invalid argument
cat: can't open '/sys/bus/spi/drivers/lyontek_ly68/*/mtd/mtd?/mtdblock?/dev': No such file or directory
/dev/ly68psram*: No such file or directory
error: failed to setup crypt loop for /dev/ly68psram*
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 1/1/1970 0:00:02
Using default parameter: -p
The current device is:  /dev/mmcblk0p2
Block size in bytes:  4096
Filesystem size in blocks:  212736
**Phase 0 - Replay Journal Log
Filesystem is clean.
OK
Starting USB gadget: OK
Starting app: OK
can't open /dev/ttyGS1: No such file or directory
root@X1501:/# [    2.982701] file system registered
[    3.097912] read descriptors
[    3.100937] read strings
[    4.099561] UDC core: g1: couldn't find an available UDC or it's busy
[    5.114977] UDC core: g1: couldn't find an available UDC or it's busy
[    6.130601] UDC core: g1: couldn't find an available UDC or it's busy
[    7.145878] UDC core: g1: couldn't find an available UDC or it's busy
[    8.161603] UDC core: g1: couldn't find an available UDC or it's busy
[    9.176967] UDC core: g1: couldn't find an available UDC or it's busy
[   10.192596] UDC core: g1: couldn't find an available UDC or it's busy
[   11.207900] UDC core: g1: couldn't find an available UDC or it's busy
[   12.223362] UDC core: g1: couldn't find an available UDC or it's busy
[   13.238825] UDC core: g1: couldn't find an available UDC or it's busy
[   16.422419] ffs_data_put(): freeing
[   16.525575] read descriptors
[   16.528606] read strings
[   17.526403] UDC core: g1: couldn't find an available UDC or it's busy
[   18.541900] UDC core: g1: couldn't find an available UDC or it's busy
[   19.557398] UDC core: g1: couldn't find an available UDC or it's busy
[   20.572869] UDC core: g1: couldn't find an available UDC or it's busy
[   21.588369] UDC core: g1: couldn't find an available UDC or it's busy
[   22.603853] UDC core: g1: couldn't find an available UDC or it's busy
[   23.619291] UDC core: g1: couldn't find an available UDC or it's busy
[   24.634773] UDC core: g1: couldn't find an available UDC or it's busy
[   25.650251] UDC core: g1: couldn't find an available UDC or it's busy
[   26.665713] UDC core: g1: couldn't find an available UDC or it's busy

Discussions