xinmer 发表于 2020-11-19 11:34:59

登录输入root后无法使用别的命令

本帖最后由 xinmer 于 2020-11-19 11:36 编辑

我在用调试串口登录输入root后,然后不知道跑哪里去了,无法使用其他命令是怎么回事?



chemist 发表于 2020-11-19 16:04:00

可以通过pwd命令查看当前路径,然后不能使用其他命令可以重新刷一下固件试试,确认一下是否是固件有问题

xinmer 发表于 2020-11-19 16:29:15

chemist 发表于 2020-11-19 16:04
可以通过pwd命令查看当前路径,然后不能使用其他命令可以重新刷一下固件试试,确认一下是否是固件有问题
我刷的固件是你们官方提供的,不是自己编译的,而且输入任何命令都没有效果

chemist 发表于 2020-11-20 08:49:46

有没有可能是固件没有下载完整,有比对过md5值吗?然后可以把uboot和内核启动打印信息内容拍照看一下

xinmer 发表于 2020-11-20 11:09:26

chemist 发表于 2020-11-20 08:49
有没有可能是固件没有下载完整,有比对过md5值吗?然后可以把uboot和内核启动打印信息内容拍照看一下

这个是打印信息,我输了几个ls之后就死了
HELLO! BOOT0 is starting!
                         [   0.35]HELLO! BOOT0 is starting!
[   0.39]boot0 commit : 74581757d98a20b111500764817c436cdafbdae3

[   0.46]boot0 version : 4.0
[   0.50]set pll start
[   0.54]set pll end
[   0.89]rtc value = 0x00000000
[   0.92]rtc value = 0x00000000
[   0.95]rtc value = 0x00000000
[   0.98]rtc value = 0x00000000
[   0.102]rtc value = 0x00000000
[   0.105]rtc value = 0x00000000
[   0.109]DRAMC IS FOUR
[   0.111]DRAM BOOT DRIVE INFO: V1.1
[   0.115]Found A40
[   0.117]Found A40
[   0.119]Found A40
[   0.121]Found A40
[   0.123]Found A40
[   0.129]PMU: [   0.130]AXP221
[   0.132]ddr voltage = 1500 mv
[   0.135]DRAM CLK =576 MHZ
[   0.138]DRAM Type =3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
[   0.143]DRAM zq value: 0x003b3bfb
[   0.149]DRAM SIZE =1024 M
[   0.152]DRAM ** test OK.
[   0.155]dram size =1024
[   0.157]rtc standby flag is 0x00000000, super standby flag is 0x00000000
[   0.165]card no is 2
[   0.167]sdcard 2 line count 8
[   0.170]: mmc driver ver 2016-07-01 15:30
[   0.175]: wrong freq 2 at spd md 2
[   0.188]: ***Try MMC card 2***
[   0.204]: MMC 5.1
[   0.206]: HSSDR52/SDR25 8 bit
[   0.210]: 50000000 Hz
[   0.212]: 7456 MB
[   0.215]: ***SD/MMC 2 init OK!!!***
[   0.287]Succeed in loading uboot from sdmmc flash.
[   0.292]Entry_name      = u-boot
[   0.307]Ready to disable icache.
[   0.311]0xffffffff 0xffffffff
[   0.314]0xffffffff 0xffffffff
[   0.317]0xffffffff 0xffffffff
[   0.320]0xffffffff 0xffffffff
[   0.323]0xffffffff 0xffffffff
[   0.326]0xffffffff 0xffffffff
[   0.329]Jump to secend Boot.


U-Boot 2014.07 (Aug 20 2020 - 08:55:34) Allwinner Technology

uboot commit : 5d16dec294d9b2b99e69dce9986af0e49351a686

i2c_init: by cpux
i2c_init ok
[      0.344]pmbus:   ready
[      0.358]PMU: AXP221
[      0.358]PMU: AXP22x found
[      0.359]PMU: dcdc2 1160
[      0.361]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100MhzMBus=400Mhz
set power on vol to default
dcdc1_vol = 3300, onoff=1
dcdc2_vol = 1160, onoff=1
dcdc3_vol = 1200, onoff=1
dcdc4_vol = 1100, onoff=0
aldo1_vol = 3300, onoff=1
aldo2_vol = 1800, onoff=1
aldo3_vol = 3000, onoff=1
dc1sw_vol = 3000, onoff=0
dc5ldo_vol = 1100, onoff=0
dldo1_vol = 3300, onoff=1
dldo2_vol = 3300, onoff=0
dldo3_vol = 3300, onoff=0
dldo4_vol = 2500, onoff=1
eldo1_vol = 2800, onoff=0
eldo2_vol = 1200, onoff=1
eldo3_vol = 2800, onoff=1
gpio0_vol = 3300, onoff=1
gpio1_vol = 3300, onoff=1
find power_sply to end
vbus exist
run key detect
no key found
no uart input
DRAM:1 GiB
fdt addr: 0x76e91cd8
Relocation Offset is: 35ee8000
In:    serial
Out:   serial
Err:   serial
gic: normal mode
[      0.511]start
drv_disp_init
init_clocks: finish init_clocks.
pwm_request: reg = 0x1c23400. pwm = 0.
request pwm success, pwm = 0.
drv_disp_init finish
fetch script data boot_disp.output_disp fail
fetch script data boot_disp.output_type fail
fetch script data boot_disp.output_mode fail
fetch script data boot_disp.auto_hpd fail
disp0 device type(1) enable
enable power vcc-lcd, ret=0
[      1.204]end
workmode = 0,storage type = 2
[      1.204]MMC:       2
: mmc driver ver 2016-07-01 15:50:00
Read addr=40 eeprom addrlen=1 ok!!

The test ok!
secret ok
: mmc_update_timing_para: error sdc_no 2
SUNXI SD/MMC: 2
: 50 MHz...
: sample: 63 - 158(ps)
: ds: 63 - 158(ps)
: 100 MHz...
: sample: 33 - 151(ps)
: ds: 34 - 147(ps)
: 200 MHz...
: sample: 17 - 147(ps)
: ds: 17 - 147(ps)
: media type 0x8000000
: ************Try MMC card 2************
: host caps: 0x6f
: MID 000015 PSN 62014c7e
: PNM 8GTF4R -- 0x38-47-54-46-34
: PRV 0.6
: MDT m-2 y-2020
: MMC v5.1
: speed mode   : HSSDR52/SDR25
: clock          : 50000000 Hz
: bus_width      : 8 bit
: user capacity: 7456 MB
: boot capacity: 4096 KB
: rpmb capacity: 512 KB
: ************SD/MMC 2 init OK!!!************
: use default speed mode: 1-HSSDR52/SDR25, ifreq: 2
: ========best spd md: 1-HSSDR52/SDR25, freq: 2-50000000
: already at HSSDR52_SDR25 mode
: erase_grp_size      : 0x400WrBlk*0x200=0x80000 Byte
: secure_feature      : 0x55
: secure_removal_type : 0x39
: EOL Info(Rev blks): Normal
: Wear out(type A): 0%-10% life time used
: Wear out(type B): 0%-10% life time used
[      1.453]sunxi flash init ok
sunxi secure storage is not supported
[      1.459]usb burn from boot
delay time 0
[      1.551]usb prepare ok
usb sof ok
[      1.759]usb probe ok
[      1.759]usb setup ok
set address 0x2d
set address 0x2d ok
sunxi usb error: received bytes 0x20 is not equal cbw struct size 0x1f
[      4.759]timer occur
[      4.792]do_burn_from_boot usb : have no handshake
--------fastboot partitions--------
-total partitions:7-
-name-      -start-       -size-      
boot-resource: 1000000       e00000      
env         : 1e00000       400000      
boot      : 2200000       1000000   
rootfs      : 3200000       786a0000   
private   : 7b8a0000      1000000   
usr         : 7c8a0000      7e400000   
UDISK       : faca0000      0         
-----------------------------------
base bootcmd=run setargs_nand boot_normal
bootcmd set setargs_mmc
key 0
cant find rcvy value
cant find fstbt value
no misc partition is found
to be run cmd=run setargs_mmc boot_normal
update dtb dram start
update dtb dramend
PowerBus = 3( 2:vBus 3:acBus other: not exist)
no battery, limit to dc
no battery exist
EnterNormalBootMode sunxi_bmp_display--
reading bootlogo.bmp
1152054 bytes read in 30 ms (36.6 MiB/s)
bmp file buffer: 0x40000000, bmp_info.buffer: 46400000
fetch script data boot_disp.output_full fail
screen_id =0, screen_width =800, screen_height =480
frame buffer address 46400036
[      5.053]inter uboot shell
Press SPACE to abort autoboot
read partition: boot or recovery
[      6.371]sunxi flash read :offset 2200000, 14410229 bytes OK
Android's image name: sun8i_arm
Kernel load addr 0x40008000 size 11696 KiB
RAM disk load addr 0x41000000 size 1353 KiB
read private data
private maybe empty
read private data
private maybe empty
[      6.443]ready to boot
prepare for kernel
: mmc exit start
: 50 MHz...
: sample: 63 - 158(ps)
: ds: 63 - 158(ps)
: 100 MHz...
: sample: 32 - 156(ps)
: ds: 32 - 156(ps)
: 200 MHz...
: sample: 16 - 156(ps)
: ds: 16 - 156(ps)
: mmc 2 exit ok

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.65 (bluesky@a97aa656d1ab) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #355 SMP PREEMPT Thu Aug 20 09:01:58 UTC 2020
[    0.000000] CPU: ARMv7 Processor revision 5 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8iw11p1, model: sun8iw11p1
[    0.000000] bootconsole enabled
: RootDevice is "/dev/mmcblk0p7"
: Try to load EMMC ...
e2fsck 1.41.14 (22-Dec-2010)
/dev/mmcblk0p7: recovering journal
/dev/mmcblk0p7: clean, 9643/10792 files, 509765/576104 blocks
mount: proc is already mounted or /proc busy
       proc is already mounted on /proc
mount: devtmpfs is already mounted or /dev busy
init asteroidenv##
Populating /dev/ using udev: done
init qt env########################
Starting sshd: OK
Starting telnetd: OK
Starting vsftpd: OK
================Usrage================
/fbinit           means:clean /dev/fb0
/fbinit 0          means:clean /dev/fb0
/fbinit 1          means:clean /dev/fb1
/fbinit 2          means:clean /dev/fb2
================usrage================
cleanning /dev/fb0 ...
clean /dev/fb0 finish
e2fsck 1.43.3 (04-Sep-2016)
/dev/mmcblk0p9 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
D-Bus per-session daemon address is: unix:abstract=/tmp/dbus-MajA5ue9eB,guid=ecca0614b0d005b6eece2ab600000005
Unknown username "pulse" in message bus configuration file
find qt5 installed
Unknown username "pulse" in message bus configuration file
Failed to start message bus: The pid file "/var/run/messagebus.pid" exists, if the message bus is not running, remove this file
xres = 800, yres = 480
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mmcblk0p9: 11/348816 files (0.0% non-contiguous), 21908/1393504 blocks
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l
device_chose finished!
start adb...

Welcome to Allwinner A40i Linux Platform V1.3
A40i login: root
login: root login on 'ttyS0'
# ls
hardtest          script_parser.shtranslate.mp4   wo.wav
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
# ls
hardtest          script_parser.shtranslate.mp4   wo.wav



ls

xinmer 发表于 2020-11-20 11:48:44

xinmer 发表于 2020-11-20 11:09
这个是打印信息,我输了几个ls之后就死了
HELLO! BOOT0 is starting!
                         [      ...

还有一个最新的问题,我刚从你们这里下载的资料,用hash1.04校验的MD5值跟你们提供的对不上

chemist 发表于 2020-11-20 14:54:59

md5值不对,你要问一下售后。或者重新下载试试。然后你这个开发套件是带显示屏的吗?是不是固件刷错了?

YHC 发表于 2020-11-20 15:27:49

xinmer 发表于 2020-11-20 11:48
还有一个最新的问题,我刚从你们这里下载的资料,用hash1.04校验的MD5值跟你们提供的对不上

请使用飞凌提供的程序源码包,文件所在路径如下:
 用户资料\Linux\源码\xaa
 用户资料\Linux\源码\xab
 用户资料\Linux\源码\xac
说明:由于代码包超过 3G,所以才用分包形式:分成 xaa,xab,xac 三个文件。请以源码包程序为准。
生成目录结构,命令如下(该命令需要 root 权限)
# mkdir -p /root/workspace/allwinner/A40i/bsp
# cd /root/workspace/allwinner/A40i/bsp/
复制源码压缩包到虚拟机或者真实机器 /root/workspace/allwinner/A40i/bsp/
步骤 1:验证压缩包完成性,与 lichee_md5.txt 对比,命令如下
# md5sum xaa
# md5sum xab
# md5sum xac
步骤 2:生成源码压缩包,命令如下
# cat xa* > lichee.tar.gz
步骤 3:验证源码压缩包完整性,与 lichee_md5.txt 对比,命令如下
# md5sum lichee.tar.gz
步骤4:解压缩源码,命令如下。
# cd /root/workspace/allwinner/A40i/bsp/ # tar xvf lichee.tar.gz

kd_tx22 发表于 2020-11-27 10:44:55

我也遇到过输入命令无反应的情况,尝试更换串口线和双母头线试试

xinmer 发表于 2020-12-1 11:26:41

kd_tx22 发表于 2020-11-27 10:44
我也遇到过输入命令无反应的情况,尝试更换串口线和双母头线试试

是我们的底板没有焊接网口,焊接上就好了,具体原因也不知道
页: [1]
查看完整版本: 登录输入root后无法使用别的命令