..

Linux mobile uchun ikkinchi hayotni beramiz

Loyihani qo'llab quvvatlash uchub buyerga bosing

Nokia n900 kompyuter geeklari orasida afsonalardan biriga aylangan qurilma hisoblanadi. Qurilma narxi o’z davri va hozirgacha qimmat bo’lishiga qaramasdan o’zining fanat bazasini yo’qotmagan. Chunki X window, GTK, Gnome, APT va DPKG kabi muhim utilitalarni barmoqlar ostida o’ziga jalb qilgan qurilma kimga ham yoqmasdi!

Shuningdek ushbu qurilma o’z davriga nisbatan ko’plab modullarniyam qamrab olgan. Infraqizil port, fm transmitter va receiver, Bluetooth, GSM, GPS, HSDPA, WiFi, GPIO, Analogli tvga ulash uchun PAL va SECAM modulyatorlarning ba’ri telefon ichida mujassam.

Texnik jihatdan telefon TI OMAP3430 (600 MHz) protsessori ustida qurilgan. 256MB ram va 768MB PRAM orqali SWAP ajratilgan. Eng asosiysi 32Gb flesh xotira ham qolib ketmagan.

Nokia dasturchilari tomonidan o’sha vaqtda operatsion tizimni qurishga Debian distributivi tanlab olingan. Ushbu distro ustida Maemo mobil operatsion tizimi qurilgan bo’lib Hildon desktop orqali o’z davri uchun eng qulay OSni tashkil etgan. Keyinchalik Meego ham aynan shu operatsion tizimning davomchisi hisoblanadi (Agarda Nokia Microsoft tomonidan sotib olinmaganda Meego bugungi kunda uchinchi raqobatchi OSga aylanar edi).

nokia n900

Firmwareni yangilash

Eslatma: Ushbu jarayon sizning qurilmang’izni g’ishtga aylantirishi mumkin

Nokia n900 RX51 kodi bilan yuritilgan bo’lib hozirgi vaqtda uning barcha utilitalari va proshivkalarini topish muammo. Ammo contents.manu.uz dan bemalol orxirgi versiyani topishingiz mumkin.

Quyidagi buyruq orqali kerakli fayllarni yuklab olinadi:

wget https://contents.manu.uz/nokia_n900/combined.bin
wget https://contents.manu.uz/nokia_n900/vanilla.bin
wget https://contents.manu.uz/nokia_n900/maemo_flasher-3.5_2.5.2.2_i386.deb

Maemo flasher dasturi 32 bitlik (i386) operatsion tizim uchun moslashganiga sizning hozirgi operatsion tizimingizda to’lish ishlamasligi mumkin. Muammoni bartaraf etish uchun o’zingiz ishlatayotgan distroga qarab linux headers o’rnatishingiz lozim.

Shuningdek usb orqali qurilma bilan ulana olishi uchun libusb kutubxonasi ham kerak.

sudo apt-get install libusb-0.1-4:i386

Maemo flasherni o’rnatish:

sudo dpkg -i maemo\_flasher-3.5\_2.5.2.2\_i386.deb

Quyidagi boshqichlarni amalga oshirishdan avval qurilma quvvati to’liq ekanligiga ishonch hosil qiling:

Repozitoriyalarni yangilash

Nokia repozitoriyalarning ko’pi allaqachon o’chirilgan shuningdek OVI.COM ham bugungi kunda aktiv emas. Ammo entuziastlar tomonidan qayta tiklangan repozitoriyalar mavjud va siz ularni bemalol qayta sozlashingiz mumkin. Bu uchun quyidagi harakatlarni amalga oshiring.

enter image description here

Application Manager ilovasidan Application Catalogues menyusiga kirasiz va barcha mavjud repositoriyalarni o’chirasiz.

Keyin esa quyidagi repositoriyalarni qayta qo’shib chiqasiz:

Catalogue Name - Extras
Web address - http://repository.maemo.org/extras
Distribution - fremantle-1.3
Components - free non-free

Catalogue Name - Extras-Testing
Web address - http://repository.maemo.org/extras-testing/
Distribution - fremantle-1.3
Components - free non-free

Catalogue Name - Extras-Devel
Web address - http://repository.maemo.org/extras-devel/
Distribution - fremantle-1.3
Components - free non-free

