I have questions about porting to an old device

Hi!

I'm new here. If I do anything that breaks the rules, I’m sorry. Please let me know.

I have an old device, the ZyXEL P-1302-T10D v3. I know that devices not supported because amount of ram/rom, but I still have it and want to try new things, learn, and have some fun with it.

I have Telnet access, and here’s what I’ve found:

# free
              total         used         free       shared      buffers
  Mem:        29056        27044         2012            0         2320
 Swap:            0            0            0
Total:        29056        27044         2012

# dmesg
 FwVer:3.24.21.0_A_MT7550 HwVer:T14.F7_13.0
Testlab 10 
eth0.1: no IPv6 routers present
eth0.3: no IPv6 routers present
eth0.2: no IPv6 routers present
eth0.4: no IPv6 routers present
passwd used greatest stack depth: 12948 bytes left
No Support SW Dying Gasp
sh used greatest stack depth: 12852 bytes left
No Support SW Dying Gasp
No Support SW Dying Gasp
ifconfig used greatest stack depth: 12676 bytes left
No Support SW Dying Gasp
No Support SW Dying Gasp
sh used greatest stack depth: 11924 bytes left
No Support SW Dying Gasp
check sessionkey fail, /boaroot/cgi-bin/2tiers_save.asp
No Support SW Dying Gasp

When I try anything about mtd, I get:

# cat /proc/mtd
Command "cat /proc/mtd" is forbidden!
# uname -a
Linux ZyXEL 2.6.36 #14 Thu Sep 26 10:56:11 HKT 2019 mips unknown
# all commands i get when i press tab
CAdecoder       deluser         inadyn          portbindcmd     tcapi 
ConfigFilter    dhcp6c          inetd           pppcmd          tcci 
\[              dhcp6s          init            pppd            tce 
addgroup        dhcpdetector    insmod          pppd2.4.4       tcwdog 
adduser         dhcrelay        ip              pppoe-relay     test 
adslcmd         dirname         ip6tables       pppstat         tftp 
adslstat        dmesg           ipcs            pptp            tftpd 
algcmd          dnsmasq         iptables        ps              top 
arp             dropbear        iwpriv          ptmcmd          tr069 
ash             ebtables        kill            pwd             tr69 
ated            echo            killall         qoscmd          traceroute 
atmcmd          ecmh            klogd           radvd           traceroute6 
autoFwUpgrade   email4log       ln              reboot          true 
basename        env             login           ripd            udhcpc 
bftpd           ethcmd          ls              rm              udhcpd 
boa             expr            maceui          rmdir           umount 
br2684ctl       ez-ipupdate     mailsend        rmmod           uname 
brasinfo        false           md5             route           uptime 
brctl           faultmgmt       mkdir           rt2860apd       usleep 
busybox         firewallcmd     more            sed             utelnetd 
cat             free            mount           sh              vah 
cfg_manager     ftpget          mtd             sleep           vahcmd 
chmod           ftpput          mv              smuxctl         vconfig 
cp              getty           netstat         snmpd           w 
cpu             grep            nslookup        sys             wan 
crond           head            nslookup6       syscmd          wget 
cut             hostname        ntpclient       sysctl          wlan 
cwmpcmd         hw_nat          passwd          sysdiagd        wlancmd 
date            ifconfig        pidof           syslogd         wscd 
dd              igmp            ping            taskset         yes 
delgroup        igmpproxy       ping6           tc              zebra 

# cat /etc/passwd
admin:$1$$iC.dUsGpxNNJGeOm1dFio/:0:0:root:/:/bin/sh
user:$1$$iC.dUsGpxNNJGeOm1dFio/:0:0:root:/:/bin/sh
supervisor:$1$$UP2fW7FlIw3hAFJI/mzg01:0:0:root:/:/bin/sh

note: admin and user's passwd is 1234, supervisor account's pasword is zyad1234

# cat /proc/cpuinfo
system type             : Ralink MT7505 SOC
processor               : 0
cpu model               : MIPS 24Kc V5.5
BogoMIPS                : 359.62
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ce0, 0x0150, 0x02b8]
ASEs implemented        : mips16 dsp
shadow register sets    : 2
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

When I insert a cross compiled executable binary file to /tmp directory and try to run, it says ./xxxx : not found.

I think maybe that kernel can handle my device with a little work.

After googling ' FwVer:3.24.21.0_A_MT7550 HwVer:T14.F7_13.0' i found that. Maybe that devices are have same hardware?I have UART pins on motherboard.

Where I should start? I want to get OpenWRT running on that device, it may be old, thats not a problem.

You have somewhat restricted shell to start with.
Can you get dmesg?
Maybe:

: ; busybox "cat /proc/mtd"

and variations thereof

I posted the dmesg output above.

# busybox "cat /proc/mtd"
Command "busybox "cat /proc/mtd"" is forbidden!
# export abc=mtd
Command "export abc=mtd" is forbidden!
# abc mtd
Command "abc mtd" is forbidden!
# 

I think it restricted as a string. anything includes "mtd" is automatically denied.

Wait...

# cat /proc/mt*
dev:    size   erasesize  name
mtd0: 00020000 00010000 "bootloader"
mtd1: 00010000 00010000 "romfile"
mtd2: 00119858 00010000 "kernel"
mtd3: 004c0000 00010000 "rootfs"
mtd4: 00002f91 00010000 "defcfg"
mtd5: 007a0000 00010000 "tclinux"
mtd6: 00010000 00010000 "reservearea"
mtd7: 00010000 00010000 "romd"
mtd8: 00010000 00010000 "second_romfile"
# 

huh?
"*" is working :smiley:

2 Likes

OK, where would you download firmware updates?

I am still asking for

busybo* dmes*

:wink:

# busybox dmesg
rs present
eth0.3: no IPv6 routers present
eth0.2: no IPv6 routers present
eth0.4: no IPv6 routers present
passwd used greatest stack depth: 12948 bytes left
No Support SW Dying Gasp
sh used greatest stack depth: 12852 bytes left
No Support SW Dying Gasp
No Support SW Dying Gasp
ifconfig used greatest stack depth: 12676 bytes left
No Support SW Dying Gasp
No Support SW Dying Gasp
sh used greatest stack depth: 11924 bytes left
No Support SW Dying Gasp
check sessionkey fail, /boaroot/cgi-bin/2tiers_save.asp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
No Support SW Dying Gasp
da match,0x588bf36e8794
No Support SW Dying Gasp
No Support SW Dying Gasp

Here is the update link.

Particular SoC is not supported. What is in busy*ox free ? 64MB is too little for new device.

2 Likes

Yes it has a Ralink DSL SoC which is not in the tree at all. Also 4/32 memory.

2 Likes

I know. I dont want to build a fully functional or up-to-date version of OpenWRT. I'm just a hobbyist. I want to build an older version of OpenWRT or at least a custom firmware that supports wireless repeating mode.

If device was ever supported you'd have old working version, and big chance build profile is still in the tree and you can build a very skimmed down version that eg does dumb-ap only without web ui or firewall.
Yours never was, sadly becoming e-waste.

2 Likes