嵌入式爱好者

查看: 2674|回复: 4

[Linux] 在线单独替换 rootfs

[复制链接]

7

主题

18

帖子

106

积分

A40i/T3/T507通行证

扫一扫,手机访问本帖
发表于 2022-8-1 14:15:14 | 显示全部楼层 |阅读模式
按照在线单独更新开发板固件的执行步骤,更新rootfs。重启以后结果如下,应该是没有更新成功,想问一下本人哪个步骤执行有问题?
#
# ls
rootfs.fex        script_parser.sh  translate.mp4     wo.wav
#
# dd if=rootfs.fex of=/dev/mmcblk0p7 bs=512
1236077+1 records in
1236077+1 records out
#
# sync
-sh: sync: command not found
#
#
复位重启:
# 񾇅LLO! 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[0] value = 0x00000000
[     0.92]rtc[1] value = 0x00000000
[     0.95]rtc[2] value = 0x00000000
[     0.98]rtc[3] value = 0x00000000
[     0.102]rtc[4] value = 0x00000000
[     0.105]rtc[5] 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 =2048 M
[     0.152]DRAM ** test OK.
[     0.155]dram size =2048
[     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]: mmc driver ver 2016-07-01 15:30
[     0.175][mmc]: wrong freq 2 at spd md 2
[     0.188][mmc]: ***Try MMC card 2***
[     0.205][mmc]: MMC 5.1
[     0.207][mmc]: HSSDR52/SDR25 8 bit
[     0.211][mmc]: 50000000 Hz
[     0.213][mmc]: 7456 MB
[     0.216][mmc]: ***SD/MMC 2 init OK!!!***
[     0.291]Succeed in loading uboot from sdmmc flash.
[     0.296]Entry_name        = u-boot
[     0.312]Ready to disable icache.
[     0.315]0xffffffff 0xffffffff
[     0.318]0xffffffff 0xffffffff
[     0.321]0xffffffff 0xffffffff
[     0.324]0xffffffff 0xffffffff
[     0.327]0xffffffff 0xffffffff
[     0.330]0xffffffff 0xffffffff
[     0.333]Jump to secend Boot.


U-Boot 2014.07 (Mar 17 2022 - 01:41:59) Allwinner Technology

uboot commit : 866821a4cd3594115a60fa86880257a0d8c5d79e

i2c_init: by cpux
i2c_init ok
[      0.349]pmbus:   ready
[      0.363]PMU: AXP221
[      0.364]PMU: AXP22x found
[      0.366]PMU: dcdc2 1160
[      0.366]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz  MBus=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:  2 GiB
fdt addr: 0xb6e84218
Relocation Offset is: 75edb000
axp: get node[charger0] error
In:    serial
Out:   serial
Err:   serial
gic: normal mode
[      0.522]start
drv_disp_init
init_clocks: finish init_clocks.
pwm_request: reg = 0x1c23400. pwm = 0.
request pwm success, pwm = 0.
tv_init:
tv_probe:000
tv0 have no type1
tv0 have no type2
tv0 have no type3
no report hpd work,you need support the switch class!
screen 0 don't support TV!
screen 1 don't support TV!
screen 0 do not support VGA TYPE!
screen 1 do not support VGA TYPE!
tv_init:
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
disp 0, clk: pll(306000000),clk(306000000),dclk(51000000) dsi_rate(306000000)
     clk real:pll(308571428),clk(308571428),dclk(51428571) dsi_rate(0)
enable power vcc-lcd, ret=0
[      1.291]end
workmode = 0,storage type = 2
[      1.292]MMC:         2
[mmc]: mmc driver ver 2016-07-01 15:50:00
Read addr=40 eeprom addrlen=1 ok!!

The test ok!
secret ok
ok
[mmc]: mmc_update_timing_para: error sdc_no 2
SUNXI SD/MMC: 2
[mmc]: 50 MHz...
[mmc]: sample: 62 - 161(ps)
[mmc]: ds: 63 - 158(ps)
[mmc]: 100 MHz...
[mmc]: sample: 31 - 161(ps)
[mmc]: ds: 31 - 161(ps)
[mmc]: 200 MHz...
[mmc]: sample: 16 - 156(ps)
[mmc]: ds: 16 - 156(ps)
[mmc]: media type 0x8000000
[mmc]: ************Try MMC card 2************
[mmc]: host caps: 0x6f
[mmc]: MID 0000d6 PSN 8008d1a0
[mmc]: PNM 88A398 -- 0x38-38-41-33-39
[mmc]: PRV 1.1
[mmc]: MDT m-11 y-2021
[mmc]: MMC v5.1
[mmc]: speed mode     : HSSDR52/SDR25
[mmc]: clock          : 50000000 Hz
[mmc]: bus_width      : 8 bit
[mmc]: user capacity  : 7456 MB
[mmc]: boot capacity  : 4096 KB
[mmc]: rpmb capacity  : 4096 KB
[mmc]: ************SD/MMC 2 init OK!!!************
[mmc]: use default speed mode: 1-HSSDR52/SDR25, ifreq: 2
[mmc]: ========best spd md: 1-HSSDR52/SDR25, freq: 2-50000000
[mmc]: already at HSSDR52_SDR25 mode
[mmc]: erase_grp_size      : 0x400WrBlk*0x200=0x80000 Byte
[mmc]: secure_feature      : 0x55
[mmc]: secure_removal_type : 0x9
[mmc]: EOL Info(Rev blks): Normal
[mmc]: Wear out(type A): 0%-10% life time used
[mmc]: Wear out(type B): Not defined
[      1.544]sunxi flash init ok
sunxi secure storage is not supported
[      1.550]usb burn from boot
delay time 0
[      1.642]usb prepare ok
[      2.441]timer occur
[      2.442]overtime
[      2.475]do_burn_from_boot usb : no usb exist
--------fastboot partitions--------
-total partitions:6-
-name-        -start-       -size-      
boot-resource: 1000000       e00000      
env         : 1e00000       400000      
boot        : 2200000       1000000     
rootfs      : 3200000       c0000000   
private     : c3200000      1000000     
UDISK       : c4200000      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 dram  end
PowerBus = 3( 2:vBus 3:acBus other: not exist)
no battery, limit to dc
no battery exist
EnterNormalBootMode sunxi_bmp_display--
reading bootlogo.bmp
1536054 bytes read in 36 ms (40.7 MiB/s)
bmp file buffer: 0x40000000, bmp_info.buffer: 46400000
fetch script data boot_disp.output_full fail
screen_id =0, screen_width =1024, screen_height =600
frame buffer address 46400036
Net:   eth0
Warning: failed to set MAC address

[      2.746]inter uboot shell
Press SPACE to abort autoboot
read partition: boot or recovery
[      4.074]sunxi flash read :offset 2200000, 14925200 bytes OK
Android's image name: sun8i_arm
Kernel load addr 0x40008000 size 12198 KiB
RAM disk load addr 0x41000000 size 1354 KiB
read private data
private maybe empty
read private data
private maybe empty
[      4.147]ready to boot
prepare for kernel
[mmc]: mmc exit start
[mmc]: 50 MHz...
[mmc]: sample: 63 - 158(ps)
[mmc]: ds: 63 - 158(ps)
[mmc]: 100 MHz...
[mmc]: sample: 31 - 161(ps)
[mmc]: ds: 32 - 156(ps)
[mmc]: 200 MHz...
[mmc]: sample: 16 - 156(ps)
[mmc]: ds: 16 - 156(ps)
[mmc]: 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 (root@370f1a4d53e0) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #4 SMP PREEMPT Thu Mar 17 01:45:52 UTC 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] 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 [earlycon0] enabled
[/init]: RootDevice is "/dev/mmcblk0p7"
[/init]: Try to load EMMC ...
e2fsck 1.41.14 (22-Dec-2010)
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/mmc
/ #
/ #
/ # ls
bin   dev   etc   init  lib   mnt   proc  root  sbin  sys   usr
/ #
/ #



回复

使用道具 举报

0

主题

1173

帖子

2194

积分

发表于 2022-8-2 15:48:19 | 显示全部楼层
文件系统的单独更新有点问题,您可以联系销售,获取最新的修改方法,改过后就可以了

点评

好的,谢谢  详情 回复 发表于 2022-8-4 09:22
点评回复 支持 反对

使用道具 举报

7

主题

18

帖子

106

积分

A40i/T3/T507通行证

 楼主| 发表于 2022-8-4 09:21:35 | 显示全部楼层
好的,谢谢
点评回复 支持 反对

使用道具 举报

7

主题

18

帖子

106

积分

A40i/T3/T507通行证

 楼主| 发表于 2022-8-4 09:22:36 | 显示全部楼层
zhichao 发表于 2022-8-2 15:48
文件系统的单独更新有点问题,您可以联系销售,获取最新的修改方法,改过后就可以了

好的,谢谢
点评回复 支持 反对

使用道具 举报

0

主题

1

帖子

6

积分

A40i/T3/T507通行证

发表于 2022-11-8 16:38:23 | 显示全部楼层
你好,可以分享一下具体的修改方法吗?
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-3-28 18:48

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表