首頁 收藏 QQ群
 網(wǎng)站導(dǎo)航

ZNDS智能電視網(wǎng) 推薦當(dāng)貝市場(chǎng)

TV應(yīng)用下載 / 資源分享區(qū)

軟件下載 | 游戲 | 討論 | 電視計(jì)算器

綜合交流 / 評(píng)測(cè) / 活動(dòng)區(qū)

交流區(qū) | 測(cè)硬件 | 網(wǎng)站活動(dòng) | Z幣中心

新手入門 / 進(jìn)階 / 社區(qū)互助

新手 | 你問我答 | 免費(fèi)刷機(jī)救磚 | ROM固件

樓主: M_H_TV
上一主題 下一主題
[交流討論]

中興b860av1.1-t手動(dòng)獲取root權(quán)限

  [復(fù)制鏈接]
11#
發(fā)表于 2018-3-15 10:35 | 只看該作者 | 來自湖南
老鐵666!必須支持一波!
12#
 樓主| 發(fā)表于 2018-3-16 14:29 | 只看該作者 | 來自廣東
本帖最后由 M_H_TV 于 2018-3-16 14:43 編輯

@ragelancer
@zw402
抱歉啊,這么久了,沒怎么看帖子。

進(jìn)入u-boot后首先要找到系統(tǒng)emmc,設(shè)置為當(dāng)前設(shè)備,默認(rèn)是外置sdcard。

在命令提示符下輸入“mmc"命令,看提示操作,記不太清了。
要啟動(dòng)twrp,看看uboot的環(huán)境變量是怎么設(shè)置的,可以輸入"print"查看環(huán)境變量,找到相關(guān)的啟動(dòng)命令,把里面的文件名改掉就行。
比方說把形如recovery.img之類的改成twrp.img ,xxx.dtb改成meson1.dtb,再把改好的命令輸入,加上一個(gè)啟動(dòng)命令,大概是"bootm 0xxxxxxx - 0xxxxxxxx",這兩個(gè)地址具體是多少不用管,它是用符號(hào)表示的。環(huán)境變量里都有的。



具體命令我真記不太清了,反正查看uboot環(huán)境變量、輸入help都有的,沒有刻意去記。

13#
發(fā)表于 2018-3-17 11:12 | 只看該作者 | 來自江蘇
1.1
14#
發(fā)表于 2018-3-18 18:06 | 只看該作者 | 來自廣東

sd卡啟動(dòng):

BL2 Built : 01:56:32, Dec 22 2016.
gxl g1614c0b - xiaobo.gu@droid05

Board ID = 8, adc=617
set vcck to 1070 mv
set vddee to 1070 mv
CPU clk: 1200MHz
2layers board, use ddr_set[0]
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 792MHz - FAIL
DDR3 chl: Rank0 @ 792MHz - PASS
Rank0: 1024MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
sd/emmc read data error: ret=16
aml log : SIG CHK : 260 for address 0x01700000
reset...
GXL:BL1:9ac50e:a1974b;FEAT:ADFD318C;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 141266

BL2 Built : 19:31:35, Jul 25 2017.
gxl g4bbe26f-dirty - liang.yang@droid11-sz

Board ID = 8, adc=617
set vcck to 1070 mv
set vddee to 1070 mv
CPU clk: 1200MHz
Can't match board id, use default ddr_set[0]
DDR type: DDR3-ID
DQS-corr enabled
DDR scramble enabled
Pull down ddr cke
DDR3 chl: Rank0+1 @ 792MHz - FAIL
DDR3 chl: Rank0 @ 792MHz - PASS
Rank0: 1024MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010200, des: 0x01100000, size: 0x00007400
Load bl301 from eMMC, src: 0x00018200, des: 0x01200000, size: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019400
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x000de200
NOTICE:  BL3-1: v1.0(debug):27d2eea5
NOTICE:  BL3-1: Built : 14:56:35, Mar 24 2017
aml log : bl31 normal boot !
[Image: gxl_v1.1.3090-c2794da-dirty 2017-06-23 15:25:47 yun.cai@droid03]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: ef be ad de d f0 ad ba ef be ad de not ES chip
efuse init ops = e2
efuse init hdcp = c, cf9=7
[0.652492 Inits done]
secINFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9
re
at
1sUk- Bsotoatr t2!0
5.hig0h1 -tga7s4k4 1sbtda1r-td!i
7lotwy  t(aSsekp  s0t9a r2t0!1
  - 17:53:13)

