Unable to install on ap11 / ap-303 bootm does exist

I have followed the tutorial and I am able to get to step 4, here is the transcript.

apboot> setenv bootargs_openwrt "setenv bootargs console=ttyMSM1,9600n8"
apboot> setenv nandboot_openwrt "run bootargs_openwrt; ubi part aos1; ubi read 0x85000000 kernel; set fdt_high 0x87000000; bootm 0x85000000"
apboot> setenv ramboot_openwrt "run bootargs_openwrt; setenv ipaddr x.x.x.x; setenv serverip x.x.x.x netget; set fdt_high 0x87000000; bootm"
apboot> setenv bootcmd "run nandboot_openwrt"
apboot> saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
apboot> run ramboot_openwrt
eth0 up: 1 Gb/s full duplex
Using eth0 device
TFTP from server 192.168.21.20; our IP address is 192.168.21.220
Filename 'ipq40xx.ari'.
Load address: 0x84000000
Loading: #################################################################
         ###################################################
         405.3 KiB/s
done
Bytes transferred = 7420140 (7138ec hex)
Invalid image format version: 0x7138ec
Unknown command 'bootm' - try 'help'

I am attaching the boot

APBoot 2.6.2.9 (build 81770)
Built: 2021-10-05 at 22:04:52

Model: AP11
DRAM:  512 MiB
Flash: Detected MX25R3235F: with write protection  total 4 MiB
NAND:  128 MiB
Power: POE
Volume aos1 not found!
Creating dynamic volume aos1 of size 30855168
Net:   eth0
Radio: ipq4019#0, ipq4019#1
FIPS:  passed

Any help before dumping 3 ap..
thanks.

post it ...

also try tftpboot.

There is a syntax error in the script-- no semicolon after setting serverip before netget which is bound to cause a problem.

Try running each command manually instead of calling a script.

1 Like

Hi thanks for helping
this is the result of help

apboot> help
boot    - boot the OS image
clear   - clear the OS image or other information
dhcp    - invoke DHCP client to obtain IP/boot params
factory_reset- reset to factory defaults
help    - print command description/usage
mfginfo - show manufacturing info
osinfo  - show the OS image version(s)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
purgeenv- restore default environment variables
reset   - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
upgrade - upgrade the APBoot or OS image
version - print monitor, compiler and linker version

regarding the use of tftpboot can you help me with the syntax ?

If you're lucky, tftboot will tell you everything you need to know, just by executing the command.

oh , this isnt a script , I executed everything 1 line at a time and move and removed semicolon :slight_smile: to no avail.

oh, thanks. well it does execute as you said but now it just looping . I will try setting up another tftp server.

well tried another tftp. but still no go.
I dont think there is any issue with the tftpboot or the commands. it is running . but maybe the firmware of the ap itself has stripped this magical bootm

You can use the old one, if you reuse the params from earlier.