Hi @frank-w
While your Uboot and Linux repos are supporting to build bpi-r4lite,
the Images repo currently not support for that, right?
Hi @frank-w
While your Uboot and Linux repos are supporting to build bpi-r4lite,
the Images repo currently not support for that, right?
Right,have not added it yet as buildchains and also integration for binaries in image repo is not ready…have currently other tasks (6.18 breaks mt7987 clock driver,r4pro support also ongoing)
But basicly you can download and set the r4lite img.gz with skipubootdownload=1 and use at least kernel 6.17-main.
I can build uboot for bpi-r4lite, but it is not supported to run “buildimg.sh bpi-r4lite noble” to create R4Lite Ubuntu Noble.
yes, but you can download already built https://github.com/frank-w/u-boot/releases/download/CI-BUILD-2025-10-bpi-2025.10-2025-10-13_1032/bpi-r4lite_sdmmc.img.gz and then use
skipubootdownload=1
imgfile=bpi-r4lite_sdmmc.img.gz
in the sourcefiles_bpi-r4.conf to build the image. you will need kernel with r4lite support too
noticed, that filename is r4lite and not r4…r4 kernel is for r4, r4lite and r4pro so the name of archive is currently wrong…need to investigate
Do you mean to run “buildimg.sh bpi-r4 noble” with the r4lite Uboot plus r4lite kernel (at most 6.17) to create Ubuntu Noble image, and flash it to r4lite board?
yes, but prepare your sourcefiles_bpi-r4.conf before to use manual downloaded r4lite sdcard img gz and kernel file like described in readme
Hi, I tried to build with this
skipubootdownload=1
imgfile=bpi-r4lite_sdmmc.img.gz
kernelfile=bpi-r4lite_6.17.0-main.tar
I got here, which is farthest I have gotten yet. What did I miss?
1.858607] Kernel panic - not syncing: VFS: Unable to mount root fs on “/dev/mmcblk0p6” or unknown-block(179,6)
[ 1.868766] CPU: 2 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-bpi-r4-main #10 NONE
[ 1.876930] Hardware name: Bananapi BPI-R4-LITE (DT)
[ 1.881883] Call trace:
[ 1.884318] show_stack+0x18/0x24 (C)
[ 1.887977] dump_stack_lvl+0x34/0x8c
[ 1.891633] dump_stack+0x18/0x24
[ 1.894940] vpanic+0x2ec/0x2fc
[ 1.898071] nmi_panic+0x0/0x8c
[ 1.901202] mount_root+0x0/0x2dc
[ 1.904508] mount_root+0x168/0x2dc
[ 1.907988] prepare_namespace+0x6c/0x2a0
[ 1.911993] kernel_init_freeable+0x368/0x3d0
[ 1.916346] kernel_init+0x20/0x1d4
[ 1.919827] ret_from_fork+0x10/0x20
[ 1.923397] SMP: stopping secondary CPUs
[ 1.927313] Kernel Offset: disabled
[ 1.930790] CPU features: 0x000000,00080000,20002001,0400420b
[ 1.936524] Memory Limit: none
[ 1.939569] Rebooting in 10 seconds..
Please put bootlog in code tags and a bit more from the log…i guess the overlay for sdmmc was not applied and so sdmmc is not available as /devmcblk0. This is shown in uboot when loading kernel and in linux bootlog listing partitions.
Also go to uboot console and run setbootconf and show output.
Interesting will be this part:
It should show #ov-lite-sd
F0: 102B 0000
F9: 1042 0000
F9: 1042 0000 [0200]
F8: 1041 0000
F8: 1041 0000 [0002]
F3: 1006 0033 [0200]
F3: 4001 00E0 [0200]
F3: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0680 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [3000]
MK: 0000 0000 [0000]
T0: 0000 03AB [0101]
Jump to BL
NOTICE: BL2: v2.12.0(release):eb33cc192-bpi-r4lite-emmc
NOTICE: BL2: Built : 10:53:13, Oct 27 2025
NOTICE: WDT: Cold boot
NOTICE: WDT: disabled
NOTICE: CPU: MT7987A
NOTICE: EMI: Using DDR4 settings
NOTICE: DDR4 Speed: 3200 Mbps
NOTICE: DDR tREFI: 3.9 us
NOTICE: DDR power-down option: 2
NOTICE: EMI: Detected DRAM size: 2048 MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: LVTS: Enable thermal HW reset
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.12.0(release):eb33cc192-bpi-r4lite-sdmmc
NOTICE: BL31: Built : 10:55:05, Oct 13 2025
U-Boot 2025.10-bpi-g9189e1642ce8-dirty (Oct 13 2025 - 10:54:33 +0000)
CPU: MediaTek MT7987
Model: mt7987
DRAM: 2 GiB
Core: 89 devices, 22 uclasses, devicetree: separate
MMC: mmc@11230000: 0
Loading Environment from nowhere... OK
In: serial@11000000
Out: serial@11000000
Err: serial@11000000
Net: MediaTek MT7531
Warning: ethernet@15110100 (eth0) using random MAC address - 9e:aa:25:b2:4a:8c
eth0: ethernet@15110100
Hit any key to stop autoboot: 0
35 bytes read in 0 ms
*** U-Boot Boot Menu ***
1. Enter kernel-name to boot from SD/EMMC.
2. Boot kernel from TFTP.
3. Boot from SD/EMMC.
4. Boot kernel from NVME.
5. Boot kernel from UBI.
0. Exit
Press UP/DOWN to move, ENTER to select, ESC to quit
## Error: "initrd" not defined
EXT_CSD[179], PARTITION_CONFIG:
BOOT_ACK: 0x1
BOOT_PARTITION_ENABLE: 0x1 (boot0)
PARTITION_ACCESS: 0x0 (user)
emmc available
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
NOR available
bootconf=#conf-base-r4lite#ov-lite-emmc#ov-lite-nor
fit=bpi-r4.itb
9994760 bytes read in 863 ms (11 MiB/s)
No UBIFS volume mounted!
## Loading kernel (any) from FIT Image at 46000000 ...
Using 'conf-base-r4lite' configuration
Trying 'kernel-1' kernel subimage
Description: Linux Kernel 6.17.0-main
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x460000e8
Data Size: 9809430 Bytes = 9.4 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x44000000
Entry Point: 0x44000000
Hash algo: sha1
Hash value: 0bcf5bf20ae163e000e43c2329144d02de457cf8
Verifying Hash Integrity ... sha1+ OK
## Loading fdt (any) from FIT Image at 46000000 ...
Using 'conf-base-r4lite' configuration
Trying 'fdt-base-lite' fdt subimage
Description: Flattened Device Tree blob BPI-R4 Lite
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x4697dc8c
Data Size: 31042 Bytes = 30.3 KiB
Architecture: AArch64
Load Address: 0x47000000
Hash algo: sha1
Hash value: 464f5c52fc7e8c532568afea9963cbe072ea6b9c
Verifying Hash Integrity ... sha1+ OK
Loading fdt from 0x4697dc8c to 0x47000000
Loading Device Tree to 00000000be7ed000, end 00000000be7f7fff ... OK
Working FDT set to be7ed000
## Loading fdt (any) from FIT Image at 46000000 ...
Using 'ov-lite-emmc' configuration
Trying 'fdt-ov-lite-emmc' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x46986238
Data Size: 878 Bytes = 878 Bytes
Architecture: Unknown Architecture
Verifying Hash Integrity ... OK
## Loading fdt (any) from FIT Image at 46000000 ...
Using 'ov-lite-nor' configuration
Trying 'fdt-ov-lite-nor' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x46986b64
Data Size: 919 Bytes = 919 Bytes
Architecture: Unknown Architecture
Verifying Hash Integrity ... OK
Booting using the fdt blob at 0xbe7ed000
Working FDT set to be7ed000
Uncompressing Kernel Image to 44000000
Loading Device Tree to 00000000be7e2000, end 00000000be7eccce ... OK
Working FDT set to be7e2000
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.17.0-bpi-r4-main (runner@runnervmwhb2z) (aarch64-linux-gnu-gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #10 SMP Fri Oct 10 20:42:27 UTC 2025
[ 0.000000] Machine model: Bananapi BPI-R4-LITE
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000011000000 (options '')
[ 0.000000] printk: legacy bootconsole [uart8250] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x00000000bffc0000..0x00000000bfffffff (256 KiB) nomap non-reusable secmon@bffc0000
[ 0.000000] OF: reserved mem: 0x0000000050000000..0x00000000500fffff (1024 KiB) nomap non-reusable wmcpu-reserved@50000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004fffffff]
[ 0.000000] node 0: [mem 0x0000000050000000-0x00000000500fffff]
[ 0.000000] node 0: [mem 0x0000000050100000-0x00000000bffbffff]
[ 0.000000] node 0: [mem 0x00000000bffc0000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.5
[ 0.000000] percpu: Embedded 30 pages/cpu s83800 r8192 d30888 u122880
[ 0.000000] pcpu-alloc: s83800 r8192 d30888 u122880 alloc=30*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GICv3 CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: board=bpi-r4 console=ttyS0,115200n1 earlycon=uart8250,mmio32,0x11000000 root=/dev/mmcblk0p6 rootfstype=ext4 rootwait debug=7
[ 0.000000] Unknown kernel command line parameters "board=bpi-r4", will be passed to user space.
[ 0.000000] printk: log buffer data + meta data: 131072 + 458752 = 589824 bytes
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 2MB
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x00000000bf607000-0x00000000bf807000] (2MB)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 524288
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 640 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: GICD_CTLR.DS=0, SCR_EL3.FIQ=0
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.008309] Console: colour dummy device 80x25
[ 0.012797] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[ 0.023191] pid_max: default: 32768 minimum: 301
[ 0.027930] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.035364] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.043953] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.050732] rcu: Hierarchical SRCU implementation.
[ 0.055537] rcu: Max phase no-delay instances is 1000.
[ 0.060915] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[ 0.069282] EFI services will not be available.
[ 0.073992] smp: Bringing up secondary CPUs ...
[ 0.078881] Detected VIPT I-cache on CPU1
[ 0.078915] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[ 0.078948] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.079336] Detected VIPT I-cache on CPU2
[ 0.079354] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[ 0.079370] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.079715] Detected VIPT I-cache on CPU3
[ 0.079731] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[ 0.079744] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.079785] smp: Brought up 1 node, 4 CPUs
[ 0.136268] SMP: Total of 4 processors activated.
[ 0.140984] CPU: All CPU(s) started at EL2
[ 0.145086] CPU features: detected: 32-bit EL0 Support
[ 0.150240] CPU features: detected: CRC32 instructions
[ 0.155395] CPU features: detected: PMUv3
[ 0.159449] alternatives: applying system-wide alternatives
[ 0.165422] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.173938] Memory: 2021840K/2097152K available (13824K kernel code, 2610K rwdata, 4992K rodata, 4992K init, 365K bss, 71000K reserved, 0K cma-reserved)
[ 0.188231] devtmpfs: initialized
[ 0.194585] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.204506] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.211986] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
[ 0.220781] 26016 pages in range for non-PLT usage
[ 0.220785] 517536 pages in range for PLT usage
[ 0.225645] pinctrl core: initialized pinctrl subsystem
[ 0.235773] DMI not present or invalid.
[ 0.240888] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.247187] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.254280] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.262079] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.270455] thermal_sys: Registered thermal governor 'fair_share'
[ 0.270459] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.276577] thermal_sys: Registered thermal governor 'step_wise'
[ 0.282600] thermal_sys: Registered thermal governor 'user_space'
[ 0.288736] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.301713] ASID allocator initialised with 65536 entries
[ 0.310205] /soc/interrupt-controller@c000000: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[ 0.324142] /soc/pcie@11280000: Fixed dependency cycle(s) with /soc/pcie@11280000/interrupt-controller
[ 0.336324] iommu: Default domain type: Translated
[ 0.341146] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.347691] SCSI subsystem initialized
[ 0.351564] libata version 3.00 loaded.
[ 0.355516] usbcore: registered new interface driver usbfs
[ 0.361062] usbcore: registered new interface driver hub
[ 0.366403] usbcore: registered new device driver usb
[ 0.371653] pps_core: LinuxPPS API ver. 1 registered
[ 0.376631] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.385807] PTP clock support registered
[ 0.391181] vgaarb: loaded
[ 0.396086] clocksource: Switched to clocksource arch_sys_counter
[ 0.406368] NET: Registered PF_INET protocol family
[ 0.411420] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.419884] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.428480] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.436262] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.444269] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.451938] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.458605] UDP hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.465376] UDP-Lite hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.472741] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.478847] RPC: Registered named UNIX socket transport module.
[ 0.484788] RPC: Registered udp transport module.
[ 0.489514] RPC: Registered tcp transport module.
[ 0.494228] RPC: Registered tcp-with-tls transport module.
[ 0.499729] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.506203] PCI: CLS 0 bytes, default 64
[ 0.514602] Initialise system trusted keyrings
[ 0.519203] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.525926] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.531991] NFS: Registering the id_resolver key type
[ 0.537088] Key type id_resolver registered
[ 0.541280] Key type id_legacy registered
[ 0.545309] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.552035] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.559499] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.567266] cryptd: max_cpu_qlen set to 1000
[ 0.604474] Key type asymmetric registered
[ 0.608588] Asymmetric key parser 'x509' registered
[ 0.613525] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.620950] io scheduler mq-deadline registered
[ 0.625491] io scheduler kyber registered
[ 0.629557] io scheduler bfq registered
[ 0.647440] mtk-socinfo mtk-socinfo.0.auto: error -ENOENT: Failed to get socinfo data
[ 0.655316] mtk-socinfo mtk-socinfo.0.auto: probe with driver mtk-socinfo failed with error -2
[ 0.694413] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.702625] printk: legacy console [ttyS0] disabled
[ 0.727918] 11000000.serial: ttyS0 at MMIO 0x11000000 (irq = 65, base_baud = 2500000) is a ST16650V2
[ 0.737132] printk: legacy console [ttyS0] enabled
[ 0.737132] printk: legacy console [ttyS0] enabled
[ 0.746719] printk: legacy bootconsole [uart8250] disabled
[ 0.746719] printk: legacy bootconsole [uart8250] disabled
[ 0.778975] 11000100.serial: ttyS1 at MMIO 0x11000100 (irq = 66, base_baud = 2500000) is a ST16650V2
[ 0.797777] loop: module loaded
[ 0.803369] spi-nor spi1.0: supply vcc not found, using dummy regulator
[ 0.810596] 6 fixed-partitions partitions found on MTD device spi1.0
[ 0.817007] Creating 6 MTD partitions on "spi1.0":
[ 0.821789] 0x000000c00000-0x000002000000 : "fit"
[ 0.828397] 0x000000180000-0x000000c00000 : "recovery"
[ 0.834364] 0x000000100000-0x000000180000 : "fip"
[ 0.839931] 0x000000080000-0x000000100000 : "reserved2"
[ 0.845974] 0x000000040000-0x000000080000 : "u-boot-env"
[ 0.852164] 0x000000000000-0x000000040000 : "bl2"
[ 0.977413] mtk_soc_eth 15100000.ethernet: generated random MAC address aa:b8:ac:93:b7:cd
[ 0.986337] usbcore: registered new interface driver usb-storage
[ 0.992626] i2c_dev: i2c /dev entries driver
[ 0.998125] pca954x 0-0070: supply vdd not found, using dummy regulator
[ 1.007833] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
[ 1.015355] rtc-pcf8563 1-0051: registered as rtc0
[ 1.021870] rtc-pcf8563 1-0051: low voltage detected, date/time is not reliable.
[ 1.029284] rtc-pcf8563 1-0051: hctosys: unable to read the hardware clock
[ 1.037459] at24 1-0057: supply vcc not found, using dummy regulator
[ 1.044440] at24 1-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[ 1.051141] i2c i2c-0: Added multiplexed i2c bus 1
[ 1.056210] i2c i2c-0: Added multiplexed i2c bus 2
[ 1.061157] i2c i2c-0: Added multiplexed i2c bus 3
[ 1.066291] pca953x 4-0020: supply vcc not found, using dummy regulator
[ 1.072975] pca953x 4-0020: using no AI
[ 1.079120] at24 4-0050: supply vcc not found, using dummy regulator
[ 1.107978] i2c i2c-0: Added multiplexed i2c bus 4
[ 1.112778] pca954x 0-0070: registered 4 multiplexed busses for I2C switch pca9545
[ 1.121003] mtk-lvts-thermal 1100a000.lvts: fake golden temp=60
[ 1.128433] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 1.137745] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 1.144313] usbcore: registered new interface driver usbhid
[ 1.149909] usbhid: USB HID core driver
[ 1.154409] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 (0,8000003f) counters available
[ 1.164198] NET: Registered PF_INET6 protocol family
[ 1.169772] Segment Routing with IPv6
[ 1.173475] In-situ OAM (IOAM) with IPv6
[ 1.177436] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.183750] NET: Registered PF_PACKET protocol family
[ 1.188982] 8021q: 802.1Q VLAN Support v1.8
[ 1.199725] Loading compiled-in X.509 certificates
[ 1.216563] phy phy-soc:[email protected]: type_sw - reg 0x218, index 0
[ 1.224318] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[ 1.224485] sfp sfp@0: Host maximum power 3.0W
[ 1.231692] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[ 1.242400] mtk-pcie-gen3 11280000.pcie: IO 0x0020000000..0x00201fffff -> 0x0020000000
[ 1.250860] mtk-pcie-gen3 11280000.pcie: MEM 0x0020200000..0x002fffffff -> 0x0020200000
[ 1.252403] mmc0: Host Software Queue enabled
[ 1.263644] mmc0: new high speed MMC card at address 0001
[ 1.270161] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
[ 1.278557] Alternate GPT is invalid, using primary GPT.
[ 1.283888] mmcblk0: p1 p2 p3 p4 p5 p6
[ 1.289112] mmcblk0boot0: mmc0:0001 8GTF4R 4.00 MiB
[ 1.297250] mmcblk0boot1: mmc0:0001 8GTF4R 4.00 MiB
[ 1.304575] mmcblk0rpmb: mmc0:0001 8GTF4R 512 KiB, chardev (244:0)
[ 1.367353] mtk_soc_eth 15100000.ethernet: generated random MAC address a6:1e:e7:a7:05:fa
[ 1.375627] mtk_soc_eth 15100000.ethernet: generated random MAC address 96:43:1b:96:cd:39
[ 1.387648] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc083e00000, irq 69
[ 1.397511] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc083e00000, irq 69
[ 1.407179] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[ 1.414594] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[ 1.422811] xhci-mtk 11200000.usb: xHCI Host Controller
[ 1.428066] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[ 1.438462] xhci-mtk 11200000.usb: hcc params 0x01443f99 hci version 0x120 quirks 0x0000000020200010
[ 1.447635] xhci-mtk 11200000.usb: irq 75, io mem 0x11200000
[ 1.453389] xhci-mtk 11200000.usb: xHCI Host Controller
[ 1.458619] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[ 1.466008] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[ 1.466111] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[ 1.473542] hub 1-0:1.0: USB hub found
[ 1.481851] mtk-pcie-gen3 11280000.pcie: probe with driver mtk-pcie-gen3 failed with error -110
[ 1.485575] hub 1-0:1.0: 1 port detected
[ 1.498434] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.506895] hub 2-0:1.0: USB hub found
[ 1.510657] hub 2-0:1.0: 1 port detected
[ 1.549037] mt7530-mdio mdio-bus:1f: no interrupt support
[ 1.588831] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[ 1.597719] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control off
[ 1.605636] mt7530-mdio mdio-bus:1f lan0 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.628274] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.650825] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.673341] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.688612] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[ 1.695340] DSA: tree 0 setup
[ 1.698894] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 1.706018] clk: Disabling unused clocks
[ 1.710989] PM: genpd: Disabling unused power domains
[ 1.716394] check access for rdinit=/init failed: -2, ignoring
[ 1.730065] JBD2: no valid journal superblock found
[ 1.734940] EXT4-fs (mmcblk0p6): Could not load journal inode
[ 1.740884] List of all partitions:
[ 1.744374] 1f00 20480 mtdblock0
[ 1.744378] (driver?)
[ 1.750917] 1f01 10752 mtdblock1
[ 1.750921] (driver?)
[ 1.757454] 1f02 512 mtdblock2
[ 1.757459] (driver?)
[ 1.763976] 1f03 512 mtdblock3
[ 1.763979] (driver?)
[ 1.770507] 1f04 256 mtdblock4
[ 1.770511] (driver?)
[ 1.777033] 1f05 256 mtdblock5
[ 1.777037] (driver?)
[ 1.783554] b300 7634944 mmcblk0
[ 1.783558] driver: mmcblk
[ 1.790342] b301 4079 mmcblk0p1 cf4fb127-9a61-4bf5-9224-ef637ede64b7
[ 1.790346]
[ 1.799296] b302 512 mmcblk0p2 52637bc4-d175-47c1-8ec9-3bd83e4238f6
[ 1.799300]
[ 1.808249] b303 2048 mmcblk0p3 48ee05c2-79d2-4183-a205-9f457cbf6496
[ 1.808253]
[ 1.817202] b304 2048 mmcblk0p4 db267f56-e442-4f79-acb6-4fdefa6e3295
[ 1.817206]
[ 1.826156] b305 102400 mmcblk0p5 c3d48ef9-adf8-4f00-9ceb-95ac47d6127f
[ 1.826160]
[ 1.835104] b306 6758400 mmcblk0p6 3333261a-365f-4dc8-83c9-c430348f754c
[ 1.835108]
[ 1.844062] b308 4096 mmcblk0boot0
[ 1.844066] (driver?)
[ 1.850850] b310 4096 mmcblk0boot1
[ 1.850854] (driver?)
[ 1.857633] No filesystem could mount root, tried:
[ 1.857635] ext4
[ 1.862500]
[ 1.865894] Kernel panic - not syncing: VFS: Unable to mount root fs on "/dev/mmcblk0p6" or unknown-block(179,6)
[ 1.876054] CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-bpi-r4-main #10 NONE
[ 1.884218] Hardware name: Bananapi BPI-R4-LITE (DT)
[ 1.889171] Call trace:
[ 1.891607] show_stack+0x18/0x24 (C)
[ 1.895266] dump_stack_lvl+0x34/0x8c
[ 1.898922] dump_stack+0x18/0x24
[ 1.902228] vpanic+0x2ec/0x2fc
[ 1.905360] nmi_panic+0x0/0x8c
[ 1.908491] mount_root+0x0/0x2dc
[ 1.911797] mount_root+0x168/0x2dc
[ 1.915275] prepare_namespace+0x6c/0x2a0
[ 1.919274] kernel_init_freeable+0x368/0x3d0
[ 1.923623] kernel_init+0x20/0x1d4
[ 1.927102] ret_from_fork+0x10/0x20
[ 1.930673] SMP: stopping secondary CPUs
[ 1.934592] Kernel Offset: disabled
[ 1.938069] CPU features: 0x000000,00080000,20002001,0400420b
[ 1.943804] Memory Limit: none
[ 1.946849] Rebooting in 10 seconds..
Ok,you are booting emmc?
Looks like be detected…
This too…
Any errors from building? Maybe installing rootfs failed somehow
This looks strange,have you modiefied the partition?
I don’t recall any errors, but the build takes several minutes and I have done so many I walked away to do something else. I just flashed the img to a SD card and booted it (all 4 switches down), and it loaded up, and I was able to login. However, I get that error when I try and boot eMMC (all 4 switches up). I flashed eMMC from the NAND OpenWrt using the resulting image file “bpi-r4_noble_6.17.0-main_sdmmc.img.gz” from the script…
gunzip -c /mnt/sda1/bpi-r4_noble_6.17.0-main_sdmmc.img.gz | dd bs=1M conv=notrunc,fsync of=/dev/mmcblk0
You use same image for sd and emmc? Basicly it boots, but i wonder why you come that far when using the sd fip. Have you flashed bl2 to boot0? Or was this already there?
I have spent a few days trying to get the eMMC to run what I flashed it. I previously flashed boot0 with “bpi-r4lite_emmc_bl2.img”. This got me passed the System Halt and onward to “Jump to BL” Uboot. But nothing really past that until today when I ran your script.
This says sdmmc “bpi-r4lite_sdmmc.img.gz”. Is there supposed to be different images for SD card and eMMC? I thought they were combined? Just for eMMC the Bl2 needs a separate flash?
I looked back at the build script. It did have these separate things pop up in the log…
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
/proc/ is not mounted, but required for successful operation of systemd-tmpfiles. Please mount /proc/. Alternatively, consider using the --root= or --image= switches.
/proc/ is not mounted. This is not a supported mode of operation. Please fix
your invocation environment to mount /proc/ and /sys/ properly. Proceeding anyway.
Your mileage may vary.
Rootfs is same,but bl2 and fip differ…but it looks like you are past this point as linux already booted.
Not sure why but my Nand install of OpenWRT now does not boot…
F0: 102B 0000
F9: 1042 0000
F9: 1042 0000 [0200]
F8: 3905 0036
F8: 0000 0000 [0002]
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0680 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [2000]
MK: 0000 0000 [0000]
T0: 0000 0383 [0101]
Jump to BL
NOTICE: BL2: v2.12.0(release):
NOTICE: BL2: Built : 18:21:13, Apr 10 2025
NOTICE: WDT: Cold boot
NOTICE: WDT: disabled
NOTICE: CPU: MT7987A
NOTICE: EMI: Using DDR4 settings
NOTICE: DDR4 Speed: 3200 Mbps
NOTICE: DDR tREFI: 3.9 us
NOTICE: DDR power-down option: 2
NOTICE: EMI: Detected DRAM size: 2048 MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: LVTS: Enable thermal HW reset
WARNING: CASN page check failed
WARNING: Fail to read CASN page. Try reading parameter page
NOTICE: SPI_NAND parses attributes from parameter page.
NOTICE: SPI_NAND Detected ID 0xef
NOTICE: Page size 2048, Block size 131072, size 268435456
NOTICE: Initializing NMBM ...
NOTICE: NMBM management region starts at block 1920 [0x0f000000]
NOTICE: NMBM has been initialized in read-only mode
WARNING: Firmware Image Package header check failed.
ERROR: io_dev_init failed for FIP image id 0 (-2)
ERROR: Image id 3 open failed with -2
WARNING: Failed to obtain reference to image id=3 (-2)
ERROR: BL2: Failed to load image id 3 (-2)
When I am booted in SD mode, does this look strange? Maybe not since I flashed the same image i used for eMMC to SD card?
root@bpi-r4:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 254M 0 disk
mtdblock1 31:1 0 2M 0 disk
mmcblk0 179:0 0 29.8G 0 disk
├─mmcblk0p1 179:1 0 4M 0 part
├─mmcblk0p2 179:2 0 512K 0 part
├─mmcblk0p3 179:3 0 2M 0 part
├─mmcblk0p4 179:4 0 2M 0 part
├─mmcblk0p5 179:5 0 100M 0 part /boot
└─mmcblk0p6 179:6 0 6.4G 0 part /
This does not look like my bl2 for r4lite,more like some downstream bl2. Downstream openwrt uses a special nmbm layer for nand which is not compatible to the standard mtd+ubi.
Partition layout for sdmmc looks good. Not sure why it cannot be mounted.
That last message is the NAND failing to boot the factory installed OpenWRT (Top Part), but the bottom code block is the lsblk from the SD card booted. I was wondering if there is some issue, I thought the SD card was supposed to use mmcblk1, but then I said I flashed the same img from your scripts to both emmc and the SD card, so maybe that is why the SD card shows mmcblk0 instead of mmcblk1. I am wondering if that has anything to do with anything.
I wanted to get back into the OpenWRT on NAND so I can look at the actual eMMC. I have no way to access it right now with NAND not booting.
There should be only mmcblk0 (not 1). And i guess my nand layout (ubifs) breaks downstream nand layout (with properitary NMBM).
But still strange why sdmmc image works on emmc and booted till mounting rootfs. Possibly there were write errors while writing to emmc due to different settings and working due to same bitwidth and speed.