有人下載OpenWRT原始碼自己Compile過嗎?

第 1 頁,共 2 頁 1 2 末頁末頁
顯示結果從第 1 筆 到 10 筆,共計 13 筆
  1. #1
    會員
    註冊日期
    2005-01-09
    討論區文章
    31

    有人下載OpenWRT原始碼自己Compile過嗎?

    因工作上的需要想請教一下
    有台d-link dir-600 b1機器
    Ralink 3050
    Flash 4MB
    Ram 32MB

    那原始碼要在哪下載?如何Compile?
    U-Boot也要更新嗎?

    老闆又出難題給我了



    我是用VirtualBOX灌Ubuntu 10.10 X64
    之前做出來的檔案燒進機子進不了內核 不知道哪錯了 !



  2. #2

  3. #3
    會員
    註冊日期
    2005-01-09
    討論區文章
    31

    回覆: 有人下載OpenWRT原始碼自己Compile過嗎?

    想問一下原始碼
    trunk
    backfire
    的版本有啥不一樣阿
    另外還有SDK可以下載的壓縮檔案又是?

  4. #4
    會員
    註冊日期
    2005-01-09
    討論區文章
    31

    回覆: 有人下載OpenWRT原始碼自己Compile過嗎?

    ar7240> mtdparts

    device nor0 <ar7240-nor0>, # parts = 6
    #: name size offset mask_flags
    0: u-boot 0x00040000 0x00000000 0
    1: u-boot-env 0x00010000 0x00040000 0
    2: kernel 0x00100000 0x00050000 0
    3: rootfs 0x00660000 0x00150000 0
    4: cfg 0x00040000 0x007b0000 0
    5: EEPROM 0x00010000 0x007f0000 0

    active partition: nor0,0 - (u-boot) 0x00040000 @ 0x00000000

    defaults:
    mtdids : nor0=ar7240-nor0
    mtdparts: mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)

    *************************************************************************************************************

    VFS: Cannot open root device "31:03" or unknown-block(31,3)
    Please append a correct "root=" boot option; here are the available partitions:
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)

    我核心好像沒抓到mtd分割區 這是?
    是用8MB NOR Flash ~

  5. #5
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,295
    printenv 找bootargs



  6. #6
    會員
    註冊日期
    2005-01-09
    討論區文章
    31

    回覆: 有人下載OpenWRT原始碼自己Compile過嗎?

    ar7240> pri
    ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
    filesize=690000
    fileaddr=80010000
    bootdelay=4
    baudrate=115200
    mtdids=nor0=ar7240-nor0
    ethact=eth0
    mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
    bootcmd=bootm 0x9f050000
    serverip=192.168.1.254
    ipaddr=192.168.1.20
    partition=nor0,0
    mtddevnum=0
    mtddevname=u-boot
    bootargs=console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init board=DIR-600-A1
    stdin=serial
    stdout=serial
    stderr=serial

    Environment size: 490/65532 bytes

    **********************************************************

    ar7240> boot
    ## Booting image at 9f050000 ...
    Image Name: MIPS OpenWrt Linux-2.6.32.10
    Created: 2011-09-23 4:08:00 UTC
    Image Type: MIPS Linux Kernel Image (lzma compressed)
    Data Size: 854528 Bytes = 834.5 kB
    Load Address: 80060000
    Entry Point: 80060000
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK

    Starting kernel ...

    Linux version 2.6.32.10 (andy@localhost.localdomain) (gcc version 4.3.3 (GCC) ) #5 Fri Sep 23 12:07:53 CST 2011
    bootconsole [early0] enabled
    CPU revision is: 00019374 (MIPS 24Kc)
    Atheros AR7240 rev 2, CPU:390.000 MHz, AHB:195.000 MHz, DDR:390.000 MHz
    Determined physical RAM map:
    memory: 02000000 @ 00000000 (usable)
    Initrd not found or empty - disabling initrd
    Zone PFN ranges:
    Normal 0x00000000 -> 0x00002000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
    Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init board=DIR-600-A1 mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
    PID hash table entries: 128 (order: -3, 512 bytes)
    Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
    Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    Writing ErrCtl register=00000000
    Readback ErrCtl register=00000000
    Memory: 29424k/32768k available (2022k kernel code, 3344k reserved, 385k data, 152k init, 0k highmem)
    SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Hierarchical RCU implementation.
    NR_IRQS:56
    Calibrating delay loop... 259.68 BogoMIPS (lpj=1298432)
    Mount-cache hash table entries: 512
    NET: Registered protocol family 16
    MIPS: machine is D-Link DIR-600 rev. A1
    ********** _init dir_600_a1_setup_start ..... **********
    registering PCI controller with io_map_base unset
    ********** _init dir_600_a1_setup_end ..... **********
    bio: create slab <bio-0> at 0
    PCI: fixup device 0000:00:00.0
    pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    pci 0000:00:00.0: PME# disabled
    PCI: mapping irq 48 to pin1@0000:00:00.0
    Switching to clocksource MIPS
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 1024 (order: 1, 8192 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 1024 bind 1024)
    TCP reno registered
    NET: Registered protocol family 1
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    Registering mini_fo version $Id$
    JFFS2 version 2.2. (NAND) (SUMMARY) 穢 2001-2006 Red Hat, Inc.
    yaffs Sep 22 2011 17:53:25 Installing.
    msgmni has been set to 57
    io scheduler noop registered
    io scheduler deadline registered (default)
    Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
    console [ttyS0] enabled, bootconsole disabled
    console [ttyS0] enabled, bootconsole disabled
    Atheros AR71xx SPI Controller driver version 0.2.4
    m25p80 spi0.0: unrecognized JEDEC id 1c3017
    ag71xx_mdio: probed
    eth0: Atheros AG71xx at 0xba000000, irq 5
    eth1: Atheros AG71xx at 0xb9000000, irq 4
    Atheros AR71xx hardware watchdog driver version 0.1.0
    TCP westwood registered
    NET: Registered protocol family 17
    Distributed Switch Architecture driver version 0.1
    eth0[0]: detected a Atheros AR7240 built-in switch
    ar8216: Unknown Atheros device [ver=16777215, rev=255, phy_id=004dd041]
    ar8216: Unknown Atheros device [ver=16777215, rev=255, phy_id=004dd041]
    ar8216: Unknown Atheros device [ver=16777215, rev=255, phy_id=004dd041]
    ar8216: Unknown Atheros device [ver=16777215, rev=255, phy_id=004dd041]
    dsa slave smi: probed
    802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
    All bugs added by David S. Miller <davem@redhat.com>
    VFS: Cannot open root device "31:03" or unknown-block(31,3)
    Please append a correct "root=" boot option; here are the available partitions:
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)

  7. #7
    會員
    註冊日期
    2005-01-09
    討論區文章
    31

    回覆: 有人下載OpenWRT原始碼自己Compile過嗎?

    我的問題是:
    Kernel command line是否要修改?
    在kernel mount rootFS之前的MTD分割配置是依據Kernel command line的數據配置 還是依據mach-dir-600-a1.c (OpenWRT原始碼裡面) ?

    感謝~

  8. #8
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,295
    語法:
    ar7240> setenv bootargs board=DIR-600-revB
    ar7240> saveenv
    理論上應該不需設定 "root=/dev/mtdblock4" 和 "init=/etc/preinit", 也不必修改mtdparts (參見ralink-flash.c), 其實以上目的應該就是採用OpenWrt 預設值, 甚至清除bootargs 應該也無妨

    OpenWrt / OpenWrt working on KEEBOX Wireless N 150
    OpenWrt / WLAN on routers with the chip of RT3350

  9. #9
    會員
    註冊日期
    2005-01-09
    討論區文章
    31

    回覆: 有人下載OpenWRT原始碼自己Compile過嗎?

    恩.............
    我上面的東西是另一個板子
    Atheros 7240 + 9280
    Flash 8MB
    Ram 32MB

    並非市面的零售的產品

    DIR-600-B1 3050目前先放著

  10. #10
    FYI
    FYI 目前未上線
    會員
    註冊日期
    2001-06-22
    討論區文章
    7,295
    引用 作者:andy740629 瀏覽文章
    bootargs=console=ttyS0,115200 root=31:03 rootfstype=squashfs init=/init board=DIR-600-A1
    語法:
    ar7240> setenv bootargs board=DIR-600-A1
    ar7240> saveenv
    D-Link DIR-600/601 - OpenWrt Wiki
    DD-WRT Forum :: View topic - TP-Link TL-WR1043ND Bricked ,Can not write flash memory.



類似的主題

  1. 【新聞】 Windows原始碼傳外洩 微軟追查
    作者:天氣預報 所在討論版:-- Windows 討 論 版
    回覆: 1
    最後發表: 2004-02-19, 04:40 PM
  2. 【教學】MD5原始碼(For JavaScript & ASP)
    作者:ranger 所在討論版:-- 網 路 技 術 版
    回覆: 0
    最後發表: 2003-07-03, 11:49 AM
  3. 【求助】如何在OE編輯HTML原始碼?
    作者:kiachen 所在討論版:-- 網 路 軟 體 討 論 一 版 (Browser,Email
    回覆: 1
    最後發表: 2002-12-21, 04:00 PM
  4. Dreamweaver原始碼顯示不正常
    作者:drapho 所在討論版:-- 其 他 軟 體 討 論 版
    回覆: 2
    最後發表: 2001-10-21, 05:26 PM

 

此網頁沒有從搜尋引擎而來的訪客

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •