Booten von u-boot aus - shell aktivieren

  • 0 Antworten
  • Letztes Antwortdatum
A

andro1duser

Neues Mitglied
0
Hallo,
ich hab da ein Gerät (kein Smartphone) auf dem an Android läuft. Vermutlich Linux Kernel 4.9.113 Android Version weiss ich leider nicht.

Problem ich habe nur Zugriff per Serieller Console
aber nach dem Bootprozess habe ich keine SHELL um etwas einzugeben.
Kann aber den Bootprozess abbrechen und komme in den Bootloader: u-boot

Nun wäre die Frage, kann man dem Android vom Bootloader aus mitgeben das es eine SHELL startet
oder so ne are RescueMode boot oder so was um an eine SHELL zu kommen.

adb kann ich nicht nutzen da keine USB Schnittstelle vorhanden.....

Oder kann man adb auch über die Serielle Verbindung nutzen, wenn ja wie ?



Das sind die letzen Zeilen vom Bootprozess:

Code:
minicom -b 115200 -D /dev/ttyUSB0


[    8.840364@0]- audio_ddr_mngr: toddrs[1] registered by device ff642000.audiobus:tdma

[    8.843765@0]- asoc-aml-card auge_sound: tdm prepare capture

[    9.411113@0]- RTW: txpath=0x1, rxpath=0x1

[    9.411155@0]- RTW: txpath_1ss:0x1, num:1

[    9.425801@0]- start_addr=(0x8000), end_addr=(0x10000), buffer_size=(0x8000), smp_number_max=(4096)

[    9.439259@0]- RTW: wlan0- hw port(0) mac_addr =9c:9d:7e:3a:9b:1c

[    9.439952@0]- RTW: uap0- hw port(1) mac_addr =9e:9d:7e:3a:9b:1c

[    9.463023@0]- IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

[   10.119416@1]- meson_uart ffd24000.serial: ttyS1 use xtal(8M) 24000000 change 0 to 9600

[   10.121917@1]- meson_uart ffd24000.serial: ttyS1 use xtal(8M) 24000000 change 9600 to 9600

[   10.130107@1]- meson_uart ffd24000.serial: ttyS1 use xtal(8M) 24000000 change 9600 to 115200

[   10.188553@1]- configfs-gadget ff400000.dwc2_a: failed to start amlogic: -19

[   10.196527@1]- meson_uart ffd24000.serial: ttyS1 use xtal(8M) 24000000 change 115200 to 2000000

[   10.199799@1]- meson_uart ffd24000.serial: ttyS1 use xtal(8M) 24000000 change 2000000 to 2000000


aber hier ist keine Eingabe möglich / keine SHELL



CPU: ist wohl eine amlogic A113


axg_s420_v1_gva#nand info


Device 0: A revision NAND 2Gib TC58NVG1S3HBAI4 , sector size 128 KiB

  Page size      2048 b

  OOB size         64 b

  Erase size   131072 b

  size        2097152 b

Device 1: A revision NAND 2Gib TC58NVG1S3HBAI4 , sector size 128 KiB

  Page size      2048 b

  OOB size         64 b

  Erase size   131072 b

  size       268435456 b

axg_s420_v1_gva#


axg_s420_v1_gva#printenv

EnableSelinux=enforcing

active_slot=normal

adb_setting=if itest ${factory_mode} == 1; then run clr_adb_debuggable;else run set_adb_debuggable;fi;

baudrate=115200

bcb_cmd=get_valid_slot;

boot_part=boot

bootargs=rootfstype=ramfs init=/init ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 mtdblock.ro_fspart=system mtdblock.ro_fspart_2nd=chrome loglevel=0 quiet logo0

bootcmd=run storeboot

bootdelay=1

bootloader_version=U-Boot 2015.01-gfe79c6daed-dirty

clr_adb_debuggable=echo disable adb debug prop;setenv bootargs ${bootargs} android.debuggable=0 android.secure=1;setenv bootargs ${bootargs} console=ttyS9,115200 no_console_suspend;

cmdline_keys=if keyman init 0x1234; then if keyman read deviceid ${loadaddr} str; then setenv bootargs ${bootargs} androidboot.serialno=${deviceid};setenv serial ${deviceid};else setenv boo;

