Hello! Thanks for asking.
Neither pdinfo nor printenv seem to produce anything much of interest unfortunately
ar7240>pdinfo
Product Name: AP7050DE
Boot Rom Version: 628
Hardware version: VER.A
Country Code: CN
Ethernet Mac: <redacted>
Wireless Mac: <redacted>
Serial Number: <redacted>
ar7240>printenv
baudrate=9600
bootargs=console=ttyHSL1,9600n8
bootcmd=bootipq
bootdelay=3
ethact=eth0
fileaddr=0x42000000
ipaddr=192.168.1.111
machid=1260
serverip=192.168.1.11
stderr=serial
stdin=serial
stdout=serial
ubootfile=u-boot.bin
Environment size: 250/65532 bytes
Unfortunately none of the suggested uboot commands work either
ar7240>dhcp
Unknown command 'dhcp' - try 'help'
ar7240>tftp
Unknown command 'tftp' - try 'help'
ar7240>tftboot
Unknown command 'tftboot' - try 'help'
ar7240>go
Unknown command 'go' - try 'help'
ar7240>bootm
Unknown command 'bootm' - try 'help'
ar7240>booti
Unknown command 'booti' - try 'help'
ar7240>bootz
Unknown command 'bootz' - try 'help'
ar7240>md
Unknown command 'md' - try 'help'
ar7240>loads
So as for the <Huawei>
shell it's unfortunately pretty restricted but also has several modes:
Initial mode has these commands:
<Huawei>?
User view commands:
backup Backup information
cd Change current directory
cls Clear screen
copy Copy from one file to another
debugging <Group> debugging command group
delete Delete a file
dir List files on a filesystem
display Display information
format Format file system
free Release a user terminal interface
ftp Establish an FTP connection
help Description of the interactive help system
led Led
lldp Link Layer Discovery Protocol
lock Lock the current user terminal interface
mkdir Create a new directory
mmi-mode Machine-machine mode
more Display the contents of a file
mount Mount device
move Move from one file to another
patch Patch operation
ping <Group> ping command group
pwd Display current working directory
quit Exit from current mode and enter prior mode
reboot Reboot system
rename Rename a file or directory
reset <Group> reset command group
return Enter the privileged mode
rmdir Remove an existing directory
save Save file
screen-length Set the number of lines displayed on a screen
screen-width Set the width of lines displayed on a screen
send Send information to other user terminal interfaces
startup <Group> startup command group
system-view SystemView from terminal
telnet Open a telnet connection
terminal Set the terminal line characteristics
tftp Establish a TFTP connection
tracert Trace route function
umount Umount device
undelete Restore deleted files or directory
undo Negate a command or set its defaults
unzip Unzip files or directory
zip Zip files or directory
I can see tftp and ftp are both among them but that's about it. I tried running some commands I knew from busybox here but this did not help.
Error: Unrecognized command found at '^' position.
<Huawei>bash
^
Error: Unrecognized command found at '^' position.
<Huawei>grep
^
Error: Unrecognized command found at '^' position.
<Huawei>getsebool
^
Error: Unrecognized command found at '^' position.
<Huawei>whoami
^
An interesting thing is that you can go into the system-view
menu which presents a different set of commands:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]?
System view commands:
anti-attack Specify anti-attack configurations
ap-address Set ip address
ap-mode-switch Ap-mode-switch
ap-sysname Set AP name
arp <Group> arp command group
backup Backup information
capture-packet Capture-packet
capwap CAPWAP
cloud-mng Cloud management
console Console
dhcpv6 Dynamic host configure protocol for IPv6
diagnose Change into diagnose mode
display Display information
ecc Specify the module configurations
file File system command word
ftp Set the FTP source
header Define the login banner
hotkey Specify hotkey configuration information
icmp Indicates ICMP configuration information
info-center <Group> info-center command group
interface Specify the interface configuration view
ip <Group> ip command group
l2-topology Layer 2 topology
load-balance Specify load balance mode
mac-address MAC address
management-vlan Mangement vlan
matched Is Command can be matched by upper template
mmi-mode Machine-machine mode
observe-port Specify observing port
ping <Group> ping command group
pki Configure Public Key Infrastructure (PKI) module information
portal PORTAL module
quit Exit from current mode and enter prior mode
reset <Group> reset command group
return Enter the privileged mode
rsa Specify RSA module configuration information
set <Group> set command group
sftp Establish an SFTP connection
ssh <Group> ssh command group
stelnet Establish an Stelnet connection
tcp Specify TCP(Transmission Control Protocol) configuration information
telnet <Group> telnet command group
tftp Establish a TFTP connection
tftp-server TFTP Server
tracert Trace route function
undo Negate a command or set its defaults
upgrade Upgrade
user-interface Configure the user terminal interface
the upgrade menu pertains to specifically to ftp and sftp servers
[Huawei]upgrade version ?
ftp FTP server
sftp SFTP server
here you can once again go into another view, the "diagnose" view:
[Huawei-diagnose]?
Diagnose view commands:
acl Access Control List
anti-attack Specify anti-attack configurations
ap-address Set ip address
ap-emt Ap-emt
ap-startup-option Ap-startup-option
application-apperceive Set application-apperceive information
backup Backup information
band-steer Band-steer
capwap CAPWAP
check Check
clear <Group> clear command group
debugging <Group> debugging command group
delete Delete
display Display information
dynamic-power-reduce Dynamic-power-reduce
emt Emt
failure The failure managed
firewall Firewall
info-center <Group> info-center command group
iot-card Command
ipc IPC information
ipv6 IPv6 configuration commands
iwconfig Iwconfig
mem-damage-check Memory demage check
mem-record Record the memory allocation
memory-monitor Memory monitor
mirror Specify Mirror feature
neighbour-link Neighbour-link
ping <Group> ping command group
pki <Group> pki command group
quit Exit from current mode and enter prior mode
refresh Refresh routes to I/O board
reset <Group> reset command group
restore Restore default MAC
resume Resume ap wired port statistics
return Enter the privileged mode
set <Group> set command group
socket Socket module
socket-monitor Switch of sock-monitor
station-trace Station-trace
stop Stop ap wired port statistics
task-switch-record Task-switch-record
terminal <Group> terminal command group
test Test
trace-pkt Trace packet
tracert Trace route function
undo Negate a command or set its defaults
vrbd System hardware and software version information
wds Wds
wifi Wifi
But hey, at least we can get version data here.
[Huawei-diagnose]vrbd
Board 0 SoftWare Compiled Jul 29 2020, 10:28:12 By AP7050DE GROUP
Board 0 BootRom Compiled Jul 29 2020, 18:23:32 By AP7050DE GROUP
Board 0 SoftWare Version V200R019C00SPC803B728 By AP7050DE GROUP
Board 0 VRP VRPV500R017C20SPCa31F001S001
Board 0 DOPRA DOPRA SSP V300R005C00SPC051
Board 0 ESAP Version V200R019C00SPC736B011
Board 0 VPP VPP V300R003C28SPC038
Board 0 WMP WMPV100R019C00SPC330B261
Board 0 SoftWare for user V200R019C00SPC803
I accidentally setup "emt" as the startup option aaand I might've bricked myself. Oops. Doesn't bar me from uboot though.
Saving POST results: Done
POST test: End
Image: Current Bootup is B
Press f or F to stop Auto-Boot in 3 seconds: 0
get_emt_file_from_flash fail!
eth0 Waiting for PHY auto negotiation to complete... TIMEOUT !
Auto-neg error, defaulting to 10BT/HD
Using eth0 device
ARP Retry count exceeded; starting again
eth0 Waiting for PHY auto negotiation to complete... TIMEOUT !
Auto-neg error, defaulting to 10BT/HD
Using eth0 device
ARP Retry count exceeded; starting again
ping failed; host 192.168.1.11 is not alive
eth0 Waiting for PHY auto negotiation to complete... TIMEOUT !
Auto-neg error, defaulting to 10BT/HD
Using eth0 device
ARP Retry count exceeded; starting again
eth0 Waiting for PHY auto negotiation to complete... TIMEOUT !
Auto-neg error, defaulting to 10BT/HD
Using eth0 device