LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   slarm64 (https://www.linuxquestions.org/questions/slarm64-132/)
-   -   Lichee Rv Dock D1 (slarm64, riscv64) (https://www.linuxquestions.org/questions/slarm64-132/lichee-rv-dock-d1-slarm64-riscv64-4175714150/)

sndwvs 07-02-2022 04:40 PM

Lichee Rv Dock D1 (slarm64, riscv64)
 
1 Attachment(s)
information board:

https://www.sipeed.com
Specifications
wiki
buy
allwinner wiki
slarm64.org
image_build_kit slarm64 (Slackware riscv64 unofficial port)

Specifications:
  • SoC – Allwinner D1 single-core XuanTie C906 64-bit RISC-V processor @ 1.0 GHz with HiFi4 DSP, G2D 2D graphics accelerators
  • Memory – 512MB DDR3 memory @ 792 MHz
    Reserved a SOP8 pad, and the connection protocol is the SPI;
    Consult for the customer service staff for more information
  • Storage – MicroSD card slot
  • Display port - Onboard HDMI output interface;
    RGB and MIPI screen interface connect to 2x20 Pins Header and
    (We provide this screen converter board t)
  • Network - ONboard 2.4G WIFI+BT module, 2.4G Patch antenna and IPEX connector
  • USB - Onboard USB type-A host
  • Audio - On-board speaker driver circuit (supports 4Ω 3W speakers) and speaker; connector
    On-board electret microphone circuit
  • Extra connector - Onborad 30P FPC connector,supports our Mic Array R6 microphone array
  • GPIO connector - Reserved 2x20P 2.54mm pads(Default welding pin headers)
  • LED - An onboard WS2812 RGB LED
    An onboard power LED
  • KEY - An onboard reset key
    An user's key
  • Power Supply – 5V/0.5A via USB-C port
  • Dimensions – 43.2 x 25mm

sndwvs 07-05-2022 01:17 PM

kernel 5.19-rc4
installation README.TXT

output to HDMI does not work, only via UART

slarm64-current-riscv64-server-lichee_rv_dock-5.19.0-rc4-build-20220705.img.zst
slarm64-current-riscv64-server-lichee_rv_dock-5.19.0-rc4-build-20220705.img.zst.sha256

sndwvs 11-04-2022 03:21 PM

installation README.TXT
kernel 6.1.0-rc3

slarm64-current-riscv64-server-lichee_rv_dock-6.1.0-rc3-build-20221104.img.zst
slarm64-current-riscv64-server-lichee_rv_dock-6.1.0-rc3-build-20221104.img.zst.sha256
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.0-rc3-build-20221104.img.zst
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.0-rc3-build-20221104.img.zst.sha256

ikruusa 01-14-2023 02:39 PM

Thanks for providing those images but unfortunately at least server-lichee_rv_dock fails to boot properly (kernel panic log below).
Also, from the full log it appears that boot0 is used as SPL. boot0 can be fully omitted when using latest OpenSBI v1.2 (upgrade from OpenSBI v1.0-104-ge6793dc).
Good reference about latest versions and image layout can be found from buildroot (I'm not allowed to post full urls)
- buildroot/tree/configs/sipeed_lichee_rv_dock_defconfig
- buildroot/tree/board/sipeed/lichee_rv_dock/genimage.cfg

Best regards,
Indrek


Starting kernel ...

[ 0.000000] INITRD: 0x4977b000+0x00885000 is not a memory region - disabling initrd
[ 0.000000] Unable to handle kernel paging request at virtual address ffffffd80186daf0
[ 0.000000] Oops [#1]
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 6.1.0-rc3 #1
[ 0.000000] Hardware name: Sipeed Lichee RV Dock (DT)
[ 0.000000] epc : vmalloc_fault.constprop.0+0x64/0x168
[ 0.000000] ra : do_page_fault+0x60/0x39e
[ 0.000000] epc : ffffffff80008d1e ra : ffffffff80008e82 sp : ffffffff81603d10
[ 0.000000] gp : ffffffff8185e8b8 tp : ffffffff8160aac0 t0 : ffffffff80008e22
[ 0.000000] t1 : ffffffff80e002c0 t2 : ffffffff80e00340 s0 : ffffffff81603d30
[ 0.000000] s1 : ffffffd7bfe00001 a0 : ffffffff8185e108 a1 : ffffffff811cab70
[ 0.000000] a2 : ffffffff8186daf0 a3 : 0000000000000000 a4 : 0000000000000af0
[ 0.000000] a5 : ffffffd80186daf0 a6 : 0000000000000000 a7 : 0000000000000018
[ 0.000000] s2 : ffffffff81603db0 s3 : 000000000000000d s4 : 0000000000000000
[ 0.000000] s5 : ffffffff8160aac0 s6 : 0000000000000000 s7 : 0000000000000000
[ 0.000000] s8 : 000000005ff710b0 s9 : 0000000000000000 s10: 0000000000000000
[ 0.000000] s11: 0000000000000000 t3 : 7000000000000000 t4 : ffffffff80c117a0
[ 0.000000] t5 : ffffffff80c117a0 t6 : ffffffff80c117d0
[ 0.000000] status: 0000000200000100 badaddr: ffffffd80186daf0 cause: 000000000000000f
[ 0.000000] [<ffffffff80008e82>] do_page_fault+0x60/0x39e
[ 0.000000] [<ffffffff800037c8>] ret_from_exception+0x0/0xc
[ 0.000000] ---[ end trace 0000000000000000 ]---
[ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

sndwvs 02-04-2023 06:14 PM

you can try to change to a more detailed conclusion in /boot/uEnv.txt verbosity=4 -> verbosity=8

sndwvs 02-19-2023 03:26 AM

installation README.TXT
kernel 6.1.12

slarm64-current-riscv64-core-lichee_rv_dock-6.1.12-build-20230219.img.zst
slarm64-current-riscv64-core-lichee_rv_dock-6.1.12-build-20230219.img.zst.sha256
slarm64-current-riscv64-server-lichee_rv_dock-6.1.12-build-20230219.img.zst
slarm64-current-riscv64-server-lichee_rv_dock-6.1.12-build-20230219.img.zst.sha256
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.12-build-20230219.img.zst
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.12-build-20230219.img.zst.sha256

ikruusa 02-21-2023 01:17 PM

Hi! Thanks for the new version!
I tried to boot slarm64-current-riscv64-core-lichee_rv_dock-6.1.12-build-20230219.img.zst on my Lichee RV dock and it ends with the kernel panic.
I grabbed some lines from serial console output, with comments:

[27]HELLO! BOOT0 is starting! <----------------- boot0 is obsolete for newer u-boot, you can easily just drop it
[30]BOOT0 commit : d21a737
...
OpenSBI v1.0-265-gc8ea836 <---------------- upgrade from version v1.0 to v1.2
...
U-Boot 2022.01-sun20iw1p1 (Feb 19 2023 - 05:45:24 +0200) <--------- upgrade from 2022.01 to 2022.10
...
Starting kernel ...

[ 0.000000] INITRD: 0x49a0b000+0x005f5000 is not a memory region - disabling initrd <-------- could it be that its beyond the 512MB RAM limit?
[ 0.000000] Unable to handle kernel paging request at virtual address ffffffd801874af0
[ 0.000000] Oops [#1]
...

You could share your boot log if you have one.

Another image I'm working with boots correctly with newer u-boot/opensbi (not related to the slarm64):
U-Boot SPL 2022.10 (Feb 20 2023 - 14:30:14 +0200)
...
OpenSBI v1.2
...
U-Boot 2022.10 (Feb 20 2023 - 14:30:14 +0200) Allwinner Technology
...


Best regards,
Indrek

sndwvs 02-21-2023 02:26 PM

Hi ikruusa,

I don't have Lichee Rv Dock D1, only Nezha


u-boot memory settings:
Code:

/ {
        // FIXME: this is temporary.
        memory {
                device_type = "memory";
                //reg = <0x40000000 0x80000000>; /* 2 GB */
                //reg = <0x40000000 0x40000000>; /* 1 GB */
                reg = <0x40000000 0x20000000>; /* 512 MB */
        };
};

in the first log with U-Boot 2022.01-sun20iw1p1, the loading goes to the kernel and breaks there, it seems due to the fact that the memory size is not strictly specified in dts.

for test in file /boot/uEnv.txt replace
fdtfile=allwinner/sun20i-d1-lichee-rv-dock.dtb
with
fdtfile=allwinner/sun20i-d1-nezha-512m.dtb

ikruusa 02-22-2023 01:43 PM

Yes, with fdtfile=allwinner/sun20i-d1-nezha-512m.dtb Lichee RV dock boots and I can log in (tested with core image).

sndwvs 02-22-2023 02:28 PM

Quote:

Originally Posted by ikruusa (Post 6413071)
Yes, with fdtfile=allwinner/sun20i-d1-nezha-512m.dtb Lichee RV dock boots and I can log in (tested with core image).

I made an addition and will post new images

sndwvs 02-23-2023 11:59 AM

installation README.TXT
kernel 6.1.13

slarm64-current-riscv64-core-lichee_rv_dock-6.1.13-build-20230223.img.zst
slarm64-current-riscv64-core-lichee_rv_dock-6.1.13-build-20230223.img.zst.sha256
slarm64-current-riscv64-server-lichee_rv_dock-6.1.13-build-20230223.img.zst
slarm64-current-riscv64-server-lichee_rv_dock-6.1.13-build-20230223.img.zst.sha256
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.13-build-20230223.img.zst
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.13-build-20230223.img.zst.sha256

ikruusa 02-23-2023 02:39 PM

This time I run slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.13-build-20230223.img.zst and it boots without the problem on Lichee RV dock. Although it takes ca. 4 minutes to boot into graphical env, so its a bit overkill for this board. But it works. Thanks!

sndwvs 06-10-2023 02:50 PM

nstallation README.TXT
kernel 6.1.33

slarm64-current-riscv64-core-lichee_rv_dock-6.1.33-build-20230610.img.zst
slarm64-current-riscv64-core-lichee_rv_dock-6.1.33-build-20230610.img.zst.sha256
slarm64-current-riscv64-server-lichee_rv_dock-6.1.33-build-20230610.img.zst
slarm64-current-riscv64-server-lichee_rv_dock-6.1.33-build-20230610.img.zst.sha256
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.33-build-20230610.img.zst
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.33-build-20230610.img.zst.sha256

sndwvs 09-18-2023 12:54 PM

nstallation README.TXT
kernel 6.1.53

slarm64-current-riscv64-core-lichee_rv_dock-6.1.53-build-20230918.img.zst
slarm64-current-riscv64-core-lichee_rv_dock-6.1.53-build-20230918.img.zst.sha256
slarm64-current-riscv64-server-lichee_rv_dock-6.1.53-build-20230918.img.zst
slarm64-current-riscv64-server-lichee_rv_dock-6.1.53-build-20230918.img.zst.sha256
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.53-build-20230918.img.zst
slarm64-current-riscv64-xfce-lichee_rv_dock-6.1.53-build-20230918.img.zst.sha256

sndwvs 03-15-2024 03:10 PM

installation README.TXT
kernel 6.1.81

irradium-3.7-riscv64-core-lichee_rv_dock-6.1.81-build-20240315.img.zst
irradium-3.7-riscv64-core-lichee_rv_dock-6.1.81-build-20240315.img.zst.sha256
irradium-3.7-riscv64-xfce-lichee_rv_dock-6.1.81-build-20240315.img.zst
irradium-3.7-riscv64-xfce-lichee_rv_dock-6.1.81-build-20240315.img.zst.sha256


All times are GMT -5. The time now is 07:29 PM.