BPI-F3 Running Ubuntu 24.04

So I finally got Ubuntu 24.04 running on my BPI-F3. It’s running well and I’m working on a video and documentation. I’m working on getting a newer version of the kernel running.

The way it’s booting now you can run an version of Linux you want. Here’s the basic steps.

Ubuntu Image

  • Image Bianbu to an Micro SD card. Expand the root so you have enough to copy an image to it.
  • Image Ubuntu 24.04 to the NVME
  • What ever image you decide to use determine which partition is root (/)
  • On my Github in the BPI-F3 Repository and cpio is my shell script which will uncompress and re-compress the initrd. The instructions are there.
  • Also in the repository in files there’s my init which is from the initrd when extracted
  • if your using Ubuntu then that should be fine but other OS then I’m not sure.
  • Replace the init and re-compress the initrd and put it back on the SD card replacing the one that’s there.
  • Booting from the SD card to should mount the root partition on the NVME and everything should run from there.

Ubuntu image Location: https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04-live-server-riscv64.img.gz

My Github: GitHub - rcman/BPI-F3: Working with my banana-pi F3 board and figuring it out

Thanks Franco

1 Like

I uploaded the file to my boo-f3 GitHub in files. File is called initrd.gz

Hey, thanks for sharing new file. Tested it with Bianbu Nas and Ubuntu 24.04 server from the link in your github. After initrd.gz replacement with my local initrd.img-6.1.15 I getting this message from BPI-F3 initialization in UART:

scanning for devs.....
Franco Shit
mount: mounting /dev/nvme0n1p1 on /tmp/franco failed: Invalid argument
brw-------    1  259,   4 /dev/nvme0n1p4[    4.627647] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd

brw-------    1  259,   3 /dev/nvme0n1[    4.637733] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
p3
brw-------    1  259,   2 /dev/nvme0[    4.648715] SMP: stopping secondary CPUs
n1p2
brw-------    1  259,   1 /dev/nvm[    4.656140] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
e0n1p1
brw-------    1  259,   0 /dev/nvme0n1
crw-------    1  245,   0 /dev/nvme0
looking at directories
I ran the command

And init is stuck on that status.

It’s only been tested with Ubuntu 24.04. What you need to do is an LSBLK, see which partition is / root and change it in the init. I was never meant to work with Bianbi.

It will work with anything you just need to change which partition is being mounted because that’s coded in the init file.

Modifying the init is a lot easier than it seems. If you download the shell script the “init” file and then just follow the instructions. It’s not hard to do. Let me know if you need help.

Franco

Do you mean to replace mount drive in 25th line inside init to what lsblk print as root on NVMe drive with Linux? In my case lsblk doesnt show the root on NVMe if I initially run from Bianbu flashed to microSD, only mmcblk0p6 is root. Maybe I need to write this partition into init file? image image

Looks like from your screen shot your nvmen0p2 is your root (/) so change the script to mount that partition. So it will say mount -t ext4 /dev/nvme01p2 /tmp/franco

Franco

Changed it and now I’m getting this error message:

scanning for devs.....
Franco Shit
[    5.501217] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Quota mode: none.
drwxr-sr-x    3      4096 boot
lrwxrwxrwx    1         1 ubuntu-ports -> .
drwxrwsr-x    3      4096 dists
lrwxrwxrwx    1         1 ubuntu -> .
drwxrwsr-x    2      4096 install
drwxr-sr-x    2      4096 dtb
-rw-rw-r--    1     30069 md5sum.txt
drwx------    2     16384 lost+found
drwxr-sr[    5.534869] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
-x    3      4096 EFI
drwxrwsr-x    2  [    5.545957] SMP: stopping secondary CPUs
    4096 casper
drwxrwsr-x    3      40[    5.553378] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
96 pool
brw-------    1  259,   4 /dev/nvme0n1p4
brw-------    1  259,   3 /dev/nvme0n1p3
brw-------    1  259,   2 /dev/nvme0n1p2
brw-------    1  259,   1 /dev/nvme0n1p1
brw-------    1  259,   0 /dev/nvme0n1
crw-------    1  245,   0 /dev/nvme0
looking at directories
I ran the command



Get to the prompt and then run sudo parted -l /dev/nvmen0

This should list which partition is what, and by name.

You’re booting from Micro SD card right? Franco

What did you install on the nvme?

Partitions don’t look he same. If it’s Ubuntu server as in my docs, then there’s no need to change the init.

And my my Ubuntu that I downloaded has 2 partitions not 4. Make sure you’re downloading the correct image

I’ve downloaded Ubuntu from the link in your github page https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04-live-server-riscv64.img.gz Here is the sudo parted -l /dev/nvmen0 output:

root@k1:~# sudo parted -l /dev/nvme0n
Model: SKHynix_HFM128GD3HX015N (nvme)
Disk /dev/nvme0n1: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name        Flags
 3      17.4kB  1066kB  1049kB               loader1
 4      1066kB  5260kB  4194kB               loader2
 1      21.0MB  132MB   111MB   fat16        EFI System  boot, esp
 2      132MB   3353MB  3221MB  ext4         Live Media  legacy_boot


Model: MMC AJTD4R (sd/mmc)
Disk /dev/mmcblk2: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End  Size  Type  File system  Flags


Model: SD SDABC (sd/mmc)
Disk /dev/mmcblk0: 62.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 1      131kB   393kB   262kB                fsbl
 2      393kB   459kB   65.5kB               env
 3      1049kB  2097kB  1049kB               opensbi
 4      2097kB  4194kB  2097kB               uboot
 5      4194kB  273MB   268MB   ext4         bootfs
 6      273MB   8863MB  8590MB  ext4         rootfs


Error: /dev/mmcblk2boot1: unrecognised disk label
Model: Generic SD/MMC Storage Card (sd/mmc)
Disk /dev/mmcblk2boot1: 4194kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

Error: /dev/mmcblk2boot0: unrecognised disk label
Model: Generic SD/MMC Storage Card (sd/mmc)
Disk /dev/mmcblk2boot0: 4194kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