country=WW

deviceid=29432/A0SFxxxx

dtb_mem_addr=0x1000000

factory_mode=0

factory_reset_poweroff_protect=echo wipe_data=${wipe_data}; echo wipe_cache=${wipe_cache};if test ${wipe_data} = failed; then run storeargs;if mmcinfo; then run recovery_from_sdcard;fi;if u

fdt_high=0x20000000

firstboot=1

identifyWaitTime=750

initargs=rootfstype=ramfs init=/init ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 mtdblock.ro_fspart="system" mtdblock.ro_fspart_2nd="chrome" loglevel=0 quiet

irremote_update=if irkey 2500000 0xe31cfb04 0xb748fb04; then echo read irkey ok!; if itest ${irkey_value} == 0xe31cfb04; then run update;else if itest ${irkey_value} == 0xb748fb04; then run\

fi;fi;fi;

jtag=disable

loadaddr=1080000

preboot=run bcb_cmd; run factory_reset_poweroff_protect;run upgrade_check;run storeargs;run adb_setting;run switch_bootmode;

reboot_mode=cold_boot

recovery_from_backup=setenv bootargs ${bootargs} console=ttyS0,115200 no_console_suspend earlycon=aml_uart,0xff803000;setenv bootargs ${bootargs} aml_dt=${aml_dt} recovery_part={recovery_pa

recovery_from_flash=setenv bootargs ${bootargs} console=ttyS0,115200 no_console_suspend earlycon=aml_uart,0xff803000;setenv bootargs ${bootargs} aml_dt=${aml_dt} recovery_part={recovery_pari

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;

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 ;

recovery_offset=0

recovery_part=recovery

rpmb_state=0

sdc_burning=sdc_burn ${sdcburncfg}

sdcburncfg=aml_sdc_burn.ini

serial=29432/A0SFxxxxx

set_adb_debuggable=echo enable adb debug prop;setenv bootargs ${bootargs} android.debuggable=1 android.secure=0;setenv bootargs ${bootargs} console=ttyS0,115200 no_console_suspend earlycon=;

stderr=serial

stdin=serial

stdout=serial

storeargs=get_bootloaderversion;setenv bootargs ${initargs} logo=${display_layer},loaded,androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; setenv bootarg;

storeboot=if imgread kernel ${boot_part} ${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_;

try_auto_burn=update 700 750;

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;if itest ${upgrade_step} == 4; then run recovery_from_bi

upgrade_check=echo recovery_status=${recovery_status};if itest.s "${recovery_status}" == "in_progress"; then run storeargs; run recovery_from_flash;else fi;echo upgrade_step=${upgrade_step};

upgrade_key=if gpio input GPIOAO_3; then echo detect upgrade key; run update;fi;

upgrade_step=2

usb_burning=update 1000 3500

wipe_cache=successful

wipe_data=successful


Environment size: 6574/65532 bytes



U-Boot 2015.01-gfe79c6daed-dirty (Aug 27 2020 - 14:13:41)

aarch64-none-elf-gcc (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) 4.9.2 20140904 (prerelease)

GNU ld (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) 2.24.0.20140829 Linaro 2014.09


axg_s420_v1_gva#mtdparts

0x000000000000-0x000000200000 : "bootloader"

0x000000800000-0x000001000000 : "tpl"

0x000001000000-0x000001a00000 : "recovery"

0x000001a00000-0x000002600000 : "boot"

0x000002600000-0x000003600000 : "system"

0x000003600000-0x000007a00000 : "chrome"

0x000007a00000-0x000007e00000 : "factory"

0x000007e00000-0x000010000000 : "data"

Danke
 
Zuletzt bearbeitet von einem Moderator:
Bearbeitet von: derstein98 - Grund: Beitrag bearbeitet - bearbeitet @derstein98

Ähnliche Themen

say_hello
Antworten
0
Aufrufe
270
say_hello
say_hello
say_hello
Antworten
2
Aufrufe
169
say_hello
say_hello
S
Antworten
12
Aufrufe
474
maik005
maik005
Zurück
Oben Unten