Cross compile TestDisk for Synology NASIT

From CGSecurity
Jump to navigation Jump to search

En.png English It.png Italiano


Per compilare TestDisk & PhotoRec su un pc Linux con Synology NAS:

  • Leggere DSM Developer Guide
  • Identificare il modello/processore, (Es. CS/RS407, DS207+, DS107+ Marvell 5281 ARM Little Endian 2.6 )

CS/RS407, DS207+, DS107+ Marvell 5281 ARM Little Endian 2.6

  • Scarica i relativi file di utilita : gcc343_glibc232_88f5281.tar.gz
  • Istallali da root,
tar xpzf gcc343_glibc232_88f5281.tar.gz -C /usr/local
  • Crea dei link simbolici alle utilita :
sudo ln -s /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc /usr/local/bin
sudo ln -s /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ld /usr/local/bin
sudo ln -s /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ranlib /usr/local/bin
  • Scarica e decomprimi TestDisk & PhotoRec
wget -N https://www.cgsecurity.org/testdisk-6.12.tar.bz2
tar xjf testdisk-6.12.tar.bz2
  • Compila
cd testdisk-6.12
./compile.sh arm-marvell-linux-gnu

Synology DS-409 Slim

Leggi:

  • Synology 409slim / CPU: Marvell 6281 / ARCH: ARM / Little Endian
  • Linux Version: 2.6.24
  • DSM Version: 3.2-1922
  • DSM Tool Chain: gcc421_glibc25_88f628x.tgz

Ora possiamo iniziare:

  • Scarica il tool chain: gcc421_glibc25_88f628x.tgz
  • Istallalo come root
tar xpzf gcc421_glibc25_88f628x.tgz -C /usr/local
  • Crea dei link simbolici alle utilita :
sudo ln -s /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc /usr/local/bin/
sudo ln -s /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld /usr/local/bin/
sudo ln -s /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ranlib /usr/local/bin/
  • Scarica e decomprimi TestDisk & PhotoRec
wget -N https://www.cgsecurity.org/testdisk-6.12.tar.bz2
tar xjf testdisk-6.12.tar.bz2
  • Compila
cd testdisk-6.12
./compile.sh arm-none-linux-gnueabi