Jump to content

Первый опыт сборки пакетов


Recommended Posts

В этом топике буду рассказывать свой опыт компиляции пакетов для Keenetic Viva

Имеем в наличии Ubunu 14.04 и мануал

Для корректной компиляции необходимо установить следующие библиотеки:

# Установить утилиты для компиляции 
sudo apt-get install build-essential

# Установить программы и библиотеки необходимые для работы скриптов
sudo apt-get install libncurses5-dev zlib1g-dev gawk subversion git

#Дальше выполняем команды по инструкции из мануала
 

Возможные ошибки во время компиляции

  • Не распаковывайте билд рут в путь содержащий русские символы, во время инсталляции будет возникать ошибка с кодировкой
Link to comment
Share on other sites

Поместил скомпиленные пакеты на USB диск в папку install (как в мануале), но роутер выдает ошибку. Тоже самое с пакетами из http://files.keenopt.ru/preinstall/Keenetic_Viva/. Как быть дальше в чем может быть ошибка?

Jan 01 03:20:06ndmSyslog: the system log has been cleared.
Jan 01 03:21:51ndmkernel: usb 1-1: new high speed USB device using rt3xxx-ehci and address 6
Jan 01 03:21:51ndmkernel: usb 2-1: new full speed USB device using rt3xxx-ohci and address 2
Jan 01 03:21:51ndmkernel: usb 2-1: not running at top speed; connect to a high speed hub
Jan 01 03:21:51ndmkernel: scsi4 : usb-storage 2-1:1.0
Jan 01 03:21:52ndmkernel: scsi 4:0:0:0: Direct-Access                               1.00 PQ: 0 ANSI: 2
Jan 01 03:21:52ndmkernel: sd 4:0:0:0: Attached scsi generic sg0 type 0
Jan 01 03:21:52ndmkernel: sd 4:0:0:0: [sda] 15204352 512-byte logical blocks: (7.78 GB/7.25 GiB)
Jan 01 03:21:52ndmkernel: sd 4:0:0:0: [sda] Write Protect is off
Jan 01 03:21:52ndmkernel: sd 4:0:0:0: [sda] Mode Sense: 2f 00 00 00
Jan 01 03:21:52ndmkernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Jan 01 03:21:52ndmkernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Jan 01 03:21:52ndmkernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Jan 01 03:21:54ndmkernel:  sda: sda1
Jan 01 03:21:54ndmkernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Jan 01 03:21:54ndmkernel: sd 4:0:0:0: [sda] Attached SCSI removable disk
Jan 01 03:21:54ndmFileSystem::Ext: "/dev/sda" has an unknown partition type, ignored.
Jan 01 03:21:55ndmFileSystem::Ext: ext3 "677b1b44-1ef8-4ecb-a159-9831a49968dd:" filesystem initialized.
Jan 01 03:21:55ndmkernel: EXT3-fs: barriers not enabled
Jan 01 03:21:55ndmkernel: kjournald starting.  Commit interval 5 seconds
Jan 01 03:21:55ndmkernel: EXT3-fs (sda1): using internal journal
Jan 01 03:21:55ndmkernel: EXT3-fs (sda1): mounted filesystem with writeback data mode
Jan 01 03:21:55ndmOpkg::Manager: /tmp/mnt/OPKG mounted to /tmp/mnt/OPKG.
Jan 01 03:21:55ndmOpkg::Manager: /tmp/mnt/OPKG mounted to /opt/.
Jan 01 03:21:55npkginflating "kmod-nls-iso8859-1_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "libgcc_-1_mt76xx.ipk".
Jan 01 03:21:55npkginflating "kmod-ipt-core_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-nls-cp866_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-usb-net-cdc-ether_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "libiptc_1.4.12-1_mt76xx.ipk".
Jan 01 03:21:55npkginflating "kmod-crypto-aes_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-crypto-test_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-pppoe_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-fs-ext2_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-crypto-arc4_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-ipt-nathelper-ftp_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-usb-ehci_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-ralink_wdt_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-crypto-sha1_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-usb-printer_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "libxtables6_1.4.12-1_mt76xx.ipk".
Jan 01 03:21:55npkginflating "kmod-crypto-des_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-crypto-authenc_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-nls-base_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-mppe_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-nls-cp437_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:55npkginflating "kmod-usb-serial-ftdi_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-nls-cp1251_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "libc_-1_mt76xx.ipk".
Jan 01 03:21:56npkginflating "kmod-fs-jffs2_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-ipsec_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-sit_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-net-asix_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-net-dm9601-ether_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-serial-option_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-net-huawei-cdc-ncm_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-core_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "libpthread_-1_mt76xx.ipk".
Jan 01 03:21:56npkginflating "kmod-crypto-core_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-net-wdm-ncm_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-net-rndis_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-serial-sierrawireless_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-ubridge_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-ipt-nathelper-rtsp_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-ipsec4_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-acm_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-serial-pl2303_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "kmod-usb-net_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "libxtables_1.4.12-1_mt76xx.ipk".
Jan 01 03:21:56npkginflating "kmod-ipt-ipsec_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:56npkginflating "base-files_117-unknown_all.ipk".
Jan 01 03:21:57npkginflating "ip_2.6.37-1_mt76xx.ipk".
Jan 01 03:21:57npkginflating "kmod-crypto-null_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-ppp_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-usb-serial_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-ipv6_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-lib-crc16_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-crypto-aead_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-crypto-sha256_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-crypto-md5_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "kmod-scsi-core_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:57npkginflating "busybox_1.19.3-8_mt76xx.ipk".
Jan 01 03:21:58npkginflating "kmod-iptunnel4_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-crypto-hmac_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-crypto-hash_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "opkg_618-2_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-ipt-nathelper-h323_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-usb-serial-wwan_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-nls-utf8_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-fs-ext3_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-ipt-nathelper-pptp_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "librt_-1_mt76xx.ipk".
Jan 01 03:21:58npkginflating "kernel_2.6.36-1-97bf281976d954f01eae5b590c8e84c8_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-tun_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-scsi-cdrom_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-ipt-nat-extra_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-ip6tables_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-scsi-generic_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-loop_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-nls-koi8r_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-ipt-conntrack_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-ipt-ipopt_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-usb-ohci_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-usb-storage_2.6.36-1_kng_rc.ipk".
Jan 01 03:21:58npkginflating "kmod-ipt-nathelper-sip_2.6.36-1_kng_rc.ipk".
Jan 01 03:22:32ndmOpkg::Manager: /tmp/mnt/OPKG initialized.
Jan 01 03:22:32ndmProcess: "Opkg shell": unable to start (unable to execute a process: no such file or directory).
Jan 01 03:22:32ndmProcess: failed to start "Opkg shell".
Jan 01 03:22:32ndmOpkg::Manager: process 1: failed to start.
Jan 01 03:22:32ndmProcess: "Opkg shell": unable to start (unable to execute a process: no such file or directory).
Jan 01 03:22:32ndmProcess: failed to start "Opkg shell".
Jan 01 03:22:32ndmOpkg::Manager: process 1: failed to start.
Jan 01 03:22:32ndmProcess: "Opkg shell": unable to start (unable to execute a process: no such file or directory).
Jan 01 03:22:32ndmProcess: failed to start "Opkg shell".
Jan 01 03:22:32ndmOpkg::Manager: process 1: failed to start.

Link to comment
Share on other sites

Похоже вы не понимаете, что делаете. Зачем вам модули ядра, которые и так уже есть в прошивке? Воспользуйтесь готовым

- http://www.keenopt.ru/viewtopic.php?p=78#p78 Посмотрите как все устроено.

Готовые выдают такую же ошибку. Я просто добавлял эти пакеты в папку install на флешке. Возможна ли такая ошибка из-за отсутствия интернета на роутере?

Link to comment
Share on other sites

Jan 01 04:07:16ndmOpkg::Manager: /tmp/mnt/OPKG mounted to /tmp/mnt/OPKG.
Jan 01 04:07:16ndmOpkg::Manager: /tmp/mnt/OPKG mounted to /opt/.
Jan 01 04:07:16npkginflating "libgcc_-1_mt76xx.ipk".
Jan 01 04:07:16npkginflating "libndm_2.06.A.4.0-2_mt76xx.ipk".
Jan 01 04:07:16npkginflating "libc_-1_mt76xx.ipk".
Jan 01 04:07:16npkginflating "pam_ndm_2.06.A.4.0-2_mt76xx.ipk".
Jan 01 04:07:16npkginflating "libpthread_-1_mt76xx.ipk".
Jan 01 04:07:16npkginflating "dropbear_0.52_mt76xx.ipk".
Jan 01 04:07:16npkginflating "base-files_117-unknown_all.ipk".
Jan 01 04:07:16npkginflating "busybox_1.19.3-8_mt76xx.ipk".
Jan 01 04:07:16npkginflating "opkg_618-2_kng_rc.ipk".
Jan 01 04:07:17npkginflating "librt_-1_mt76xx.ipk".
Jan 01 04:07:17npkginflating "libpam_1.1.8-3_mt76xx.ipk".
Jan 01 04:07:31ndmOpkg::Manager: /tmp/mnt/OPKG initialized.
Jan 01 04:07:31ndmProcess: "Opkg shell": unable to start (unable to execute a process: no such file or directory).
Jan 01 04:07:31ndmProcess: failed to start "Opkg shell".
Jan 01 04:07:31ndmOpkg::Manager: process 1: failed to start.
Jan 01 04:07:31ndmProcess: "Opkg shell": unable to start (unable to execute a process: no such file or directory).
Jan 01 04:07:31ndmProcess: failed to start "Opkg shell".
Jan 01 04:07:31ndmOpkg::Manager: process 1: failed to start.
Jan 01 04:07:31ndmProcess: "Opkg shell": unable to start (unable to execute a process: no such file or directory).
Jan 01 04:07:31ndmProcess: failed to start "Opkg shell".
Jan 01 04:07:31ndmOpkg::Manager: process 1: failed to start.
Jan 01 04:07:31ndmProcess: "Opkg shell": unable to start (unable to execute a process: no such file or directory).
Jan 01 04:07:31ndmProcess: failed to start "Opkg shell".
Jan 01 04:07:31ndmOpkg::Manager: process 1: failed to start.

Link to comment
Share on other sites

Архив рабочий. После распаковки на ext2 и ext3 без проблем работает на Keenetic II. Попробуем завтра где-нибудь достать виву...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...