Perhaps, Balena Etcher doesn’t like if I flash my NVMe through my m2 → PCIEx1 adapter. I don’t have m2 → USB adapter right now.

Hi,

Everything looks, try this. Download the initrd.gz, rename it, put it on your sd card in the boot partition which should be partition 5 on the micro sd card. Make sure you do a sync and unmount the sd card.

Then try it. Franco

If I download the latest version from here BPI-F3/files/initrd.gz at main · rcman/BPI-F3 · GitHub and just replaced your initrd.gz to initrd.img-6.1.15 from 5 partition on my newly flashed SD card I’m getting this error:

scanning for devs.....
Franco Shit
mount: mounting /dev/nvme0n1p1 on /tmp/franco failed: Invalid argument
brw-------    1  259,   4 /dev/nvme0n1p4
brw-------    1  259,   3 /dev/nvme0n1p3
brw-------    1  259,   2 /dev/nvme0n1p2
brw-------    1  2[    5.637140] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
59,   1 /dev/nvme0n1p1[    5.647823] SMP: stopping secondary CPUs

brw-------    1  259,   0 /dev/nvme0n1[    5.653696] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---

crw-------    1  245,   0 /dev/nvme0
looking at directories
I ran the command
BusyBox v1.36.1 (Ubuntu 1:1.36.1-3ubuntu1) multi-call binary.

Usage: switch_root [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]

Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.

        -c DEV  Reopen stdio to DEV after switch


BTW, NVMe works fine because I already did transition from SD to NVMe in Armbian minimal firmware with armbian-install command, so that script installed boot to eMMC and the rest to NVMe, so succesfully run without SD card in Armbian

So it’s working?

Franco

I mean NVMe is not defective, because it was worked on Armbian, but it doesn’t work on your initrd approach :frowning: I tried with this firmware to test that NVMe works fine Armbian SDK + Debian and Ubuntu images for BPI-F3 - #9 by igorpec So I tested with your initrd with NVMe in the m.2 port and in the mini PCI on the top (with adapter) it doesn’t work. Tested with 3 different power suppy, with 5A, 3A, 1A, but without any luck. Don’t have any idea what is wrong. I see in the UART that it prints in reverse order:

brw-------    1  259,   4 /dev/nvme0n1p4
brw-------    1  259,   3 /dev/nvme0n1p3
brw-------    1  259,   2 /dev/nvme0n1p2
brw-------    1  2[    4.805779] hub 3-1:1.0: USB hub found
59,   1 /dev/nvme0n1p1