DRAM:  1 GiB
gpio: pin GPIOCLK_1 (gpio 99) value is 1
gpio: pin GPIOAO_6 (gpio 106) value is 1
MMC init failed
Using default environment

reboot_mode=normal
store init flag
store read name addr off|partition size
    read 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store write name addr off|partition size
    write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store rom_write add off size.
        write uboot to the boot device
store erase boot/data:
        erase the area which is uboot or data
store erase dtb
store erase key
store rom_protect on/off
store scrub off|partition size
        scrub the area from offset and size
store dtb iread/read/write addr <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional




store init flag
store read name addr off|partition size
    read 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store write name addr off|partition size
    write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store rom_write add off size.
        write uboot to the boot device
store erase boot/data:
        erase the area which is uboot or data
store erase dtb
store erase key
store rom_protect on/off
store scrub off|partition size
        scrub the area from offset and size
store dtb iread/read/write addr <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional

set osd_size 1080p
bootmode:NORM
boot system norm failed, try boot safe!
gxl_p211_v1#
15#
發(fā)表于 2018-3-18 18:15 | 只看該作者 | 來自廣東
環(huán)境變量
gxl_p211_v1#print
1080i_h=1050
1080i_w=1874
1080i_x=23
1080i_y=15
1080p_h=1080
1080p_w=1920
1080p_x=0
1080p_y=0
480i_h=456
480i_w=682
480i_x=21
480i_y=12
480p_h=455
480p_w=665
480p_x=27
480p_y=10
576i_h=557
576i_w=699
576i_x=12
576i_y=10
576p_h=576
576p_w=704
576p_x=0
576p_y=0
720p_h=704
720p_w=1245
720p_x=17
720p_y=8
720poutputheight=1000
720poutputwidth=1000
720poutputx=0
720poutputy=0
COMControlFlag=0
aml_dt=gxl_p211_1g
baudrate=115200
boardid=8
boardtype=8
boot_revision=V810574
bootargs=rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 use_cma_first=1 androidboot.selinux=disabled logo=osd1,loaded,0x3d800000,1080p60hz vout=1080p60hz,enable hdmimode=1080p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=1 androidboot.firstboot=1 jtag=apee quiet androidboot.hardware=amlogic androidboot.boardid=8 osd_size=1080p
bootcmd=jpeg ${outputmode};bootsys
bootdelay=1
bootflag=2
cmdline_keys=if keyman init 0x1234; then if keyman read usid ${loadaddr} str; then setenv bootargs ${bootargs} androidboot.serialno=${usid};fi;if keyman read mac ${loadaddr} str; then setenv bootargs ${bootargs} mac=${mac} androidboot.mac=${mac};fi;if keyman read deviceid ${loadaddr} str; then setenv bootargs ${bootargs} androidboot.deviceid=${deviceid};fi;fi;
console=ttyS0,115200n8 nohlt
cvbs_drv=1
cvbsmode=576cvbs
dbglevel=quiet
defaulttvfrequency=60Hz
digitaudiooutput=PCM
display_bpp=24
display_color_bg=0
display_color_fg=0xffff
display_color_index=24
display_height=1080
display_layer=osd1
display_width=1920
dtb_mem_addr=0x1000000
ethact=dwmac.c9410000
ethaddr=00:15:18:01:81:31
factory_reset_poweroff_protect=echo wipe_data=${wipe_data}; echo wipe_cache=${wipe_cache};if test ${wipe_data} = failed; then run init_display; run storeargs;if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;fi; if test ${wipe_cache} = failed; then run init_display; run storeargs;if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;fi;
fb_addr=0x3d800000
fb_height=1080
fb_width=1920
fdt_high=0x20000000
firstboot=1
force_auto_update=false
gatewayip=172.18.1.1
hdcp_process=0
hdmimode=1080p60hz
hostname=arm_gxbb
init_display=osd open;osd clear;bmp scale
initargs=rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 use_cma_first=1 androidboot.selinux=disabled
ipaddr=172.18.35.6
ir_recovery=0
irremote_update=if irkey 0x7b84c43b 0xb748ff00 0x6699dd22 0x66994eb1 0x66994db2 0x66994cb3 200000; then echo read irkey ok!; if itest ${irkey_value} == 0x7b84c43b; then echo irkey_value == 0x7b84c43b;else if itest ${irkey_value} == 0xb748ff00; then echo irkey_value == 0xb748ff00;else if itest ${irkey_value} == 0x6699dd22; then echo irkey_value == 0x6699dd22;else if itest ${irkey_value} == 0x66994eb1; then echo irkey_value == 0x66994eb1;else if itest ${irkey_value} == 0x66994db2; then echo irkey_value == 0x66994db2;else if itest ${irkey_value} == 0x66994cb3; then echo irkey_value == 0x66994cb3;fi;fi;fi;fi;fi;fi;fi;
jtag=apee
loadaddr=1080000
logotime=0
mem=0M
netmask=255.255.0.0
outputmode=1080p60hz
preboot=run init_display;run storeargs;run irremote_update;run switch_bootmode;
reboot_mode=normal
recovery_from_flash=getCom; setenv bootargs ${bootargs} aml_dt=${aml_dt} recovery_part={recovery_part} recovery_offset={recovery_offset} system=safe COMControlFlag=${COMControlFlag};if imgread kernel ${recovery_part} ${loadaddr} ${recovery_offset}; then wipeisb; bootm ${loadaddr}; fi
recovery_from_sdcard=if fatload mmc 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload mmc 0 ${loadaddr} recovery.img; then if fatload mmc 0 ${dtb_mem_addr} dtb.img; then echo sd dtb.img loaded; fi;wipeisb; bootm ${loadaddr};fi;
recovery_from_udisk=if fatload usb 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload usb 0 ${loadaddr} recovery.img; then if fatload usb 0 ${dtb_mem_addr} dtb.img; then echo udisk dtb.img loaded; fi;wipeisb; bootm ${loadaddr};fi;
recovery_offset=0
recovery_part=recovery
runlevel=0
sdc_burning=sdc_burn ${sdcburncfg}
sdcburncfg=aml_sdc_burn.ini
serverip=172.18.35.20
stderr=serial
stdin=serial
stdout=serial
storeargs=setenv bootargs ${initargs} logo=${display_layer},loaded,${fb_addr},${outputmode} vout=${outputmode},enable hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} cvbsdrv=${cvbs_drv} androidboot.firstboot=${firstboot} jtag=${jtag} quiet; setenv bootargs ${bootargs} androidboot.hardware=amlogic androidboot.boardid=${boardid};run cmdline_keys;
storeboot=if imgread kernel boot ${loadaddr}; then bootm ${loadaddr}; fi;run update;
switch_bootmode=get_rebootmode;if test ${reboot_mode} = factory_reset; then run recovery_from_flash;else if test ${reboot_mode} = update; then run update;else if test ${reboot_mode} = cold_boot; then run try_auto_burn; fi;fi;fi;
system=norm
try_auto_burn=update 700 750;
uimode=1080p
update=run usb_burning; run sdc_burning; if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;
upgrade_check=echo upgrade_step=${upgrade_step}; if itest ${upgrade_step} == 3; then run init_display; run storeargs; run update;else if itest ${upgrade_step} == 1; then defenv_reserv; setenv upgrade_step 2; saveenv;fi;fi;
upgrade_step=2
usb_burning=update 1000
wipe_cache=successful
wipe_data=successful
zte_dispmode=720p
gxl_p211_v1#
16#
發(fā)表于 2018-3-18 18:19 | 只看該作者 | 來自廣東
手動(dòng)啟動(dòng):
gxl_p211_v1#fatload mmc 0 1080000 twrp.img
()
gxl_p211_v1#
這個(gè)樣子應(yīng)該有問題吧??
17#
 樓主| 發(fā)表于 2018-3-18 20:52 | 只看該作者 | 來自廣東