enter image description here

Kerakli ilovalar

Android o’rnatish

Nokia n900 uchun o’z vaqtida android 2.3 ham port qilingan. Hozirgi vaqtda ushbu versiya eskiligiga qaramasdan siz androidni dual boot sifatida foydalanishingiz va o’rganishingiz mumkin.

enter image description here

Bu uchun terminal orqali quyidagi buyruqlarni kiritish kifoya:

sudo gainroot
apt-get update
apt-get install nitdroid-installer

Nitdroid launcherni ishga tushirmagan holda terminalni yoping va qayta oching. Shundan so’ng quyidagi harakatlarni amalga oshiring.

sudo gainroot
nitdroid

O’rnatish muvaffaqiyatli amalga oshirilgach

reboot

Postmarket OS o’rnatish:

Postmarket OS sizni quvontirishi tabiiy. Chunki kommunityning harakatlari sabab bugungi kunda nokia n900ga linux kernel 5.5 va i3m to’laqonli port qilingan (xfce, kde, lxqt, mate kabi desktop environmentlar ham mavjud). Shuningdek ushbu OSni asosiy maemoga xalaqit bermagan holda bemalol sd card orqali o’rnatishingiz mumkin. Bu orqali sizda mutiboot paralel ikkita os ishlatish imkoni tug’iladi.

enter image description here

Ushbu havola orqali nokia n900 uchun oxirgi postmarketni yuklab oling. Men i3 variantini taklif bergan bo’lardim. 3.5 dyumlik ekran uchun ancha qulay hisoblanadi.

Nokia n900 terminali orqali quyidagini o’rnating. Shuningdek Application manager orqali u-boot paketini ham o’rnatsangiz bo’ladi.

sudo gainroot
apt-get install u-boot-flasher

Image yuklab olingach balena eatcher orqali micro sdga yozasiz va nokia n900ni klaviaturasini ochiq holda yoqqaningizda multiboot sizda qaysi operatsion tizimga boot qilishni so’raydi.

Har safar SD card tanlab yurmaslik uchun Memo terminal orqali /etc/bootmenu.d/10-pmos.item faylni yaratib quyidagi kontentni yozib qo’yishingiz mumkin:

ITEM_NAME="postmarketOS"
ITEM_SCRIPT="boot.scr"
ITEM_DEVICE="${EXT_CARD}p1"  ITEM_FSTYPE="ext2"

Shundan so’ng u-boot-update-bootmenu buyrug’ini kiritish orqali PmOSni asosiy os etib belgilay olasiz.

Postmarket OS sozlash:

Soat:

date -s "2024-09-13 22:22:22"
hwclock -w

SMS:

sudo apk add ofono-scripts
cd /usr/lib/ofono/test
./enable-modem
./online-modem
./send-sms 998999999999 "Men Olimman." 0

WiFi:

sudo nmtui

GPRS:

sudo rc-service ofono stop

Quyidagi faylni yarating: /var/lib/ofono/<IMSI>/gprs. <IMSI> raqamini androidga simkartani qo’ygan holda About bo’limidan aniqlashingiz mumkin.

[Settings]                                                                                              
Powered=true                                                                                             
RoamingAllowed=false                                                                                     
[context1]                                                                                              
Name=Internet                                                                                            
AccessPointName=internet.beeline.uz                                                                 
Username=beeline                                                                                               
Password=beeline
AuthenticationMethod=chap
Type=internet                                                                                            
Protocol=ip
sudo rc-service ofono start
sudo rc-service networkmanager stop
sudo rc-service networkmanager start

Fm transmitter:

v4l2-ctl -d /dev/radio0 --set-ctrl=mute=0 --set-freq=95.21
aplay -vv music.wav

Kamera chiroqlari:

sudo apk add i2c-tools
sudo modprobe -r adp1653
#chipni yoqish
echo 88 | sudo tee /sys/class/gpio/export
echo "out" | sudo tee /sys/class/gpio/gpio88/direction
echo 1 | sudo tee /sys/class/gpio/gpio88/value
#chiroqni yoqish
sudo i2cset -y 2 0x30 0x0 0x8
#chiroqni yoqish
sudo i2cset -y 2 0x30 0x0 0x0