LiteBeam M5 Bootloop

Hallo ich habe mich angemeldet weil ich hoffe hier Unterstützung zur Lösungsfindung zu bekommen.
Das Problem ist, dass ich kürzlich zu einem „defekten“ LiteBeam M5 Model LBE-M5-23 gekommen bin. Der Ausgangszustand war, dass das gute Stück nicht bootet. Die Vorgeschichte des Gerätes kenne ich nicht, aber an einen Hardwaredefekt wollte ich noch nicht so recht glauben.
Die ersten erfolglosen Versuche waren „blind“ ein Recover per tftp auszuführen. Die Firmware wurde zwar laut LEDs geladen führte aber weder mit XW.v6.2.0.33033.190703.1117.bin noch mit XW.v5.6.15.30572.170328.1052.bin zu irgendeiner Änderung. Also musste ich mit serieller Konsole sehen was da vor sich geht. Nach dem gestern Mittag endlich der FT232R USB UART Adapter
angekommen ist konnte ich das Teil auf dem Schreibtisch genauer unter die Lupe nehmen und nun sehen das mein LBE nach wie vor nicht bootet und im TFTP Modus fest hängt.

U-Boot 1.1.4-s1039 (May 24 2017 - 15:58:18)
DRAM:  64 MB
Flash:  8 MB (0xc2, 0x20, 0x17)
Net:   AR8032 Detected
eth0, eth1
Board: Ubiquiti Networks AR9342 board (e865-95240.1122.0030)
Radio: 0777:e865
Reset: Normal
Hit any key to stop autoboot:  0
Setting default IP 192.168.1.20
Starting TFTP server...
Using eth0 (192.168.1.20), address: 0x81000000
Will reset device configuration (Reset button active after 10 seconds).
Erasing sector 123..126

First 0x7b last 0x7e sector size 0x10000
.... done
Waiting for connection: \

Nun galt es für mich Systeminformationen zu sammeln. Es hat etwas gedauert bis ich durch Eingabe von help für mich vermeindlich hilfreiche Infos gefunden habe.

ar7240> printenv
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
serverip=192.168.1.254
mtdids=nor0=ath-nor0
ethact=eth0
mtdparts=mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
bootargs=console=tty0 root=31:03 rootfstype=squashfs init=/init
ipaddr=192.168.1.20
stdin=serial
stdout=serial
stderr=serial
ubntaddr=80200020
appinitdone=true
bootcmd=urescue
Environment size: 407/65532 Bytes
ar7240> imls
Image at 9F050000:
   Image Name:   MIPS Ubiquiti Linux-2.6.32.68
   Created:      2017-03-28   7:53:41 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    956233 Bytes = 933.8 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
ar7240> bdinfo
boot_params = 0x83F77FB0
memstart    = 0x80000000
memsize     = 0x04000000
flashstart  = 0x9F000000
flashsize   = 0x00800000
flashoffset = 0x0002D6C4
ethaddr     = 00:AA:BB:CC:DD:EE
ip_addr     = 192.168.1.20
baudrate    = 115200 bps
ar7240> mtdparts

device nor0 <ath-nor0>, # parts = 6
 #: name                        size            offset          mask_flags
 0: u-boot                      0x00040000      0x00000000      0
 1: u-boot-env                  0x00010000      0x00040000      0
 2: kernel                      0x00100000      0x00050000      0
 3: rootfs                      0x00660000      0x00150000      0
 4: cfg                         0x00040000      0x007b0000      0
 5: EEPROM                      0x00010000      0x007f0000      0

active partition: nor0,0 - (u-boot) 0x00040000 @ 0x00000000

defaults:
mtdids  : nor0=ath-nor0
mtdparts: mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
ar7240>

