LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 07-02-2022, 04:40 PM   #1
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Rep: Reputation: Disabled
Lichee Rv Dock D1 (slarm64, riscv64)


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
Attached Thumbnails
Click image for larger version

Name:	Sipeed-Lichee-RV-Dock.jpg
Views:	9
Size:	80.2 KB
ID:	39205  

Last edited by sndwvs; 07-02-2022 at 04:43 PM.
 
Old 07-05-2022, 01:17 PM   #2
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-14-2023, 02:39 PM   #4
ikruusa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Rep: Reputation: 0
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! ]---
 
Old 02-04-2023, 06:14 PM   #5
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Original Poster
Rep: Reputation: Disabled
you can try to change to a more detailed conclusion in /boot/uEnv.txt verbosity=4 -> verbosity=8
 
Old 02-21-2023, 01:17 PM   #7
ikruusa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Rep: Reputation: 0
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
 
Old 02-21-2023, 02:26 PM   #8
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-22-2023, 01:43 PM   #9
ikruusa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Rep: Reputation: 0
Yes, with fdtfile=allwinner/sun20i-d1-nezha-512m.dtb Lichee RV dock boots and I can log in (tested with core image).
 
Old 02-22-2023, 02:28 PM   #10
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,907

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ikruusa View Post
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
 
Old 02-23-2023, 02:39 PM   #12
ikruusa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Rep: Reputation: 0
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!
 
  


Reply

Tags
allwinner, d1, riscv64, slarm64


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nezha D1 (slarm64, riscv64) sndwvs slarm64 13 03-15-2024 03:12 PM
slarm64 (aarch64 / riscv64 unofficial slackware linux port) sndwvs Linux - Distributions 14 12-15-2021 01:45 PM
cairo-dock, gnome-dock, kiba-dock?? LinuxNewbie999 *BSD 0 04-03-2008 09:16 AM
Is there a good Linux equivalent to Yz Dock/Stardock/The OSX dock? EOHooligan Linux - General 1 09-19-2005 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration