OpenWrt Forum Archive

Topic: OpenWRT on Zyxel G-570Sv2 (AP61 AR2315 SoC Device)

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I tried to install openwrt images to a AR2315 device following the hints of how to install it on a fonera.

Unfortunatly i have a problem with the flashing of the rootfs.
It seems after the flashing of the kernel, there is not enough space anymore in the flash.
Even if i specify a length when flashing the kernel, the kernel uses almost the the full usable flash.

RedBoot> bdrestore
Board config  found at 0xbfff0000
Radio config  found at 0xbfff00f8
Starting sector program for 0xbffe0000! Please wait!
Starting sector program for 0xbfff0000! Please wait!
Restore completed successfully!!
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
<Not a string: 0x807F0000>                 0x41523530  0x30314150  0x20646566  0x61756C74
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
Relocating Board Data to new location.
Found board data at 0xbffe0000.
Found eeprom data at 0xbfff0000.
Starting sector program for 0xbfff0000! Please wait!
Relocation completed successfully!!
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x807f0000-0x80800000 at 0xbffe0000: .
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xBFC00000  0xBFC00000  0x00030000  0x00000000
sysconfig         0xBFF80000  0xBFF80000  0x00050000  0x00000000
config.bin        0xBFFD0000  0xBFFD0000  0x00010000  0x00000000
FIS directory     0xBFFE0000  0xBFFE0000  0x0000F000  0x00000000
RedBoot config    0xBFFEF000  0xBFFEF000  0x00001000  0x00000000
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
Using default protocol (TFTP)
Raw file loaded 0x80040c00-0x80110bff, assumed entry at 0x80040c00
RedBoot> fis create -e 0x80041000 -r 0x80041000 -l 0x000D0000 vmlinux.bin.l7
... Erase from 0xbfc30000-0xbfed0000: ..........................................
... Program from 0x80040c00-0x80110c00 at 0xbfc30000: .............
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x807f0000-0x80800000 at 0xbffe0000: .
RedBoot> fis free
  0xBFED0000 .. 0xBFF80000
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xBFC00000  0xBFC00000  0x00030000  0x00000000
vmlinux.bin.l7    0xBFC30000  0x80041000  0x002A0000  0x80041000
sysconfig         0xBFF80000  0xBFF80000  0x00050000  0x00000000
config.bin        0xBFFD0000  0xBFFD0000  0x00010000  0x00000000
FIS directory     0xBFFE0000  0xBFFE0000  0x0000F000  0x00000000
RedBoot config    0xBFFEF000  0xBFFEF000  0x00001000  0x00000000
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs
Using default protocol (TFTP)
Raw file loaded 0x80040c00-0x801a0bff, assumed entry at 0x80040c00
RedBoot> fis create -l 0x000D0000 rootfs
Can't locate d0000(851968) bytes free in FLASH
RedBoot>

Anyone an idea how to tell the kernel to use only "D0000" instead of "2A0000"?

BTW: Booting the kernel works, but when looking for a rootfs theres off course a panic.

Had luck with the description from benbotti.com/firmware/AR430W.html
I reflashed the bootloader with the one from DIR-300 and after that i was successful installing OpenWRT on it.

The discussion might have continued from here.