Skip to main content

[OpenWRT] ExRoot Menggunakan SD Card Modem

Selamat malam, selamat berjumpa kembali :) 

Kali ini saya akan share percobaan yang baru saja saya lakukan, dan beruntungnya berhasil saya lakukan, jadi saya share sekalian buat mengingat-ingat langkah - langkahnya. Artikel exroot sebelumnya sudah saya pernah saya bahas, namun kala itu saya menggunakan flashdisk sebagai media exrootnya, saya waktu itu menggunakan flashdisk dengan ukuran 256 MB merk PixelView, flashdisk yang sudah berumur sekitar 7 tahun dan sampai sekarang masih normal. Namun saatnya dia pensiun :( 

Saya ingin menggantikanya dengan sebuah microSD yang memang sedang nganggur bekas HP. Saya menggunakan microSD yang kebetulan sudah SDHC dengan merk SanDisk ukuran 16 GB yang saya partisi menjadi 14 GB dengan tipe ext4 dan 900 MB untuk partisi swapnya. 

PASTIKAN FORMATNYA EXT4 UNTUK ROOT

Alat dan bahan yang saya gunakan

  1. Modem Huawei E173  - Modem paling kompatibel di semua OS menurut saya :)
  2. microSD ukuran terserah, pastikan sudah dipartisi ext4
  3. Koneksi internet
Langkah - langkahnya sebenarnya hampir mirip dengan artikel exroot sebelumnya, langkah pertama yaitu dengan menginstall drivernya, agar perangkat usb kita dapat dideteksi
opkg update
opkg install kmod-usb-storage kmod-fs-ext4 block-mount kmod-usb-core kmod-usb-serial kmod-usb-serial-option kmod-usb2 luci-proto-3g
Langkah selanjutnya adalah dengan mengenalkan modem anda ke system. Ini adalah konfigurasi untuk modem E173, untuk modem yang lain, silahkan unduh paket lsusb dan jalankan, lihat berapa kode product dan kode vendor, lalu masukkan ke /etc/modules.d/60-usb-serial. Contohnya seperti berikut ini
Hasil laporan dari lsusb




vi /etc/modules.d/60-usb-serial
usbserial vendor=0x12d1 product=0x1003
Setelah langkah tersebut selesai, restart dulu routernya dengan perintah reboot.
Setelah router kembali menyala, pastikan ada tulisan sda, sda1, sda... pada direktori /dev anda. Jika ya, maka selamat anda sudah berhasil melakukan pengenalan terhadap microSD yang berada pada modem. Langkah berikutnya adalah melakukan exroot biasa, silahkan lihat artikel exroot sebelumnya.

Bagaimana jika ternyata tidak ada sda di direktori /dev ?
Silahkan anda ketikkan perintah ini
blkid /dev/sda>/dev/null 2>/dev/null
Lalu cek lagi isi direktori /dev apakah sudah muncul sda nya ?

Sedikit masalah ketika anda melakukan coldboot dimana anda menyalakan router dari kondisi mati, modem tidak akan terdeteksi kembali, untuk melakukanya secara otomatis, silahkan buka
vi /lib/preinit/50_determine_usb_root
dan ganti isinya dengan yang sudah di modifikasi. [Download]

Reboot kembali, dan berdoalah semoga berhasil, jika sudah menyala kembali, cek dengan perintah df -h dan lihat pada baris pertama yang menunjukan root, apakah ukuranya sudah berganti? kalau sudah maka anda berhasil melakukan exroot :)

Ukuran root setelah exroot. 14GB !!



ref : http://alfanla.com/blog/2014/01/modem-3g-micro-sd-8gb-extroot-di-openwrt/


Comments

Popular posts from this blog

HackRF Mayhem Failed to Update - M0 Guru Meditation Hard

I was on Mayhem Portapack v2.0.1 and want to upgrade to the latest stable release v2.1.0. The update went okay using the web upgrade https://hackrf.app/. But then I saw the latest nightly update and want to try it, since it has many new tools that are not yet included in the stable release. But then the update failed :( Disclaimer: I didn't take any photos of the errors, since I was focused on googling the solution. So the error was " Bad Firmware or Failed W/R error" during the upgrade process, and it was stuck. So I had to restart the device, and it was booting to the Mayhem menu, but on the bottom left, which should show the current firmware version, it was showing a  "FLASH ERR"  message. I think I should go back to the stable release, but I can't. Every time I want to flash the stable release version, the portapack will shows an error M0 Guru Meditation - Hard Fault.  There's an issue that was closed on the Mayhem GIT repo that has the same issue a...

Macintosh Classic II Brightness Issue

The Problem My Macintosh Classic II suffers from an issue where the display CRT goes dim after a few minutes on a cold boot. Every time it happens, I need to crank up the cut-off and brightness  pot behind the machine to show the image. The Analyze At first, I thought it must be the brightness issue, so I searched for the Macintosh Classic analog board schematic to check the brightness line. I found the schematic from Bomarc, and the schematic is suitable with my board, since there are two analog board versions.  I started to suspect the resistors and potentiometer on the brightness line. This Macintosh version has software-controlled brightness, so the analog board will get a 22.25 kHz square wave PBM signal from the logic board to control the brightness. I checked and replaced some resistors and cleaned the potentiometer, but nothing seems to work. The signal is there, and no sign of degradation that makes the screen dim after a few minutes.  Brightness Line So I suspec...

Fiberhome HG6145D2 Superadmin Login

Maybe some of you are using In**ehome ISP as your home internet and found out that using the provided login has minimal options to configure the router: user  user1234 I know it’s not the admin login, and that must be a full-control user account that can be used to control this router fully. So I searched and found some posts on the net and most of them are telling me to use: admin %0|F?H@f!berhO3e I tested it and it doesn’t work! But there’s more to it, you need to reset the router first by pressing the reset button on the side of the router. Then after resetting, you can log in using the admin superaccount! But keep in mind, never use the user log in again, because it will lock the super admin login until you reset the router again. Cheers 🍺