Jump to content

Can't connect to SSH ""connection refused" error


Ulfberth

Recommended Posts

Hello.
I have problem with SSH on Armbian 23.8 Bookworm  Orange Pi 3 LTS.
Orange seems like booting ok, DHCP works too, since I see Pi's IP in my router settings, also I can ping it, and I'm 100% sure its Pi's IP since I have only my PC connected to LAN.
I  waited for 5 mins, and still couldn't connect to SSH. I tried to do port scan on Pi's IP and nmap says that only 5555 port is open. 
I am using 2A Adapter, so there should be no power issues.

Here are some logs. 
 

Spoiler

ping 192.168.1.82
Pinging 192.168.1.82 with 32 bytes of data:
Reply from 192.168.1.82: bytes=32 time=2ms TTL=64
Reply from 192.168.1.82: bytes=32 time<1ms TTL=64
Reply from 192.168.1.82: bytes=32 time<1ms TTL=64
Reply from 192.168.1.82: bytes=32 time<1ms TTL=64

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


ssh -v root@192.168.1.82
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Connecting to 192.168.1.82 [192.168.1.82] port 22.
debug1: connect to address 192.168.1.82 port 22: Connection refused
ssh: connect to host 192.168.1.82 port 22: Connection refused



I also connected using UART and here are logs

 

Spoiler

[3476]HELLO! BOOT0 is starting!
[3480]boot0 commit : e71af8edd1b76ac3147143f36b88cc0658c34eb6

[3498]PMU: AXP806
[3501]vdd-sys vol:980mv
[3505]set pll start
[3508]set pll end
[3510]DRAM VERSION IS V2_76
[3513]PMU:Set DDR Vol 1200mV OK.
[3516]PMU:Set DDR Vol 1200mV OK.
[4725]DRAM CLK =744 MHZ
[4728]DRAM Type =7 (3:DDR3,4:DDR4,6:LPDDR2,7:LPDDR3)
[4733]DRAM zq value: 003b3bfb
[5037]IPRD=007d007c--PGCR0=00000f5d--PLL=b0003d00
[5042]Actual DRAM SIZE =2048 M
[5045]DRAM SIZE =2048 M,para1 = 000030fa,para2 = 08001000
[5056]DRAM simple test OK.
[5059]dram size =2048
[5062]card no is 2
[5064]sdcard 2 line count 8
[5066][mmc]: mmc driver ver 2017-10-19 10:34:00
[5071][mmc]: mmc 2 bias 00000004
[5080][mmc]: ***Try MMC card 2***
[5093][mmc]: MMC 5.1
[5095][mmc]: HSDDR52/DDR50 8 bit
[5098][mmc]: 50000000 Hz
[5100][mmc]: 7456 MB
[5102][mmc]: ***SD/MMC 2 init OK!!!***
[5186]Loading boot-pkg Succeed(index=0).
[5190]Entry_name        = u-boot
[5206]Entry_name        = parameter
[5209]Entry_name        = monitor
[5213]Entry_name        = scp
[5222]set arisc reset to de-assert state
[5226]Entry_name        = soc-cfg
[5230]Entry_name        = dtb
[5234]Entry_name        = logo
[5237]Ready to disable icache.
[5240]0xffffffff 0xffffffff
[5243]0xff20ffff 0xffffffff
[5246]0xff0f1aff 0xffffffff
[5248]0x1e1cffff 0xffffff2f
[5251]0x0f24ffff 0xffffffff
[5254]0x1f1fffff 0xffffffff
[5257]Jump to secend Boot.
INFO:    Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):c5e8aec
NOTICE:  BL3-1: Built : 14:42:22, Apr 26 2018
NOTICE:  BL3-1 commit: c5e8aec20ca8c6ce31078c5689cbdb1a7352c813

INFO:    BL3-1: Initializing runtime services
ERROR:   Error initializing runtime service tspd_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x4a000000
INFO:    BL3-1: Next image spsr = 0x1d3


U-Boot 2014.07 (Jun 15 2021 - 14:19:28) Allwinner Technology

[5.304]uboot commit : fd7eb71e0c8ef2cc7b9f08f8b9a8a90356d31f1f

[5.304]secure enable bit: 0
[5.304]normal mode: with secure monitor
I2C:   ready
[5.306]pmbus:   ready
[5.306][ARISC] :arisc initialize
[5.330][ARISC] :arisc para ok
[SCP] :sunxi-arisc driver begin startup 2
[SCP] :arisc version: [v0.4.52]
[SCP] :sunxi-arisc driver v1.10 is starting
[5.344][ARISC] :sunxi-arisc driver startup succeeded
[5.344]PMU: AXP806
[5.344]PMU: AXP806 found
[5.345]bat_vol=0, ratio=0
[5.345]set pc_bias(1) bias:1800
[5.345]set pg_bias(5) bias:1800
[5.345]set power on vol to default
[5.345]dcdca_vol = 1040, onoff=1
[5.346]aldo2_vol = 3300, onoff=1
[5.348]cldo2_vol = 3300, onoff=0
[5.351]cldo3_vol = 3300, onoff=0
[5.354]bldo3_vol = 1800, onoff=0
[5.357]bldo4_vol = 1800, onoff=1
[5.360]find power_sply to end
[5.362]cant find pll setting(1320M) from  pll table,use default(408M)
[5.369]PMU: cpux 408 Mhz,AXI=204 Mhz
[5.372]PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz MBus=400Mhz
[5.377]DRAM:  2 GiB
[5.381]fdt addr: 0xb9cc1ca0
[5.381]gd->fdt_size: 0x1f0e0
[5.384]Relocation Offset is: 74d7d000
[5.472]gic: sec monitor mode
[5.472]line:180 func:check_ir_boot_recovery start
[5.472]ir boot recovery not used
[5.472][key recovery] no use
[5.472]no set crosstalk, id=7
[5.473][box standby] read rtc = 0x0
[5.473][box standby] start_type = 0x1
[5.473][box standby] to kernel
[5.474]power on cpu1
[5.477][cpu1]task entry
[5.478][cpu1]PowerBus = 0( 2:vBus 3:acBus other: not exist)
[5.484][cpu1]no battery exist
[5.486]power on cpu2
[5.486][cpu1]display init start
[5.489][cpu2]task entry
[5.491][cpu1]drv_disp_init
[5.493][cpu2]ready to work
[5.493]flash init start
[5.500]workmode = 0,storage type = 2
[5.503]MMC:      2
[5.505][mmc]: mmc driver ver 2018-8-11 15:15:00
[5.513][cpu1]init_clocks: finish init_clocks.
[5.515][mmc]: get sdc2 sdc_wp fail.
[5.516][mmc]: get sdc2 sdc_hc_cap_unit fail.
[5.519][cpu2]cpu 2 enter wfi mode
[5.520][mmc]: get sdc_ex_dly_used 2, use auto tuning sdly
[5.528][cpu1]__clk_enable: clk is null.
[5.529][mmc]: card2 io is 1.8V.
[5.532][cpu1]hdmi cec clk enable failed!
[5.535][mmc]: get sdc2 sdc_tm4_hs200_max_freq 150.
[5.543][mmc]: get sdc2 sdc_tm4_hs400_max_freq 100.
[5.544][cpu1]request pwm success, pwm1:pwm1:0x300a000.
SUNXI SD/MMC: 2
[5.559][cpu1]key emac have not been burned yet
[5.559][cpu1][ac200] tv_read_sid,line:188
 [5.559][mmc]: media type 0x8000000
