GithubHelp home page GithubHelp logo

tmolteno / d1_build Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 16.0 322 KB

Debian disk image builder for the Sipeed Lichee RV Risc-v Single Board Computer

License: GNU General Public License v3.0

Dockerfile 40.76% Makefile 5.17% Shell 54.07%

d1_build's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

d1_build's Issues

Enable the Sitronix ST7789V screen

The Lichee RV comes with an optional 1.14" 135×240 SPI LCD screen. This bug report is for the necessary steps to get this going and build a small debian image for it.

Notes:

HDMI display error

The image is not displayed correctly when I connect the monitor via HDMI. You can hardly distinguish the letters correctly (In the attached image I show how the top command looks like).

I have tried other images, like Tina's official image, and it looks correct. I have also tried another monitor with the same result.

Used image: lichee_rv_dock_gcc_10.2.1_kernel_d1-wip-v5.18-rc1
Hardware: Standard Lichee RV + Dock

imagen

Compressed Image Support

We have to somehow find suitable values for kernel_comp_addr_r, and kernel_comp_size in the boot script. These are needed to decompress Image.gz.

I'll paste more stuff after attempting.

Regression between 0.4.0 and 0.4.2

The image lichee_rv_dock_gcc_10.2.1_kernel_d1-wip-v5.18-rc4.img.xz (Release 0.4.2) fails loading the kernel:

5729854 bytes read in 962 ms (5.7 MiB/s)
Booting kernel with bootargs as earlycon=sbi console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootwait cma=96M; and fdtcon0
   Uncompressing Kernel Image
Moving Image from 0x41000000 to 0x40200000, end=41536000
## Flattened Device Tree blob at 5fd42280
   Booting using the fdt blob at 0x5fd42280
Working FDT set to 5fd42280
   Loading Device Tree to 0000000042df2000, end 0000000042dffb2f ... OK
Working FDT set to 42df2000

Starting kernel ...


U-Boot SPL 2022.10-g528ae9bc-dirty (Feb 08 2023 - 02:58:22 +0000)
sunxi_ram_probe: dram-controller@3102000: probing

lichee_rv_dock_gcc_10.2.1_kernel_d1_all.img.xz (Release 0.4.0) loads the kernel and boots to a login.

u-boot failing to compile

From the build of u-boot

  cat spl/u-boot-spl-nodtb.bin spl/u-boot-spl.dtb > spl/u-boot-spl-dtb.bin
  cp spl/u-boot-spl-dtb.bin spl/u-boot-spl.bin
  ./tools/mkimage -A riscv -T "sunxi_egon" -a 0x20060 -n "sun20i-d1-nezha" -d spl/u-boot-spl.bin spl/sunxi-spl.bin >/dev/null  && cat /dev/null
  ./tools/binman/binman   --toolpath ./tools  build -u -d u-boot.dtb -O . -m --allow-missing --fake-ext-blobs -I . -I . -I ./board/sunxi -I arch/riscv/dts -a of-list="sun20i-d1-nezha"  -a atf-bl31-path= -a tee-os-path= -a opensbi-path= -a default-dt="sun20i-d1-nezha" -a scp-path= -a spl-bss-pad= -a tpl-bss-pad=1 -a spl-dtb=y -a tpl-dtb= -a pre-load-key-path= 
/uboot/u-boot/./tools/binman/binman:12: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.sysconfig import get_python_lib
/uboot/u-boot/./tools/binman/binman:12: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  from distutils.sysconfig import get_python_lib
Image 'main-section' is missing external blobs and is non-functional: opensbi
Image 'main-section' has faked external blobs and is non-functional: fw_dynamic.bin

Some images are invalid
Removing intermediate cont

Kernel panic due to no root partition found

Hi @tmolteno

Here's what I've got on my LicheeRV86. The commit I've used is 3970c97

It seems like the SD card or SDMMC driver wasn't set up properly. I remember previously I've seen the kernel has the log for SD card initialization but it wasn't here this time.

Unable to use mmc 0:1...
In:    serial@2500000
Out:   serial@2500000
Err:   serial@2500000
Net:   
Warning: ethernet@4500000 (eth0) using random MAC address - 02:7b:53:88:e5:01
eth0: ethernet@4500000
starting USB...
Bus usb@4101000: USB EHCI 1.00
Bus usb@4101400: USB OHCI 1.0
Bus usb@4200000: USB EHCI 1.00
Bus usb@4200400: USB OHCI 1.0
scanning bus usb@4101000 for devices... 1 USB Device(s) found
scanning bus usb@4101400 for devices... 1 USB Device(s) found
scanning bus usb@4200000 for devices... 1 USB Device(s) found
scanning bus usb@4200400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
PLL reg = 0xf8216300, freq = 1200000000
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
458 bytes read in 1 ms (447.3 KiB/s)
## Executing script at 41900000
Loading kernel from mmc 0:1 to address 0x41000000
6604610 bytes read in 1107 ms (5.7 MiB/s)
Booting kernel with bootargs as earlycon=sbi console=ttyS0,115200n8 root=/dev/mmcblk0p2 cma=96M; and fdtcontroladdr is 5fd3e480
   Uncompressing Kernel Image
Moving Image from 0x41000000 to 0x40200000, end=41574000
## Flattened Device Tree blob at 5fd3e480
   Booting using the fdt blob at 0x5fd3e480
Working FDT set to 5fd3e480
   Loading Device Tree to 0000000042df2000, end 0000000042dff92f ... OK
Working FDT set to 42df2000

Starting kernel ...

[    0.000000] Linux version 6.1.0-rc3-gb466df90d48f-dirty (root@ec781b20ad32) (riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Thu Dec  8 11:44:07 UTC 2022
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: Sipeed Lichee RV 86 Panel (480p)
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x000000005fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000005fffffff]
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10001
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI SRST extension detected
[    0.000000] SBI HSM extension detected
[    0.000000] riscv: base ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 18 pages/cpu s34808 r8192 d30728 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 128520
[    0.000000] Kernel command line: earlycon=sbi console=ttyS0,115200n8 root=/dev/mmcblk0p2 cma=96M
[    0.000000] Unknown kernel command line parameters "cma=96M", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Virtual kernel memory layout:
[    0.000000]       fixmap : 0xffffffc6fee00000 - 0xffffffc6ff000000   (2048 kB)
[    0.000000]       pci io : 0xffffffc6ff000000 - 0xffffffc700000000   (  16 MB)
[    0.000000]      vmemmap : 0xffffffc700000000 - 0xffffffc800000000   (4096 MB)
[    0.000000]      vmalloc : 0xffffffc800000000 - 0xffffffd800000000   (  64 GB)
[    0.000000]      modules : 0xffffffff01374000 - 0xffffffff80000000   (2028 MB)
[    0.000000]       lowmem : 0xffffffd800000000 - 0xffffffd81fe00000   ( 510 MB)
[    0.000000]       kernel : 0xffffffff80000000 - 0xffffffffffffffff   (2047 MB)
[    0.000000] Memory: 492516K/522240K available (8142K kernel code, 4981K rwdata, 4096K rodata, 2184K init, 462K bss, 29724K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[    0.000000] rcu: 	RCU debug extended QS entry/exit.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@10000000: mapped 176 interrupts with 1 handlers for 2 contexts.
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    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.000604] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001847] Console: colour dummy device 80x25
[    0.001993] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.002035] pid_max: default: 32768 minimum: 301
[    0.002268] LSM: Security Framework initializing
[    0.002674] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.002725] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.009937] cblist_init_generic: Setting adjustable number of callback queues.
[    0.009964] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.010413] riscv: ELF compat mode unsupported
[    0.010553] ASID allocator using 16 bits (65536 entries)
[    0.011120] rcu: Hierarchical SRCU implementation.
[    0.011138] rcu: 	Max phase no-delay instances is 1000.
[    0.012035] EFI services will not be available.
[    0.013218] smp: Bringing up secondary CPUs ...
[    0.013237] smp: Brought up 1 node, 1 CPU
[    0.014782] devtmpfs: initialized
[    0.039290] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.039348] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.039900] pinctrl core: initialized pinctrl subsystem
[    0.044191] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.045079] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.045211] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.045410] audit: initializing netlink subsys (disabled)
[    0.047245] cpuidle: using governor menu
[    0.088644] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[    0.089007] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[    0.090369] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.092323] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.096327] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[    0.135201] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[    0.137133] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.137156] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.142950] iommu: Default domain type: Translated 
[    0.142970] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.144030] SCSI subsystem initialized
[    0.145474] usbcore: registered new interface driver usbfs
[    0.145640] usbcore: registered new interface driver hub
[    0.145774] usbcore: registered new device driver usb
[    0.149403] vgaarb: loaded
[    0.150331] clocksource: Switched to clocksource timer
[    0.189909] NET: Registered PF_INET protocol family
[    0.190601] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.195522] tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.195631] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.195691] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.195853] TCP bind hash table entries: 4096 (order: 6, 262144 bytes, linear)
[    0.197581] TCP: Hash tables configured (established 4096 bind 4096)
[    0.197828] UDP hash table entries: 256 (order: 2, 24576 bytes, linear)
[    0.198042] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes, linear)
[    0.198858] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.200931] RPC: Registered named UNIX socket transport module.
[    0.200955] RPC: Registered udp transport module.
[    0.200966] RPC: Registered tcp transport module.
[    0.200976] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.203477] PCI: CLS 0 bytes, default 64
[    0.205767] Initialise system trusted keyrings
[    0.207541] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.229263] zbud: loaded
[    0.238071] NFS: Registering the id_resolver key type
[    0.238187] Key type id_resolver registered
[    0.238205] Key type id_legacy registered
[    0.238652] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.238678] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.239305] 9p: Installing v9fs 9p2000 file system support
[    0.240578] Key type asymmetric registered
[    0.240604] Asymmetric key parser 'x509' registered
[    0.240771] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.240794] io scheduler mq-deadline registered
[    0.240808] io scheduler kyber registered
[    0.502534] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.531880] loop: module loaded
[    0.540204] e1000e: Intel(R) PRO/1000 Network Driver
[    0.540222] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.544062] usbcore: registered new interface driver uas
[    0.544259] usbcore: registered new interface driver usb-storage
[    0.545071] mousedev: PS/2 mouse device common for all mice
[    0.549729] sun6i-rtc 7090000.rtc: registered as rtc0
[    0.549888] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:00:10 UTC (86410)
[    0.550421] sun6i-rtc 7090000.rtc: RTC enabled
[    0.553534] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.555652] sdhci: Secure Digital Host Controller Interface driver
[    0.555670] sdhci: Copyright(c) Pierre Ossman
[    0.556988] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.557872] usbcore: registered new interface driver usbhid
[    0.557892] usbhid: USB HID core driver
[    0.558673] riscv-pmu-sbi: SBI PMU extension is available
[    0.558788] riscv-pmu-sbi: 16 firmware and 31 hardware counters
[    0.563628] NET: Registered PF_INET6 protocol family
[    0.567498] Segment Routing with IPv6
[    0.567719] In-situ OAM (IOAM) with IPv6
[    0.567934] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.569885] NET: Registered PF_PACKET protocol family
[    0.570535] 9pnet: Installing 9P2000 support
[    0.570849] Key type dns_resolver registered
[    0.585912] Loading compiled-in X.509 certificates
[    0.587087] zswap: loaded using pool lzo/zbud
[    0.587973] debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table helpers
[    0.675182] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.681620] printk: console [ttyS0] disabled
[    0.702130] 2500000.serial: ttyS0 at MMIO 0x2500000 (irq = 205, base_baud = 1500000) is a 16550A
[    1.614607] printk: console [ttyS0] enabled
[    1.642821] 2500400.serial: ttyS1 at MMIO 0x2500400 (irq = 206, base_baud = 1500000) is a 16550A
[    1.668439] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[    1.683338] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.698239] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.706594] sunxi-mmc 4020000.mmc: initialized, max. request size: 2047 KB, uses new timings mode
[    1.715916] sunxi-mmc 4021000.mmc: initialized, max. request size: 2047 KB, uses new timings mode
[    1.729072] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.737857] cfg80211: failed to load regulatory.db
[    1.747203] /dev/root: Can't open blockdev
[    1.751539] VFS: Cannot open root device "mmcblk0p2" or unknown-block(0,0): error -6
[    1.759381] Please append a correct "root=" boot option; here are the available partitions:
[    1.767829] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.776112] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.0-rc3-gb466df90d48f-dirty #1
[    1.784049] Hardware name: Sipeed Lichee RV 86 Panel (480p) (DT)
[    1.790065] Call Trace:
[    1.792527] [<ffffffff800052b0>] dump_backtrace+0x1c/0x24
[    1.797973] [<ffffffff807e3376>] show_stack+0x2c/0x38
[    1.803067] [<ffffffff807ed94e>] dump_stack_lvl+0x3c/0x54
[    1.808507] [<ffffffff807ed97a>] dump_stack+0x14/0x1c
[    1.813593] [<ffffffff807e3748>] panic+0x102/0x29e
[    1.818421] [<ffffffff808014c8>] mount_block_root+0x166/0x21a
[    1.824207] [<ffffffff8080176c>] mount_root+0x1f0/0x220
[    1.829467] [<ffffffff808018de>] prepare_namespace+0x142/0x184
[    1.835333] [<ffffffff808010b8>] kernel_init_freeable+0x240/0x264
[    1.841460] [<ffffffff807edf24>] kernel_init+0x1e/0x10a
[    1.846721] [<ffffffff800034d4>] ret_from_exception+0x0/0xc
[    1.852337] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Cannot boot kernel (u-boot cannot find a suitable image)

Hello, using the latest image (0.33) with Lichee RV Dock.

U-boot cannot find the kernel image.

Boot log:

[131]HELLO! BOOT0 is starting!
[134]BOOT0 commit : 882671f
[137]set pll start
[138]periph0 has been enabled
[141]set pll end
[143]board init ok
[145]DRAM only have internal ZQ!!
[148]get_pmu_exist() = -1
[150]ddr_efuse_type: 0x0
[153][AUTO DEBUG] single rank and full DQ!
[157]ddr_efuse_type: 0x0
[160][AUTO DEBUG] rank 0 row = 15
[163][AUTO DEBUG] rank 0 bank = 8
[167][AUTO DEBUG] rank 0 page size = 2 KB
[170]DRAM BOOT DRIVE INFO: V0.24
[173]DRAM CLK = 792 MHz
[176]DRAM Type = 3 (2:DDR2,3:DDR3)
[179]DRAMC ZQ value: 0x7b7bfb
[182]DRAM ODT value: 0x42.
[184]ddr_efuse_type: 0x0
[187]DRAM SIZE =512 M
[191]DRAM simple test OK.
[193]dram size =512
[195]card no is 0
[196]sdcard 0 line count 4
[199][mmc]: mmc driver ver 2021-04-2 16:45
[208][mmc]: Wrong media type 0x0
[211][mmc]: Try SD card 0
[309][mmc]: HSSDR52/SDR25 4 bit
[311][mmc]: 50000000 Hz
[314][mmc]: 15268 MB
[315][mmc]: SD/MMC 0 init OK!!!
[351]Loading boot-pkg Succeed(index=1).
[355]Entry_name = opensbi
[358]Entry_name = dtb
[360]Entry_name = u-boot
[364]Adding DRAM info to DTB.
[369]Jump to second Boot.

OpenSBI v1.1


/ __ \ / | _ _ |
| | | |
__ ___ _ __ | (
| |
) || |
| | | | '_ \ / _ \ '_ \ ___ | _ < | |
| || | |) | __/ | | |) | |) || |
_
/| ./ _|| ||/|____/|
| |
|_|

Platform Name : Sipeed Lichee RV Dock
Platform Features : medeleg
Platform HART Count : 1
Platform IPI Device : ---
Platform Timer Device : --- @ 0Hz
Platform Console Device : uart8250
Platform HSM Device : sun20i-d1-ppu
Platform Reboot Device : sunxi-wdt-reset
Platform Shutdown Device : ---
Firmware Base : 0x40000000
Firmware Size : 240 KB
Runtime SBI Version : 1.0

Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x0000000040000000-0x000000004003ffff ()
Domain0 Region01 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x000000004a000000
Domain0 Next Arg1 : 0x0000000044000000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes

Boot HART ID : 0
Boot HART Domain : root
Boot HART Priv Version : v1.11
Boot HART Base ISA : rv64imafdcvx
Boot HART ISA Extensions : time
Boot HART PMP Count : 8
Boot HART PMP Granularity : 2048
Boot HART PMP Address Bits: 38
Boot HART MHPM Count : 0
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109

U-Boot 2022.07-rc3-gafc07cec-dirty (Jul 21 2022 - 05:36:22 +0000)

DRAM: 512 MiB
sunxi_set_gate: (CLK#24) unhandled
Core: 51 devices, 21 uclasses, devicetree: board
WDT: Started watchdog@6011000 with servicing (16s timeout)
MMC: mmc@4020000: 0, mmc@4021000: 1
Loading Environment from nowhere... OK
In: serial@2500000
Out: serial@2500000
Err: serial@2500000
Net: No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
716176 bytes read in 128 ms (5.3 MiB/s)

Executing script at 41900000

No FIT subimage unit name
SCRIPT FAILED: continuing...
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
starting USB...
Bus usb@4101000: USB EHCI 1.00
Bus usb@4101400: USB OHCI 1.0
Bus usb@4200000: USB EHCI 1.00
Bus usb@4200400: USB OHCI 1.0
scanning bus usb@4101000 for devices... 1 USB Device(s) found
scanning bus usb@4101400 for devices... 1 USB Device(s) found
scanning bus usb@4200000 for devices... 1 USB Device(s) found
scanning bus usb@4200400 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
No ethernet found.
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
Retrieving file: pxelinux.cfg/000000
No ethernet found.
Retrieving file: pxelinux.cfg/00000
No ethernet found.
Retrieving file: pxelinux.cfg/0000
No ethernet found.
Retrieving file: pxelinux.cfg/000
No ethernet found.
Retrieving file: pxelinux.cfg/00
No ethernet found.
Retrieving file: pxelinux.cfg/0
No ethernet found.
Retrieving file: pxelinux.cfg/default-riscv-sunxi-sunxi
No ethernet found.
Retrieving file: pxelinux.cfg/default-riscv-sunxi
No ethernet found.
Retrieving file: pxelinux.cfg/default-riscv
No ethernet found.
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
=>

Kernel Paging error when using Swap

Seeing a problem when starting to use the virtual memory...

`
[ 2.055984] Freeing unused kernel image (initmem) memory: 2184K
[ 2.061971] Run /sbin/init as init process
[ 3.737017] systemd[1]: System time before build time, advancing clock.
[ 3.908426] systemd[1]: systemd 250.4-1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 3.940210] systemd[1]: Detected architecture riscv64.

Welcome to Debian GNU/Linux bookworm/sid!

[ 4.074100] Unable to handle kernel paging request at virtual address ffffffac9704deeb
[ 4.082186] Oops [#1]
[ 4.084472] Modules linked in:
[ 4.087531] CPU: 0 PID: 1 Comm: systemd Not tainted 5.18.0-rc4-gf4bce410a6b4-dirty #1
[ 4.095360] Hardware name: Sipeed Lichee RV Dock (DT)
[ 4.100408] epc : strscpy+0x2a/0xfa
[ 4.103915] ra : strscpy_pad+0x12/0x3a
[ 4.107758] epc : ffffffff802ee0f6 ra : ffffffff80282134 sp : ffffffc80400bbb0
[ 4.114976] gp : ffffffff813914a0 tp : ffffffd801740000 t0 : 00000000000001f8
[ 4.122193] t1 : ffffffc80400bbd0 t2 : 0000000000000000 s0 : ffffffd802ff6070
[ 4.129410] s1 : 0000000000000040 a0 : 0000000000000000 a1 : f47c90ac9704deeb
[ 4.136626] a2 : 0000000000000040 a3 : ffffffff80d82eea a4 : 0000000000000000
[ 4.143844] a5 : f47c90ac9704deeb a6 : ffffffffffffffff a7 : ffffffd802304f10
[ 4.151061] s2 : ffffffc80400bbd0 s3 : 0000000000000000 s4 : 0000000000000000
[ 4.158278] s5 : 0000000000000053 s6 : 0000000000000001 s7 : 0000000000000000
[ 4.165495] s8 : 0000000000000000 s9 : 0000000000000002 s10: 0000000000000000
[ 4.172712] s11: 0000000000000001 t3 : 0000003f87b16580 t4 : 0000000000000016
[ 4.179928] t5 : 0000000000000061 t6 : ffffffd802ef2004
[ 4.185237] status: 0000000200000120 badaddr: ffffffac9704deeb cause: 000000000000000d
[ 4.193149] [] strscpy+0x2a/0xfa
[ 4.197948] [] proc_task_name+0x2a/0x90
[ 4.203359] [] seq_put_decimal_ull_width+0x8e/0xdc
[ 4.209718] [] thread_group_cputime_adjusted+0x24/0x34
[ 4.216429] [] do_task_stat+0x2c0/0x8c8
[ 4.221835] [] kvmalloc_node+0x12/0xa8
[ 4.227165] [] proc_single_show+0x3e/0x88
[ 4.232741] [] seq_read_iter+0x130/0x2fa
[ 4.238233] [] seq_read+0x80/0x9e
[ 4.243118] [] vfs_read+0x5a/0x106
[ 4.248099] [] ksys_read+0x38/0x98
[ 4.253070] [] ksys_read+0x94/0x98
[ 4.258043] [] check_syscall_nr+0x1e/0x22
[ 4.263804] ---[ end trace 0000000000000000 ]---
[ 4.268478] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 4.276139] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---
`

Build hangs at step [build_image 4/8]

DOCKER_BUILDKIT=1 docker-compose build panel

Building panel
[+] Building 8.9s (59/68)                                                                                
 => [internal] load build definition from Dockerfile                                                0.0s
 => => transferring dockerfile: 7.55kB                                                              0.0s
 => [internal] load .dockerignore                                                                   0.0s
 => => transferring context: 2B                                                                     0.0s
 => [internal] load metadata for docker.io/library/debian:bookworm                                  1.1s
 => [internal] load build context                                                                   0.0s
 => => transferring context: 3.08kB                                                                 0.0s
 => [builder 1/4] FROM docker.io/library/debian:bookworm@sha256:7b1f092d471519e5c2063824436cb5d64d  0.0s
 => CACHED [builder 2/4] RUN echo "Acquire::http::Proxy "";" >/etc/apt/apt.conf.d/00proxy           0.0s
 => CACHED [builder 3/4] RUN --mount=type=cache,sharing=shared,target=/var/cache     --mount=type=  0.0s
 => CACHED [builder 4/4] RUN riscv64-linux-gnu-gcc --version | grep gcc | cut -d')' -f2             0.0s
 => CACHED [build_opensbi 1/4] WORKDIR /build                                                       0.0s
 => CACHED [build_uboot  2/15] RUN eatmydata git clone --depth 1 --branch d1-2022-10-31 https://gi  0.0s
 => CACHED [build_uboot  3/15] WORKDIR /build/u-boot                                                0.0s
 => CACHED [build_uboot  4/15] COPY kernel/update_uboot_config.sh .                                 0.0s
 => CACHED [build_uboot  5/15] COPY config/ov_lichee_rv_mini_lcd.dts ./arch/riscv/dts/ov_lichee_rv  0.0s
 => CACHED [build_uboot  6/15] RUN sed -i '3s/^/dtb-$(CONFIG_TARGET_SUN20I_D1) += ov_lichee_rv_min  0.0s
 => CACHED [build_uboot  7/15] RUN cat ./arch/riscv/dts/Makefile                                    0.0s
 => CACHED [build_uboot  8/15] RUN if [ "lichee_rv_86" = "lichee_rv_86" ] ; then       echo "Build  0.0s
 => CACHED [build_opensbi 2/4] RUN git clone --depth 1 --branch v1.2 https://github.com/riscv-soft  0.0s
 => CACHED [build_opensbi 3/4] WORKDIR /build/opensbi                                               0.0s
 => CACHED [build_opensbi 4/4] RUN eatmydata make CROSS_COMPILE=riscv64-linux-gnu- PLATFORM=generi  0.0s
 => CACHED [build_uboot  9/15] COPY --from=build_opensbi /build/opensbi/build/platform/generic/fir  0.0s
 => CANCELED [build_uboot 10/15] RUN eatmydata make -j $(nproc) CROSS_COMPILE=riscv64-linux-gnu- a  7.8s
 => CACHED [build_image 1/8] WORKDIR /builder                                                       0.0s
 => CACHED [build_rootfs  2/19] COPY rootfs/multistrap_lichee_rv_86.conf multistrap.conf            0.0s
 => CACHED [build_rootfs  3/19] RUN --mount=type=cache,sharing=shared,target=/var/cache     --moun  0.0s
 => CACHED [build_rootfs  4/19] WORKDIR /build                                                      0.0s
 => CACHED [build_kernel  2/17] RUN eatmydata git clone --depth 1 --branch d1-wip-v5.18-rc1 https:  0.0s
 => CACHED [build_kernel  3/17] RUN cd linux && eatmydata git checkout  && cd -                     0.0s
 => CACHED [build_kernel  4/17] WORKDIR /build/linux/drivers/net/wireless                           0.0s
 => CACHED [build_kernel  5/17] RUN eatmydata git clone --depth 1 https://github.com/YuzukiHD/Xrad  0.0s
 => CACHED [build_kernel  6/17] RUN echo 'obj-$(CONFIG_XR829_WLAN) += Xradio-XR829/' >> Makefile    0.0s
 => CACHED [build_kernel  7/17] WORKDIR /build/linux                                                0.0s
 => CACHED [build_kernel  8/17] COPY kernel/update_kernel_config.sh .                               0.0s
 => CACHED [build_kernel  9/17] RUN ./update_kernel_config.sh defconfig                             0.0s
 => CACHED [build_kernel 10/17] WORKDIR /build                                                      0.0s
 => CACHED [build_kernel 11/17] RUN eatmydata make ARCH=riscv -C linux O=../linux-build defconfig   0.0s
 => CACHED [build_kernel 12/17] RUN eatmydata make -j $(nproc) -C linux-build ARCH=riscv CROSS_COM  0.0s
 => CACHED [build_kernel 13/17] WORKDIR /build                                                      0.0s
 => CACHED [build_kernel 14/17] RUN eatmydata git clone --depth 1 https://github.com/lwfinger/rtl8  0.0s
 => CACHED [build_kernel 15/17] WORKDIR /build/rtl8723ds                                            0.0s
 => CACHED [build_kernel 16/17] RUN eatmydata make -j $(nproc) ARCH=riscv CROSS_COMPILE=riscv64-li  0.0s
 => CACHED [build_kernel 17/17] RUN ls -l                                                           0.0s
 => CACHED [build_rootfs  5/19] COPY --from=build_kernel /build/linux-build/ ./linux-build/         0.0s
 => CACHED [build_rootfs  6/19] COPY --from=build_kernel /build/linux/ ./linux/                     0.0s
 => CACHED [build_rootfs  7/19] COPY --from=build_kernel /build/rtl8723ds/8723ds.ko .               0.0s
 => CACHED [build_rootfs  8/19] WORKDIR /build/linux-build                                          0.0s
 => CACHED [build_rootfs  9/19] RUN eatmydata make ARCH=riscv INSTALL_MOD_PATH=/port/rv64-port mod  0.0s
 => CACHED [build_rootfs 10/19] RUN ls /port/rv64-port/lib/modules/ > /kernel_ver                   0.0s
 => CACHED [build_rootfs 11/19] RUN echo "export MODDIR=$(ls /port/rv64-port/lib/modules/)" > /mod  0.0s
 => CACHED [build_rootfs 12/19] RUN ls /port/rv64-port/lib/modules/                                 0.0s
 => CACHED [build_rootfs 13/19] RUN . /moddef && echo "Creating wireless module in ${MODDIR}"       0.0s
 => CACHED [build_rootfs 14/19] RUN . /moddef && install -v -D -p -m 644 /build/8723ds.ko /port/rv  0.0s
 => CACHED [build_rootfs 15/19] RUN . /moddef && rm /port/rv64-port/lib/modules/${MODDIR}/build     0.0s
 => CACHED [build_rootfs 16/19] RUN . /moddef && rm /port/rv64-port/lib/modules/${MODDIR}/source    0.0s
 => CACHED [build_rootfs 17/19] RUN . /moddef && depmod -a -b /port/rv64-port "${MODDIR}"           0.0s
 => CACHED [build_rootfs 18/19] RUN echo '8723ds' >> /port/rv64-port/etc/modules                    0.0s
 => CACHED [build_rootfs 19/19] RUN echo 'xr829' >> /port/rv64-port/etc/modules                     0.0s
 => CACHED [build_image 2/8] COPY --from=build_rootfs /kernel_ver ./                                0.0s
 => CACHED [build_image 3/8] COPY --from=build_rootfs /port/rv64-port/ ./rv64-port/                 0.0s
 => CACHED [build_image 4/8] COPY --from=build_kernel /build/linux-build/arch/riscv/boot/Image.gz   0.0s

I've left it running for over 4 hours at this step, it just stays there.

Any tips how to debug this?

USB host not working with v0.4.0 (deferred probe)

With the release v0.4.0 the USB host is not working in the Lichee RV Dock. I downgraded to v0.3.3, and USB devices are working there.

U-Boot is detecting USB devices with both versions (in this case a USB Mass Storage device):

starting USB...
Bus usb@4101000: USB EHCI 1.00
Bus usb@4101400: USB OHCI 1.0
Bus usb@4200000: USB EHCI 1.00
Bus usb@4200400: USB OHCI 1.0
scanning bus usb@4101000 for devices... 1 USB Device(s) found
scanning bus usb@4101400 for devices... 1 USB Device(s) found
scanning bus usb@4200000 for devices... 2 USB Device(s) found
scanning bus usb@4200400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

With v0.4.0 I see in the Kernel log that the probe of the USB hardware is deferred:

[   31.186292] platform 4101000.usb: deferred probe pending
[   31.191702] platform 4101400.usb: deferred probe pending
[   31.197098] platform 4200400.usb: deferred probe pending
[   31.202494] platform 4200000.usb: deferred probe pending

However, the dependencies never seem to be resolved and the deferred probe is not happening.

That's the output with v0.3.3, the USB hardware is initialized straight away:

[    1.345633] ehci-platform 4101000.usb: USB 2.0 started, EHCI 1.00
[    1.352025] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    1.360408] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.367716] usb usb1: Product: EHCI Host Controller
[    1.372742] usb usb1: Manufacturer: Linux 5.18.0-rc4-gf4bce410a6b4-dirty ehci_hcd
[    1.380304] usb usb1: SerialNumber: 4101000.usb
[    1.385842] hub 1-0:1.0: USB hub found
[    1.389841] hub 1-0:1.0: 1 port detected
[    1.395396] ehci-platform 4200000.usb: EHCI Host Controller
[    1.401148] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 2
[    1.409184] ehci-platform 4200000.usb: irq 38, io mem 0x04200000
[    1.427210] mmc1: new high speed SDIO card at address 0001
[    1.432806] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[    1.439158] mmc0: new high speed SDHC card at address aaaa
[    1.445841] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    1.454738] mmcblk0: mmc0:aaaa SL32G 28.8 GiB 
[    1.460378] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.467842] usb usb2: Product: EHCI Host Controller
[    1.472940] usb usb2: Manufacturer: Linux 5.18.0-rc4-gf4bce410a6b4-dirty ehci_hcd
[    1.480638] usb usb2: SerialNumber: 4200000.usb
[    1.486642] hub 2-0:1.0: USB hub found
[    1.490537] hub 2-0:1.0: 1 port detected
[    1.498052] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    1.505505] GPT:16383999 != 60367871
[    1.509084] GPT:Alternate GPT header not at the end of the disk.
[    1.515106] GPT:16383999 != 60367871
[    1.518709] GPT: Use GNU Parted to correct GPT errors.
[    1.523914]  mmcblk0: p1 p2 p3
[    1.537255] ohci-platform 4101400.usb: Generic Platform OHCI controller
[    1.543985] ohci-platform 4101400.usb: new USB bus registered, assigned bus number 3
[    1.551935] ohci-platform 4101400.usb: irq 37, io mem 0x04101400
[    1.621377] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.18
[    1.629839] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.637124] usb usb3: Product: Generic Platform OHCI controller
[    1.643073] usb usb3: Manufacturer: Linux 5.18.0-rc4-gf4bce410a6b4-dirty ohci_hcd
[    1.650580] usb usb3: SerialNumber: 4101400.usb
[    1.655958] hub 3-0:1.0: USB hub found
[    1.659849] hub 3-0:1.0: 1 port detected
[    1.665190] ohci-platform 4200400.usb: Generic Platform OHCI controller
[    1.672042] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 4
[    1.679985] ohci-platform 4200400.usb: irq 39, io mem 0x04200400
[    1.749414] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.18
[    1.757753] usb 2-1: new high-speed USB device number 2 using ehci-platform
[    1.764759] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.772075] usb usb4: Product: Generic Platform OHCI controller
[    1.778126] usb usb4: Manufacturer: Linux 5.18.0-rc4-gf4bce410a6b4-dirty ohci_hcd
[    1.785656] usb usb4: SerialNumber: 4200400.usb
[    1.791060] hub 4-0:1.0: USB hub found
[    1.794950] hub 4-0:1.0: 1 port detected
[    1.801224] musb-hdrc musb-hdrc.4.auto: MUSB HDRC host driver
[    1.807212] musb-hdrc musb-hdrc.4.auto: new USB bus registered, assigned bus number 5
[    1.815318] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    1.823628] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.830877] usb usb5: Product: MUSB HDRC host driver
[    1.835906] usb usb5: Manufacturer: Linux 5.18.0-rc4-gf4bce410a6b4-dirty musb-hcd
[    1.843424] usb usb5: SerialNumber: musb-hdrc.4.auto
[    1.849443] hub 5-0:1.0: USB hub found
[    1.853327] hub 5-0:1.0: 1 port detected
[    1.858290] using random self ethernet address
[    1.862791] using random host ethernet address
[    1.868097] usb0: HOST MAC 9a:e2:9d:0b:8b:90
[    1.872431] usb0: MAC d6:c1:f0:b0:ed:53
[    1.876484] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[    1.883173] g_ether gadget: g_ether ready
[    1.889286] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.899729] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.906758] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.915770] ALSA device list:
[    1.918901]   #0: sun20i-codec
[    1.922045] cfg80211: failed to load regulatory.db
[    1.934962] usb 2-1: New USB device found, idVendor=14cd, idProduct=1212, bcdDevice= 1.00
[    1.943248] usb 2-1: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[    1.950588] usb 2-1: Product: Mass Storage Device
[    1.955652] usb 2-1: Manufacturer: Generic
[    1.960040] usb 2-1: SerialNumber: 121220160204
[    1.966760] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.
[    1.976075] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.982329] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.989969] scsi host0: usb-storage 2-1:1.0
[    2.010424] devtmpfs: mounted
[    2.014906] Freeing unused kernel image (initmem) memory: 2188K
[    2.020916] Run /sbin/init as init process
[    2.978803] systemd[1]: System time before build time, advancing clock.
[    3.018200] scsi 0:0:0:0: Direct-Access     Mass     Storage Device   1.00 PQ: 0 ANSI: 0 CCS
[    3.028561] sd 0:0:0:0: Attached scsi generic sg0 type 0

Problems timing out waiting for /dev/ttyS0 and swaps

The boot log follows:

[ 33.866501] vdd-cpu: disabling
[ 33.869576] ldob: disabling
[ TIME ] Timed out waiting for device /dev/ttyS0.
[DEPEND] Dependency failed for Serial Getty on ttyS0.
[ TIME ] Timed out waiting for device /dev/mmcblk0p1.
[DEPEND] Dependency failed for /boot.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for File…ystem Check on /dev/mmcblk0p1.
[ TIME ] Timed out waiting for device /dev/mmcblk0p3.
[DEPEND] Dependency failed for /dev/mmcblk0p3.
[DEPEND] Dependency failed for Swaps.

Docker Build error 'mkimage' exit code 1

Hello,

I'm trying to build via the compose file but i get this mkimage error:

[+] Building 23.4s (72/177)
 => [d1_build_dock internal] load build definition from Dockerfile                                                                                                                       0.0s
 => => transferring dockerfile: 8.79kB                                                                                                                                                   0.0s
 => [d1_build_panel internal] load build definition from Dockerfile                                                                                                                      0.0s
 => => transferring dockerfile: 8.79kB                                                                                                                                                   0.0s
 => [d1_build_dock internal] load .dockerignore                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                          0.0s
 => [d1_build_panel internal] load .dockerignore                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                          0.0s
 => [d1_build_dock internal] load metadata for docker.io/library/debian:bullseye                                                                                                         1.2s
 => [d1_build_panel builder 1/4] FROM docker.io/library/debian:bullseye@sha256:2ce44bbc00a79113c296d9d25524e15d423b23303fdbbe20190d2f96e0aeb251                                          0.0s
 => [d1_build_panel internal] load build context                                                                                                                                         0.0s
 => => transferring context: 6.17kB                                                                                                                                                      0.0s 
 => CACHED [d1_build_dock builder 2/4] RUN apt-get update && apt-get install -y autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bis  0.0s 
 => CACHED [d1_build_dock builder 3/4] RUN apt-get install -y gcc-riscv64-linux-gnu g++-riscv64-linux-gnu                                                                                0.0s 
 => CACHED [d1_build_dock builder 4/4] RUN riscv64-linux-gnu-gcc --version | grep gcc | cut -d')' -f2                                                                                    0.0s 
 => [d1_build_panel build_image  1/15] RUN apt-get install -y kpartx parted                                                                                                              2.9s 
 => [d1_build_panel build_kernel  1/20] RUN apt-get install -y cpio  # Required for kernel build                                                                                         2.1s
 => CACHED [d1_build_panel build_boot0 1/6] RUN echo CROSS_COMPILE=riscv64-linux-gnu-                                                                                                    0.0s
 => CACHED [d1_build_panel build_boot0 2/6] WORKDIR /build                                                                                                                               0.0s
 => CACHED [d1_build_panel build_boot0 3/6] RUN git clone           --branch mainline https://github.com/smaeul/sun20i_d1_spl                                                            0.0s
 => CACHED [d1_build_panel build_boot0 4/6] WORKDIR /build/sun20i_d1_spl                                                                                                                 0.0s
 => CACHED [d1_build_panel build_boot0 5/6] RUN echo make CROSS_COMPILE=riscv64-linux-gnu- p=sun20iw1p1 mmc                                                                              0.0s
 => CACHED [d1_build_panel build_boot0 6/6] RUN make CROSS_COMPILE=riscv64-linux-gnu- p=sun20iw1p1 mmc                                                                                   0.0s
 => [d1_build_dock internal] load build context                                                                                                                                          0.0s 
 => => transferring context: 6.18kB                                                                                                                                                      0.0s 
 => [d1_build_dock build_image  1/15] RUN apt-get install -y kpartx parted                                                                                                               2.9s 
 => CACHED [d1_build_panel build_rootfs  1/24] RUN apt-get install -y mmdebstrap qemu-user-static binfmt-support debian-ports-archive-keyring                                            0.0s 
 => CACHED [d1_build_panel build_rootfs  2/24] RUN apt-get install -y multistrap systemd-container                                                                                       0.0s 
 => CACHED [d1_build_panel build_rootfs  3/24] RUN apt-get install -y kmod                                                                                                               0.0s 
 => CACHED [d1_build_panel build_rootfs  4/24] WORKDIR /build                                                                                                                            0.0s 
 => CACHED [d1_build_panel build_rootfs  5/24] COPY rootfs/multistrap_lichee_rv_86.conf multistrap.conf                                                                                  0.0s 
 => CACHED [d1_build_dock build_opensbi 1/4] WORKDIR /build                                                                                                                              0.0s 
 => CACHED [d1_build_dock build_opensbi 2/4] RUN git clone --depth 1 --branch d1-wip  https://github.com/smaeul/opensbi                                                                  0.0s 
 => CACHED [d1_build_dock build_opensbi 3/4] WORKDIR /build/opensbi                                                                                                                      0.0s 
 => [d1_build_dock build_uboot  9/21] RUN if [ "lichee_rv_dock"  = "lichee_rv_86" ] ; then       echo "Building for the RV_86_Panel";       ./update_uboot_config.sh lichee_rv_86_panel  3.2s 
 => [d1_build_panel build_kernel  2/20] WORKDIR /build                                                                                                                                   0.0s 
 => CANCELED [d1_build_dock build_kernel  3/20] RUN git clone --depth 1 --branch d1-wip-v5.18-rc4 https://github.com/smaeul/linux                                                       19.0s 
 => [d1_build_panel build_image  2/15] WORKDIR /builder                                                                                                                                  0.0s 
 => [d1_build_panel build_uboot 10/21] RUN make -j $(nproc) CROSS_COMPILE=riscv64-linux-gnu- all V=1                                                                                    15.3s 
 => [d1_build_dock build_image  2/15] WORKDIR /builder                                                                                                                                   0.0s 
 => [d1_build_dock build_uboot 10/21] RUN make -j $(nproc) CROSS_COMPILE=riscv64-linux-gnu- all V=1                                                                                     15.0s 
 => [d1_build_panel build_uboot 11/21] RUN ls -l arch/riscv/dts/                                                                                                                         0.9s 
 => [d1_build_dock build_uboot 11/21] RUN ls -l arch/riscv/dts/                                                                                                                          1.4s 
 => [d1_build_panel build_uboot 12/21] WORKDIR /build                                                                                                                                    0.0s 
 => [d1_build_panel build_uboot 13/21] COPY --from=build_opensbi /build/opensbi/build/platform/generic/firmware/fw_dynamic.bin ./                                                        0.0s 
 => [d1_build_panel build_uboot 14/21] COPY config/toc1_lichee_rv_86.cfg .                                                                                                               0.0s 
 => [d1_build_panel build_uboot 15/21] RUN ls -l                                                                                                                                         0.8s 
 => [d1_build_dock build_uboot 12/21] WORKDIR /build                                                                                                                                     0.0s 
 => [d1_build_dock build_uboot 13/21] COPY --from=build_opensbi /build/opensbi/build/platform/generic/firmware/fw_dynamic.bin ./                                                         0.0s 
 => [d1_build_dock build_uboot 14/21] COPY config/toc1_lichee_rv_dock.cfg .                                                                                                              0.0s 
 => [d1_build_dock build_uboot 15/21] RUN ls -l                                                                                                                                          0.8s 
 => ERROR [d1_build_panel build_uboot 16/21] RUN ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_lichee_rv_86.cfg u-boot.toc1                                                      1.1s 
 => CANCELED [d1_build_dock build_uboot 16/21] RUN ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_lichee_rv_dock.cfg u-boot.toc1                                                  1.7s 
