Page 1 of 2

Network login

Posted: 2024-01-15 22:07
by cgulick
Would you update your instructions to reflect WIN11 as OS. Currently
USB and Ethernet are not functional. Only UART login is possible.
What is user name and password that work.

Re: Network login

Posted: 2024-01-16 2:13
by Luckfox Taylor
Certainly, you can also use ADB (Android Debug Bridge) for login. To install ADB on the Mac terminal, you'll need to use Homebrew, a commonly used package manager.Regarding login names and login passwords, please refer to https://wiki.luckfox.com/Luckfox-Pico/SSH-Telnet-Login/.

Re: Network login

Posted: 2024-01-16 15:18
by cgulick
USB login example not working. Ping no problem via usb. Using putty I get Connection refused.
C:\Users\Chris>ping 172.32.0.100

Pinging 172.32.0.100 with 32 bytes of data:
Reply from 172.32.0.100: bytes=32 time<1ms TTL=128
Reply from 172.32.0.100: bytes=32 time=1ms TTL=128
Reply from 172.32.0.100: bytes=32 time=1ms TTL=128
Reply from 172.32.0.100: bytes=32 time=1ms TTL=128

Ping statistics for 172.32.0.100:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

Re: Network login

Posted: 2024-01-16 20:59
by cgulick
I got the ethernet and login issues resolved. My pico minib is now on the network and is detecting my i2c interface as well. very cool.

[ 253.842454] rk_gmac-dwmac ffa80000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

# i2cdetect -a -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: 10 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
#

Re: Network login

Posted: 2024-01-18 1:30
by Luckfox Taylor
cgulick wrote: ↑2024-01-16 15:18 USB login example not working. Ping no problem via usb. Using putty I get Connection refused.
C:\Users\Chris>ping 172.32.0.100

Pinging 172.32.0.100 with 32 bytes of data:
Reply from 172.32.0.100: bytes=32 time<1ms TTL=128
Reply from 172.32.0.100: bytes=32 time=1ms TTL=128
Reply from 172.32.0.100: bytes=32 time=1ms TTL=128
Reply from 172.32.0.100: bytes=32 time=1ms TTL=128

Ping statistics for 172.32.0.100:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
Please note the default static IP address of the development board.
static.png

Re: Network login

Posted: 2024-01-20 14:49
by Asmodyne
cgulick wrote: ↑2024-01-16 20:59 I got the ethernet and login issues resolved. My pico minib is now on the network and is detecting my i2c interface as well. very cool.
Through the USB connection, on 172.32.0.93 ? How did you do it ?

Moreover, "172.32.0.100" should be your local machine's IP on the ADB virtual bridge, not the LuckFox Pico's . :shock:
I didn't see any ssh nor sshd in /etc/init.d , or in busybox's listing...

Code: Select all

PS G:\sources\LuckFox\tools\platform-tools> .\adb.exe devices
List of devices attached
b8e84e6881417032        device
172.32.0.93:5555        device

PS G:\sources\LuckFox\tools\platform-tools> .\adb.exe -s 172.32.0.93:5555 shell
# ls
media          linuxrc        usr            opt            dev
lib64          root           var            oem            bin
lib32          sbin           sys            mnt
rockchip_test  proc           tmp            lib
userdata       data           run            etc
# ls /etc/init.d
S99_auto_reboot  S21appinit       S50usbdevice
S20urandom       S10udev          rcS
S20linkmount     S99usb0config    rcK
as for busybox :

Code: Select all

# busybox --list
[
[[
arp
arping
ash
awk
basename
blkid
cat
chattr
chgrp
chmod
chown
chroot
chrt
chvt
cksum
clear
cp
cut
date
dd
deallocvt
devmem
df
dirname
dmesg
dnsd
dnsdomainname
du
echo
env
ether-wake
expr
factor
fallocate
false
find
flock
free
fsck
fsfreeze
fstrim
fuser
getty
grep
halt
head
hexdump
hostname
hwclock
i2cdetect
i2cdump
i2cget
i2cset
id
ifconfig
ifdown
ifup
inetd
init
insmod
ipcrm
ipcs
kill
killall
killall5
less
linuxrc
ln
login
logname
ls
lsattr
lsmod
lsof
md5sum
mdev
mkdir
mkfifo
mknod
mktemp
mount
mountpoint
mt
mv
nc
netstat
nice
nohup
nproc
passwd
ping
pipe_progress
pivot_root
poweroff
printenv
ps
pwd
rdate
readlink
realpath
reboot
renice
rm
rmmod
route
run-parts
runlevel
rx
sed
seq
setkeycodes
setlogcons
setpriv
setserial
setsid
sh
shred
sleep
sort
ssl_client
start-stop-daemon
strings
stty
svc
swapoff
swapon
switch_root
sync
sysctl
tail
tar
taskset
tee
telnetd
test
tftp
timeout
top
touch
tr
true
truncate
tty
udhcpc
uevent
umount
uname
uniq
unlink
uptime
usleep
uudecode
uuencode
vconfig
vi
w
watch
watchdog
wc
which
who
whoami
xargs
yes
#

edit : There's a typo in the LuckFox Pico wiki, in the MobaXterm screen capture : the address read "172.0.32.93" instead of "172.32.0.93" .
there -> https://wiki.luckfox.com/assets/images/ ... 790e10.png

Re: Network login

Posted: 2024-01-22 9:00
by Luckfox Taylor
Thank you for pointing out the shortcomings in the Wiki.
SSH路径.png

Re: Network login

Posted: 2024-01-22 15:24
by Asmodyne
@Taylor, are you sure this is for the the Pico Mini-B ? 😥
I'm trying to establish a ssh connection on a Mini-B without an SDcard mounted (thus, no ubuntu).
Should I flash a more up-to-date image on the NAND ? Because I ended up doing it with the contents of the "luckfox_pico_mini_b_image-20240119T155206Z-001.zip" archive, using SocToolKit.exe.

Here's what a quick exploration of the device through ADB gives me :

Code: Select all

PS G:\sources\LuckFox\tools\platform-tools> .\adb.exe devices
List of devices attached
c800c8d03cffebb8        device

PS G:\sources\LuckFox\tools\platform-tools> .\adb.exe -s c800c8d03cffebb8 shell
# uname -a
Linux Rockchip 5.10.110 #2 Wed Nov 8 09:51:03 CST 2023 armv7l GNU/Linux
# which ssh
#
# which ssh
#
# ls /etc/s*
/etc/shadow    /etc/services
# ls /usr/bin/s*
/usr/bin/svc          /usr/bin/sort         /usr/bin/setkeycodes
/usr/bin/strings      /usr/bin/shred        /usr/bin/seq
/usr/bin/ssl_client   /usr/bin/setsid
#

Best regards.

Re: Network login

Posted: 2024-01-22 15:52
by Asmodyne
good new.gif

My problem was a wrong image reflash...

I used the system image found in "luckfox_pico_mini_b_image-20240119T155206Z-001.zip" , that I took from the "backup" cloud directory...

Wroooong !

I should have used the image found in the buildroot archive from the start ! ( from the "Luckfox Pico/firmware/buildroot/luckfox_pico_mini_b_image" cloud directory ).

Now I have a happy fox running ssh to my Putty session !

Thanks. 😉

Re: Network login

Posted: 2024-01-22 17:58
by grayfacenospace
My Pico Max was actually using DHCP on the Ethernet connection by default, not the static IP as described in the manual. Had to check my router connections to find its IP.