V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xiaofami
V2EX  ›  问与答

无法下载 polarssl-1.3.9-gpl.tgz 导致 openwrt 编译失败

  •  1
     
  •   xiaofami · 2014-11-23 13:36:21 +08:00 · 8160 次点击
    这是一个创建于 3652 天前的主题,其中的信息可能已经有所发展或是发生改变。
    想给RY-1编译定制的openwrt固件,可是编译失败。打开V=s重新编译了一次,失败退出前显示如下信息:

    --2014-11-23 12:50:48-- https://polarssl.org/code/releases/polarssl-1.3.9-gpl.tgz
    Resolving polarssl.org (polarssl.org)... 79.170.91.36
    Connecting to polarssl.org (polarssl.org)|79.170.91.36|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1741396 (1.7M) [application/x-gzip]
    Saving to: 'STDOUT'

    37% [==============================================> ] 655,280 85.9KB/s in 7.4s

    2014-11-23 12:50:58 (85.9 KB/s) - Connection closed at byte 655280. Retrying.

    --2014-11-23 12:50:59-- (try: 2) https://polarssl.org/code/releases/polarssl-1.3.9-gpl.tgz
    Connecting to polarssl.org (polarssl.org)|79.170.91.36|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1741396 (1.7M) [application/x-gzip]
    Saving to: 'STDOUT'

    30% [=====================================> ] 524,224 74.9KB/s in 6.8s

    2014-11-23 12:51:07 (74.9 KB/s) - Connection closed at byte 655280. Retrying.

    --2014-11-23 12:51:09-- (try: 3) https://polarssl.org/code/releases/polarssl-1.3.9-gpl.tgz
    Connecting to polarssl.org (polarssl.org)|79.170.91.36|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1741396 (1.7M) [application/x-gzip]
    Saving to: 'STDOUT'

    18% [======================> ] 326,624 52.2KB/s in 6.1s

    2014-11-23 12:51:18 (52.2 KB/s) - Connection closed at byte 655280. Retrying.

    --2014-11-23 12:51:21-- (try: 4) https://polarssl.org/code/releases/polarssl-1.3.9-gpl.tgz
    Connecting to polarssl.org (polarssl.org)|79.170.91.36|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1741396 (1.7M) [application/x-gzip]
    Saving to: 'STDOUT'

    11% [=============> ] 195,568 29.7KB/s in 6.4s

    2014-11-23 12:51:29 (29.7 KB/s) - Connection closed at byte 655280. Retrying.

    --2014-11-23 12:51:33-- (try: 5) https://polarssl.org/code/releases/polarssl-1.3.9-gpl.tgz
    Connecting to polarssl.org (polarssl.org)|79.170.91.36|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1741396 (1.7M) [application/x-gzip]
    Saving to: 'STDOUT'

    13% [===============> ] 229,352 36.8KB/s in 6.1s

    2014-11-23 12:51:41 (36.8 KB/s) - Connection closed at byte 655280. Giving up.

    Download failed.
    --2014-11-23 12:51:41-- http://mirror2.openwrt.org/sources/polarssl-1.3.9-gpl.tgz
    Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
    Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2014-11-23 12:51:43 ERROR 404: Not Found.

    Download failed.
    --2014-11-23 12:51:43-- http://downloads.openwrt.org/sources/polarssl-1.3.9-gpl.tgz
    Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
    Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2014-11-23 12:51:48 ERROR 404: Not Found.

    Download failed.
    No more mirrors to try - giving up.

    请问应该如何解决呢?
    18 条回复    2015-07-25 12:05:05 +08:00
    shangjiyu
        1
    shangjiyu  
       2014-11-23 13:41:31 +08:00   ❤️ 1
    xiaofami
        2
    xiaofami  
    OP
       2014-11-23 13:44:15 +08:00
    @shangjiyu 下载之后如何让编译程序找到这个文件呢?
    xiaofami
        3
    xiaofami  
    OP
       2014-11-23 13:56:49 +08:00
    @shangjiyu 解决了。把那个文件手动下载后,丢到./openwrt/dl目录下即可。
    shangjiyu
        4
    shangjiyu  
       2014-11-30 16:07:06 +08:00
    编译的怎么样了?
    xiaofami
        5
    xiaofami  
    OP
       2014-12-01 12:00:12 +08:00
    @shangjiyu 编译成功。shadowsocks、Ramod以及openvpn、openconnect等都编译进固件了。自己还使用apache搭建了一个本地软件源,用起来挺方便。不过VPS上搭建ocserv的实验没有成功,总是报无法读取证书,无解ing...
    shangjiyu
        6
    shangjiyu  
       2014-12-01 16:42:45 +08:00
    @xiaofami 可以的,可以告知怎么编译如意云么?我在 trunk 下编译,没有 mt7620n 这个选项了,貌似合并进7620了,然后按照 RT-N14U做了个 default16M 的 RY-1 profile编译出来后只有 sysupgrade.bin刷进去直接板砖。。。
    xiaofami
        7
    xiaofami  
    OP
       2014-12-02 19:52:27 +08:00   ❤️ 1
    @shangjiyu 好的。

    1.环境:Linuxmint 17

    2.在~/下执行 git clone git://git.openwrt.org/openwrt.git
    会生成目录openwrt

    3. cd openwrt

    4.如果想引进Shadowsocks和Ramod,打开 openwrt/feeds.conf.default 这个文件,添加

    src-git ramod https://github.com/ravageralpha/my_openwrt_mod.git
    src-git shadowsocks https://github.com/clowwindy/shadowsocks.git

    5.在openwrt/下执行
    ./scripts/feeds update -a
    ./scripts/feeds install -a

    6.执行

    make defconfig
    make prereq

    检查编译环境是否完整,以及其他的错误信息。如果你在执行 make defconfig 后遇到类似 “Do not support multiline”之类的信息,检查~/openwrt/tmp.config-package 这个文件,有一个地方丢了一个引号,自己加上就好。

    7.执行

    make menuconfig

    Target System 选 Ralink RT288x/RT3xxx,Subtarget 选 MT7620n based boards。之后的选择就看个人需求了。注意固件大小不能超过16MB,否则默认配置下不会生成固件。类似

    openwrt-ramips-mt7620n-rt-n14u-squashfs-sysupgrade.bin
    openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
    openwrt-ramips-mt7620n-mlw221-squashfs-sysupgrade.bin
    openwrt-ramips-mt7620n-wr8305rt-squashfs-sysupgrade.bin

    等等都是可以用来在Uboot下刷机的固件。我测试过前面两个,在LuCI的系统概况下会显示为不同的路由器,其它方面倒是没发现区别。
    xiaofami
        8
    xiaofami  
    OP
       2014-12-02 19:57:18 +08:00
    ~/openwrt/tmp.config-package 应为 ~/openwrt/tmp/.config-package 。

    还有,make menuconfig 后的配置文件名用默认的 .config 就好,我不知道怎样让编译程序找到改名后的config文件~
    xiaofami
        9
    xiaofami  
    OP
       2014-12-02 20:00:42 +08:00
    还有一点,tor的编译一直有问题,解决了的话告诉一下解决方法哈~
    shangjiyu
        10
    shangjiyu  
       2014-12-02 21:50:03 +08:00
    @xiaofami 看来你用的不是trunk, trunk最新合并了7620n和a, 默认RT-N14U是8M的固件,还有就是无线有驱动了?
    xiaofami
        11
    xiaofami  
    OP
       2014-12-02 22:28:11 +08:00
    @shangjiyu RY-1无线驱动在默认可用,不需要额外设置。
    xiaofami
        12
    xiaofami  
    OP
       2014-12-09 21:07:46 +08:00 via Android
    @shangjiyu 我用的是trunk的代码呀,编译出的固件代号是Chaos Claimer,wiki上有写。更新代码后检查了一下,没发现MT7620n/a合并~
    shangjiyu
        13
    shangjiyu  
       2014-12-09 21:41:13 +08:00
    @xiaofami 已经合并了, 这个changeset做的 https://dev.openwrt.org/changeset/43300
    另外 led灯配置不对,你又它的dts补丁么?
    xiaofami
        14
    xiaofami  
    OP
       2014-12-09 22:06:37 +08:00
    @shangjiyu 看到了。不过我更新到最新的trunk代码,menconfig中Ralink RT288x/RT3xxx的Sub Target中还是有独立的mt7620n和mt7620a。根据这里的提示获取的trunk代码:

    https://dev.openwrt.org/wiki/GetSource

    RY-1的dts补丁没有,不过应该能自行配置LED灯,可以参考一下
    http://n-dimensional.de/blog/2014/07/04/led-configuration-with-openwrt/
    shangjiyu
        15
    shangjiyu  
       2014-12-09 22:28:11 +08:00
    @xiaofami 你可能没有删除 temp/ 这个目录
    关于led的问题必须在dts里面定义好了gpio和led的关系才能在openwrt里面设置吧, 没有enable对应的gpio你设置了也没有用吧
    参考:
    http://wiki.wrtnode.com/index.php?title=GPIO%E5%A4%8D%E7%94%A8%E5%BC%95%E8%84%9A%E7%9A%84%E9%87%8A%E6%94%BE%E5%8F%8Agpio-leds%E7%9A%84%E6%B3%A8%E5%86%8C
    brightsm
        16
    brightsm  
       2014-12-25 23:22:48 +08:00
    我的兔兔飞路由器用的是mt7620n的cpu 32M sdr 我改的8M spiflash ,刷openwrt-ramips-mt7620n-rt-n14u-squashfs-sysupgrade.bin
    openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
    openwrt-ramips-mt7620n-mlw221-squashfs-sysupgrade.bin
    openwrt-ramips-mt7620n-wr8305rt-squashfs-sysupgrade.bin
    都启动不了,都是显示start kenel就完了。
    刷pandurao BOX MW305R的固件可以启动,我就想自己编译一个固件,可是就是得不到正确的固件。大侠分析一下。
    失败的UBOOT信息
    *** Warning - bad CRC, using default environment

    Clocks: CPU:600MHz, Bus:120MHz
    In: serial
    Out: serial
    Err: serial
    Net: rt2880_eth_initialize...
    VLAN: None
    Fetching MAC Address from 0xbc040028
    eth0: 34:bd:f9:8a:7f:94
    eth0 up
    eth0
    Hit any key to stop autoboot: 0
    ## Booting image at 9c050000 ...
    Image Name: MIPS OpenWrt Linux-3.10.49
    Created: 2014-10-01 14:48:27 UTC
    Image Type: MIPS Linux Kernel Image (lzma compressed)
    Data Size: 1080184 Bytes = 1 MB
    Load Address: 80000000
    Entry Point: 80000000
    Verifying Checksum at 0x9c050040 ... OK
    Uncompressing Kernel Image ... OK

    Starting kernel ...

    panduora box启动信息:
    PandoraBox For Ralink SoC. Copyright 2005-2013 Lintel<[email protected]>


    Linux Kernel started...

    THIS IS ASIC
    [ 0.000000] Linux version 3.4.54 (lintel@lintel-ThinkPad-T430) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #11 Sat Aug 3 03:53:37 CST 2013
    [ 0.000000] MediaTek MT7620N CPU:600MHz, Bus:150MHz Uart:40MHz
    [ 0.000000] Boot form:SPI FLASH
    [ 0.000000] MIPS CPU sleep mode enabled.
    [ 0.000000] Detecting memory...32 MB!
    [ 0.000000] PCIE: bypass PCIe DLL.
    [ 0.000000] PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
    [ 0.000000] disable all power about PCIe
    [ 0.000000] PCIE: PLL power down for MT7620N
    [ 0.000000] CPU revision is: 00019650 (MIPS 24KEc)
    [ 0.000000] Determined physical RAM map:
    [ 0.000000] memory: 02000000 @ 00000000 (usable)
    [ 0.000000] Zone PFN ranges:
    [ 0.000000] Normal 0x00000000 -> 0x00002000
    [ 0.000000] Movable zone start PFN for each node
    [ 0.000000] Early memory PFN ranges
    [ 0.000000] 0: 0x00000000 -> 0x00002000
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
    [ 0.000000] Kernel command line: console=ttyS1,115200n8 board=MW305R rootfstype=squashfs
    [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
    [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
    [ 0.000000] Writing ErrCtl register=00000000
    [ 0.000000] Readback ErrCtl register=00000000
    [ 0.000000] Memory: 29324k/32768k available (2353k kernel code, 3444k reserved, 389k data, 160k init, 0k highmem)
    [ 0.000000] SLUB: Genslabs=9, HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] NR_IRQS:128
    [ 0.000000] MTK/Ralink System Tick Counter init... cd:8029f170, m:214748, s:32
    [ 0.000000] console [ttyS1] enabled
    [ 0.010000] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
    [ 0.070000] pid_max: default: 32768 minimum: 301
    [ 0.070000] Mount-cache hash table entries: 512
    [ 0.080000] NET: Registered protocol family 16
    [ 0.090000] MIPS: machine is Mercury MW305R
    [ 0.090000] Ralink Board GPIO_MODE init:
    [ 0.090000] I2C:GPIO
    [ 0.100000] SPI_REFCLK:GPIO
    [ 0.100000] UART_F:GPIO
    [ 0.100000] GPIO_MODE_REGs: 0xa311d
    [ 0.100000] ralink_register_flash:SPI Flash.
    [ 0.110000] General GPIO Driver for MediaTek MT7620N Board. Copyright lintel<[email protected]> 2005-2013
    [ 0.120000] gpiochip_add: registered GPIOs 0 to 23 on device: MT7620-GPIO0
    [ 0.120000] gpiochip_add: registered GPIOs 24 to 39 on device: MT7620-GPIO1
    [ 0.130000] gpiochip_add: registered GPIOs 40 to 71 on device: MT7620-GPIO2
    [ 0.130000] gpiochip_add: registered GPIOs 72 to 95 on device: MT7620-GPIO3
    [ 0.230000] MT7620 PPLL unlock
    [ 0.250000] bio: create slab <bio-0> at 0
    [ 0.260000] Switching to clocksource Ralink external timer
    [ 0.270000] NET: Registered protocol family 2
    [ 0.270000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.270000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
    [ 0.280000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.290000] TCP: Hash tables configured (established 1024 bind 1024)
    [ 0.290000] TCP: reno registered
    [ 0.300000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.300000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.310000] NET: Registered protocol family 1
    [ 0.310000] Ralink SoC clocks api init.
    [ 0.320000] Ralink GPIODEV resource maped.
    [ 0.320000] RT3xxx EHCI/OHCI init.
    [ 0.350000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.360000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
    [ 0.370000] msgmni has been set to 57
    [ 0.370000] io scheduler noop registered
    [ 0.380000] io scheduler deadline registered (default)
    [ 0.380000] io scheduler cfq registered
    [ 0.390000] Ralink DMA Engine API Enable .
    [ 0.390000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    brightsm
        17
    brightsm  
       2014-12-25 23:23:03 +08:00
    [ 0.400000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A
    [ 0.410000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A
    [ 0.410000] Enable Ralink GDMA Controller Module
    [ 0.420000] GDMA IP Version=3
    [ 0.430000] loop: module loaded
    [ 0.440000] Ralink SPI flash Driver for PandoraBox.
    [ 0.440000] deice id : c2 20 17 c2 20 (2017c220)
    [ 0.450000] MX25L6405D(c2 2017c220) (8192 Kbytes)
    [ 0.450000] mtd .name = raspi, .size = 0x00800000 (0M) .erasesize = 0x00000008 (0K) .numeraseregions = 65536
    [ 0.460000] Creating 5 MTD partitions on "raspi":
    [ 0.470000] 0x000000000000-0x000000030000 : "u-boot"
    [ 0.470000] 0x000000030000-0x000000040000 : "u-boot-env"
    [ 0.480000] 0x000000040000-0x000000050000 : "Factory"
    [ 0.490000] 0x000000000000-0x000000800000 : "fullflash"
    [ 0.500000] 0x000000050000-0x000001000000 : "firmware"
    [ 0.500000] mtd: partition "firmware" extends beyond the end of device "raspi" -- size truncated to 0x7b0000
    [ 0.520000] Creating 2 MTD partitions on "raspi":
    [ 0.520000] 0x000000050000-0x000000140000 : "kernel"
    [ 0.530000] 0x000000140000-0x000001000000 : "rootfs"
    [ 0.530000] mtd: partition "rootfs" extends beyond the end of device "raspi" -- size truncated to 0x6c0000
    [ 0.550000] mtd: partition "rootfs" set to be root filesystem
    [ 0.550000] mtd: partition "rootfs_data" created automatically, ofs=6B0000, len=150000
    [ 0.560000] 0x0000006b0000-0x000000800000 : "rootfs_data"
    [ 0.570000] rdm_major = 253
    [ 0.570000] EEPROM:Read from [Factory] offset 0x28,length 0x6.
    [ 0.580000] SMACCR1 -- : 0x0000000c
    [ 0.580000] SMACCR0 -- : 0x43762077
    [ 0.580000] Ralink APSoC Ethernet Driver Initilization. v3.0 64 rx/tx descriptors allocated, mtu = 1500!
    [ 0.590000] EEPROM:Read from [Factory] offset 0x28,length 0x6.
    [ 0.600000] SMACCR1 -- : 0x0000000c
    [ 0.600000] SMACCR0 -- : 0x43762077
    [ 0.610000] PROC INIT OK!
    [ 0.610000] Ralink APSoC Hardware Watchdog Timer
    [ 0.620000] sdhci: Secure Digital Host Controller Interface driver
    [ 0.620000] sdhci: Copyright(c) Pierre Ossman
    [ 0.630000] SDHC Interface init.
    [ 0.630000] mtk-sd: MediaTek MT76xx MSDC Driver
    [ 0.640000] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 0.650000] TCP: cubic registered
    [ 0.650000] NET: Registered protocol family 17
    [ 0.650000] 8021q: 802.1Q VLAN Support v1.8
    [ 0.670000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
    [ 0.680000] Freeing unused kernel memory: 160k freed
    ##### MediaTek MT76xx ESW VLAN Partition(12345) #####
    switch reg write offset=2004, value=ff0003
    switch reg write offset=2104, value=ff0003
    switch reg write offset=2204, value=ff0003
    switch reg write offset=2304, value=ff0003
    switch reg write offset=2404, value=ff0003
    switch reg write offset=2504, value=ff0003
    switch reg write offset=2010, value=810000c0
    switch reg write offset=2110, value=810000c0
    switch reg write offset=2210, value=810000c0
    switch reg write offset=2310, value=810000c0
    switch reg write offset=2410, value=810000c0
    switch reg write offset=2510, value=810000c0
    switch reg write offset=2610, value=81000000
    switch reg write offset=2710, value=81000000
    switch reg write offset=2604, value=20ff0003
    switch reg write offset=2704, value=20ff0003
    Special Tag Disabled
    switch reg write offset=2610, value=81000000
    12345
    switch reg write offset=2014, value=10001
    switch reg write offset=2114, value=10002
    switch reg write offset=2214, value=10003
    switch reg write offset=2314, value=10004
    switch reg write offset=2414, value=10005
    switch reg write offset=2514, value=10006
    REG_ESW_WT_MAC_ATC is 0x7ff0002
    done.
    [ 2.950000] Button Hotplug driver version 0.4.1
    - preinit -
    Press the [f] key and hit [enter] to enter failsafe mode
    - regular preinit -
    [ 6.340000] jffs2: notice: (442) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 51 of xref (0 dead, 32 orphan) found.
    [ 6.930000] SCSI subsystem initialized
    [ 7.090000] usbcore: registered new interface driver usbfs
    [ 7.090000] usbcore: registered new interface driver hub
    [ 7.100000] usbcore: registered new device driver usb
    [ 7.660000] xfs: Unknown symbol exportfs_decode_fh (err 0)
    [ 7.760000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 7.780000] rt3xxx-ehci rt3xxx-ehci: Ralink EHCI Host Controller
    [ 7.790000] rt3xxx-ehci rt3xxx-ehci: new USB bus registered, assigned bus number 1
    [ 7.830000] rt3xxx-ehci rt3xxx-ehci: irq 18, io mem 0x101c0000
    [ 7.850000] rt3xxx-ehci rt3xxx-ehci: USB 0.0 started, EHCI 1.00
    [ 7.85
    jeromeli
        18
    jeromeli  
       2015-07-25 12:05:05 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   937 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:08 · PVG 05:08 · LAX 13:08 · JFK 16:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.