Install openwrt firmware in Broadlink's C1n
Do you have broadlink's next version Altai C1n CPE/AP? Want to use it for other personal purposes at home or work...
Revealing customization is always not possible as we think. Each time they improve security hole and make harder to exploit as newer version is released.
However, it is possible to reveal and remove password of broadlink's customization: Compile open source firmware, use tftpboot to boot ramfs firmware image from uboot and mount the locked flash area to reveal through serial, just like booting windows or Linux using iso CD image and accessing the other partition of the disk....
Lets do something other then revealing password. Since this device is powered by openwrt firmware, why not install latest openwrt and use it as Multi SSID Access Point, WDS , Repeater, Relay Bridge or Station mode with more powerful and secured device.
Do you have broadlink's next version Altai C1n CPE/AP? Want to use it for other personal purposes at home or work...
Revealing customization is always not possible as we think. Each time they improve security hole and make harder to exploit as newer version is released.
However, it is possible to reveal and remove password of broadlink's customization: Compile open source firmware, use tftpboot to boot ramfs firmware image from uboot and mount the locked flash area to reveal through serial, just like booting windows or Linux using iso CD image and accessing the other partition of the disk....
Lets do something other then revealing password. Since this device is powered by openwrt firmware, why not install latest openwrt and use it as Multi SSID Access Point, WDS , Repeater, Relay Bridge or Station mode with more powerful and secured device.
Device Details
Name: Altai C1n Super WiFi CPE/AP
Model: WA1011N-G
FCCID : UCC-WA1011N-G
Board : DB120
CPU : Atheros (AR9344)
RAM : 32 MB
FLASH: 8MB
Boot Loader: U-boot
Platform: linux, openwrt
Wifi support: 802.11 bgn
Radio: 2.4 Ghz
WAN: 1 Ethernet POE
Power: 18v, 0.66A (POE)
Hardware version: 1.0
![]() |
| C1n Super WiFi CPE/AP (WA1011N-G) |
FCCID : UCC-WA1011N-G
Board : DB120
CPU : Atheros (AR9344)
RAM : 32 MB
FLASH: 8MB
Boot Loader: U-boot
Platform: linux, openwrt
Wifi support: 802.11 bgn
Radio: 2.4 Ghz
WAN: 1 Ethernet POE
Power: 18v, 0.66A (POE)
Hardware version: 1.0
Platform:
C1n used Atheros based SOC chip with DB120 platform board, is powered by popular wireless open source system "openwrt" equipped with U-boot bootloader, embedded Linux sytem and busybox.
Because this firmware is customized for specific use, you wont get full benefits/power of openwrt until you replace the original firmware with your own compile firmware.
![]() |
| C1n Front and Rear view |
Because this firmware is customized for specific use, you wont get full benefits/power of openwrt until you replace the original firmware with your own compile firmware.
Know more about openwrt
Using binwalk tool in linux the following information is displayed:
root@user#binwalk C1n_1.2.4.1821_2014-04-07.bin
DECIMAL HEX DESCRIPTION
-------------------------------------------------------------------------------------------------------------------
65536 0x10000 uImage header, header size: 64 bytes, header CRC: 0xE20DFCAF, created: Mon Apr 7 17:19:54 2014, image size: 892269 bytes, Data Address: 0x80060000, Entry Point: 0x80060000, data CRC: 0xA60F2B25, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "MIPS OpenWrt Linux-2.6.32.25"
65600 0x10040 LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 2664968 bytes
983040 0xF0000 Squashfs filesystem, little endian, version 4.0, compression:lzma, size: 5233777 bytes, 1815 inodes, blocksize: 131072 bytes, created: Mon Apr 7 17:19:52 2014
The header displaying uImage, (uboot) boot loader, Linux openwrt firmware kernel compressed with LZMA.
Another header showing the Squashfs filesystem with LZMA compressd .
Warnning !!!
Installing custom firmware to device will void warranty....
Your device may permanently damaged....
However the following processes are conducted many times and successfully attempted and mine device is working perfectly,
I am not liable, guaranty and bear any loss of yours, do at your own risk.....
If you don't know what you are doing.. then please don't do....
This process is specially for C1n device (model: WA1011N-G, Hardware version: 1.0, see device details above), and will not work for other model( such as c1), never try with other model.
How to install Custom openwrt Firmware
Another header showing the Squashfs filesystem with LZMA compressd .
Warnning !!!
Installing custom firmware to device will void warranty....
Your device may permanently damaged....
However the following processes are conducted many times and successfully attempted and mine device is working perfectly,
I am not liable, guaranty and bear any loss of yours, do at your own risk.....
If you don't know what you are doing.. then please don't do....
This process is specially for C1n device (model: WA1011N-G, Hardware version: 1.0, see device details above), and will not work for other model( such as c1), never try with other model.
How to install Custom openwrt Firmware
1. Prepare your device for serial connection
We should connect device through serial to access boot loader through where we can install custom firmware.
disassembling and serial pins configuration of C1n is same as C1 device, see my old blog how to disassemble and connect c1n serials with computer...
disassembling and serial pins configuration of C1n is same as C1 device, see my old blog how to disassemble and connect c1n serials with computer...
2. Prepare firmware:
Openwrt is free open source project, releases operating systems for embedded system and that supports wide range of wireless devices.
You can download source and build own version of firmware.
you can download openwrt source code form here:
View openwrt wiki how to compile firmware:
Or you can download this complied one of mine:
3. Prepare your computer:
Linux is best platform to compile and upload firmware for such devices
a. Install and configure dnsmasq
There are several way of installing dnsmasq in Linux distro.. prepare with googling.....
apt-get install dnsmasq
Un-comment following line in /etc/dnsmasq.conf and save to enable tftp feature in dnsmasq.
# Enable dnsmasq's built-in TFTP server
enable-tftp
# Set the root directory for files available via FTP.
tftp-root=/tftp/
Start dnsmasq service
service dnsmasq start
a. Install and configure dnsmasq
There are several way of installing dnsmasq in Linux distro.. prepare with googling.....
apt-get install dnsmasq
Un-comment following line in /etc/dnsmasq.conf and save to enable tftp feature in dnsmasq.
# Enable dnsmasq's built-in TFTP server
enable-tftp
# Set the root directory for files available via FTP.
tftp-root=/tftp/
Start dnsmasq service
service dnsmasq start
copy downloaded or compiled firmware file to /tftp/ folder you may change the long file name with short one to make easier.
cp openwrt-2.2.1-ar71xx-generic-db120-squashfs-sysupgrade.bin sysupgrade2.2.1.bin
Renames downloaded file
b. Open minicom and configure
Connect usb serial ttl device to usb and run the command.
minicom -s
will open minicom setup menu.
i. Select Serial port setup
C1n will work on
Speed(baud rate): 115200
Data bits:8
Stop bits:1
Parity:none
i.e. 115200 8N1
ii.Press E to select 115200 8N1
iii.Press Enter and Select Save setup as dft and Exit from minicom.
Then hit following command.
minicom
Run following commands from I to IV, only if the following error occurred while running minicom.
I.
dmesg | grep tty
(shows which serial device connected to which port i.e in my case FTDI USB serial Device to ttyUSB0)
II.
minicom
(starts the minicom, but may shows error: /dev/modem not found)
III.
ln -s /dev/ttyUSB0 /dev/modem
(makes soft link serial device to connected USB serial device)
IV.
minicom
(now your minicom should run successfully with following messages
4. Configure C1n Networks connection
Connect the network cable jack one end to C1n Ethernet port and another end to power supply(POE) (Data out + power)port. connect device LAN port to computer LAN port with another cable.
Plugged in the POE power adapter to electric power socket.
As soon as your C1n is switched on you will see the booting information as following minicom window.
Press any key to interrupt firmware boot process after display above marked message, you have just 4 seconds.
(Note: Sometimes device boot is stuck(hang) as soon as some sort of messages is shown with some usb ttl device... do following process if so...
1. power off device
2. plugged out c1n TX pin cable(C1n device side) leaving RX and GND as connected
3. power on device
4. as soon as powered on connect TX pin cable to C1n, quickly hit any key on keyboard to interrupt firmware boot process)
5. Setup C1n u-boot parameters
As soon as you press any key between 4 seconds, the firmware boot process is interrupted, hit following command to view and setup required parameters.
printenv
will shows the u-boot environment variable as shown in pictures.
ipaddr:C1n boot time ip
serverip: tftp server ip should match with your PC LAN ip.
bootcmd: firmware boot process loads from this memory...we should change this later to boot our firmware successfully
Leave other things as it is and set the serverip to match with your PC LAN ip with following command.
set serverip 192.168.1.180
in my case my PC LAN address is 192.168.1.180, change it as yours
check network connection between C1n and PC dnsmasq service by
ping 192.168.1.180
if "host X.X.X.X is alive" message is displayed then all are going ok, we are ready for flash
6. Flash custom firmware
i. Download firmware from PC to Device RAM
tftp 0x80060000 sysupgrade2.2.1.bin
this command loads the firmware from pc to device RAM.
Following progress with total bytes transferred is displayed in hex value.
Note the (file size:762d23), we require it while erasing and writing flash.
iii. Change firmware boot parameter and save changes
set bootcmd bootm 0x9f680000
Changes boot location of firmware that points on flash on where kernel (vmlinux) is located, after loading the kernel image successfully , it prepares system doing rest of the system booting tasks.
save
This will commit all changes permanently in u-boot environment variable.
reset
This will restart the C1n. Reboot u-boot loader and loads the new firmware displaying following messages.
![]() |
| openwrt trunk build version r47436
Configure Device to operate in Station Mode:
In station mode your device wireless can be connected with any wireless access point(worked as WAN) and device POE port as LAN.
You can configure your device to operate in various mode ....Please visit openwrt official website how to configure device to other mode.
1. For quick configuration download this file to your computer...
OpenWrt provides webconfig powerd by luci.
2. Open web browser
Type 192.168.1.1, type user: root and password: (leave empty and press login)
3. Upload archive
After logged in press System tab, then Backup / Flash Firmware, click Browse button, select the downloaded archive file, click upload archive button and your system starts configuring device in station mode.
Wait for reboot device.... You are ready, login again, change the ssid and security key from Network-> wifi tab.
That's it , enjoy with your powerful and secured device..............
Read this also: Remove Broadlink's C1 password |


















hi ii have C1an, can you please help me require or reset username and password please. i can pay for the service
ReplyDeletehello:how go back to firmware original altai c1n from openwrt;thank
ReplyDeleteHave you backed up original firmware before flashing openwrt? If yes, then truncat first 64 bytes that contais uboot loader using dd tool and flash truncated firmware using mtdwrite command from busybox in openwrt. If not, download the altai c1n firmware from altai and remember you have to overwrite the uboot loader also, which is very risky, if you mess up something wrong you won't re-write firmware and boot the device anymore with out JTAG. Do your at own risk....
Deletethank;why the wirless altai c1n is very low on openwrt
Deletethank;why the wirless altai c1n is very low on openwrt
ReplyDeletehello i uploaded Altai C1 CPE/Ap Wa1011c C1.v1.6.0.200.130617.1626.bin firmware to the Broadlink's C1n Device but now the device is not working only power and LAN led are lights on I heaved connect it to PC and and gives the IP address but it's not working how do i fix this or reset this. i heaved tried to hard reset too but it's now working please replay me as soon as possible thank you.
ReplyDeleteNow it is possible to reveal the password of every C1n device through serial.. and no need to install openwrt too. Thanks guys for providing the C1n device to flash openwrt.... Its time to write next blog about that ...just waiting for some more free days from office...until then keep on send me the device to get new and new password.... Thanks
ReplyDeleteThis comment has been removed by the author.
Deletewhat tools do we need to reveal the c1n password through serial
DeleteHi,
ReplyDeleteThanks again for helping me to install openwrt last year. Yesterday I made some changes in the device settings and after reboot, it won't issue ip to device neither by WiFi or LAN cable. I have tried static ip on both wifi and lan. So I really can't connect or login now. How can I hard reset it. I have tried pressing button on the device, apparently it does not seem working either.
might be your lan configuration misconfigured so you can not logged in ... how did you flashed openwrt last year.. from serial you can logged in and configure the lan interface ... visit openwrt to know how to configure network. or you can mail me the detail problem by mail : rabin.ghimire@gmail.com
DeleteHi Rabin, i have a problem with my c1n, i flashed succesfully lede v17.01.0. i notice that the lan mac is changing every reboot.but it gives me a random mac which i believe form a "locally administered" class. not the factory mac of eth0. even if i change the /etc/config/network add option macaddr, when i reboot it again does not seem it applied my config. Thanks for your feedback i hope you can help me
ReplyDeleteRabin how can we get the password for c1n via serial?
ReplyDeletehow can i get the password for c1 ....already have my tools
ReplyDeleteThere given the complete tutorial with screenshots about c1 in another blog, you can find the link at top right under Blog List, or visit the link http://rabinsfun.blogspot.com/
Deletevia serial
ReplyDeleteHello Rabin g, I have Altai c1aqn 5 Ghz, where to find firmware for that device???
ReplyDeleteHi, Mr Rabin could you please upload the original firmware of c1n i couldnt find it
ReplyDeleteRedblue do u still need the original firmware?
ReplyDeleteYes please
DeleteThis comment has been removed by the author.
Deleterabin how go back to firmware original altai c1n from openwrt
ReplyDeleteThis comment has been removed by the author.
ReplyDeletethank you for sharing it, its a 16mb dump and the flash size is only 8 mb what should i trim of it ?
Deletedmsmasq always can not use port 53
ReplyDeleteHello, had a bad firmware update on my Altai c1n which leaded to a malfunction of it, it stuck at booting with only one led on, can't access to interface manager or any sort of ways to reset or reprogram it, even the reset button doesn't do anything, I would appreciate your help, should I use TTL device and follow same steps on this tuto, or there is another way? Thank you
ReplyDeleteif you get succeed receiving it please share the experience here.
Deleteah finally I found easy way to get root passed check it out..
ReplyDeletehttps://github.com/stateactor/Altaic1n_root_passwd