會員 | 有人下載OpenWRT原始碼自己Compile過嗎? 因工作上的需要想請教一下 有台d-link dir-600 b1機器 Ralink 3050 Flash 4MB Ram 32MB 那原始碼要在哪下載?如何Compile? U-Boot也要更新嗎? 老闆又出難題給我了 我是用VirtualBOX灌Ubuntu 10.10 X64 之前做出來的檔案燒進機子進不了內核 不知道哪錯了 ! |
回覆 |
會員 | 回覆: 有人下載OpenWRT原始碼自己Compile過嗎? 想問一下原始碼 trunk backfire 的版本有啥不一樣阿 另外還有SDK可以下載的壓縮檔案又是? |
回覆 |
會員 | 回覆: 有人下載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 ~ |
回覆 |
會員 | printenv 找bootargs |
回覆 |
會員 | 回覆: 有人下載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 ([email protected]) (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 <[email protected]> All bugs added by David S. Miller <[email protected]> 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) |
回覆 |
會員 | 回覆: 有人下載OpenWRT原始碼自己Compile過嗎? 我的問題是: Kernel command line是否要修改? 在kernel mount rootFS之前的MTD分割配置是依據Kernel command line的數據配置 還是依據mach-dir-600-a1.c (OpenWRT原始碼裡面) ? 感謝~ |
回覆 |
會員 | 語法: ar7240> setenv bootargs board=DIR-600-revB ar7240> saveenv OpenWrt / OpenWrt working on KEEBOX Wireless N 150 OpenWrt / WLAN on routers with the chip of RT3350 |
回覆 |
會員 | 回覆: 有人下載OpenWRT原始碼自己Compile過嗎? 恩............. 我上面的東西是另一個板子 Atheros 7240 + 9280 Flash 8MB Ram 32MB 並非市面的零售的產品 DIR-600-B1 3050目前先放著 |
回覆 |
會員 | 引用:
語法: ar7240> setenv bootargs board=DIR-600-A1 ar7240> saveenv DD-WRT Forum :: View topic - TP-Link TL-WR1043ND Bricked ,Can not write flash memory. | |
回覆 |
XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。