タグ: AR9342

ETG3-R LZMA Error

ath79でビルドしてみたところ、initramfsファームを投入してもどうにもLZMAの展開でエラーになりリセットされてしまう。

2018/06/23追記: tftpbootでイメージをRAMに読み込むアドレスが間違っていたのが原因だった模様。
正: 0x81000000

BusyBox v1.15.0 (2014-04-02 10:35:45 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# reboot
The system is going down NOW!
Sent SIGTERM to all processes
Jan  1 01:16:44 miniupnpd[2431]: received signal 15, good-bye
Terminated
Sent SIGKILL toRestarting system.


U-Boot 1.1.4 0.1.5 (Dec 13 2013 - 09:19:12)

U-boot DB120
DRAM[debug]:  
sri
Wasp 1.2
wasp_ddr_initial_config(249): (16bit) ddr2 init
wasp_ddr_initial_config(426): Wasp ddr init done
Tap value selected = 0xf [0x0 - 0x1f]
Setting 0xb8116290 to 0x20402d0f
64 MB

cpu_pll_cfg: 0x40021380
cpu_pll_dither: 0xc00000
CFG_PLL_FREQ: 0x42
CFG_HZ      : 280000000

CPU Clock: 560MHz  DDR Data Rate: 450MHz  DDR Clock: 225MHz

Top of RAM usable for U-Boot at: 84000000
Reserving 204k for U-Boot at: 83fcc000
Reserving 192k for malloc() at: 83f9c000
Reserving 44 Bytes for Board Info at: 83f9bfd4
Reserving 36 Bytes for Global Data at: 83f9bfb0
Reserving 128k for boot params() at: 83f7bfb0
Stack Pointer at: 83f7bf98
Now running in RAM - U-Boot at: 83fcc000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash:  8 MB
pci_init_board: PCIe PLL not set for 40MHz refclk
*** Warning *** : PCIe WLAN Module not found !!!
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
No valid address in Flash. Using fixed address
 wasp  reset mask:c03300 
WASP  ----> S17 PHY *
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
athrs17_reg_init: complete
eth0 up
eth0
Hit any key to stop autoboot:  0 
ar7240> tftpboot 0x80060000 etg3-r.bin
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.10; our IP address is 192.168.0.21
Filename 'etg3-r.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########
done
Bytes transferred = 3371559 (337227 hex)
ar7240> bootm
## Booting image at 80060000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.48
   Created:      2018-06-16  11:19:04 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3371495 Bytes =  3.2 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x80060040 ...OK
   Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 543

Decoding error = 1
LZMA ERROR 1 - must RESET board to recover

Resetting...

U-Boot 1.1.4 0.1.5 (Dec 13 2013 - 09:19:12)

U-boot DB120
DRAM[debug]:  
sri
Wasp 1.2
wasp_ddr_initial_config(249): (16bit) ddr2 init
wasp_ddr_initial_config(426): Wasp ddr init done
Tap value selected = 0xf [0x0 - 0x1f]
Setting 0xb8116290 to 0x20402d0f
64 MB

cpu_pll_cfg: 0x40021380
cpu_pll_dither: 0xc00000
CFG_PLL_FREQ: 0x42
CFG_HZ      : 280000000

CPU Clock: 560MHz  DDR Data Rate: 450MHz  DDR Clock: 225MHz

Top of RAM usable for U-Boot at: 84000000
Reserving 204k for U-Boot at: 83fcc000
Reserving 192k for malloc() at: 83f9c000
Reserving 44 Bytes for Board Info at: 83f9bfd4
Reserving 36 Bytes for Global Data at: 83f9bfb0
Reserving 128k for boot params() at: 83f7bfb0
Stack Pointer at: 83f7bf98
Now running in RAM - U-Boot at: 83fcc000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash:  8 MB
pci_init_board: PCIe PLL not set for 40MHz refclk
*** Warning *** : PCIe WLAN Module not found !!!
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
No valid address in Flash. Using fixed address
 wasp  reset mask:c03300 
WASP  ----> S17 PHY *
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
athrs17_reg_init: complete
eth0 up
eth0
Hit any key to stop autoboot:  0 
## Booting image at 9f6d0000 ...
   Image Name:   Linux Kernel Image
   Created:      2014-04-02   2:37:58 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    996687 Bytes = 973.3 kB
   Load Address: 80002000
   Entry Point:  801fa110
   Verifying Checksum at 0x9f6d0040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 801fa110) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...
(以降省略)
広告

ETG3-R

某フリマアプリで “ルータ” で検索し見て回っていたところ、珍しく有線機を発見したのでアップデートファーム調べたうえで購入。

U-Boot

Kernel