Einige Zeit stupiden Herumprobierens später war mir dann auch klar das bootcmd=urescue mein Hauptproblem zu sein scheint. Schneller und auch eher durch Zufall fand ich heraus wo der Kernel liegt und wie ich ihn starte. Nur leider war dann nach Starting kernel … Booting Atheros AR934x erst mal wieder nix mehr zu sehen. Ich musste aber wiederum etwas sehen da der Bootvorgang mir noch keinen login per http verschafft und nach einer Weile mit einem Neustart quitiert hat. Mein Freund google half mir aber dabei herauszufinden wie ich die Boot Parameter so abändern kann das ich eine Ausgabe auf der seriellen Konsole erhalte. Der Weg bis hier in war für einen ziemlichen Noob wie mich
natürlich etwas steiniger als sich das jetzt hier liest. Den Output des Bootvorganges hätte ich gerne als txt Datei hochladen. Als neuer Benutzer darf ich das aber leider nicht. Ich hoffe mir kann jemand von euch weiter die Richtung weisen wie ich das inzwischen liebgewonnene Bastelobjekt vielleicht wieder zum Leben erwecken kann.

U-Boot 1.1.4-s1039 (May 24 2017 - 15:58:18)

DRAM:  64 MB
Flash:  8 MB (0xc2, 0x20, 0x17)
Net:   AR8032 Detected
eth0, eth1
Board: Ubiquiti Networks AR9342 board (e865-95240.1122.0030)
Radio: 0777:e865
Reset: Normal
Hit any key to stop autoboot:  0
ar7240> setenv bootargs
ar7240> setenv bootcmd
ar7240> setenv bootargs console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init
ar7240> setenv bootcmd 'bootm 9F050000'
ar7240> printenv
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
serverip=192.168.1.254
mtdids=nor0=ath-nor0
ethact=eth0
mtdparts=mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
ipaddr=192.168.1.20
stdin=serial
stdout=serial
stderr=serial
ubntaddr=80200020
appinitdone=true
bootargs=console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init
bootcmd=bootm 9F050000

Environment size: 421/65532 bytes
ar7240> boot
## Booting image at 9f050000 ...
   Image Name:   MIPS Ubiquiti Linux-2.6.32.71
   Created:      2019-07-03   8:18:25 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    979773 Bytes = 956.8 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum at 0x9f050040 ...OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Booting Atheros AR934x
...mounts done
...filesystem init done
...base ok
...update ok
...symlinks ok
Could not find cfg type: 1
Could not find cfg type: 2
...detect ok
...caldata ok
...httpd ok
Fixup ... Done.
Plugin: system ... Done.
Plugin: syslog ... Done.
Plugin: users ... Done.
Plugin: poepass ... Done.
Plugin: resolv ... Done.
Plugin: radio ... Done.
Plugin: wireless ... Done.
Plugin: iptables ... Done.
Plugin: ebtables ... Done.
Plugin: ip6tables ... Done.
Plugin: fixup ... Done.
Plugin: vlan ... Done.
Plugin: bridge ... Done.
Plugin: netconf ... Done.
Plugin: route ... Done.
Plugin: route6 ... Done.
Plugin: dhcpc ... Done.
Plugin: dhcp6c ... Done.
Plugin: ppp ... Done.
Plugin: aaa ... Done.
Plugin: wpasupplicant ... Done.
Plugin: ntpclient ... Done.
Plugin: dhcpd ... Done.
Plugin: dhcp6d ... Done.
Plugin: radvd ... Done.
Plugin: sshd ... Done.
Plugin: httpd ... Done.
Plugin: snmp ... Done.
Plugin: pwdog ... Done.
Plugin: tshaper ... Done.
Plugin: telnetd ... Done.
Plugin: igmpproxy ... Done.
Plugin: qos ... Done.
Plugin: dnsmasq ... Done.
Plugin: airview ... Done.
Plugin: art ... Done.
Plugin: gps ... Done.
Plugin: dyndns ... Done.
Plugin: dhcprelay ... Done.
Plugin: upnpd ... Done.
Plugin: cron ... Done.
Plugin: mcaping ... Done.
Plugin: unms ... Done.
Plugin: inittab ... Done.
Plugin: ulogger ... Done.
Getty ... Done.
Startup_list ...Done.
Free_cfg ... Done.
Ready to go.
...running /sbin/init
init started: BusyBox v1.24.2 (2019-07-03 11:13:35 EEST)
ATHDebug: 0x0
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device ath0 ; Invalid argument.
/usr/etc/rc.d/rc: line 72: can't create /proc/sys/dev/ath/htvendorieenable: nonexistent directory
/usr/etc/rc.d/rc: line 72: can't create /proc/sys/dev/ath/htdupieenable: nonexistent directory
80211debug: 0x0
init br0
Generating 2048 bit rsa key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyN/YjJGo5TLm9e+NZLke+GNJFs6JAl9/22VLQUnzyzUzcj/DdiX6Cmcyrqk56SMqVXodbgjn+HXdcHQJ53OdHYc6ro2Xcl4EJVQkS3sk5uGUUpjmW5DcxYWt7XatRcCf+QaaSe106l1gDpJ2DYxUicGSm9L5+nWvaaiFmlOLYj+UnP7eIOkzhmwQfOOT974QPQGvXvDfEWashBTkdA23QZmlcgAdYPc0gW6HRbim8bJ/vg5asSuUyy+mmEqCLisbPVFhiOBlccBxVLfXiFWskIXSkqdjF23NknD6JjNGf1udFb0wiLncrhMtX5dBL2psrSCfbFB+dWvm3gZp/+PKD ubnt@LiteBeam M5
Fingerprint: sha1!! 4a:b3:4d:2d:a0:24:27:4e:42:e0:5b:1d:1f:c4:c1:3a:c5:53:b0:03
Generating 1024 bit dss key, this may take a while...
Public key portion is:
ssh-dss AAAAB3NzaC1kc3MAAACBAOG2P749UPTsw79jZcklMHVo9WJRtHimZCXG9u0xj/7Gu4nYkxXLtjNY8WGHuKm8uwaaszDLjGAjwj5udJs4fsogJ+VzcIILlr3O6bF9kQRHaSAnKfLHH5kn+aVU6oPHxmL0qTJT6xjwirfJR5BWfa+g+hTG5OPSlXrlDbBXAKvzAAAAFQCWWvoZC7LpHJpO7dd7DC4hz3uO2QAAAIAHrrRM83EcFNNxHI38J8heaFxTI7lcBpNFuwWDZcRlA329iDCc+PyCEUJG10QZISgAxGtoubR8zTqrkNHGgx/F7OXb9o3t7yLy7hvUoTpzbRVSnR73hmuiUd+LjR351TzSjJAv/KhoLrpWDldLH0XamcQiWXXxrFm02jH1c2LsHgAAAIBxatQ23SjNpR+GecLiuc+vZ+zWzd51qYgd2nlBB3dyo31d3YzQjP7GtYIa60aEKi1UqPYWbCosHcm5R054xUhCToHQGTVZUeDnaFkQuCA8Cop39m23zliiV8J9UqbpHZ1mp1Cqp+0vXgboZPh81JncHqgSm607WnDO8fyLdmrFiQ== ubnt@LiteBeam M5
Fingerprint: sha1!! 75:55:52:58:1e:e1:0b:7e:b2:c8:99:29:58:d6:4b:bd:e1:3c:a1:b2
Invalid Head on[1] ...
Invalid Head on[2] ...
Storing Active[2] ... [%100]

Please press Enter to activate this console.

LiteBeam M5 login: [   74.781000] Restarting system.


U-Boot 1.1.4-s1039 (May 24 2017 - 15:58:18)

DRAM:  64 MB
Flash:  8 MB (0xc2, 0x20, 0x17)
Net:   AR8032 Detected
eth0, eth1
Board: Ubiquiti Networks AR9342 board (e865-95240.1122.0030)
Radio: 0777:e865
Reset: Normal
Hit any key to stop autoboot:  0
Setting default IP 192.168.1.20
Starting TFTP server...
Using eth0 (192.168.1.20), address: 0x81000000
Will reset device configuration (Reset button active after 10 seconds).
Erasing sector 123..126

First 0x7b last 0x7e sector size 0x10000
.... done
Waiting for connection: /