sipeed / LicheeRV-Nano-Build

LicheeRV-Nano-Build
92 stars 32 forks source link

How to ssh into LicheeRV-Nano WE at the FIRST run? #16

Open jiapei100 opened 5 months ago

jiapei100 commented 5 months ago

Sorry for my naive question:

My host computer:

➜  ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:   jammy
➜  ~ uname -a
Linux lvision-GT72-6QE 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 10:22:43 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I just flashed LicheeRV-Nano-Build c906-2024-04-10-14-19-16d76b.img.gz onto my LicheeRV-Nano WE.

But, I've got no idea how to ssh into the system without an initial WIRED connection to set up the static IP and have ssh server enabled? Wondering if only USB connection, can I set up my WiFi configuration under /etc/default/networks ? By the way, I didn't even see a user folder /home under rootfs. Even if I want to ssh into LicheeRV-Nano, I still ALWAYS need a username, isn't it?

Any manual/doc for this?

Cheers Pei

0x754C commented 5 months ago

user: root pass: root

PJ5168 commented 5 months ago

Use USB, and then setup WiFi.

BehicKlncky commented 2 weeks ago

After connecting your device to the computer via a USB-C cable, open a terminal and run the ifconfig command. You should see an interface like "enx3a1b63ef6245:". The IP address associated with this interface will likely be something like 10.34.14.100, which is your PC's IP address.

To establish an SSH connection with the gateway (the board), use the following command: ssh root@10.34.14.1.

The default username and password are both root.