zw402 發(fā)表于 2018-3-18 18:19
手動(dòng)啟動(dòng):
gxl_p211_v1#fatload mmc 0 1080000 twrp.img
()

在uboot里應(yīng)該是能找到兩個(gè)mmc device的,一個(gè)外部sdcard,一個(gè)內(nèi)部emmc。輸入help,找與mmc有關(guān)的命令。
要從外部sdcard里啟動(dòng)twrp,輸入下面的命令(“0”根據(jù)情況來改,也可能是“1”,表示設(shè)備號(hào),文件要放置在外部sdcard根目錄且sdcard格式化為fat32。U盤也是可以的,但要把下面的“mmc”換成“usb”):

fatload mmc 0 ${loadaddr} twrp.img
fatload mmc 0 ${dtb_mem_addr} meson1.img

然后把當(dāng)前設(shè)備設(shè)置成emmc,否則啟動(dòng)twrp后不能掛載system分區(qū),接著輸入下面的命令:

bootm ${loadaddr}
應(yīng)該就能啟動(dòng)了,可以進(jìn)入shell,HDMI會(huì)有輸出的,要用鼠標(biāo)操作。
18#
發(fā)表于 2018-3-19 17:07 | 只看該作者 | 來自廣東
感謝摟主的指點(diǎn)。其實(shí)我也是這樣理解和實(shí)驗(yàn)的,但問題是我這樣fatload mmc 0 1080000 twrp.img和這樣fatload mmc 0 ${loadaddr} twrp.img輸入命令都在敲回車后反饋為“()”,感覺就是未能把twrp.img從mmc 0 (sdcard)加載到內(nèi)存,所以接下去的過程也就是做無用功。當(dāng)然我準(zhǔn)備再次試試........。另外我目前只提取到meson1.dtb,這兩個(gè)文件meson1.img和meson1.dtb不知能否轉(zhuǎn)換或通用。如果摟主有這些:meson1.img、twrp.img.......也就是你所說的那些必須的東西,能否發(fā)我郵箱zwqa202@139.com,在此先謝謝了!
19#
發(fā)表于 2018-3-19 17:56 | 只看該作者 | 來自江蘇
zw402 發(fā)表于 2018-3-19 17:07
感謝摟主的指點(diǎn)。其實(shí)我也是這樣理解和實(shí)驗(yàn)的,但問題是我這樣fatload mmc 0 1080000 twrp.img和這樣fatloa ...