maybe that’s the case and my NVMe really must have only 2 partitions for success? And one thig, I see that your code make ls -l /tmp/* and ls -l /dev/nvme*, but in my UART print it doesn’t print franco inside tmp, only nvme partitions… Maybe it doesn’t create inside tpm for some reason… Will check.

You know what! I think I am missing a step. Now I am starting to realize I may have done something that was an additional step.

The first 4 partitions are labeled FSBL, SBL etc. Inside that files directory are custom FSBL and U-Boot. DD them to the partitions and I think that might fix it. Those bootloaders discover NVME. I may need to look in to this more.

Just a thought. Franco

1 Like

Hi,

So I did some work on the weekend on this. When I burn my Ubuntu image to my NVME I only see 4 partitions. I also uploaded my current inittd-6.1.15 file to my Github(link below)

Franco

So, I see that it has similar errors, from my side:

UART init message
U-Boot SPL 2022.10spacemit (May 25 2024 - 04:01:33 +0000)
lpddr4_silicon_init consume 11ms
Boot from fit configuration k1-x_deb1
## Checking hash(es) for config conf_2 ... OK
## Checking hash(es) for Image uboot ... crc32+ OK
## Checking hash(es) for Image fdt_2 ... crc32+ OK
## Checking hash(es) for config config_1 ... OK
## Checking hash(es) for Image opensbi ... crc32+ OK


U-Boot 2022.10spacemit (May 25 2024 - 04:01:33 +0000), Build: jenkins-BianbuBuild-bianbu-linux-deb-123

CPU:   rv64imafdcv_zicsr_zifencei_zicbom_zicboz_zicbop_zihintpause_zicond_zba_zbb_zbc_zbs_svpbmt_sstc_sscofpmf
Model: spacemit k1-x deb1 board
DRAM:  DDR size = 4096 MB
DDR size = 4096 MB
DDR size = 4096 MB
4 GiB
[RESET]probe start
[RESET]probe finish
DCDC_REG1@dcdc1: ; enabling
DCDC_REG2@dcdc2: ; enabling
DCDC_REG3@dcdc3: ; enabling
DCDC_REG4@dcdc4: ; enabling
DCDC_REG5@dcdc5: ; enabling
DCDC_REG6@dcdc6: ; enabling
LDO_REG1@ldo1: ; enabling
LDO_REG2@ldo2: ; enabling
LDO_REG3@ldo3: ; enabling
LDO_REG4@ldo4: ; enabling
LDO_REG5@ldo5: ; enabling
LDO_REG6@ldo6: ; enabling
LDO_REG7@ldo7: ; enabling
LDO_REG8@ldo8: ; enabling
LDO_REG9@ldo9: ; enabling
LDO_REG10@ldo10: ; enabling
LDO_REG11@ldo11: ; enabling
SWITCH_REG1@switch1: ; enabling
DDR size = 4096 MB
Core:  400 devices, 27 uclasses, devicetree: board
MMC:   [RESET]spacemit_reset_set assert=0, id=71
[RESET]spacemit_reset_set assert=0, id=72
sdh@d4280000: probe done.
[RESET]spacemit_reset_set assert=0, id=71
[RESET]spacemit_reset_set assert=0, id=83
sdh@d4281000: probe done.
sdh@d4280000: 0, sdh@d4281000: 2
Loading Environment from MMC... sdh@d4280000: 74 clk wait timeout(100)
OK
pcie_dw_k1x_probe, 662
[RESET]spacemit_reset_set assert=0, id=90
Now init Rterm...
pcie prot id = 1, porta_init_done = 0
Now waiting portA resister tuning done...
porta redonly_reg2: 00006d37
pcie_rcal = 0x00006d37
pcie port id = 1, lane num = 2
Now int init_puphy...
waiting pll lock...
Now finish init_puphy....
pcie_dw_k1x pcie@ca400000: Unable to get phy0pcie_dw_k1x pcie@ca400000: Unable to get phy1PCIE-0: Link down
spacemit_dpu_probe:video device dpu@c0340000
spacemit_dpu_probe:display device hdmi@c0400500
Found device 'hdmi@c0400500', disp_uc_priv=0000000076ed81f0
[RESET]spacemit_reset_set assert=0, id=88
HDMI cannot get HPD signal
spacemit_display_init: device 'dpu@c0340000' display won't probe (ret=-1)
initialize_console_log_buffer
Have allocated memory for console log buffer
In:    serial
Out:   serial
Err:   serial
ddr_freq_change: ddr frequency change from level 0 to 6
Change DDR data rate to 2400MT/s
[RESET]spacemit_reset_set assert=0, id=38
Default to 100kHz
EEPROM: TlvInfo v1 len=32
valid ethaddr: fe:fe:fe:db:94:21
Serial number is valid.
Cannot find TLV data: product_name
Cannot find TLV data: manufacture_date
Cannot find TLV data: manufacturer
Cannot find TLV data: device_version
Cannot find TLV data: sdk_version
[RESET]spacemit_reset_set assert=0, id=88
HDMI cannot get HPD signal
display devices not found or not probed yet: -1
Read PMIC reg ab value f0
163 bytes read in 7 ms (22.5 KiB/s)
## Info: input data size = 164 = 0xA4
load env_k1-x.txt from bootfs successful
Net:   [RESET]spacemit_reset_set assert=0, id=92
RGMII interface
eth0: ethernet@cac80000
Autoboot in 0 seconds
Try to boot from MMC0 ...
get rootfs_part index:6
product_name: k1-x_deb1
match dtb by product_name: spacemit/k1-x_deb1.dtb
select spacemit/k1-x_deb1.dtb to load
Loading kernel...
13089980 bytes read in 813 ms (15.4 MiB/s)
Loading dtb...
75275 bytes read in 20 ms (3.6 MiB/s)
Loading ramdisk ...
6344202 bytes read in 399 ms (15.2 MiB/s)
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf-default' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel' kernel subimage
     Description:  Linux 6.1.15
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x100000bc
     Data Size:    13088391 Bytes = 12.5 MiB
     Architecture: RISC-V
     OS:           Linux
     Load Address: 0x00200000
     Entry Point:  0x00200000
     Hash algo:    crc32
     Hash value:   3f868f6d
   Verifying Hash Integrity ... crc32+ OK
## Flattened Device Tree blob at 1f000000
   Booting using the fdt blob at 0x1f000000
   Uncompressing Kernel Image
   Loading Ramdisk to 768b5000, end 76ec1e0a ... OK
   Loading Device Tree to 000000007689f000, end 00000000768b460a ... OK

Starting kernel ...

efi_free_pool: illegal free 0x0000000076dbf040
efi_free_pool: illegal free 0x0000000076dbc040
efi_free_pool: illegal free 0x0000000076dba040
efi_free_pool: illegal free 0x0000000076db8040
efi_free_pool: illegal free 0x0000000076db6040
efi_free_pool: illegal free 0x0000000076db4040
efi_free_pool: illegal free 0x0000000076db2040
[    0.000000] Linux version 6.1.15 (root@bianbu-build-deb-37zn1-v692p) (gcc (Ubuntu 13.2.0-4ubuntu3-bb2) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #1.0~rc3 SMP PREEMPT Sat May 25 04:30:00 UTC 2024
[    0.000000] OF: fdt: Ignoring memory range 0x0 - 0x200000
[    0.000000] Machine model: spacemit k1-x deb1 board
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000
[    0.000000] Reserved memory: created CMA memory pool at 0x000000005e800000, size 384 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x000000002ff40000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node dpu_reserved@2ff40000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000030206000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@30206000, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000017fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x000000002ff3ffff]
[    0.000000]   node   0: [mem 0x000000002ff40000-0x000000003033ffff]
[    0.000000]   node   0: [mem 0x0000000030340000-0x000000007fffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x000000017fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000017fffffff]
[    0.000000] On node 0, zone Normal: 524288 pages in unavailable ranges
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10003
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI HSM extension detected
[    0.000000] riscv: base ISA extensions acdfimv
[    0.000000] riscv: ELF capabilities acdfimv
[    0.000000] percpu: Embedded 27 pages/cpu s72616 r8192 d29784 u110592
[    0.000000] pcpu-alloc: s72616 r8192 d29784 u110592 alloc=27*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1023496
[    0.000000] Kernel command line: earlycon=sbi earlyprintk console=tty1 console=ttyS0,115200 loglevel=8 clk_ignore_unused swiotlb=65536 rdinit=/init root=/dev/mmcblk0p6 rootwait rootfstype=ext4
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 8.
[    0.000000] software IO TLB: mapped [mem 0x0000000077000000-0x000000007f000000] (128MB)
[    0.000000] Memory: 3499120K/4192256K available (16181K kernel code, 6712K rwdata, 8192K rodata, 2287K init, 562K bss, 283536K reserved, 409600K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000]
[    0.000000] **********************************************************
[    0.000000] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
[    0.000000] **                                                      **
[    0.000000] ** trace_printk() being used. Allocating extra memory.  **
[    0.000000] **                                                      **
[    0.000000] ** This means that this is a DEBUG kernel and it is     **
[    0.000000] ** unsafe for production use.                           **
[    0.000000] **                                                      **
[    0.000000] ** If you see this message and you are not debugging    **
[    0.000000] ** the kernel, report this immediately to your vendor!  **
[    0.000000] **                                                      **
[    0.000000] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
[    0.000000] **********************************************************
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@e0000000: mapped 159 interrupts with 8 handlers for 16 contexts.
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] riscv-timer: Timer interrupt in S-mode is available via sstc extension
[    0.000000] riscv-timer: riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008574] Console: colour dummy device 80x25
[    0.013141] printk: console [tty1] enabled
[    0.016809] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.027102] pid_max: default: 32768 minimum: 301
[    0.032022] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.039274] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.049449] cblist_init_generic: Setting adjustable number of callback queues.
[    0.054510] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.060706] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.066875] riscv: ELF compat mode unsupported
[    0.066892] ASID allocator using 16 bits (65536 entries)
[    0.076774] rcu: Hierarchical SRCU implementation.
[    0.081533] rcu:     Max phase no-delay instances is 1000.
[    0.087669] EFI services will not be available.
[    0.092120] smp: Bringing up secondary CPUs ...
[    0.105486] smp: Brought up 1 node, 8 CPUs
[    0.109034] devtmpfs: initialized
[    0.123798] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.130810] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.143537] pinctrl core: initialized pinctrl subsystem
[    0.147364] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.152931] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.159223] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.167428] display class register
[    0.170687] thermal_sys: Registered thermal governor 'step_wise'
[    0.170740] cpuidle: using governor menu
[    0.180834] suspend: SBI SUSP extension detected
[    0.192937] pinctrl-single d401e000.pinctrl: 256 pins, size 1024
[    0.208449] platform c0400500.hdmi: Fixing up cyclic dependency with soc:port@c0440000
[    0.242191] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.246185] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.252490] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.259346] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.333886] raid6: int64x8  gen()   840 MB/s
[    0.402028] raid6: int64x4  gen()  1204 MB/s
[    0.470157] raid6: int64x2  gen()  1260 MB/s
[    0.538280] raid6: int64x1  gen()  1053 MB/s
[    0.539692] raid6: using algorithm int64x2 gen() 1260 MB/s
[    0.610407] raid6: .... xor() 626 MB/s, rmw enabled
[    0.612425] raid6: using intx1 recovery algorithm
[    0.620285] mmp-pdma d4000000.pdma: PM domain power-domain@SPT_PD_BUS will not be powered off
[    0.627381] SCSI subsystem initialized
[    0.630086] libata version 3.00 loaded.
[    0.633910] usbcore: registered new interface driver usbfs
[    0.639303] usbcore: registered new interface driver hub
[    0.644674] usbcore: registered new device driver usb
[    0.654533] spacemit-pmic 8-0041: mask_invert=true is deprecated; please switch to unmask_base
[    0.667456] spacemit-regulator spacemit-regulator@spm8821: DMA mask not set
[    0.714606] mc: Linux media interface: v0.10
[    0.716099] videodev: Linux video capture interface: v2.00
[    0.721640] pps_core: LinuxPPS API ver. 1 registered
[    0.726626] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.735844] PTP clock support registered
[    0.740746] Advanced Linux Sound Architecture Driver Initialized.
[    0.746535] Bluetooth: Core ver 2.22
[    0.749655] NET: Registered PF_BLUETOOTH protocol family
[    0.755018] Bluetooth: HCI device and connection manager initialized
[    0.761447] Bluetooth: HCI socket layer initialized
[    0.766389] Bluetooth: L2CAP socket layer initialized
[    0.771524] Bluetooth: SCO socket layer initialized
[    0.776810] vgaarb: loaded
[    0.779766] clocksource: Switched to clocksource riscv_clocksource
[    0.788177] VFS: Disk quotas dquot_6.6.0
[    0.789537] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.805118] NET: Registered PF_INET protocol family
[    0.807476] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.820064] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.825877] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.833663] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.841775] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.850327] TCP: Hash tables configured (established 32768 bind 32768)
[    0.855842] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.862449] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.869853] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.875980] RPC: Registered named UNIX socket transport module.
[    0.881318] RPC: Registered udp transport module.
[    0.886084] RPC: Registered tcp transport module.
[    0.890858] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.898090] PCI: CLS 0 bytes, default 64
[    0.901884] Unpacking initramfs...
[    0.902915] Initialise system trusted keyrings
[    0.909713] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.923790] NFS: Registering the id_resolver key type
[    0.926069] Key type id_resolver registered
[    0.930284] Key type id_legacy registered
[    0.934478] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.941148] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.950841] Key type cifs.idmap registered
[    0.952783] ntfs: driver 2.1.32 [Flags: R/W].
[    0.957370] ntfs3: Max link count 4000
[    0.961004] ntfs3: Enabled Linux POSIX ACLs support
[    0.965952] ntfs3: Read-only LZX/Xpress compression included
[    0.972072] fuse: init (API version 7.37)
[    0.976262] SGI XFS with ACLs, security attributes, quota, no debug enabled
[    1.033715] NET: Registered PF_ALG protocol family
[    1.035714] xor: measuring software checksum speed
[    1.043371]    8regs           :  3503 MB/sec
[    1.047799]    32regs          :  3494 MB/sec
[    1.051825]    rvv             :  4067 MB/sec
[    1.053817] xor: using function: rvv (4067 MB/sec)
[    1.058719] async_tx: api initialized (async)
[    1.063131] Key type asymmetric registered
[    1.067286] Asymmetric key parser 'x509' registered
[    1.072657] io scheduler mq-deadline registered
[    1.076867] io scheduler kyber registered
[    1.083815] spacemit-pmic-pinctrl spacemit-pinctrl@spm8821: DMA mask not set
[    1.092113] Now init Rterm...
[    1.092242] pcie prot id = 1, porta_init_done = 0
[    1.097039] Now waiting portA resister tuning done...
[    1.102150] pcie_rcal = 0x00006d37
[    1.105622] pcie port id = 1, lane num = 2
[    1.109786] Now int init_puphy...
[    1.113171] waiting pll lock...
[    1.116376] Now finish init_puphy....
[    1.120347] k1x-dwc-pcie ca400000.pcie: host bridge /soc/pcie@ca400000 ranges:
[    1.126957] Freeing initrd memory: 6192K
[    1.127462] k1x-dwc-pcie ca400000.pcie:       IO 0x0090002000..0x0090101fff -> 0x0090002000
[    1.139871] k1x-dwc-pcie ca400000.pcie:      MEM 0x0090102000..0x009f101fff -> 0x0090102000
[    1.248293] Link up, Gen1
[    1.248444] (u64)pp->msi_data =7c000000
[    1.251997] (u64)pp->msix_addr =7c001000
[    1.255995] k1x-dwc-pcie ca400000.pcie: iATU unroll: enabled
[    1.261704] k1x-dwc-pcie ca400000.pcie: iATU regions: 8 ob, 8 ib, align 4K, limit 4G
[    1.269552] ltssm enable
[    2.191762] k1x-dwc-pcie ca400000.pcie: Phy link never came up
[    2.194936] k1x-dwc-pcie ca400000.pcie: PCI host bridge to bus 0001:00
[    2.201365] pci_bus 0001:00: root bus resource [bus 00-ff]
[    2.206907] pci_bus 0001:00: root bus resource [io  0x0000-0xfffff] (bus address [0x90002000-0x90101fff])
[    2.216546] pci_bus 0001:00: root bus resource [mem 0x90102000-0x9f101fff]
[    2.223514] pci 0001:00:00.0: [1e5d:3003] type 01 class 0x060400
[    2.229576] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.235903] pci 0001:00:00.0: reg 0x14: [mem 0x00000000-0x000fffff]
[    2.242301] pci 0001:00:00.0: supports D1
[    2.246315] pci 0001:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    2.256980] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    2.260798] pci 0001:00:00.0: BAR 0: assigned [mem 0x90200000-0x902fffff]
[    2.267624] pci 0001:00:00.0: BAR 1: assigned [mem 0x90300000-0x903fffff]
[    2.274481] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.281575] pcieport 0001:00:00.0: PME: Signaling with IRQ 56
[    2.285705] pcieport 0001:00:00.0: AER: enabled with IRQ 56
[    2.291737] Now init Rterm...
[    2.294026] pcie prot id = 2, porta_init_done = 0
[    2.298857] Now waiting portA resister tuning done...
[    2.303904] pcie_rcal = 0x00006d37
[    2.307362] pcie port id = 2, lane num = 2
[    2.311540] Now int init_puphy...
[    2.314923] waiting pll lock...
[    2.318131] Now finish init_puphy....
[    2.322022] k1x-dwc-pcie ca800000.pcie: host bridge /soc/pcie@ca800000 ranges:
[    2.329195] k1x-dwc-pcie ca800000.pcie:       IO 0x00a0002000..0x00a0101fff -> 0x00a0002000
[    2.337601] k1x-dwc-pcie ca800000.pcie:      MEM 0x00a0102000..0x00b0101fff -> 0x00a0102000
[    2.446045] Link up, Gen1
[    2.446131] (u64)pp->msi_data =7c002000
[    2.449733] (u64)pp->msix_addr =7c003000
[    2.453736] k1x-dwc-pcie ca800000.pcie: iATU unroll: enabled
[    2.459446] k1x-dwc-pcie ca800000.pcie: iATU regions: 8 ob, 8 ib, align 4K, limit 4G
[    2.467287] ltssm enable
[    2.563768] k1x-dwc-pcie ca800000.pcie: PCIe Gen.2 x1 link up
[    2.566812] k1x-dwc-pcie ca800000.pcie: PCI host bridge to bus 0002:00
[    2.573280] pci_bus 0002:00: root bus resource [bus 00-ff]
[    2.578824] pci_bus 0002:00: root bus resource [io  0x100000-0x1fffff] (bus address [0xa0002000-0xa0101fff])
[    2.588725] pci_bus 0002:00: root bus resource [mem 0xa0102000-0xb0101fff]
[    2.595689] pci 0002:00:00.0: [1e5d:3003] type 01 class 0x060400
[    2.601758] pci 0002:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.608080] pci 0002:00:00.0: reg 0x14: [mem 0x00000000-0x000fffff]
[    2.614468] pci 0002:00:00.0: supports D1
[    2.618492] pci 0002:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    2.628954] pci 0002:01:00.0: [1c5c:174a] type 00 class 0x010802
[    2.632197] pci 0002:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    2.638997] pci 0002:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff]
[    2.645335] pci 0002:01:00.0: reg 0x1c: [mem 0x00000000-0x00000fff]
[    2.652120] pci 0002:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    2.675813] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
[    2.679606] pci 0002:00:00.0: BAR 0: assigned [mem 0xa0200000-0xa02fffff]
[    2.686455] pci 0002:00:00.0: BAR 1: assigned [mem 0xa0300000-0xa03fffff]
[    2.693307] pci 0002:00:00.0: BAR 8: assigned [mem 0xa0400000-0xa04fffff]
[    2.700168] pci 0002:01:00.0: BAR 0: assigned [mem 0xa0400000-0xa0403fff 64bit]
[    2.707575] pci 0002:01:00.0: BAR 2: assigned [mem 0xa0404000-0xa0404fff]
[    2.714407] pci 0002:01:00.0: BAR 3: assigned [mem 0xa0405000-0xa0405fff]
[    2.721263] pci 0002:00:00.0: PCI bridge to [bus 01]
[    2.726289] pci 0002:00:00.0:   bridge window [mem 0xa0400000-0xa04fffff]
[    2.735144] pcieport 0002:00:00.0: PME: Signaling with IRQ 60
[    2.739373] pcieport 0002:00:00.0: AER: enabled with IRQ 60
[    2.756783] jpu c02f8000.jpu: driver probe successfully
[    2.815318] pxa2xx-uart d4017000.serial: no edge-wakeup-pin defined
[    2.818890] d4017000.serial: ttyS0 at MMIO 0xd4017000 (irq = 63, base_baud = 921250) is a UART1
[    2.827676] printk: console [ttyS0] enabled
[    2.827676] printk: console [ttyS0] enabled
[    2.836015] printk: bootconsole [sbi0] disabled
[    2.836015] printk: bootconsole [sbi0] disabled
[    2.845641] pxa2xx-uart d4017000.serial: uart clk_rate: 14740000
[    2.854625] pxa2xx-uart d4017100.uart: no edge-wakeup-pin defined
[    2.860910] d4017100.uart: ttyS1 at MMIO 0xd4017100 (irq = 64, base_baud = 3600000) is a UART2
[    2.870025] pxa2xx-uart d4017100.uart: uart clk_rate: 57600000
[    2.904750] [drm] init_lt8911exb()
[    2.909747] PVR_K:(Error):     1: TraceFS not found in PVRGpuTraceInitFTraceClockSource() [198]
[    2.928275] PVR_K:  1: Read BVNC 36.29.52.182 from HW device registers
[    2.934999] PVR_K:  1: RGX Device registered BVNC 36.29.52.182 with 1 core in the system
[    2.944140] [drm] Initialized pvr 23.2.6460340 20170530 for cac00000.imggpu on minor 0
[    2.962143] loop: module loaded
[    2.967958] nvme nvme0: pci function 0002:01:00.0
[    2.972832] nvme 0002:01:00.0: enabling device (0000 -> 0002)
[    2.973801] Rounding down aligned max_sectors from 4294967295 to 4294967288
[    2.986021] db_root: cannot open: /etc/target
[    2.991819] k1x-qspi d420c000.spi: config mfp for cs:[0]
[    2.997408] k1x-qspi d420c000.spi: AHB buf size: 512
[    3.002951] spi-nor spi4.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00
[    3.010014] k1x-qspi d420c000.spi: Runtime PM usage count underflow!
[    3.018012] CAN device driver interface
[    3.024075] nvme nvme0: 8/0/0 default/read/poll queues
[    3.036432] nvme nvme0: Ignoring bogus Namespace Identifiers
[    3.046913]  nvme0n1: p1 p2 p3 p4
[    3.376757] usbcore: registered new interface driver cdc_ether
[    3.382759] usbcore: registered new interface driver cdc_subset
[    3.388814] usbcore: registered new interface driver zaurus
[    3.395750] spacemit-k1x-combphy c0b10000.phy: USB3 PHY init.
[    3.403463] mv-ehci mv-ehci: Spacemit EHCI
[    3.407705] mv-ehci mv-ehci: new USB bus registered, assigned bus number 1
[    3.414891] mv-ehci mv-ehci: irq 79, io mem 0xc0980100
[    3.435784] mv-ehci mv-ehci: USB 2.0 started, EHCI 1.00
[    3.442000] hub 1-0:1.0: USB hub found
[    3.445862] hub 1-0:1.0: 1 port detected
[    3.451229] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.456869] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    3.464918] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000000000010090
[    3.474804] xhci-hcd xhci-hcd.0.auto: irq 78, io mem 0xc0a00000
[    3.481004] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.486584] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 3
[    3.494378] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    3.501711] hub 2-0:1.0: USB hub found
[    3.505578] hub 2-0:1.0: 1 port detected
[    3.509944] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.518722] hub 3-0:1.0: USB hub found
[    3.522571] hub 3-0:1.0: 1 port detected
[    3.527286] usbcore: registered new interface driver uas
[    3.532898] usbcore: registered new interface driver usb-storage
[    3.539202] spacemit-usb3-hub soc:usb3hub@0: v1.0.2
[    3.563835] spacemit-usb3-hub soc:usb3hub@0: onboard usb hub driver probed, hub configured
[    3.572716] K1X_UDC: mv_udc_probe enter ...
[    3.577238] udc_stop ...
[    3.579935] mv-udc mv-udc:  use 32bit DMA mask
[    3.584484] mv_udc: dqh size = 0x800  udc->ep_dqh_dma = 0x240c000
[    3.591184] mv-udc mv-udc: successful probe UDC device without clock gating.
[    3.598652] f_tcm: UAS support multiple cmds
[    3.603018] Gt9xx driver installing..
[    3.607214] spacemit-pmic-pwrkey spacemit-pwrkey@spm8821: DMA mask not set
[    3.637609] input: spacemit pwrkey as /devices/platform/soc/d401d800.i2c/i2c-8/8-0041/spacemit-pwrkey@spm8821/input/input0
[    3.649885] spacemit-pmic-rtc spacemit-rtc@spm8821: DMA mask not set
[    3.676370] spacemit-pmic-rtc spacemit-rtc@spm8821: registered as rtc0
[    3.688390] spacemit-pmic-rtc spacemit-rtc@spm8821: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[    3.700042] i2c_dev: i2c /dev entries driver
[    3.706126] ccu_mix_set_parent of vpu_clk timeout
[    3.711613] ccu_mix_set_rate of vpu_clk timeout
[    3.729147] MVX dev: Linlon v5276 identified. cores=2, nlsid=4, id=0, fuse=00000000, hw_id=00005276, hw_rev=00000050
[    3.748972] d420a000.csiphy begin to probe
[    3.753237] d420a000.csiphy probed
[    3.753376] d4206000.csiphy begin to probe
[    3.761172] d4206000.csiphy probed
[    3.771774] d420a000.ccic begin to probe
[    3.779440] k1xccic d420a000.ccic: ipe irq: 82
[    3.784229] d420a000.ccic probed
[    3.803766] d420a800.ccic begin to probe
[    3.811223] k1xccic d420a800.ccic: ipe irq: 83
[    3.815952] d420a800.ccic probed
[    3.835767] d4206000.ccic begin to probe
[    3.843193] k1xccic d4206000.ccic: ipe irq: 84
[    3.847828] d4206000.ccic probed
[    3.910421] acquire ccic0 ctrl dev succeed
[    3.917919] acquire ccic1 ctrl dev succeed
[    3.922232] acquire ccic2 ctrl dev succeed
[    3.932996] usbcore: registered new interface driver uvcvideo
[    3.941522] System boots up not because of SoC watchdog reset.
[    3.961087] device-mapper: uevent: version 1.0.3
[    3.966153] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: [email protected]
[    3.975505] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.982155] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.988959] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.995798] device-mapper: multipath historical-service-time: version 0.1.1 loaded
[    4.003529] device-mapper: raid: Loading target version 1.15.1
[    4.009588] Bluetooth: HCI UART driver ver 2.3
[    4.014129] Bluetooth: HCI UART protocol H4 registered
[    4.019393] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    4.038000] sdhci: Secure Digital Host Controller Interface driver
[    4.044447] sdhci: Copyright(c) Pierre Ossman
[    4.048839] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.055206] sdhci-spacemit d4280000.sdh: Got CD GPIO
[    4.096017] mmc0: SDHCI controller on d4280000.sdh [d4280000.sdh] using ADMA
[    4.127789] mmc1: SDHCI controller on d4280800.sdh [d4280800.sdh] using ADMA
[    4.134942] sdio: save sdio_host <- (____ptrval____)
[    4.187996] mmc0: set tx_delaycode: 127
[    4.192562] mmc0: pass window [0 33)
[    4.240558] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[    4.247713] mmcblk2: mmc2:0001 AJTD4R 14.6 GiB
[    4.251765] mmc0: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, resetting CMD and DATA
[    4.254191]  mmcblk2:
[    4.265439] mmcblk2boot0: mmc2:0001 AJTD4R 4.00 MiB
[    4.271837] mmcblk2boot1: mmc2:0001 AJTD4R 4.00 MiB
[    4.277964] mmcblk2rpmb: mmc2:0001 AJTD4R 4.00 MiB, chardev (242:0)
[    4.284390] mmc2: SDHCI controller on d4281000.sdh [d4281000.sdh] using ADMA
[    4.294124] usbcore: registered new interface driver usbhid
[    4.299786] usbhid: USB HID core driver
[    4.304732] riscv-pmu-sbi: SBI PMU extension is available
[    4.310227] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[    4.317579] es8326 2-0019: assuming static mclk
[    4.319773] mmc0: Timeout waiting for Buffer Read Ready interrupt during tuning procedure, resetting CMD and DATA
[    4.323022] enter asoc_i2s_sspa_probe
[    4.332562] mmc0: pass window [73 75)
[    4.337485] xt_time: kernel timezone is -0000
[    4.343465] mmc0: pass window [88 255)
[    4.344472] IPVS: Registered protocols (TCP, UDP)
[    4.348303] mmc0: tuning done, use the firstly delay_code:171
[    4.353079] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    4.358840] mmc0: new ultra high speed SDR104 SDXC card at address b36b
[    4.366355] IPVS: ipvs loaded.
[    4.373578] mmcblk0: mmc0:b36b SDABC 58.3 GiB
[    4.375964] IPVS: [rr] scheduler registered.
[    4.376156] Initializing XFRM netlink socket
[    4.384468]  mmcblk0: p1 p2 p3 p4 p5 p6
[    4.385225] NET: Registered PF_INET6 protocol family
[    4.399328] Segment Routing with IPv6
[    4.403088] In-situ OAM (IOAM) with IPv6
[    4.407214] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.411787] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    4.413740] NET: Registered PF_PACKET protocol family
[    4.424916] Bridge firewalling registered
[    4.428982] can: controller area network core
[    4.433519] NET: Registered PF_CAN protocol family
[    4.438364] can: raw protocol
[    4.441362] can: broadcast manager protocol
[    4.445602] can: netlink gateway - max_hops=1
[    4.450268] Bluetooth: RFCOMM TTY layer initialized
[    4.455204] Bluetooth: RFCOMM socket layer initialized
[    4.460411] Bluetooth: RFCOMM ver 1.11
[    4.464200] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    4.469560] Bluetooth: BNEP socket layer initialized
[    4.474557] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    4.480521] Bluetooth: HIDP socket layer initialized
[    4.485565] 8021q: 802.1Q VLAN Support v1.8
[    4.489892] Key type dns_resolver registered
[    4.495184] Loading compiled-in X.509 certificates
[    4.501142] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
[    4.526518] remoteproc remoteproc0: rcpu_rproc is available
[    4.532488] remoteproc remoteproc0: powering up rcpu_rproc
[    4.537903] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.538185] remoteproc remoteproc0: Booting fw image esos.elf, size 99100
[    4.557417] rproc-virtio rproc-virtio.2.auto: assigned reserved memory node vdev0buffer@30206000
[    4.567562] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.570294] virtio_rpmsg_bus virtio0: rpmsg host is online
[    4.574196] virtio_rpmsg_bus virtio0: creating channel rcpu-pwr-management-service addr 0x400
[    4.576461] pwm-backlight soc:lcd_backlight: supply power not found, using dummy regulator
[    4.576798] clk: Not disabling unused clocks
[    4.579861] rproc-virtio rproc-virtio.2.auto: registered virtio0 (type 7)
[    4.580246] spacemit-dpu-drv soc:port@c0440000: assigned reserved memory node dpu_reserved@2ff40000
[    4.588483] k1x_rproc virtio0.rcpu-pwr-management-service.-1.1024: new channel: 0x400 -> 0x400!
[    4.592143] [drm] dpu plane init ok
[    4.592180] spacemit-drm-drv c0440000.display-subsystem-hdmi: bound soc:port@c0440000 (ops dpu_component_ops)
[    4.592198] [drm] spacemit_hdmi_bind()
[    4.592286] [drm] get hdmi mclk=491520000
[    4.592574] spacemit-drm-drv c0440000.display-subsystem-hdmi: bound c0400500.hdmi (ops spacemit_hdmi_ops)
[    4.592744] [drm] spacemit_hdmi_connector_detect()
[    4.592750] [drm] spacemit_hdmi_connector_detect() hdmi status disconnected
[    4.593117] [drm] Initialized spacemit 1.0.0 20231115 for c0440000.display-subsystem-hdmi on minor 1
[    4.593142] [drm] spacemit_hdmi_connector_detect()
[    4.593146] [drm] spacemit_hdmi_connector_detect() hdmi status disconnected
[    4.593172] spacemit-drm-drv c0440000.display-subsystem-hdmi: [drm] Cannot find any crtc or sizes
[    4.593897] enter spacemit_snd_sspa_pdev_probe
[    4.594806] spacemit_snd_dma_pdev_probe enter: dev name c08d0400.spacemit_snd_dma_hdmi
[    4.594814] spacemit_snd_dma_pdev_probe, start=0xc08d0400, end=0xc08d3fff
[    4.594961] spacemit_snd_dma_pdev_probe enter: dev name spacemit-snd-dma0
[    4.595044] spacemit_snd_dma_pdev_probe enter: dev name spacemit-snd-dma1
[    4.595129] ALSA device list:
[    4.595134]   No soundcards found.
[    4.595460] spacemit_snd_pcm_new enter, dev=SSPA2-dummy_codec
[    4.595467] spacemit_snd_pcm_new playback_only, dev=SSPA2-dummy_codec
[    4.595479] DMA channel for playback is not available
[    4.595488] spacemit-snd-dma c08d0400.spacemit_snd_dma_hdmi: ASoC: error at snd_soc_pcm_component_new on c08d0400.spacemit_snd_dma_hdmi: -16
[    4.595497] spacemit-audio-card snd-card@0: ASoC: can't create pcm SSPA2-dummy_codec :-16
[    4.595578] spacemit_snd_pcm_remove enter
[    4.595685] spacemit-audio-card: probe of snd-card@0 failed with error -16
[    4.596871] remoteproc remoteproc0: remote processor rcpu_rproc is now up
[    4.601147] virtio_rpmsg_bus virtio0: creating channel adma-service addr 0x401
[    4.653396] hub 2-1:1.0: USB hub found
[    4.657025] adma_spacemit virtio0.adma-service.-1.1025: new channel: 0x401 -> 0x401!
[    4.662076] hub 2-1:1.0: 5 ports detected
[    4.678606] virtio_rpmsg_bus virtio0: creating channel can-service addr 0x402
[    4.685839] spacemit_snd_pcm_new enter, dev=i2s-dai0-ES8326 HiFi
[    4.690243] flexcan virtio0.can-service.-1.1026: new channel: 0x402 -> 0x402!
[    4.748081] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    4.751302] Connection create success
[    4.849893] Freeing unused kernel image (initmem) memory: 2284K
[    4.852502] input: snd-es8326 Headset Jack as /devices/platform/snd-card@1/sound/card0/input1
[    4.875820] Run /init as init process
[    4.879514]   with arguments:
[    4.882504]     /init
[    4.884811]   with environment:
[    4.887965]     HOME=/
[    4.890328]     TERM=linux
[    4.893278] hub 3-1:1.0: USB hub found
[    4.897309] hub 3-1:1.0: 4 ports detected
scanning for devs.....
Franco Shit
mount: mounting /dev/nvme0n1p1 on /tmp/franco failed: Invalid argument
brw-------    1  259,   4 /dev/nvme0n1p4
brw-------    1  259,   3 /dev/nvme0n1p3
brw-------    1  259,   2 /dev/nvme0n1p2
brw-------    1  2[    4.925845] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
59,   1 /dev/nvme0n1p1
brw-------    1 [    4.936496] SMP: stopping secondary CPUs
 259,   0 /dev/nvme0n1
crw-------    1 [    4.943908] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
 245,   0 /dev/nvme0
looking at directories
I ran the command

What Ubuntu firmware did you use? BTW, what’s your BPI-F3 hardware? Is that 4RAM/16eMMC or 2RAM/8eMMC? Mine is 4RAM/16eMMC

I have the 4Gigs of RAM version with 16 GIG emmc same as you. When I burned my Ubuntu image to my m.2 I only had 4 partitions.

Franco

My m.2 also has 4 partitions here.

brw-------    1  259,   4 /dev/nvme0n1p4
brw-------    1  259,   3 /dev/nvme0n1p3
brw-------    1  259,   2 /dev/nvme0n1p2...

But Kernel panic starts when it prints /dev/nvme0n1p1. Don’t know why. My only thought that it was burned from the PCIe adapter connected to the motherboard, rather than through USB adapter to my m.2 in BalenaEtcher. I have no other ideas what’s the reason…

Do the sudo parted -l /dev/nvmen0 again see which is root(/) Then change your init to match it.

Franco

parted -l /dev/nvmen0 didn’t show me obvious root(/) mark, it ask me to fix disk type and increase the latest partition for some reason… Anyway it just showed me partitions labels like: legacy_boot and live-media with ~8Gb space, so I suggest that this is the root one which is nvmen01p2. Changed to that part in your latest initrd.img-6.1.15 and now I’m getting another errors here:

Errors
scanning for devs.....
Franco Shit
[    4.757672] EXT4-fs (nvme0n1p2): recovery complete
[    4.761705] spacemit_snd_pcm_new enter, dev=i2s-dai0-ES8326 HiFi
[    4.762583] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Quota mode: none.
drwxr-sr-x    3      4096 boot
lrwxrwxrwx    1         1 ubuntu-ports -> .[    4.783659] input: snd-es8326 Headset Jack as /devices/platform/snd-card@1/sound/card0/input1

drwxrwsr-x    3      4096 dists
lrwxr[    4.795481] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
wxrwx    1         1 ubuntu -> .
drwxrwsr-x    2      4096 install
drwxr-sr-x    2      4096 dtb
-rw-rw-r--    1     30069 md5sum.txt
drwx------    2     16384 lost+found
drwxr-sr-x    3      4096 EFI
drwxrwsr-x    2      4096 casper
drwxrwsr-x    3      40[    4.825170] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
96 pool
brw-------    1  259,   4 /dev/[    4.836133] SMP: stopping secondary CPUs
nvme0n1p4
brw-------    1  259,   3 /de[    4.843566] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
v/nvme0n1p3
brw-------    1  259,   2 /dev/nvme0n1p2
brw-------    1  259,   1 /dev/nvme0n1p1
brw-------    1  259,   0 /dev/nvme0n1
crw-------    1  245,   0 /dev/nvme0
looking at directories