Donnerstag, 29. Dezember 2011

FSG-3 to openWRT

Enhanced Howto for porting the FSG-3 to openWRT

regarding the links on and>Install_OpenWRT_on_FSG_from_shell_without_serial_console install openwrt on fsg-3

SSH Login as root: 

ssh -p 22 admin@fsgIP
admin@fsgIP's password: 
~ $ su
root password:

/ # passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password: 

Re-enter new password: 

Password changed.
/ #

install ipkg
make 2 script files (install_ipk, cleanup)
from page

file ds101-bootstrap_1.0-4_armeb.xsh from page

copy all three files into some directory on the fsg-3

Type sh install_ipkg
Type sh cleanup


Type ipkg update

made Problems with FSGA/v1.7 Firmware v4.2.7
because ipkg comes with the firmware but buggy.

umount /opt
  • remove optware:
rm -rf /home/.optware
rm -rf /usr/lib/ipkg
  • reboot
  • run bootstrap:
sh <path to bootstrap file>
stable packages for Firmware v4

ipkg for v4 Firmware Workaround to get ipkg working

Install FIS and Fconfig

ipkg install fis
ipkg install fconig

Flash Image System (FIS)  from RedBoot User's Guide

Table of Contents
fis init -- Initialize Flash Image System (FIS)
fis list -- List Flash Image System directory
fis free -- Free flash image
fis create -- Create flash image
fis load -- Load flash image
fis delete -- Delete flash image
fis lock -- Lock flash area
fis unlock -- Unlock flash area
fis erase -- Erase flash area
fis write -- Write flash area
If the platform has flash memory, RedBoot can use this for image storage. Executable images, as well as data, can be stored in flash in a simple file store. The fis command (fis is short for Flash Image System) is used to manipulate and maintain flash images.

fconfig - redboot config


/ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 00180000 00020000 "kern1"
mtd2: 00180000 00020000 "kern2"
mtd3: 00020000 00020000 "RedBoot config"
mtd4: 00020000 00020000 "FIS directory"

Stock firmware layout, Flash Partitions

RedBoot> fis list
Name                             FLASH addr     Mem addr          Length            Entry point
RedBoot                        0x50000000        0x50000000       0x00040000      0x00000000
kern1                              0x50080000        0x00700000       0x00180000      0x00700000
kern2                              0x50200000        0x00700000       0x00180000      0x00700000
RedBoot config            0x503C0000       0x503C0000      0x00020000      0x00000000
FIS directory                 0x503E0000       0x503E0000       0x00020000      0x00000000

 / # fconfig -r -d /dev/mtd3 -n boot_script_data
Low verbosity messages are printed.
fis load kern1
exec -c "console=ttyS0,115200 root=/dev/hda1 mem=64M@0x00000000"

hilfreicher redboot-fehler forums post

HDD Partitions
hda1   200MB reiserfs
hda2   200MB reiserfs
hda3   150MB linux-swap
hda4   1GB+ reiserfs remaining space

freifunk openwrt buildroot anleitung

Keine Kommentare:

Kommentar veröffentlichen