Skip to content

Instantly share code, notes, and snippets.

@mbernasocchi
Created December 2, 2015 11:52
Show Gist options
  • Save mbernasocchi/764e7f296dca51a831fa to your computer and use it in GitHub Desktop.
Save mbernasocchi/764e7f296dca51a831fa to your computer and use it in GitHub Desktop.
# get toolchain
wget -c -O qoriq-gcc4374_eglibc2874_qoriq-GPL.txz http://sourceforge.net/projects/dsgpl/files/DSM%205.2%20Tool%20Chains/PowerPC%20QorIQ%20Linux%202.6.32/qoriq-gcc4374_eglibc2874_qoriq-GPL.txz/download
# install toolchain
if [ ! -d "/usr/local/powerpc-none-linux-gnuspe/" ]; then
tar zxpf gcc343_glibc232_88f5281.tgz –C /usr/local/
fi
# get kernel sources
wget -c -O qoriq-source.txz http://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/5565branch/qoriq-source.txz/download
# unpack kernel sources
if [ ! -d "source" ]; then
# will enter here if ./source doesn't exist.
tar xJfv qoriq-source.txz
fi
cd source/linux-2.6.32
cp -f synoconfigs/ppcQorIQ .config
export CCPREFIX=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-
export ARCHITECTURE=powerpc
# Prepare the kernel
make ARCH=powerpc \ CROSS_COMPILE=${CCPREFIX} oldconfig
#make ARCH=${ARCHITECTURE} \ CROSS_COMPILE=${CCPREFIX} menuconfig
make ARCH=${ARCHITECTURE} \ CROSS_COMPILE=${CCPREFIX} arch/powerpc/lib/crtsavres.o
make ARCH=${ARCHITECTURE} \ CROSS_COMPILE=${CCPREFIX} modules
#make ARCH=${ARCHITECTURE} \ CROSS_COMPILE=${CCPREFIX} M=/home/marco/dev/syno/DPO_RT5572_LinuxSTA_2.6.1.3_20121022_DWA-140_D1_prepared modules
@mbernasocchi
Copy link
Author

The word of "Default" must not be removed

Default
CountryRegion=1
CountryRegionABand=1
CountryCode=CH
ChannelGeography=1
SSID=11n-AP
NetworkType=Infra
WirelessMode=5
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
AutoRoaming=0
RoamThreshold=70
APSDCapable=0
APSDAC=0;0;0;0
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=0
HT_MpduDensity=4
HT_BW=1
HT_BADecline=0
HT_AutoBA=1
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3
HT_DisallowTKIP=1
HT_STBC=0
EthConvertMode=
EthCloneMac=
IEEE80211H=0
TGnWifiTest=0
WirelessEvent=0
MeshId=MESH
MeshAutoLink=1
MeshAuthMode=OPEN
MeshEncrypType=NONE
MeshWPAKEY=
MeshDefaultkey=1
MeshWEPKEY=
CarrierDetect=0
AntDiversity=0
BeaconLostTime=4
FtSupport=0
Wapiifname=ra0
WapiPsk=
WapiPskType=
WapiUserCertPath=
WapiAsCertPath=
PSP_XLINK_MODE=0
WscManufacturer=
WscModelName=
WscDeviceName=
WscModelNumber=
WscSerialNumber=
RadioOn=1
WIDIEnable=0
P2P_L2SD_SCAN_TOGGLE=8
Wsc4digitPinCode=0
P2P_WIDIEnable=0
PMFMFPC=0
PMFMFPR=0
PMFSHA256=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment