ReferencePlatforms/mobile-imaging-linux

From MozillaWiki
Jump to navigation Jump to search

Install OS

I installed Debian 5 stable

I downloaded the e1000e driver from

http://downloadmirror.intel.com/15817/eng/e1000e-1.1.19.tar.gz

I ran through the default options, setting timezone as appropriate. I selected Guided Partitioning -> Use Entire Disk -> All File in One Partition. When asked which software I wished to install, I selected only 'SSH server' and 'Standard system utilites'

The following assumes a user account 'root' and 'maemo'. 'maemo' is a user account

Setup OS

su -
apt-get update
apt-get upgrade
apt-get install sudo mercurial build-essential mtd-utils
visudo
#add the line
%sudo ALL=(ALL) NOPASSWD: ALL
gpasswd -a maemo sudo

Setup Mozilla Environment

hg clone http://hg.mozilla.org/build/tools
ln -s tools/buildfarm/mobile/n810-imaging
ln -s tools/buildfarm/mobile/n900-imaging
cd n810-imaging
mkdir empty
echo 'USE AN SD CARD' > empty/INFO
mkfs.jffs2 -r empty -o empty.jffs2 -e 128
rm -rf empty
wget http://samba.anu.edu.au/ftp/rsync/src/rsync-2.6.9.tar.gz
tar zxf rsync-2.6.9.tar.gz
cd rsync-2.6.9
./configure --disable-debug --prefix=/home/maemo
make -j4
make install
cp ~/bin/rsync /usr/bin/rsync2
sed -i -e 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config
#obtain appropriate nokia flasher and RX-44 stock image
#you only need one of the flasher* programs, the one for your system.
#the static one is useful if you have libraries missing
openssl sha1 RX-44_DIABLO_5.2008.43-7_PR_COMBINED_MR0_ARM.bin flasher-3.0* flasher-2.0.macosx
#SHA1(RX-44_DIABLO_5.2008.43-7_PR_COMBINED_MR0_ARM.bin)= 5464ae20a17afdbd59633f3d36a2e63281fcd106
#SHA1(flasher-3.0)= e4e3b0b791dca7bc91c710fc3702f4d72f904e7a
#SHA1(flasher-3.0-static)= d28b5597649a3ae40579d50f651c5d73afee19f9
#SHA1(flasher-3.0.amd64)= c56f71b69acd8ed0c19757451e14ba4a59645c5f
#SHA1(flasher-2.0.macosx)= 484bb141dad18ea68f7618c4f07f549311caf9b5

old doc below

OS Install

There aren't too many specifics for the operating system that is installed.

  • Install Fedora 12 32bit
  • select defauts for language options (English, US...)
  • when partitioning select 'Use entire disk'
  • when selecting software:
    • untick 'Office and Productivity'
    • tick 'Software Development'
  • set root password appropriately

First Run

Set up time synchronizing as desired, create a user:

  • Full Name: Maemo Flashing
  • User Name: maemo
  • Password :

and send hardware profile.

If your network connection doesn't connect automatically, right click computers with red box/white x and select 'edit connections'. select System eth0 and click edit -> tick connect automatically -> authenticate as root


Setup Mozilla Environment

hg clone http://hg.mozilla.org/build/tools
ln -s tools/buildfarm/mobile/n810-imaging
ln -s tools/buildfarm/mobile/n900-imaging
wget http://samba.anu.edu.au/ftp/rsync/src/rsync-2.6.9.tar.gz
tar zxf rsync-2.6.9.tar.gz
cd rsync-2.6.9
./configure --disable-debug --prefix=/home/maemo
make -j4
make install
cp ~/bin/rsync /usr/bin/rsync2
sed -i -e 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config
#obtain appropriate nokia flasher