------
 > [d1_build_panel build_uboot 16/21] RUN ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_lichee_rv_86.cfg u-boot.toc1:
------
failed to solve: executor failed running [/bin/sh -c ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_${BOARD}.cfg u-boot.toc1]: exit code: 1
PS E:\Github\External\d1_build>

System:
Windows 11 with Docker Desktop

Thanks in advance

HDMI xfce very slow

Hi,
I used your pre-built image and installed xfce4 on it, but I'm unable to use xfce because it's very slow, the mouse even barely moves. Any workarounds to solve this?

Thanks.

Lichee RV-86 Panel

How make screen working?
Boot log
[ 0.000000] Linux version 6.1.0-rc3-gb466df90d48f-dirty (root@42b43b6d8a6e) (riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Thu Dec 22 01:36:02 UTC 2022
[ 0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[ 0.000000] Machine model: Sipeed Lichee RV 86 Panel (480p)
[ 0.000000] efi: UEFI not found.
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000040200000-0x000000005fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040200000-0x000000005fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000005fffffff]
[ 0.000000] SBI specification v1.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10001
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
[ 0.000000] SBI HSM extension detected
[ 0.000000] riscv: base ISA extensions acdfim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: Embedded 18 pages/cpu s34808 r8192 d30728 u73728
[ 0.000000] pcpu-alloc: s34808 r8192 d30728 u73728 alloc=18*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 128520
[ 0.000000] Kernel command line: earlycon=sbi console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootwait cma=96M
[ 0.000000] Unknown kernel command line parameters "cma=96M", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] fixmap : 0xffffffc6fee00000 - 0xffffffc6ff000000 (2048 kB)
[ 0.000000] pci io : 0xffffffc6ff000000 - 0xffffffc700000000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffc700000000 - 0xffffffc800000000 (4096 MB)
[ 0.000000] vmalloc : 0xffffffc800000000 - 0xffffffd800000000 ( 64 GB)
[ 0.000000] modules : 0xffffffff01372000 - 0xffffffff80000000 (2028 MB)
[ 0.000000] lowmem : 0xffffffd800000000 - 0xffffffd81fe00000 ( 510 MB)
[ 0.000000] kernel : 0xffffffff80000000 - 0xffffffffffffffff (2047 MB)
[ 0.000000] Memory: 492516K/522240K available (8133K kernel code, 4974K rwdata, 4096K rodata, 2184K init, 461K bss, 29724K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] plic: interrupt-controller@10000000: mapped 176 interrupts with 1 handlers for 2 contexts.
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 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.000623] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.001887] Console: colour dummy device 80x25
[ 0.002042] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.002090] pid_max: default: 32768 minimum: 301
[ 0.002331] LSM: Security Framework initializing
[ 0.002755] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.002805] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.010282] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.010312] cblist_init_generic: Setting shift to 0 and lim to 1.
[ 0.010784] riscv: ELF compat mode unsupported
[ 0.010930] ASID allocator using 16 bits (65536 entries)
[ 0.011517] rcu: Hierarchical SRCU implementation.
[ 0.011535] rcu: Max phase no-delay instances is 1000.
[ 0.012483] EFI services will not be available.
[ 0.013738] smp: Bringing up secondary CPUs ...
[ 0.013757] smp: Brought up 1 node, 1 CPU
[ 0.015347] devtmpfs: initialized
[ 0.042000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.042057] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.042624] pinctrl core: initialized pinctrl subsystem
[ 0.046942] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.047788] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.047916] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.048120] audit: initializing netlink subsys (disabled)
[ 0.050029] cpuidle: using governor menu
[ 0.092595] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[ 0.092967] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[ 0.094379] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 0.096400] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 0.100630] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[ 0.140608] audit: type=2000 audit(0.044:1): state=initialized audit_enabled=0 res=1
[ 0.142651] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.142675] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.148678] iommu: Default domain type: Translated
[ 0.148782] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.149996] SCSI subsystem initialized
[ 0.150736] libata version 3.00 loaded.
[ 0.151423] usbcore: registered new interface driver usbfs
[ 0.151597] usbcore: registered new interface driver hub
[ 0.151736] usbcore: registered new device driver usb
[ 0.155315] vgaarb: loaded
[ 0.156282] clocksource: Switched to clocksource timer
[ 0.197823] NET: Registered PF_INET protocol family
[ 0.198449] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.203382] tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.203492] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.203556] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.203719] TCP bind hash table entries: 4096 (order: 6, 262144 bytes, linear)
[ 0.205533] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.205804] UDP hash table entries: 256 (order: 2, 24576 bytes, linear)
[ 0.206020] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes, linear)
[ 0.206731] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.208938] RPC: Registered named UNIX socket transport module.
[ 0.208962] RPC: Registered udp transport module.
[ 0.208976] RPC: Registered tcp transport module.
[ 0.208988] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.211471] PCI: CLS 0 bytes, default 64
[ 0.213918] Initialise system trusted keyrings
[ 0.215573] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[ 0.239200] zbud: loaded
[ 0.248747] NFS: Registering the id_resolver key type
[ 0.248867] Key type id_resolver registered
[ 0.248884] Key type id_legacy registered
[ 0.249250] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.249272] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.249922] 9p: Installing v9fs 9p2000 file system support
[ 0.251251] Key type asymmetric registered
[ 0.251278] Asymmetric key parser 'x509' registered
[ 0.251451] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.251477] io scheduler mq-deadline registered
[ 0.251493] io scheduler kyber registered
[ 0.526012] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.556732] loop: module loaded
[ 0.565313] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.565330] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.569339] usbcore: registered new interface driver uas
[ 0.569543] usbcore: registered new interface driver usb-storage
[ 0.570380] mousedev: PS/2 mouse device common for all mice
[ 0.575147] sun6i-rtc 7090000.rtc: registered as rtc0
[ 0.575309] sun6i-rtc 7090000.rtc: setting system clock to 2022-12-13T00:18:47 UTC (1670890727)
[ 0.575762] sun6i-rtc 7090000.rtc: RTC enabled
[ 0.579176] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.581505] sdhci: Secure Digital Host Controller Interface driver
[ 0.581525] sdhci: Copyright(c) Pierre Ossman
[ 0.582878] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.583791] usbcore: registered new interface driver usbhid
[ 0.583814] usbhid: USB HID core driver
[ 0.584662] riscv-pmu-sbi: SBI PMU extension is available
[ 0.584779] riscv-pmu-sbi: 16 firmware and 31 hardware counters
[ 0.589831] NET: Registered PF_INET6 protocol family
[ 0.593767] Segment Routing with IPv6
[ 0.593996] In-situ OAM (IOAM) with IPv6
[ 0.594217] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.596312] NET: Registered PF_PACKET protocol family
[ 0.596897] 9pnet: Installing 9P2000 support
[ 0.597174] Key type dns_resolver registered
[ 0.597196] start plist test
[ 0.611374] end plist test
[ 0.613130] Loading compiled-in X.509 certificates
[ 0.614181] zswap: loaded using pool lzo/zbud
[ 0.615111] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
[ 0.703786] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[ 0.710738] printk: console [ttyS0] disabled
[ 0.731256] 2500000.serial: ttyS0 at MMIO 0x2500000 (irq = 205, base_baud = 1500000) is a 16550A
[ 1.645020] printk: console [ttyS0] enabled
[ 1.673359] 2500400.serial: ttyS1 at MMIO 0x2500400 (irq = 206, base_baud = 1500000) is a 16550A
[ 1.704121] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[ 1.712991] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.729751] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.737955] sunxi-mmc 4020000.mmc: initialized, max. request size: 2047 KB, uses new timings mode
[ 1.747215] sunxi-mmc 4021000.mmc: initialized, max. request size: 2047 KB, uses new timings mode
[ 1.758574] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.767476] cfg80211: failed to load regulatory.db
[ 1.778216] Waiting for root device /dev/mmcblk0p2...
[ 1.810431] mmc1: new high speed SDIO card at address 0001
[ 1.838366] mmc0: new high speed SDHC card at address aaaa
[ 1.846097] mmcblk0: mmc0:aaaa SL32G 28.8 GiB
[ 1.866835] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 1.874385] GPT:14950399 != 60367871
[ 1.878052] GPT:Alternate GPT header not at the end of the disk.
[ 1.884129] GPT:14950399 != 60367871
[ 1.887784] GPT: Use GNU Parted to correct GPT errors.
[ 1.893107] mmcblk0: p1 p2 p3
[ 1.938903] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.
[ 1.948033] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.972572] devtmpfs: mounted
[ 1.978954] Freeing unused kernel image (initmem) memory: 2184K
[ 1.985083] Run /sbin/init as init process
[ 1.989280] with arguments:
[ 1.989298] /sbin/init
[ 1.989312] with environment:
[ 1.989324] HOME=/
[ 1.989338] TERM=linux
[ 1.989352] cma=96M
[ 3.274853] systemd[1]: systemd 252.3-2 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 3.307272] systemd[1]: Detected architecture riscv64.
[ 3.367889] systemd[1]: Hostname set to .
[ 6.971067] systemd[1]: Queued start job for default target Graphical Interface.
[ 7.009421] systemd[1]: Created slice Slice /system/getty.
[ 7.040885] systemd[1]: Created slice Slice /system/modprobe.
[ 7.072853] systemd[1]: Created slice Slice /system/serial-getty.
[ 7.104911] systemd[1]: Created slice Slice /system/systemd-fsck.
[ 7.135070] systemd[1]: Created slice User and Session Slice.
[ 7.158176] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 7.185859] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 7.213685] systemd[1]: Arbitrary Executable File Formats File System Automount Point was skipped because of an unmet condition check (ConditionPathExists=/proc/sys/fs/binfmt_misc).
[ 7.231179] systemd[1]: Reached target Local Encrypted Volumes.
[ 7.253189] systemd[1]: Reached target Local Integrity Protected Volumes.
[ 7.281426] systemd[1]: Reached target Path Units.
[ 7.301141] systemd[1]: Reached target Remote File Systems.
[ 7.325121] systemd[1]: Reached target Slice Units.
[ 7.345520] systemd[1]: Reached target Local Verity Protected Volumes.
[ 7.375510] systemd[1]: Listening on Syslog Socket.
[ 7.399090] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 7.426093] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 7.455955] systemd[1]: Listening on Journal Audit Socket.
[ 7.483151] systemd[1]: Listening on Journal Socket (/dev/log).
[ 7.507872] systemd[1]: Listening on Journal Socket.
[ 7.534556] systemd[1]: Listening on udev Control Socket.
[ 7.559174] systemd[1]: Listening on udev Kernel Socket.
[ 7.609554] systemd[1]: Mounting Huge Pages File System...
[ 7.673520] systemd[1]: Mounting POSIX Message Queue File System...
[ 7.765537] systemd[1]: Mounting Kernel Debug File System...
[ 7.794787] systemd[1]: Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
[ 7.874260] systemd[1]: Starting Create List of Static Device Nodes...
[ 7.950301] systemd[1]: Starting Load Kernel Module configfs...
[ 8.034398] systemd[1]: Starting Load Kernel Module drm...
[ 8.122407] systemd[1]: Starting Load Kernel Module efi_pstore...
[ 8.238395] systemd[1]: Starting Load Kernel Module fuse...
[ 8.338475] systemd[1]: Starting File System Check on Root Device...
[ 8.882714] systemd[1]: Starting Journal Service...
[ 8.998563] systemd[1]: Starting Load Kernel Modules...
[ 9.038842] systemd[1]: Repartition Root Disk was skipped because no trigger condition checks were met.
[ 9.158521] systemd[1]: Starting Coldplug All udev Devices...
[ 9.372609] systemd[1]: Mounted Huge Pages File System.
[ 9.411607] systemd[1]: Mounted POSIX Message Queue File System.
[ 9.451045] systemd[1]: Mounted Kernel Debug File System.
[ 9.524865] systemd[1]: Finished Create List of Static Device Nodes.
[ 9.602419] systemd[1]: [email protected]: Deactivated successfully.
[ 9.650067] systemd[1]: Finished Load Kernel Module configfs.
[ 9.712923] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[ 9.755715] systemd[1]: Finished Load Kernel Module efi_pstore.
[ 9.808174] systemd[1]: [email protected]: Deactivated successfully.
[ 9.854009] systemd[1]: Finished Load Kernel Module fuse.
[ 9.898993] systemd[1]: Finished File System Check on Root Device.
[ 9.949429] systemd[1]: FUSE Control File System was skipped because of an unmet condition check (ConditionPathExists=/sys/fs/fuse/connections).
[ 9.978374] systemd[1]: Kernel Configuration File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/config).
[ 10.058135] 8723ds: loading out-of-tree module taints kernel.
[ 10.075817] systemd[1]: Started File System Check Daemon to report status.
[ 31.047076] platform 4025000.spi: deferred probe pending
[ 31.052579] platform 4101000.usb: deferred probe pending
[ 31.057989] platform 4200000.usb: deferred probe pending
[ 31.063386] platform 4101400.usb: deferred probe pending
[ 31.068782] platform 4200400.usb: deferred probe pending
[ 31.130603] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 31.293014] systemd[1]: [email protected]: Deactivated successfully.
[ 31.352843] systemd[1]: Finished Load Kernel Module drm.
[ 31.805085] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: disabled.
[ 31.877010] systemd[1]: Finished Remount Root and Kernel File Systems.
[ 31.910758] systemd[1]: First Boot Wizard was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[ 31.945249] systemd[1]: Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[ 32.058589] systemd[1]: Starting Load/Save Random Seed...
[ 32.170649] systemd[1]: Starting Create System Users...
[ 32.455168] systemd[1]: Started Journal Service.
[ 33.227924] systemd-journald[95]: Received client request to flush runtime journal.
[ 33.764414] aldo: disabling
[ 33.844377] random: crng init done
[ 46.927327] sun8i-mixer 5100000.mixer: Adding to iommu group 0
[ 46.934574] sun8i-mixer 5200000.mixer: Adding to iommu group 0
[ 48.345857] dwmac-sun8i 4500000.ethernet: IRQ eth_wake_irq not found
[ 48.352352] dwmac-sun8i 4500000.ethernet: IRQ eth_lpi not found
[ 48.359427] dwmac-sun8i 4500000.ethernet: PTP uses main clock
[ 48.365364] dwmac-sun8i 4500000.ethernet: Current syscon value is not the default 52001 (expect 0)
[ 48.748491] dwmac-sun8i 4500000.ethernet: No HW DMA feature register supported
[ 48.755934] dwmac-sun8i 4500000.ethernet: RX Checksum Offload Engine supported
[ 48.763292] dwmac-sun8i 4500000.ethernet: COE Type 2
[ 48.768364] dwmac-sun8i 4500000.ethernet: TX Checksum insertion supported
[ 48.775252] dwmac-sun8i 4500000.ethernet: Normal descriptors
[ 48.781011] dwmac-sun8i 4500000.ethernet: Chain mode enabled
[ 49.389004] dwmac-sun8i 4500000.ethernet end0: renamed from eth0
[ 53.808564] Adding 1047548k swap on /dev/mmcblk0p3. Priority:-2 extents:1 across:1047548k SSDscFS
[ 54.561788] EXT4-fs (mmcblk0p1): mounting ext2 file system using the ext4 subsystem
[ 54.621112] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Quota mode: disabled.
[ 54.629612] ext2 filesystem being mounted at /boot supports timestamps until 2038 (0x7fffffff)
[ 66.505168] dwmac-sun8i 4500000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 66.537074] dwmac-sun8i 4500000.ethernet end0: PHY [stmmac-0:01] driver [RTL8201F Fast Ethernet] (irq=POLL)
[ 66.546996] dwmac-sun8i 4500000.ethernet end0: No Safety Features support found
[ 66.554475] dwmac-sun8i 4500000.ethernet end0: No MAC Management Counters available
[ 66.562259] dwmac-sun8i 4500000.ethernet end0: PTP not supported by HW
[ 66.784441] dwmac-sun8i 4500000.ethernet end0: configuring for phy/rmii link mode
[ 69.893861] dwmac-sun8i 4500000.ethernet end0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 69.902541] IPv6: ADDRCONF(NETDEV_CHANGE): end0: link becomes ready

Reboot loop while trying to load the kernel

I flashed the dock version, and I get a reboot loop when it is trying to load the kernel.
The kernel does not boot, but it seems to timeout and then reboot.

U-Boot SPL 2022.10-g528ae9bc-dirty (Feb 08 2023 - 02:58:22 +0000)
sunxi_ram_probe: dram-controller@3102000: probing
DRAM only have internal ZQ!!
ddr_efuse_type: 0x0
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0x0
[AUTO DEBUG] rank 0 row = 15
[AUTO DEBUG] rank 0 bank = 8
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC ZQ value: 0x7b7bfb
DRAM ODT value: 0x42.
ddr_efuse_type: 0x0
DRAM SIZE =512 M
DRAM simple test OK.
mxstatus=0xc0408000 mhcr=0x00000109 mcor=0x00000003 mhint=0x00004000
Trying to boot from MMC1
PLL reg = 0xf8216300, freq = 1200000000
SPL size = 81920, sector = 400
sunxi_ram_get_info: dram-controller@3102000: getting info

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : Sipeed Lichee RV Dock
Platform Features         : medeleg
Platform HART Count       : 1
Platform IPI Device       : ---
Platform Timer Device     : --- @ 0Hz
Platform Console Device   : uart8250
Platform HSM Device       : sun20i-d1-ppu
Platform PMU Device       : 
Platform Reboot Device    : sunxi-wdt-reset
Platform Shutdown Device  : ---
Firmware Base             : 0x40000000
Firmware Size             : 228 KB
Firmware RW Offset        : 0x20000
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00          : 0x0000000040000000-0x000000004001ffff M: (R,X) S/U: ()
Domain0 Region01          : 0x0000000040020000-0x000000004003ffff M: (R,W) S/U: ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address      : 0x0000000042e00000
Domain0 Next Arg1         : 0x0000000042e87cf0
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 0
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcvx
Boot HART ISA Extensions  : time
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 2048
Boot HART PMP Address Bits: 38
Boot HART MHPM Count      : 29
Boot HART MIDELEG         : 0x0000000000020222
Boot HART MEDELEG         : 0x000000000000b109
sunxi_set_gate: (CLK#24) unhandled


U-Boot 2022.10-g528ae9bc-dirty (Feb 08 2023 - 02:58:22 +0000) Allwinner Technology

DRAM:  512 MiB
sunxi_set_gate: (CLK#24) unhandled
Core:  50 devices, 19 uclasses, devicetree: separate
WDT:   Started watchdog@6011000 with servicing every 1000ms (16s timeout)
MMC:   mmc@4020000: 0, mmc@4021000: 1
Loading Environment from FAT... PLL reg = 0xf8216300, freq = 1200000000
Unable to use mmc 0:1...
In:    serial@2500000
Out:   serial@2500000
Err:   serial@2500000
Net:   No ethernet found.
starting USB...
Bus usb@4101000: USB EHCI 1.00
Bus usb@4101400: USB OHCI 1.0
Bus usb@4200000: USB EHCI 1.00
Bus usb@4200400: USB OHCI 1.0
scanning bus usb@4101000 for devices... 1 USB Device(s) found
scanning bus usb@4101400 for devices... 1 USB Device(s) found
scanning bus usb@4200000 for devices... Interface 0 has too many endpoints!
6 USB Device(s) found
scanning bus usb@4200400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
PLL reg = 0xf8216300, freq = 1200000000
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
530 bytes read in 2 ms (258.8 KiB/s)
## Executing script at 41900000
Loading kernel from mmc 0:1 to address 0x41000000
mmc@4020000: 0 (SD)
mmc@4021000: 1
Device: mmc@4020000
Manufacturer ID: 3
OEM: 5344
Name: ACLCD 
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
PLL reg = 0xf8216300, freq = 1200000000
Device: mmc@4020000
Manufacturer ID: 3
OEM: 5344
Name: ACLCD 
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

Partition Map for MMC device 0  --   Partition Type: EFI

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
  1	0x00014000	0x00095fff	"boot"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	3037ea22-9315-49d3-bdf6-ce432ba7b6c8
  2	0x00096000	0x00c41fff	"root"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	03b746e1-0479-450c-833a-90c14c34bb23
  3	0x00c42000	0x00e417ff	"swap"
	attrs:	0x0000000000000000
	type:	0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
	guid:	c8211123-96a1-40da-b0c7-c62a5b3ab89c

Partition Map for MMC device 0  --   Partition Type: EFI

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
  1	0x00014000	0x00095fff	"boot"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	3037ea22-9315-49d3-bdf6-ce432ba7b6c8
  2	0x00096000	0x00c41fff	"root"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	03b746e1-0479-450c-833a-90c14c34bb23
  3	0x00c42000	0x00e417ff	"swap"
	attrs:	0x0000000000000000
	type:	0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
	guid:	c8211123-96a1-40da-b0c7-c62a5b3ab89c
5729854 bytes read in 954 ms (5.7 MiB/s)
Booting kernel with bootargs as earlycon=sbi console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootwait cma=96M; and fdtcontroladdr is 5fd42280
   Uncompressing Kernel Image
Moving Image from 0x41000000 to 0x40200000, end=41536000
## Flattened Device Tree blob at 5fd42280
   Booting using the fdt blob at 0x5fd42280
Working FDT set to 5fd42280
   Loading Device Tree to 0000000042df2000, end 0000000042dffb2f ... OK
Working FDT set to 42df2000

Starting kernel ...


U-Boot SPL 2022.10-g528ae9bc-dirty (Feb 08 2023 - 02:58:22 +0000)
sunxi_ram_probe: dram-controller@3102000: probing
DRAM only have internal ZQ!!
ddr_efuse_type: 0x0
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0x0
[AUTO DEBUG] rank 0 row = 15
[AUTO DEBUG] rank 0 bank = 8
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC ZQ value: 0x7b7bfb
DRAM ODT value: 0x42.
ddr_efuse_type: 0x0
DRAM SIZE =512 M
DRAM simple test OK.
mxstatus=0xc0408000 mhcr=0x00000109 mcor=0x00000003 mhint=0x00004000
Trying to boot from MMC1
PLL reg = 0xf8216300, freq = 1200000000
SPL size = 81920, sector = 400
sunxi_ram_get_info: dram-controller@3102000: getting info

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : Sipeed Lichee RV Dock
Platform Features         : medeleg
Platform HART Count       : 1
Platform IPI Device       : ---
Platform Timer Device     : --- @ 0Hz
Platform Console Device   : uart8250
Platform HSM Device       : sun20i-d1-ppu
Platform PMU Device       : 
Platform Reboot Device    : sunxi-wdt-reset
Platform Shutdown Device  : ---
Firmware Base             : 0x40000000
Firmware Size             : 228 KB
Firmware RW Offset        : 0x20000
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00          : 0x0000000040000000-0x000000004001ffff M: (R,X) S/U: ()
Domain0 Region01          : 0x0000000040020000-0x000000004003ffff M: (R,W) S/U: ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address      : 0x0000000042e00000
Domain0 Next Arg1         : 0x0000000042e87cf0
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 0
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcvx
Boot HART ISA Extensions  : time
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 2048
Boot HART PMP Address Bits: 38
Boot HART MHPM Count      : 29
Boot HART MIDELEG         : 0x0000000000020222
Boot HART MEDELEG         : 0x000000000000b109
sunxi_set_gate: (CLK#24) unhandled


U-Boot 2022.10-g528ae9bc-dirty (Feb 08 2023 - 02:58:22 +0000) Allwinner Technology

DRAM:  512 MiB
sunxi_set_gate: (CLK#24) unhandled
Core:  50 devices, 19 uclasses, devicetree: separate
WDT:   Started watchdog@6011000 with servicing every 1000ms (16s timeout)
MMC:   mmc@4020000: 0, mmc@4021000: 1
Loading Environment from FAT... PLL reg = 0xf8216300, freq = 1200000000
Unable to use mmc 0:1...
In:    serial@2500000
Out:   serial@2500000
Err:   serial@2500000
Net:   No ethernet found.
starting USB...
Bus usb@4101000: USB EHCI 1.00
Bus usb@4101400: USB OHCI 1.0
Bus usb@4200000: USB EHCI 1.00
Bus usb@4200400: USB OHCI 1.0
scanning bus usb@4101000 for devices... 1 USB Device(s) found
scanning bus usb@4101400 for devices... 1 USB Device(s) found
scanning bus usb@4200000 for devices... Interface 0 has too many endpoints!
6 USB Device(s) found
scanning bus usb@4200400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
PLL reg = 0xf8216300, freq = 1200000000
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
530 bytes read in 2 ms (258.8 KiB/s)
## Executing script at 41900000
Loading kernel from mmc 0:1 to address 0x41000000
mmc@4020000: 0 (SD)
mmc@4021000: 1
Device: mmc@4020000
Manufacturer ID: 3
OEM: 5344
Name: ACLCD 
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
PLL reg = 0xf8216300, freq = 1200000000
Device: mmc@4020000
Manufacturer ID: 3
OEM: 5344
Name: ACLCD 
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

Partition Map for MMC device 0  --   Partition Type: EFI

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
  1	0x00014000	0x00095fff	"boot"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	3037ea22-9315-49d3-bdf6-ce432ba7b6c8
  2	0x00096000	0x00c41fff	"root"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	03b746e1-0479-450c-833a-90c14c34bb23
  3	0x00c42000	0x00e417ff	"swap"
	attrs:	0x0000000000000000
	type:	0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
	guid:	c8211123-96a1-40da-b0c7-c62a5b3ab89c

Partition Map for MMC device 0  --   Partition Type: EFI

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
  1	0x00014000	0x00095fff	"boot"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	3037ea22-9315-49d3-bdf6-ce432ba7b6c8
  2	0x00096000	0x00c41fff	"root"
	attrs:	0x0000000000000000
	type:	0fc63daf-8483-4772-8e79-3d69d8477de4
	guid:	03b746e1-0479-450c-833a-90c14c34bb23
  3	0x00c42000	0x00e417ff	"swap"
	attrs:	0x0000000000000000
	type:	0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
	guid:	c8211123-96a1-40da-b0c7-c62a5b3ab89c
5729854 bytes read in 953 ms (5.7 MiB/s)
Booting kernel with bootargs as earlycon=sbi console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootwait cma=96M; and fdtcontroladdr is 5fd42280
   Uncompressing Kernel Image
Moving Image from 0x41000000 to 0x40200000, end=41536000
## Flattened Device Tree blob at 5fd42280
   Booting using the fdt blob at 0x5fd42280
Working FDT set to 5fd42280
   Loading Device Tree to 0000000042df2000, end 0000000042dffb2f ... OK
Working FDT set to 42df2000

Starting kernel ...
[...]

and so on....

Build hangs on openSBI compile

Hi!

While attempting a build on an aarch64 machine with Ubuntu and using Docker, it seems I hang on an OpenSBI compile that doesn't seem to finish.

image

I'll see if I can do some digging on why this fails.

Disk Creation Help Needed

I Think the following steps are needed.

  • add memory config to the dts
  • Cross Compile Kernel
  • Cross Compile SPL and U-Boot
  • build with hardcoded cmdline ?
  • Create SD Card Image with two partitions, boot and root
  • copy Kernel to SD card image
  • copy the modules to your SD Card Image
  • copy rootfs to SD Card Image
  • Test and Debug

Error: Unable to handle kernel paging request at virtual address ffffffffffffffff after boot...

This error appeared sometime yesterday morning. Occurs just before the login prompt, and reading around (there's not much) it seems to occur sometimes when the dtb is incorrect. I use the following:

[opensbi]
file = fw_dynamic.bin
addr = 0x40000000
[dtb]
file = u-boot/arch/riscv/dts/sun20i-d1-lichee-rv-dock.dtb
addr = 0x44000000
[u-boot]
file = u-boot/u-boot-nodtb.bin
addr = 0x4a000000

Here is the boot log snipped:

`[ 3.958377] systemd[1]: Detected architecture riscv64.

Welcome to Debian GNU/Linux bookworm/sid!

[ 4.071863] Unable to handle kernel paging request at virtual address ffffffffffffffff
[ 4.079988] Oops [#1]
[ 4.082275] Modules linked in:
[ 4.085336] CPU: 0 PID: 1 Comm: systemd Not tainted 5.18.0-rc4-gf4bce410a6b4-dirty #1
[ 4.093165] Hardware name: Sipeed Lichee RV Dock (DT)
[ 4.098212] epc : strscpy+0x2a/0xfa
[ 4.101718] ra : strscpy_pad+0x12/0x3a
[ 4.105562] epc : ffffffff802ee22c ra : ffffffff802821e4 sp : ffffffc80400bbb0
[ 4.112783] gp : ffffffff813914a0 tp : ffffffd801740000 t0 : 00000000000001f8
[ 4.120002] t1 : ffffffc80400bbd0 t2 : 0000000000000000 s0 : ffffffd80302a070
[ 4.127221] s1 : 0000000000000040 a0 : 0000000000000000 a1 : ffffffffffffffff
[ 4.134440] a2 : 0000000000000040 a3 : ffffffff80d82f12 a4 : 0000000000000000
[ 4.141651] a5 : ffffffffffffffff a6 : ffffffffffffffff a7 : ffffffd802304f10
[ 4.148861] s2 : ffffffc80400bbd0 s3 : 0000000000000000 s4 : 0000000000000000
[ 4.156080] s5 : 0000000000000053 s6 : 0000000000000001 s7 : 0000000000000000
[ 4.163298] s8 : 0000000000000000 s9 : 0000000000000002 s10: 0000000000000000
[ 4.170517] s11: 0000000000000001 t3 : 0000003f9f80b580 t4 : 0000000000000016
[ 4.177736] t5 : 0000000000000061 t6 : ffffffd802ef2004
[ 4.183046] status: 0000000200000120 badaddr: ffffffffffffffff cause: 000000000000000d
[ 4.190960] [] strscpy+0x2a/0xfa
[ 4.195760] [] proc_task_name+0x2a/0x90
[ 4.201171] [] seq_put_decimal_ull_width+0x8e/0xdc
[ 4.207531] [] thread_group_cputime_adjusted+0x24/0x34
[ 4.214241] [] do_task_stat+0x2c0/0x8c8
[ 4.219649] [] kvmalloc_node+0x12/0xa8
[ 4.224979] [] proc_single_show+0x3e/0x88
[ 4.230555] [] seq_read_iter+0x130/0x2fa
[ 4.236049] [] seq_read+0x80/0x9e
[ 4.240934] [] vfs_read+0x5a/0x106
[ 4.245915] [] ksys_read+0x38/0x98
[ 4.250888] [] ksys_read+0x94/0x98
[ 4.255861] [] check_syscall_nr+0x1e/0x22
[ 4.261597] ---[ end trace 0000000000000000 ]---
[ 4.266275] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 4.273938] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---
`

fail to boot from pre-built image

Hi,
I am sorry if I am missing something here.
I downloaded the pre-built image and use sudo dd if=lichee_rv_dock_gcc_10.2.1_kernel_d1-wip-v5.18-rc1.img of=/dev/sdb bs=4M to flash the image into sd card. But when I try to boot the image from lichee dock, I got:

=> ▒[127]HELLO! BOOT0 is starting!
[130]BOOT0 commit : 882671f
[132]set pll start
[134]periph0 has been enabled
[137]set pll end
[139]board init ok
[141]DRAM only have internal ZQ!!
[144]get_pmu_exist() = -1
[146]ddr_efuse_type: 0x0
[149][AUTO DEBUG] single rank and full DQ!
[153]ddr_efuse_type: 0x0
[156][AUTO DEBUG] rank 0 row = 15
[159][AUTO DEBUG] rank 0 bank = 8
[162][AUTO DEBUG] rank 0 page size = 2 KB
[166]DRAM BOOT DRIVE INFO: V0.24
[169]DRAM CLK = 792 MHz
[171]DRAM Type = 3 (2:DDR2,3:DDR3)
[175]DRAMC ZQ value: 0x7b7bfb
[177]DRAM ODT value: 0x42.
[180]ddr_efuse_type: 0x0
[183]DRAM SIZE =512 M
[186]DRAM simple test OK.
[189]dram size =512
[191]card no is 0
[192]sdcard 0 line count 4
[195][mmc]: mmc driver ver 2021-04-2 16:45
[204][mmc]: Wrong media type 0x0
[207][mmc]: ***Try SD card 0***
[216][mmc]: HSSDR52/SDR25 4 bit
[218][mmc]: 50000000 Hz
[221][mmc]: 119152 MB
[223][mmc]: ***SD/MMC 0 init OK!!!***
[258]Loading boot-pkg Succeed(index=1).
[261]Entry_name        = opensbi
[264]Entry_name        = dtb
[267]Entry_name        = u-boot
[270]Adding DRAM info to DTB.
[276]Jump to second Boot.

OpenSBI v1.1
[...]
Platform Name             : Sipeed Lichee RV Dock
Platform Features         : medeleg
Platform HART Count       : 1
Platform IPI Device       : ---
Platform Timer Device     : --- @ 0Hz
Platform Console Device   : uart8250
Platform HSM Device       : sun20i-d1-ppu
Platform Reboot Device    : sunxi-wdt-reset
Platform Shutdown Device  : ---
Firmware Base             : 0x40000000
Firmware Size             : 240 KB
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00          : 0x0000000040000000-0x000000004003ffff ()
Domain0 Region01          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x000000004a000000
Domain0 Next Arg1         : 0x0000000044000000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 0
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcvx
Boot HART ISA Extensions  : time
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 2048
Boot HART PMP Address Bits: 38
Boot HART MHPM Count      : 0
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2022.07-rc3-gafc07cec-dirty (Jul 21 2022 - 05:36:22 +0000)

DRAM:  512 MiB
sunxi_set_gate: (CLK#24) unhandled
Core:  51 devices, 21 uclasses, devicetree: board
WDT:   Started watchdog@6011000 with servicing (16s timeout)
MMC:   mmc@4020000: 0, mmc@4021000: 1
Loading Environment from nowhere... OK
In:    serial@2500000
Out:   serial@2500000
Err:   serial@2500000
Net:   No ethernet found.
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
716176 bytes read in 128 ms (5.3 MiB/s)
## Executing script at 41900000
No FIT subimage unit name
SCRIPT FAILED: continuing...
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
starting USB...
Bus usb@4101000: USB EHCI 1.00
Bus usb@4101400: USB OHCI 1.0
Bus usb@4200000: USB EHCI 1.00
Bus usb@4200400: USB OHCI 1.0
scanning bus usb@4101000 for devices... 1 USB Device(s) found
scanning bus usb@4101400 for devices... 1 USB Device(s) found
scanning bus usb@4200000 for devices... 2 USB Device(s) found
scanning bus usb@4200400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
No ethernet found.
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
Retrieving file: pxelinux.cfg/000000
No ethernet found.
Retrieving file: pxelinux.cfg/00000
No ethernet found.
Retrieving file: pxelinux.cfg/0000
No ethernet found.
Retrieving file: pxelinux.cfg/000
No ethernet found.
Retrieving file: pxelinux.cfg/00
No ethernet found.
Retrieving file: pxelinux.cfg/0
No ethernet found.
Retrieving file: pxelinux.cfg/default-riscv-sunxi-sunxi
No ethernet found.
Retrieving file: pxelinux.cfg/default-riscv-sunxi
No ethernet found.
Retrieving file: pxelinux.cfg/default-riscv
No ethernet found.
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.

I think the sunxi's dtb file existed in the image, right?
Any help is very appreciated!

"The username is rv, with password lichee"

Hello,

There is no user "rv" in neither /etc/passwd, nor /etc/shadow, and /home/rv is simply owned by 'root'.

"The root password is licheerv" works fine however.

Thanks!

Build error (SYS_LOAD_ADDR)

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

Error in reading or end of file.

Error in reading or end of file.

Error in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)
Address in memory to use by default (SYS_LOAD_ADDR) [] (NEW)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.