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).
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:
- N900 klaviaturasini oching va USB kabelini telefonga ulaganda “U” tugmasini bosib turing
- Terminal orqali
sudo flasher-3.5 -F vanilla.bin -f
buyrug’ini kiring va jarayon yakunlanishini kutib turing - Yuqoridagi jarayon yakunlangach telefon batareykasini sug’urib birinchi bosqichni qayta oshiring.
- Telefon ikkinchi marotaba yuklash rejimiga o’tgach ikkinchi faylni ham o’rnating
sudo flasher-3.5 -F combined.bin -f -R
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.
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
Kerakli ilovalar
-
rootsh - super user (su) orqali turli amallarni bajarishga yordam beradi. Terminal orqali
sudo gainroot
buyrug’i bilan ishga tushirish mumkin. - wget 1.19.5 - internetdan http, https va ftp protokollari orqali turli kontentlarni klonlash uchun foydalanish mumkin.
- neovim - matnli. fayllarni tahrirlash uchun
- iPython - python uchun kutubxonalar to’plami
- u-boot - memodan tashqari turli operatsion tizimlarni yuklash uchun boot manager (Nokia n900ga android, kubuntu, alpine linux, meego, windows 98 va ko’plab operatsion tizimlar port qilingan)
- PyQt4 - Python uchun QT frameworki
- TCC - Tiny C compiler, C dasturlash tilida yozilgan dasturlashni kompiliyatsiya qilish uchun utilita.
- Linux kernel for power user - QoS, NAT, USB/IP, PPTP kabi ko’plab qo’shimcha imkoniyatlarni kernel modullariga qo’shib beradi.
- htop - resurslar va aktiv ilovalarni boshqarish uchun ilova
- Enhanced BusyBox shell - unix utilitalarini o’rnatish. BusyBox quyidagi utilitalarni o’z ichiga oladi: bunzip2 bzcat bzip2 cpio cttyhack dnsdomainname dumpkmap ed fbset fdflush hush ip ipaddr iplink iproute iprule mountpoint mt nc pipe_progress popmaildir pscan usleep blockdev bootchartd crond fdisk ifenslave ip iptunnel klogd loadkmap logread makedevs mdev nbd-client raidautorun setconsole sulogin sysctl syslogd vconfig adjtimex arping base64 beep brctl cal catv chpst chrt crontab cryptpw dc devmem diff dos2unix dumpleases eject envdir envuidgid ether-wake fdformat fgconsole flock freeramdisk ftpget ftpput hexdump ionice iostat ipcalc last length less linux32 linux64 loadfont lpd lpq lpr lzcat lzma lzop lzopcat makemime man microcom mkpasswd mpstat nmeter patch pmap readahead reformime resize rev rpm rpm2cpio rtcwake runsv runsvdir rx script scriptreplay setarch setfont setuidgid showkey smemcap softlimit strings sv svlogd tcpsvd telnet tftp timeout traceroute traceroute6 ttysize udhcpc udpsvd unix2dos unlzma unlzop unxz unzip uudecode uuencode vlock volname wall xz xzcat ar acpid add-shell addgroup adduser arp chat delgroup deluser dhcprelay dnsd fakeidentd ftpd hdparm httpd ifplugd inetd lspci ntpd rdate rdev readprofile remove-shell sendmail sha256sum sha512sum telnetd tftpd tunctl udhcpd watchdog zcip whois pstree pwdx groups users setserial nameif ubirsvol
- Midnight Commander - Norton kommander (Total kommander) ning davomchisi. Ikkita yon panelga ega linux fayl menejeri.
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.
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.
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