[5.562][cpu1]sunxi_efuse_readn failed:-1
[5.565][mmc]: Try MMC card 2
[5.576][cpu1]drv_disp_init finish
[5.576][cpu1]hdmi hdcp not enable!
[5.579][mmc]: *****grp info 4000 4000 400 400
[5.580][cpu1]get format[40a] for type[4]
[5.581][mmc]: def wp_grp_size 4000
[5.588][mmc]: wp_grp_size 0x4000
[5.591][mmc]: *****grp info 4000 4000 400 400
[5.596][mmc]: host caps: 0x1ef
[5.598][mmc]: MID 000015 PSN 683a46e1
[5.601][mmc]: PNM 8GTF4R -- 0x38-47-54-46-34
[5.605][mmc]: PRV 0.6
[5.607][mmc]: MDT m-12 y-2022
[5.610][mmc]: MMC v5.1
[5.612][mmc]: user capacity  : 7456 MB
[5.616][mmc]: wp_grp_size: 0x4000 sector
[5.619][mmc]: don't support write protect operation!!
[5.624][mmc]: cache size 8192 KB
[5.627][mmc]: cache ctl 0
[5.629][mmc]: SD/MMC 2 init OK!!!
[5.633][mmc]: Best spd md: 4-HS400, freq: 3-100000000
[5.637][mmc]: Bus width 8
[5.639][mmc]: EOL Info(Rev blks): Normal
[5.643][mmc]: Wear out(type A): [5.646][mmc]: 0%-10% life time used
[5.649][mmc]: Wear out(type B): [5.652][mmc]: 0%-10% life time used
[5.655][mmc]: End mmc_init_boot
[5.658]sunxi flash init ok
[5.661]GPT partition init ok
[5.663]hdmi hdcp not enable!
[5.666]flash init end
[5.668]try to burn key
read item0 copy0
Item0 (Map) magic is bad
the secure storage item0 copy0 is bad
read item0 copy1
Item0 (Map) magic is bad
the secure storage item0 copy0 == copy1, the data is good
the secure storage map is empty
no item name device_unlock in the map
[5.692]sunxi storage read fail
sunxi secure storage has no flag
--------fastboot partitions--------
-total partitions:16-
-name-        -start-       -size-
UDISK       : 53e00000      7cdfbc00
bootloader  : 1000000       1000000
env         : 2000000       1000000
boot        : 3000000       2000000
system      : 5000000       80000000
vendor      : 85000000      12c00000
verity_block: 97c00000      1000000
misc        : 98c00000      1000000
recovery    : 99c00000      2000000
sysrecovery : 9bc00000      80000000
private     : 1bc00000      1000000
alog        : 1cc00000      4000000
dtbo        : 20c00000      200000
Reserve1    : 20e00000      2000000
Reserve2    : 22e00000      1000000
cache       : 23e00000      30000000
-----------------------------------
[5.768][mmc]: blkcnt should not be 0
[5.771]error: read esm partition
[5.774]read esm to memory fail
[5.777]base bootcmd=run setargs_nand boot_normal
[5.781]bootcmd set setargs_mmc
[5.784]misc partition found
[5.787]to be run cmd=run setargs_mmc boot_normal
[5.794][mmc]: hsddr 2-50000000
[5.794][mmc]: hs200 4-150000000
[5.797][mmc]: hs400 3-100000000
[5.799][mmc]: get max-frequency ok 150000000 Hz
[5.804][mmc]: 0 0 0: 0 0 0
[5.806][mmc]: get max-frequency ok 100000000 Hz
[5.818](sunxi):update dtb dram start
[5.827]update dtb dram  end
[5.877]successfully[c71800]
[5.879]successfully[g7756]
read item0 copy0
Item0 (Map) magic is bad
the secure storage item0 copy0 is bad
read item0 copy1
Item0 (Map) magic is bad
the secure storage item0 copy0 == copy1, the data is good
the secure storage map is empty
no item name rootwait init in the map
[5.882]sunxi storage read fail
no item name mac in the map
[5.887]sunxi storage read fail
no item name wifi_mac in the map
[5.893]sunxi storage read fail
no item name bt_mac in the map
[5.899]sunxi storage read fail
no item name specialstr in the map
[5.905]sunxi storage read fail
** Unrecognized filesystem type **
[5.910]load file(sn.txt) error
[5.913]serial num is: 1c00148075c2c881d13
[5.917]inter uboot shell
Hit any key to stop autoboot:  0
[6.923]read partition: boot or recovery
[7.036]sunxi flash read :offset 3000000, 18376704 bytes OK
[7.036]Kernel load addr 0x40080000 size 17943 KiB
[7.036]Kernel command line: selinux=1 androidboot.selinux=enforcing androidboot.                                                                                         dtbo_idx=0,1,2 buildvariant=eng veritykeyid=id:7e4333f9bba00adfe0ede979e28ed1920                                                                                         492b40f
[7.054]in boot normal mode,pass normal para to cmdline
[7.054]android.hardware = sun50iw6p1
[7.057]ready to boot
[7.057]check cpu power status
[7.057]cpu2 has poweroff
[11.861][cpu1]hdmi hpd out, force open?
[11.861][cpu1]get hdmi config from bootparam success.
[11.861][cpu1]hdmi config: format-1 bits-0 cs-257 eotf-4
[11.861][cpu1]bootGUI save config: disp_config0
[11.861][cpu1]display init end
[11.872][cpu1]boot logo display ok
[11.922][cpu1]cpu 1 enter wfi mode
[11.923]cpu1 has poweroff
[11.932]prepare for kernel
[11.932][mmc]: mmc exit start
[11.943][mmc]: mmc 2 exit ok
[11.943]
Starting kernel ...

INFO:    BL3-1: Next image address = 0x40080000
INFO:    BL3-1: Next image spsr = 0x3c5
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.118 (test@test) (gcc version 4.9.3 20150113 (pr                                                                                         erelease) (Linaro GCC 4.9-2015.01-3) ) #44 SMP PREEMPT Mon Mar 28 09:58:47 CST 2                                                                                         022
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] bootconsole [earlycon0] enabled
WARNING: Unimplemented Standard Service Call: 0xc0000026
console:/ 


 

Edited by Ulfberth
Link to comment
Share on other sites

Oh that's really weird, I'll double check for what I've been selected when flashed my SD card. I might accidentally pick the raspberry pi image instead of armbian. I will report later today or tomorrow.

 

Upd. I think that this older version is some Linux which is pre installed on emmc. Anyways will do the tests later.

Upd upd. I can confirm that everything works fine! I was my mistake sorry! It was either bad SD card flashing or I didn't push SD card all the way in, so Android image which is factory installed on eMMC was booting.
Sorry for bothering.

Edited by Ulfberth
Upd
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines