Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:sercomm:ad1018 [2021/01/28 08:59] – [Wifi] danitooltoh:sercomm:ad1018 [2021/08/15 19:57] – [OEM NAND flash layout] danitool
Line 61: Line 61:
   - Press the ''Update'' button and wait some minutes until the update process finish\\ {{:media:sercomm:ad1018:ad1018-oem_updating.png?500|}}\\ The router will restart.   - Press the ''Update'' button and wait some minutes until the update process finish\\ {{:media:sercomm:ad1018:ad1018-oem_updating.png?500|}}\\ The router will restart.
   - ssh to 192.168.1.1 and set a root password, or browse to ''%%http://192.168.1.1%%'' if LuCI is installed.   - ssh to 192.168.1.1 and set a root password, or browse to ''%%http://192.168.1.1%%'' if LuCI is installed.
- 
- 
-==== Installation via CFE web (http) server ==== 
- 
-The RESET button only works in this router for sending an unkown Sercomm image via an unknown transfer procedure.  
- 
-We will use the serial port TX-RX shortcircuit trick (or a serial TTL adapter) for entering into CFE's standard web interface recovery 
- 
-  - Set a **static IP** on your computer, use 192.168.1.35 (or any compatible), and connect the ethernet cable to the router. 
-  - Unplug the router's power cord 
-  - Shortcircuit TX and RX [[#Serial|serial pins]] (this will simulate keyboard buttons pressing on the serial port; ugly but it should work) 
-  - Plug the router's power cord and wait 3 or more seconds  
-  - Remove the TX-RX shortcircuit. 
-  - Browse to ''%%http://192.168.1.1%%'', you should see this screen:\\ {{:media:doc:cfe63xx_web-upgrade.png?500|}}  
-  - Send the new firmware and wait some minutes until the firmware upgrade finish. 
-  - ssh to 192.168.1.1 and set a root password, or browse to ''%%http://192.168.1.1%%'' if LuCI is installed. 
- 
-It's also possible to attach a [[docs:techref:hardware:port.serial|serial]] console (UART 3.3V TTL adapter required). Press any key at the console when starting up the router to break into CFE CLI. 
- 
- 
  
  
Line 105: Line 85:
 </WRAP> </WRAP>
  
 +
 +
 +===== Recovery =====
 +The bootloader (CFE) comes with a proprietary Sercomm module for recovering purposes. If for some reason the router is unable to boot due to a faulty firmware, you can recover the router by putting it into Sercomm Upgrade mode. Follow these steps:
 +
 +  - Power off the router
 +  - Press the RESET button, don't release it yet!
 +  - Power on the router
 +  - Wait 8 seconds or more until the LEDs blink sequentially from left to right
 +  - Release the RESET button
 +  - Execute the sercomm-recovery utility as root in your OS-linux computer: <code bash>sercomm-recovery -v eth0 flash_burn.bin</code> If you have the serial console attached to the router, you'll se this output: <WRAP bootlog>
 +<nowiki>CFE version 1.0.38-114.185 for BCM96328 (32bit,SP,BE)                                                                             
 +Build Date: 2013年 08月 21日 星期三 11:42:59 CST (root@localhost)                                                                 
 +Copyright (C) 2000-2011 Broadcom Corporation.                                                                                     
 +                                                                                                                                  
 +NAND flash device: name , id 0x92f1 block 128KB size 131072KB                                                                     
 +Chip ID: BCM6328B0, MIPS: 320MHz, DDR: 320MHz, Bus: 160MHz                                                                        
 +Main Thread: TP0                                                                                                                  
 +Memory Test Passed                                                                                                                
 +Total Memory: 134217728 bytes (128MB)                                                                                             
 +Boot Address: 0xb8000000                                                                                                          
 +                                                                                                                                  
 +find flag begin read flash map                                                                                                    
 +Board IP address                  : 192.168.1.1:ffffff00                                                                          
 +Host IP address                   : 192.168.1.100                                                                                 
 +Gateway IP address                :                                                                                               
 +Run from flash/host (f/h)         : f                                                                                             
 +Default host run file name        : vmlinux                                                                                       
 +Default host flash file name      : bcm963xx_fs_kernel                                                                            
 +Boot delay (0-9 seconds)          : 1                                                                                             
 +Board Id (0-10)                   : 96328avngr                                                                                    
 +Number of MAC Addresses (1-32)    : 16                                                                                            
 +Base MAC Address                  : d4:21:22:89:e4:e4                                                                             
 +PSI Size (1-64) KBytes            : 24                                                                                            
 +Enable Backup PSI [0|1]           : 0                                                                                             
 +System Log Size (0-256) KBytes    : 0                                                                                             
 +Auxillary File System Size Percent: 0                                                                                             
 +Main Thread Number [0|1]          : 0                                                                                             
 +Voice Board Configuration (0-7)   : SI32176                                                                                       
 +                                                                                                                                  
 +SC_DEBUG: Nand Partition Table Magic Found at 20000.                                                                              
 +*** Press any key to stop auto run (1 seconds) ***                                                                                
 +Auto run second count down: 1                                                                                                     
 + Port 1 link UP                                                                                                                   
 +0                                                                                                                                 
 +                                                                                                                                  
 +***************************************************                                                                               
 +    Sercomm Boot Version 1.1.3.0                                                                                                  
 +                                                                                                                                  
 +***************************************************                                                                               
 +Reset Button is pressed!                                                                                                          
 +DEBUG_INF:===================================================                                                                     
 +DEBUG_INF:Sercomm Upgrade(Module Ver 2.01) Start!                                                                                 
 +DEBUG_INF:===================================================                                                                     
 +DEBUG_INF:event, get version                                                                                                      
 +DEBUG_INF:normal upgrade.                                                                                                         
 +DEBUG_INF:Erase Done.                                                                                                             
 +DEBUG_INF:Program Starting.                                                                                                       
 +DEBUG_INF:Verify Starting.                                                                                                        
 +DEBUG_ERR:stop timer                                                                                                              
 +DEBUG_INF:===================================================                                                                     
 +DEBUG_INF:Stats of this Sercomm Upgrade is as below:                                                                              
 +DEBUG_INF:===================================================                                                                     
 +DEBUG_INF:Partition cferom                                                                                                        
 +                                        with index 0, offset 0x00000000, length 0x00020000 NOT erased!                            
 +DEBUG_INF:Partition partition-map                                                                                                 
 +                                        with index 1, offset 0x00020000, length 0x000a0000 NOT erased!                            
 +DEBUG_INF:Partition cferam1                                                                                                       
 +                                        with index 2, offset 0x000c0000, length 0x00140000 NOT erased!                            
 +DEBUG_INF:Partition cferam2                                                                                                       
 +                                        with index 3, offset 0x00200000, length 0x00140000 NOT erased!                            
 +DEBUG_INF:Partition PCBASN                                                                                                        
 +                                        with index 4, offset 0x00340000, length 0x000a0000 NOT erased!                            
 +DEBUG_INF:Partition protect                                                                                                       
 +                                        with index 5, offset 0x003e0000, length 0x00140000 NOT erased!                            
 +DEBUG_INF:Partition xml_cfg                                                                                                       
 +                                        with index 12, offset 0x06ba0000, length 0x00280000 NOT erased!                           
 +DEBUG_INF:---------------------------------------------------                                                                     
 +DEBUG_INF:Partition kernel_fs1                                                                                                    
 +                                        with index 6, updated! (0000)bad, (0000)dropped!                                          
 +DEBUG_INF:Partition lib_1                                                                                                         
 +                                        with index 7, updated! (0000)bad, (0000)dropped!                                          
 +DEBUG_INF:Partition kernel_fs2                                                                                                    
 +                                        with index 8, updated! (0000)bad, (0000)dropped!                                          
 +DEBUG_INF:Partition lib_2                                                                                                         
 +                                        with index 9, updated! (0000)bad, (0000)dropped!                                          
 +DEBUG_INF:Partition boot_flag1                                                                                                    
 +                                        with index 10, updated! (0000)bad, (0000)dropped!                                         
 +DEBUG_INF:Partition boot_flag2                                                                                                    
 +                                        with index 11, updated! (0000)bad, (0000)dropped!                                         
 +DEBUG_INF:Partition app_data                                                                                                      
 +                                        with index 13, updated! (0000)bad, (0000)dropped!                                         
 +DEBUG_INF:===================================================                                                                     
 +DEBUG_INF:Reset.                                                                                                                  
 +Disabling Switch ports.                                                                                                           
 +Flushing Receive Buffers...                                                                                                       
 +0 buffers found.                                                                                                                  
 +Closing DMA Channels.                                                                                                             
 +                                                                                                                                  
 +Resetting board in 0 seconds...HELO        </nowiki>
 +</WRAP>\\
 +  <WRAP center round download 60%>
 +Recovery image: [[https://drive.google.com/uc?export=download&id=1ZdEOVFXbEn65BF2LZGt0p3qThjr-fxC7|ad1018-recovery-flash_burn.zip]]
 +
 +Sercomm recovery utility: https://github.com/danitool/sercomm-recovery
 +</WRAP>
  
  
Line 158: Line 244:
  
 ==== NAND flash chip specs ====  ==== NAND flash chip specs ==== 
-''ID code                          : 92f18095+<code>ID code                          : 92f18095
 Manufacturer                     : EON Manufacturer                     : EON
 Device                           : NAND 128MiB 3,3V 8-bit Device                           : NAND 128MiB 3,3V 8-bit
Line 172: Line 258:
 Organization                     : X16 Organization                     : X16
 Serial access time               : 25 ns Serial access time               : 25 ns
-OOB size                         : 64 bytes''+OOB size                         : 64 bytes</code>
  
 ==== OEM NAND flash layout ==== ==== OEM NAND flash layout ====
 ^ Index ^ Partition ^ Name        ^ filesystem ^ description                 ^ Block ^ Offset         ^ Size ^  Size (KiB)  ^ ^ Index ^ Partition ^ Name        ^ filesystem ^ description                 ^ Block ^ Offset         ^ Size ^  Size (KiB)  ^
 | 00    | mtd0      | cferom    | n/a        | rom bootloader              | 0      | ''0x0000000'' | 0x0020000 |  128 | | 00    | mtd0      | cferom    | n/a        | rom bootloader              | 0      | ''0x0000000'' | 0x0020000 |  128 |
-| 01    | mtd3      | mmap      | n/a        | partition table             | 1      | ''0x0020000'' | 0x00a0000 |  640 |+| 01    | mtd3      | partition-map | n/a    | partition table             | 1      | ''0x0020000'' | 0x00a0000 |  640 |
 | 02    | mtd1      | cferam1   | jffs2      | ram bootloader 1            | 5      | ''0x00c0000'' | 0x0140000 |  1280 | | 02    | mtd1      | cferam1   | jffs2      | ram bootloader 1            | 5      | ''0x00c0000'' | 0x0140000 |  1280 |
 | 03    | mtd2      | cferam2   | jffs2      | ram bootloader 2            | 16     | ''0x0200000'' | 0x0140000 |  1280 | | 03    | mtd2      | cferam2   | jffs2      | ram bootloader 2            | 16     | ''0x0200000'' | 0x0140000 |  1280 |
-| 04    | mtd4      | pcba-sn    | n/a        | serial number               | 26     | ''0x0340000'' | 0x00a0000 |  640 | +| 04    | mtd4      | PCBASN    | n/a        | serial number               | 26     | ''0x0340000'' | 0x00a0000 |  640 | 
-| 05    | mtd5      | protect_data   | jffs2 (rw) | csn, hw_id, pin_code, wlan_ssid, wlan_wpa2_key | 31 | ''0x03e0000'' | 0x0140000 |  1280 | +| 05    | mtd5      | protect   | jffs2 (rw) | csn, hw_id, pin_code, wlan_ssid, wlan_wpa2_key | 31 | ''0x03e0000'' | 0x0140000 |  1280 | 
-| 06    | mtd6      | kernel_fs1   | jffs2 (ro) | Linux root 1                | 41     | ''0x0520000'' | 0x1e00000 |  30720 | +| 06    | mtd6      | kernel_fs1   | jffs2 (ro) | Linux root 1             | 41     | ''0x0520000'' | 0x1e00000 |  30720 | 
-| 07    | mtd12     | lib_1  | jffs2 (ro) | Linux root libraries 1        | 281    | ''0x2320000'' | 0x1400000 |  20480 | +| 07    | mtd12     | lib_1  | jffs2 (ro) | Linux root libraries 1         | 281    | ''0x2320000'' | 0x1400000 |  20480 | 
-| 08    | mtd7      | kernel_fs2 | jffs2 (ro) | Linux root 2     | 441    | ''0x3720000'' | 0x1e00000 |  30720 | +| 08    | mtd7      | kernel_fs2 | jffs2 (ro) | Linux root 2               | 441    | ''0x3720000'' | 0x1e00000 |  30720 | 
-| 09    | mtd13     | lib_2  | jffs2 (ro) | Linux root libraries 2 | 681    | ''0x5520000'' | 0x1400000 |  20480 |+| 09    | mtd13     | lib_2  | jffs2 (ro) | Linux root libraries 2         | 681    | ''0x5520000'' | 0x1400000 |  20480 |
 | 10    | mtd8      | bootflag1 | n/a        | boot select                 | 841    | ''0x6920000'' | 0x0140000 |  1280 | | 10    | mtd8      | bootflag1 | n/a        | boot select                 | 841    | ''0x6920000'' | 0x0140000 |  1280 |
 | 11    | mtd9      | bootflag2 | n/a        | boot select                 | 851    | ''0x6a60000'' | 0x0140000 |  1280 | | 11    | mtd9      | bootflag2 | n/a        | boot select                 | 851    | ''0x6a60000'' | 0x0140000 |  1280 |
 | 12    | mtd10     | xml_cfg   | jffs2 (rw) | configuration               | 861    | ''0x6ba0000'' | 0x0280000 |  2560 | | 12    | mtd10     | xml_cfg   | jffs2 (rw) | configuration               | 861    | ''0x6ba0000'' | 0x0280000 |  2560 |
-| 13    | mtd11     app_dat   | jffs2 (rw) | logs                        | 881    | ''0x6e20000'' | 0x0280000 |  2560 |+| 13    | mtd11     app_data  | jffs2 (rw) | logs                        | 881    | ''0x6e20000'' | 0x0280000 |  2560 |
  
 <WRAP center round download 60%> <WRAP center round download 60%>
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1