已經(jīng)進(jìn)入twrp,我是把twrp放在sd卡上的,命令如下
mmc dev 1
fatload mmc 0 0x1000000 meson1.dtb
fatload mmc 0 1080000 twrp.img
bootm
20#
發(fā)表于 2018-3-19 18:10 | 只看該作者 | 來自江蘇
本帖最后由 ragelancer 于 2018-3-19 19:41 編輯
M_H_TV 發(fā)表于 2018-3-18 20:52
在uboot里應(yīng)該是能找到兩個(gè)mmc device的,一個(gè)外部sdcard,一個(gè)內(nèi)部emmc。輸入help,找與mmc有關(guān)的命令。
...

樓主,你好,多謝回復(fù)。我已經(jīng)進(jìn)入了twrp,也刷了官方supersu2.82卡刷包。但刷完出現(xiàn)問題了,設(shè)置--關(guān)于里面recovery版本不顯示,聯(lián)網(wǎng)一陣子就要更新recovery并重啟然后再次更新recovery重啟死循環(huán),請(qǐng)問你有這問題嗎?

本版積分規(guī)則

Archiver|新帖|標(biāo)簽|軟件|Sitemap|ZNDS智能電視網(wǎng) ( 蘇ICP備2023012627號(hào) )

網(wǎng)絡(luò)信息服務(wù)信用承諾書 | 增值電信業(yè)務(wù)經(jīng)營許可證:蘇B2-20221768 丨 蘇公網(wǎng)安備 32011402011373號(hào)

GMT+8, 2024-12-28 12:20 , Processed in 0.070800 second(s), 9 queries , Redis On.

Powered by Discuz!

監(jiān)督舉報(bào):report#znds.com (請(qǐng)將#替換為@)

© 2007-2024 ZNDS.Com

快速回復(fù) 返回頂部 返回列表