[OpenWrt-Devel] 回复: [OpenWrt-Users] Is there anybody can find /var/log/dmesg inOpenWRT ?
Thank you for your answer, but I only want to display the kernel message. I expect to use 'tail -f /var/log/dmesg' to read the kernel debug message on my device that without serial console. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- 原始邮件 -- 发件人: "camden lindsay";<camden.lindsay+open...@gmail.com>; 发送时间: 2016年12月29日(星期四) 下午2:57 收件人: "OpenWrt User List"<openwrt-us...@lists.openwrt.org>; 抄送: "openwrt-devel"<openwrt-devel@lists.openwrt.org>; 主题: Re: [OpenWrt-Users] Is there anybody can find /var/log/dmesg inOpenWRT ? I believe you have to use logread- https://wiki.openwrt.org/doc/howto/log.essentials On Wed, Dec 28, 2016 at 10:53 PM, Tymon <banglang.hu...@foxmail.com> wrote: > Hi all, > >Why can't I find the /var/log/dmesg file under openwrt (the busybox > built-in tool 'dmesg' is work fine) ??? > >Any hint will be appreciated! > > -- > Regards, > > banglang huang > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > > > ___ > openwrt-users mailing list > openwrt-us...@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users > ___ openwrt-users mailing list openwrt-us...@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Is there anybody can find /var/log/dmesg in OpenWRT ?
Hi all, Why can't I find the /var/log/dmesg file under openwrt (the busybox built-in tool 'dmesg' is work fine) ??? Any hint will be appreciated! -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Any hit on how to mount vfat u-disk as "async" option ?
Hi all, I can not mount my vfat format u-disk as "rw, async" option under OpenWRT 14.07, No matter use shell command 'mount /dev/sda1 /mnt/sda1 -o rw,async' or edit the /etc/fstab, none of the methods can archive my aim. Any hit will be appreciate!! -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ?????? [PATCH CC 02/32] ar71xx: add support for TL-WR741NDv5
Where can I buy a TL-WR741ND V5 or V6 online ? Would you please provide a URL to me ? Thank you very much. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- -- ??: "Matthias Schiffer";; : 2016??3??1??(??) 11:06 ??: "openwrt-devel" ; : [OpenWrt-Devel] [PATCH CC 02/32] ar71xx: add support for TL-WR741NDv5 This device is identical to the TL-WR740N v5, it even uses the same HWID (which wasn't the case for older TL-WR741ND revisions). Signed-off-by: Matthias Schiffer Backport of r46238 --- target/linux/ar71xx/image/Makefile | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 1fe88d5..78d35e1 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -531,6 +531,14 @@ define Device/tl-wr741nd-v4 CONSOLE := ttyATH0,115200 endef +define Device/tl-wr741nd-v5 +$(Device/tplink-4mlzma) +BOARDNAME := TL-WR741ND-v4 +DEVICE_PROFILE := TLWR741 +TPLINK_HWID := 0x0745 +CONSOLE := ttyATH0,115200 +endef + define Device/tl-wr743nd-v2 $(Device/tplink-4mlzma) BOARDNAME := TL-WR741ND-v4 @@ -538,7 +546,7 @@ define Device/tl-wr743nd-v2 TPLINK_HWID := 0x07430002 CONSOLE := ttyATH0,115200 endef -TARGET_DEVICES += tl-wr740n-v4 tl-wr740n-v5 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr743nd-v2 +TARGET_DEVICES += tl-wr740n-v4 tl-wr740n-v5 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v2 define Device/tl-wr841n-v8 $(Device/tplink-4mlzma) -- 2.7.2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] GCC-5.3.1 Build with Go language support, but can not find crti.o crt1.o file
Hi all, I am using uClibc and trying to build GCC-5.3.1 (Linaro) with Go language support, however I meet a issue that "can not find crti.o crt1.o file". I'd tried the approaches which searched by google/stackoverflow(modified LIBRARY_PATH in ~/.bashrc), but none of them has effect. Any hints will be appreciated. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2] add reusable function for getting fs type txt
Add 'volume_identify_txt()' function so that we can use it to print the coressponding fs type as 'char *' type when we need. Signed-off-by: tymon <banglang.hu...@foxmail.com> --- libfstools/overlay.c | 10 ++ libfstools/volume.c | 12 libfstools/volume.h |2 ++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/libfstools/overlay.c b/libfstools/overlay.c index cdac23e..358dbec 100644 --- a/libfstools/overlay.c +++ b/libfstools/overlay.c @@ -264,13 +264,7 @@ static int overlay_mount_fs(struct volume *v) return -1; } - fstype = "jffs2"; - - switch (volume_identify(v)) { - case FS_UBIFS: - fstype = "ubifs"; - break; - } + fstype = volume_identify_txt(v); volume_init(v); @@ -359,7 +353,7 @@ int mount_overlay(struct volume *v) break; } - ULOG_INFO("switching to jffs2 overlay\n"); + ULOG_INFO("switching to %s overlay\n", volume_identify_txt(v)); if (mount_move("/tmp", "", "/overlay") || fopivot("/overlay", "/rom")) { ULOG_ERR("switching to jffs2 failed - fallback to ramoverlay\n"); return ramoverlay(); diff --git a/libfstools/volume.c b/libfstools/volume.c index e81491e..c08f0de 100644 --- a/libfstools/volume.c +++ b/libfstools/volume.c @@ -50,3 +50,15 @@ struct volume* volume_find(char *name) return NULL; } + +char *volume_identify_txt(struct volume *v) +{ + switch (volume_identify(v)) { + case FS_UBIFS: + return "ubifs"; + case FS_JFFS2: + return "jffs2"; + } + + return "unknown"; +} diff --git a/libfstools/volume.h b/libfstools/volume.h index 9c679f7..fdd82c8 100644 --- a/libfstools/volume.h +++ b/libfstools/volume.h @@ -77,6 +77,8 @@ static inline int volume_identify(struct volume *v) return -1; } +extern char *volume_identify_txt(struct volume *v); + static inline int volume_erase(struct volume *v, int offset, int len) { if (v && v->drv->erase) -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] add reusable function for getting fs type txt
Add 'volume_identity_txt()' function so that we can use it to print the coressponding fs type as 'char *' type when we need. Signed-off-by: tymon <banglang.hu...@foxmail.com> --- libfstools/overlay.c | 10 ++ libfstools/volume.c | 12 libfstools/volume.h |2 ++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/libfstools/overlay.c b/libfstools/overlay.c index cdac23e..358dbec 100644 --- a/libfstools/overlay.c +++ b/libfstools/overlay.c @@ -264,13 +264,7 @@ static int overlay_mount_fs(struct volume *v) return -1; } - fstype = "jffs2"; - - switch (volume_identify(v)) { - case FS_UBIFS: - fstype = "ubifs"; - break; - } + fstype = volume_identify_txt(v); volume_init(v); @@ -359,7 +353,7 @@ int mount_overlay(struct volume *v) break; } - ULOG_INFO("switching to jffs2 overlay\n"); + ULOG_INFO("switching to %s overlay\n", volume_identify_txt(v)); if (mount_move("/tmp", "", "/overlay") || fopivot("/overlay", "/rom")) { ULOG_ERR("switching to jffs2 failed - fallback to ramoverlay\n"); return ramoverlay(); diff --git a/libfstools/volume.c b/libfstools/volume.c index e81491e..c08f0de 100644 --- a/libfstools/volume.c +++ b/libfstools/volume.c @@ -50,3 +50,15 @@ struct volume* volume_find(char *name) return NULL; } + +char *volume_identify_txt(struct volume *v) +{ + switch (volume_identify(v)) { + case FS_UBIFS: + return "ubifs"; + case FS_JFFS2: + return "jffs2"; + } + + return "unknown"; +} diff --git a/libfstools/volume.h b/libfstools/volume.h index 9c679f7..fdd82c8 100644 --- a/libfstools/volume.h +++ b/libfstools/volume.h @@ -77,6 +77,8 @@ static inline int volume_identify(struct volume *v) return -1; } +extern char *volume_identify_txt(struct volume *v); + static inline int volume_erase(struct volume *v, int offset, int len) { if (v && v->drv->erase) -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] fstools: add reusable function for getting fs type txt
Add 'volume_identity_txt()' function so that we can use it to print the coressponding fs type as 'char *' type when we need. Signed-off-by: tymon <banglang.hu...@foxmail.com> --- libfstools/overlay.c | 10 ++ libfstools/volume.c | 14 ++ libfstools/volume.h |2 ++ 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/libfstools/overlay.c b/libfstools/overlay.c index cdac23e..21101b0 100644 --- a/libfstools/overlay.c +++ b/libfstools/overlay.c @@ -264,13 +264,7 @@ static int overlay_mount_fs(struct volume *v) return -1; } - fstype = "jffs2"; - - switch (volume_identify(v)) { - case FS_UBIFS: - fstype = "ubifs"; - break; - } + fstype = volume_identity_txt(v); volume_init(v); @@ -359,7 +353,7 @@ int mount_overlay(struct volume *v) break; } - ULOG_INFO("switching to jffs2 overlay\n"); + ULOG_INFO("switching to %s overlay\n", volume_identity_txt(v)); if (mount_move("/tmp", "", "/overlay") || fopivot("/overlay", "/rom")) { ULOG_ERR("switching to jffs2 failed - fallback to ramoverlay\n"); return ramoverlay(); diff --git a/libfstools/volume.c b/libfstools/volume.c index e81491e..007d525 100644 --- a/libfstools/volume.c +++ b/libfstools/volume.c @@ -50,3 +50,17 @@ struct volume* volume_find(char *name) return NULL; } + +char *volume_identity_txt(struct volume *v) +{ + if (v && v->drv->identify) { + switch (v->drv->identify(v)) { + case FS_UBIFS: + return "ubifs"; + case FS_JFFS2: + return "jffs2"; + } + } + + return "UNKNOWN"; +} diff --git a/libfstools/volume.h b/libfstools/volume.h index 9c679f7..654f570 100644 --- a/libfstools/volume.h +++ b/libfstools/volume.h @@ -77,6 +77,8 @@ static inline int volume_identify(struct volume *v) return -1; } +extern char *volume_identity_txt(struct volume *v); + static inline int volume_erase(struct volume *v, int offset, int len) { if (v && v->drv->erase) -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] MT7621 board (512MB) high memory relevant issue.
My testbed's memory is 512MB, but the memory showed to us is 448MB( init as BOOT_MEM_RAM) and the high memory is 0 K, why ? And I found that if both the 448MB and other 64MB init as BOOT_MEM_RAM, the samba(pbsam-util accelerate) service will work with a low speed transmission(20MB/s) while it is 70MB/s when 448MB init as BOOT_MEM_RAM and the other 64MB init as BOOT_MEM_INIT_RAM. below is the bootlog: ## Transferring control to Linux (at address 80001000) ... ## Giving linux memsize in MB, 512 Starting kernel ... xxxBoxx For Ralink/MTK APSoC. Copyright 2013-2014 xxx Technology CHN LINUX started... THIS IS ASIC [0.00] Linux version 3.14.49 (@) (gcc version 4.8.3 (x/Linaro GCC 4.8-2014.04 ) ) #11 SMP Tue Aug 11 09:56:58 CST 2015 [0.00] MT7621: MPLL enabled. [0.00] Box CPUID Module for Ralink/MTK SoC v1.1. [0.00] MediaTek MT7621 pkg:BGA rev:1 eco:3 CPU:880MHz, Bus:293MHz Uart:50MHz [0.00] CPU running in Little Endian [0.00] Board VLAN:W [0.00] Flash:SPI Size: 32MB [0.00] DRAM: 512MB DDR3 16 bits [0.00] Kernel Support [PCI] [USB] [0.00] prom memory:512MB [0.00] MT7621:Reserved highmem for 512MB DRAM 2400 [0.00] GCMP present [0.00] bootconsole [early0] enabled [0.00] CPU0 revision is: 0001992f (MIPS 1004Kc) [0.00] Software DMA cache coherency [0.00] Determined physical RAM map: [0.00] memory: 1c00 @ (usable) [0.00] memory: 0400 @ 2000 (usable after init) [0.00] Initrd not found or empty - disabling initrd [0.00] Zone ranges: [0.00] Normal [mem 0x-0x1bff] [0.00] HighMem empty [0.00] Movable zone start for each node [0.00] Early memory node ranges [0.00] node 0: [mem 0x-0x1bff] [0.00] node 0: [mem 0x2000-0x23ff] [0.00] Detected 3 available secondary CPU(s) [0.00] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [0.00] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [0.00] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [0.00] PERCPU: Embedded 7 pages/cpu @81384000 s5696 r8192 d14784 u32768 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113792 [0.00] Kernel command line: pause_on_oops=10 noresume board=PBR-M1 console=ttyS1,115200 rootfstype=squashfs,jffs2 [0.00] PID hash table entries: 2048 (order: 1, 8192 bytes) [0.00] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [0.00] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [0.00] Writing ErrCtl register=00030004 [0.00] Readback ErrCtl register=00030004 [0.00] Memory: 450772K/458752K available (2673K kernel code, 141K rwdata, 508K rodata, 184K init, 289K bss, 7980K reserved, 0K highmem) [0.00] Hierarchical RCU implementation. [0.00] NR_IRQS:256 -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: add support for PandoraBox PBR-M1
This patch is for PandoraBox PBR-M1 which is based on mt7621, all the features work fine, including rtc, leds, button, usb3.0, etc. Signed-off-by: tymon banglang.hu...@foxmail.com --- target/linux/ramips/base-files/etc/board.d/01_leds | 5 + .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh | 3 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 1 + target/linux/ramips/dts/PBR-M1.dts | 150 + target/linux/ramips/image/Makefile | 7 +- target/linux/ramips/mt7621/profiles/pbr-m1.mk | 22 +++ 8 files changed, 191 insertions(+), 1 deletion(-) create mode 100644 target/linux/ramips/dts/PBR-M1.dts create mode 100644 target/linux/ramips/mt7621/profiles/pbr-m1.mk diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index ad0062a..c63ff47 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -175,6 +175,11 @@ case $board in set_wifi_led 7links:orange:wifi set_usb_led 7links:blue:storage ;; +pbr-m1) +ucidef_set_led_netdev internet internet pbr-m1:green:internet eth0.2 +ucidef_set_led_default power power pbr-m1:green:power 1 +ucidef_set_led_default sys sys pbr-m1:green:sys 1 +;; sl-r7205) set_wifi_led rt2800pci-phy0::radio ;; diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 4982566..b3dd1f1 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -129,6 +129,7 @@ ramips_setup_interfaces() dir-320-b1 | \ dir-615-h1 | \ firewrt | \ + pbr-m1 | \ hlk-rm04 | \ mt7621 | \ mt7628 | \ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index d6001c5..bfc92e5 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -117,6 +117,9 @@ get_status_led() { omni-emb-hpm) status_led=emb:green:status ;; + pbr-m1) + status_led=pbr-m1:green:sys + ;; psr-680w) status_led=psr-680w:red:wan ;; diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 0cb02c7..14ffc21 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -247,6 +247,9 @@ ramips_board_detect() { *OLinuXino-RT5350F-EVB) name=olinuxino-rt5350f-evb ;; + *PBR-M1) + name=pbr-m1 + ;; *Petatel PSR-680W*) name=psr-680w ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 99cabbd..8d5f74f 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -53,6 +53,7 @@ platform_check_image() { fonera20n | \ freestation5 | \ firewrt |\ + pbr-m1 |\ hg255d | \ hlk-rm04 | \ ht-tm02 | \ diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts new file mode 100644 index 000..76eae93 --- /dev/null +++ b/target/linux/ramips/dts/PBR-M1.dts @@ -0,0 +1,150 @@ +/dts-v1/; + +/include/ mt7621.dtsi + +/ { + compatible = mediatek,mt7621-eval-board, mediatek,mt7621-soc; + model = PBR-M1; + + memory@0 { + device_type = memory; + reg = 0x0 0x1000; + }; + + chosen { + bootargs = console=ttyS0,115200; + }; + + sdhci@1013 { + status = okay; + }; + + palmbus@1E00 { + spi@b00 { + status = okay; + + m25p80@0 { + #address-cells = 1; + #size-cells = 1; + compatible = w25q256; + reg = 0 0; + linux,modalias = m25p80; + spi-max-frequency = 1000; + + partition@0 { + label = u-boot; + reg = 0x0 0x3; + read-only; + }; + + partition@3 { + label = u-boot-env
[OpenWrt-Devel] [PATCH] Add support for PandoraBox PBR-M1 Board
Hi all, please find below patch that adds support for PandoraBox PBR-M1 Board to OpenWRT trunk. The board is based on mt7621 platform, and this patch adds a separate profile for pbr-m1. Best regards, Tymon From: tymon ty...@xcloud.cc Signed-off-by: tymon ty...@xcloud.cc --- target/linux/ramips/base-files/etc/board.d/01_leds | 5 + .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh | 3 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 1 + target/linux/ramips/dts/PBR-M1.dts | 150 + target/linux/ramips/image/Makefile | 7 +- target/linux/ramips/mt7621/profiles/pbr-m1.mk | 22 +++ 8 files changed, 191 insertions(+), 1 deletion(-) create mode 100644 target/linux/ramips/dts/PBR-M1.dts create mode 100644 target/linux/ramips/mt7621/profiles/pbr-m1.mk diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index ad0062a..c63ff47 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -175,6 +175,11 @@ case $board in set_wifi_led 7links:orange:wifi set_usb_led 7links:blue:storage ;; +pbr-m1) +ucidef_set_led_netdev internet internet pbr-m1:green:internet eth0.2 +ucidef_set_led_default power power pbr-m1:green:power 1 +ucidef_set_led_default sys sys pbr-m1:green:sys 1 +;; sl-r7205) set_wifi_led rt2800pci-phy0::radio ;; diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 4982566..b3dd1f1 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -129,6 +129,7 @@ ramips_setup_interfaces() dir-320-b1 | \ dir-615-h1 | \ firewrt | \ + pbr-m1 | \ hlk-rm04 | \ mt7621 | \ mt7628 | \ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index d6001c5..bfc92e5 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -117,6 +117,9 @@ get_status_led() { omni-emb-hpm) status_led=emb:green:status ;; + pbr-m1) + status_led=pbr-m1:green:sys + ;; psr-680w) status_led=psr-680w:red:wan ;; diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 0cb02c7..14ffc21 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -247,6 +247,9 @@ ramips_board_detect() { *OLinuXino-RT5350F-EVB) name=olinuxino-rt5350f-evb ;; + *PBR-M1) + name=pbr-m1 + ;; *Petatel PSR-680W*) name=psr-680w ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 99cabbd..8d5f74f 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -53,6 +53,7 @@ platform_check_image() { fonera20n | \ freestation5 | \ firewrt |\ + pbr-m1 |\ hg255d | \ hlk-rm04 | \ ht-tm02 | \ diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts new file mode 100644 index 000..76eae93 --- /dev/null +++ b/target/linux/ramips/dts/PBR-M1.dts @@ -0,0 +1,150 @@ +/dts-v1/; + +/include/ mt7621.dtsi + +/ { + compatible = mediatek,mt7621-eval-board, mediatek,mt7621-soc; + model = PBR-M1; + + memory@0 { + device_type = memory; + reg = 0x0 0x1000; + }; + + chosen { + bootargs = console=ttyS0,115200; + }; + + sdhci@1013 { + status = okay; + }; + + palmbus@1E00 { + spi@b00 { + status = okay; + + m25p80@0 { + #address-cells = 1; + #size-cells = 1; + compatible = w25q256; + reg = 0 0; + linux,modalias = m25p80; + spi-max-frequency = 1000; + + partition@0 { + label = u-boot; + reg = 0x0 0x3; + read-only; + }; + + partition@3
[OpenWrt-Devel] Implementation of restarting wifi(hostapd) when it stop unexpectedly
Hi all, I found an excited function that the hostapd will restart once it is killed unexpectedly and feel curiously about its implementation, anyone can give me more hints on this awesome function ? thanks. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Implementation of restarting wifi(hostapd) whenit stop unexpectedly
thank you Felix -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Original -- From: Felix Fietkaun...@openwrt.org; Date: 2015??5??26??(??) 5:40 To: Tymonbanglang.hu...@foxmail.com; openwrt-developenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] Implementation of restarting wifi(hostapd) whenit stop unexpectedly On 2015-05-26 11:29, Tymon wrote: Hi all, I found an excited function that the hostapd will restart once it is killed unexpectedly and feel curiously about its implementation, anyone can give me more hints on this awesome function ? thanks. Netifd tracks processes created by the handler script. If a process marked as critical dies, the wifi interface is restarted. - Felix___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Question about broadcom image under openwrt
I ported bcm958522er (ARM Crotex A9, dual core) on openwrt successfully, used kernel 2.6.36 rather than 3.3.8, But I suffered from a strange problem on the booting--the vmlinux.lzma with boot_vmlinuz u-boot command work fine while the openwrt-xxx-squashfs.trx hanged at the beginning. why ? the image/Makefile is made like this: trx -o openwrt-xxx.trx -f vmlinux.lzma -a 1024 -f root.squashfs Any hints will be appreciated, thanks. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] reply?? System halted on bcm4708 series board when booting openwrt trunk(kernel 3.14)
: reno registered [0.209005] UDP hash table entries: 256 (order: 1, 8192 bytes) [0.214959] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [0.221513] NET: Registered protocol family 1 [0.227153] futex hash table entries: 512 (order: 3, 32768 bytes) [0.233945] bounce pool size: 64 pages [0.237950] squashfs: version 4.0 (2009/01/31) Phillip Lougher [0.243909] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [0.253904] msgmni has been set to 243 [0.258698] io scheduler noop registered [0.262721] io scheduler deadline registered (default) [0.268329] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [0.275513] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 117, base_baud = 625) is a 16550 [ messy code ] [ ..messy code..] [ ..messy code ..] [ ..messy code ..] [ ..messy code ..] for more detail, refer to: https://forum.openwrt.org/viewtopic.php?pid=270764#p270764 -- Original -- From: Tymon;banglang.hu...@foxmail.com; Send time: Tuesday, Mar 10, 2015 2:34 PM To: openwrt-developenwrt-devel@lists.openwrt.org; Cc: zajec5zaj...@gmail.com; Subject: reply?? System halted on bcm4708 series board when booting openwrt trunk(kernel 3.14) On 10 March 2015 at 04:43, Tymon banglang.hu...@foxmail.com wrote: my cpu is BCM958522ER which is the same series with 4708 as well, 32MB ###boot log: (I updated the xxx-squashfs.trx to the flash) Hit any key to stop autoboot: 0 Checking TRX Image at addr 1e20 ... Uncompressing ... Primary TRX image OK kernel args : console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootflags=sync rootfstype=ubifs user_debug=31 Booting from Primary Partition kernel_args console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootflags=sync rootfstype=ubifs user_debug=31 Start addr 8000 machid 127f Parmameter addr 0010 ... Starting kernel ... Uncompressing Linux... XZ-compressed data is corrupt -- System halted I want to know why this error arise, any hints will be appreciated. but the XZ-compressed data is corrupt is the message of openwrt-trunk kernel that under linux-3.14.xx/lib/compress_unxz.c +371___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] reply?? System halted on bcm4708 series board when booting openwrt trunk(kernel 3.14)
I think next step is to add the flash support on my board, below is my spi nor flash parameters, how can I make it work with squashfs filesystem ? Model : N25Q256A SIZE: totoally 32MB, (64KB sector size) bus num : 0 gpio cs num : 0 internal interface with CPU the bcm4708.dtsi and bcm5301x.dtsi did not show much information about spi-nor-flash. -- Original -- From: Tymon;banglang.hu...@foxmail.com; Send time: Wednesday, Apr 1, 2015 11:10 AM To: openwrt-developenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel]reply?? System halted on bcm4708 series board when booting openwrt trunk(kernel 3.14) There is a breakthrough, the xxx.trx file is not ok while the zImage-xxx.lzma can work. But still remains lots of work to be done. the target platform *.dts file should be like this: /dts-v1/; #include bcm4708.dtsi / { compatible = via,vnt5903, brcm,bcm4708; model = VIA Networking Technology 5903 (BCM4708); chosen { bootargs = console=ttyS0,115200 earlyprintk; }; memory { reg = 0x 0x0800 0x8800 0x0800; /* 128MB + 128MB = 256MB */ }; chipcommonA { uart0: serial@0300 { status = okay; }; uart1: serial@0400 { status = okay; }; }; }; below information is the log from zImage..lzma: u-boot tftp 0x400 test.kernel Using bcmiproc_eth-0 device TFTP from server 192.168.1.100; our IP address is 192.168.1.199 Filename 'test.kernel'. Load address: 0x400 Loading: # # # ## done Bytes transferred = 1294250 (13bfaa hex) u-boot boot_vmlinuz 0x400 0x13bfaa Uncompressing from 400 to 8000 len 13bfaa ... ## Starting application at 0x8000 ... Uncompressing Linux...0800 000386ea done, booting the kernel. [0.00] Booting Linux on physical CPU 0x0 [0.00] Linux version 3.14.32 (banglang@Ubuntu-Linux) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44592) ) #64 SMP Tue Mar 31 19:03:29 HKT 2015 [0.00] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [0.00] Machine model: VIA Networking Technology 5903 (BCM4708) [0.00] bootconsole [earlycon0] enabled [0.00] Memory policy: Data cache writealloc [0.00] PERCPU: Embedded 7 pages/cpu @c6bd9000 s6848 r8192 d13632 u32768 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65280 [0.00] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=squashfs,jffs2 earlyprintk [0.00] PID hash table entries: 512 (order: -1, 2048 bytes) [0.00] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [0.00] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [0.00] Memory: 255988K/262144K available (2630K kernel code, 99K rwdata, 724K rodata, 154K init, 234K bss, 6156K reserved, 131072K highmem) [0.00] Virtual kernel memory layout: [0.00] vector : 0x - 0x1000 ( 4 kB) [0.00] fixmap : 0xfff0 - 0xfffe ( 896 kB) [0.00] vmalloc : 0xc880 - 0xff00 ( 872 MB) [0.00] lowmem : 0xc000 - 0xc800 ( 128 MB) [0.00] pkmap : 0xbfe0 - 0xc000 ( 2 MB) [0.00] modules : 0xbf00 - 0xbfe0 ( 14 MB) [0.00] .text : 0xc0008000 - 0xc034edb4 (3356 kB) [0.00] .init : 0xc034f000 - 0xc0375ac0 ( 155 kB) [0.00] .data : 0xc0376000 - 0xc038eea0 ( 100 kB) [0.00].bss : 0xc038eea0 - 0xc03c9984 ( 235 kB) [0.00] Hierarchical RCU implementation. [0.00] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [0.00] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [0.00] NR_IRQS:16 nr_irqs:16 16 [0.16] sched_clock: 64 bits at 500MHz, resolution 2ns, wraps every 219902322ns [0.008406] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896) [0.071139] pid_max: default: 32768 minimum: 301 [0.076009] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [0.082768] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [0.090614] CPU: Testing write buffer coherency: ok [0.095886] CPU0: thread -1, cpu 0, socket 0, mpidr 8000 [0.101729] Setting up static identity map for 0x124f0 - 0x12524 [0.109594] CPU1: failed to boot: -38 [0.113389] Brought up 1 CPUs [0.116453] SMP: Total of 1 processors activated (1987.37 BogoMIPS). [0.122947] CPU: All CPU(s) started in SVC
Re: [OpenWrt-Devel] ?????? How toCustom admin page on openwrt ?
strange, how can the cgi or uhttp translate myrouter.site1 to gateway ip(i.e. your router, default is 192.168.1.1) ? -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Original message -- From: Ben Mulvihill; Sendtime: Thursday, Mar 12, 2015 6:27 PM To: Tymon; Cc: Claudio Thomas; openwrt-devel; Subject: Re: [OpenWrt-Devel] ?? How toCustom admin page on openwrt ? Surely it is possible to do this using dnsmasq? I have something like this in my /etc/config/dhcp file: config dnsmasq option domainneeded '1' option boguspriv '1' option filterwin2k '0' option localise_queries '1' option rebind_protection '1' option rebind_localhost '1' list rebind_domain 'site2' list server '/site2/10.121.1.1' option local '/site1/' option domain 'site' option expandhosts '1' option nonegcache '0' option authoritative '1' option readethers '1' option leasefile '/tmp/dhcp.leases' option resolvfile '/tmp/resolv.conf.auto' My local domain is 'site1', so I can access my router in a browser at the address 'myrouter.site1' , which it I have understood correctly is what you are trying to do, right? (Note that I also have a vpn to another local network with domain 'site2', and can access the router there at 'myotherrouter.site2') Check the various configuration options I use in the dnsmasq documentation, because it is some time since I set this up and I don't remember the details. The 'server' and 'rebind_domain' are for the vpn, so you shouldn't need those. Or have I misunderstood the question? Ben___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ?????? How to Custom admin page on openwrt ?
That's great, I will have a try on my testbed in my home. And I agree with you that admin.myrouter is a proper domain name for my case. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- -- ??: Claudio Thomasc...@xmodus-systems.de; : 2015??3??12??(??) 5:14 ??: Tymonbanglang.hu...@foxmail.com; : openwrt-developenwrt-devel@lists.openwrt.org; : Re: [OpenWrt-Devel] How to Custom admin page on openwrt ? On 12.03.2015 09:45, Tymon wrote: Thank you for your answer, Claudio Thomas: I use the default utility called dnsmasq ( a light-weigh dns server and dhcp server) on openwrt 12.09. Of course the dhcp-server function is enabled and PC-wireless client can get the ip address normally. Now I can see dns is 192.168.1.1 (just the router) on my PC network configuration, thus I need to modify the dnsmasq configuration so that it can map the domain name (e.g. admin.myrouter.com--192.168.1.1) I type on browser ? Hi Tymon, again: The service that can map from a domain (like admin.myrouter.com) to an IP-address (like 192.168.1.1) is a DNS-Server (like bind9). In your case there is probably no DNS-server in the world that knows admin.myrouter.com. Thats why you don't get the IP to that domain. Because no server in the world knows this domain YOU must find a solution so that 1 server in the world knows this domain: your own DNS-server with a zone file for myrouter.com. The dnsmasq does only forward and cache the queries, but does not has the option (so far I know) to manage your own domain. You need to set up a dnsserver and create a zone file where the mapping for all hostnames for the domain myrouter.com are defined. Sorry, but it is not possible to explain how to set up a DNS-server by mail. But there are many DNS-server howtos on the net (like in the openwrt wiki). In small chunks: remove dnsmasq + install binddns-server, enable forwarding, add a master-zone entry in the named.conf, define your zone file and start your dns-server (bind). PS: be carefull when using domain-names that (could) really exist in the internet. In your case only use *.com domains if this domain belongs to you. admin.myrouter.com coudl be a bad idea, admin.myrouter would probably be better. Best regards, Claudio -- Working on OpenWrt CC for Xmodus GSM Router XM1710E___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] How to Custom admin page on openwrt ?
Hi all, As we all known, the default method to access the router's administration web page(Luci) is to type http://192.168.1.1; on the browser. I am curious about how can the router recognize thehttp://192.168.1.1as its accessible site ? More interesting thing is I used to see someone typeadmin.myrouter on browser(just in LAN network, the router did not connect WAN to the internet), and he successfully accessed the administration web page(Luci) on his openwrt router. Thus my question is how can I make the OpenWrt router like him ? Do I need to modified the code of cgi ? Any hint will be appreciated! -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] reply?? System halted on bcm4708 series board when booting openwrt trunk(kernel 3.14)
On 10 March 2015 at 04:43, Tymon banglang.hu...@foxmail.com wrote: my cpu is BCM958522ER which is the same series with 4708 as well, 32MB ###boot log: (I updated the xxx-squashfs.trx to the flash) Hit any key to stop autoboot: 0 Checking TRX Image at addr 1e20 ... Uncompressing ... Primary TRX image OK kernel args : console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootflags=sync rootfstype=ubifs user_debug=31 Booting from Primary Partition kernel_args console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootflags=sync rootfstype=ubifs user_debug=31 Start addr 8000 machid 127f Parmameter addr 0010 ... Starting kernel ... Uncompressing Linux... XZ-compressed data is corrupt -- System halted I want to know why this error arise, any hints will be appreciated. but the XZ-compressed data is corrupt is the message of openwrt-trunk kernel that under linux-3.14.xx/lib/compress_unxz.c +371___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] System halted on bcm4708 series board when booting openwrt trunk (kernel 3.14)
my cpu is BCM958522ER which is the same series with 4708 as well, 32MB spi-nor flash, ###my dts file is : /* * Broadcom BCM470X / BCM5301X ARM platform code. * DTS for - * * Copyright (C) 2014 x...@gmail.com * * Licensed under the GNU/GPL. See COPYING for details. */ /dts-v1/; #include bcm4708.dtsi / { compatible = xxx,888, brcm,bcm4708; model = 888 Networking Technology 8883 (BCM4708); chosen { bootargs = console=ttyS0,115200 earlyprintk; }; memory { reg = 0x 0x0800 0x8800 0x1800; /* 128MB + 128MB = 256MB */ }; chipcommonA { uart0: serial@0300 { status = okay; }; uart1: serial@0400 { status = okay; }; }; }; ###boot log: (I updated the xxx-squashfs.trx to the flash) Hit any key to stop autoboot: 0 Checking TRX Image at addr 1e20 ... Uncompressing ... Primary TRX image OK kernel args : console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootflags=sync rootfstype=ubifs user_debug=31 Booting from Primary Partition kernel_args console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootflags=sync rootfstype=ubifs user_debug=31 Start addr 8000 machid 127f Parmameter addr 0010 ... Starting kernel ... Uncompressing Linux... XZ-compressed data is corrupt -- System halted I want to know why this error arise, any hints will be appreciated. -- Regards, Tymon ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Mounting jffs2 mtdblock error ??
below is the output when I mount /dev/mtdblock10 to /mnt directory, why these log arise again and again ?... mtdblock10 is a partition of my second flash root@OpenWrt:/# mount -t jffs2 /dev/mtdblock10 /mnt/ [ 808.08] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0048: 0x63a4 instead [ 808.08] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00480004: 0x4357 instead [ 808.09] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00480008: 0x3011 instead [ 808.10] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0048000c: 0xa9ac instead [ 808.11] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00480010: 0xb16f instead [ 808.12] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00480014: 0x9d93 instead [ 808.13] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00480018: 0x79ba instead [ 808.14] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0048001c: 0xec48 instead [ 808.15] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00480020: 0xd06f instead [ 808.16] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00480024: 0xaafc instead [ 808.17] Further such events for this erase block will not be printed [ 808.18] Empty flash at 0x00480100 ends at 0x00482120 [ 808.21] Empty flash at 0x00483120 ends at 0x0048b140 [ 808.22] Empty flash at 0x0048c140 ends at 0x0048c148 [ 808.23] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c: 0x6b0f instead [ 808.24] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0004: 0x8990 instead [ 808.25] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0008: 0x4e16 instead [ 808.26] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c000c: 0x6c82 instead [ 808.27] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0010: 0x7f9a instead [ 808.28] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0014: 0xf68e instead [ 808.29] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0018: 0x74e4 instead [ 808.30] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c001c: 0x3b3f instead [ 808.31] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0020: 0x6d45 instead [ 808.32] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0024: 0x9049 instead [ 808.33] Further such events for this erase block will not be printed [ 808.34] Empty flash at 0x005c0100 ends at 0x005c0118 [ 808.35] Empty flash at 0x005c1120 ends at 0x005c4140 [ 808.37] Empty flash at 0x005c6140 ends at 0x005c9160 [ 808.39] jffs2_scan_eraseblock(): Node at 0x0067 {0x1985, 0x2003, 0x000c) has invalid CRC 0x7060dc98 (calculated 0xf060dc98) [ 808.40] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00670008: 0x7060 instead [ 808.44] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a: 0x0985 instead [ 808.45] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0008: 0x7060 instead [ 808.48] jffs2_scan_eraseblock(): Node at 0x006d {0x1985, 0x2003, 0x000c) has invalid CRC 0x7060dc98 (calculated 0xf060dc98) [ 808.50] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006d0008: 0x7060 instead [ 808.53] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e: 0x1981 instead [ 808.54] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0008: 0xf060 instead [ 808.58] jffs2_scan_eraseblock(): Node at 0x0070 {0x1985, 0x2003, 0x000c) has invalid CRC 0x7060dc98 (calculated 0xf060dc98) [ 808.59] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0078: 0x7060 instead [ 808.64] Empty flash at 0x00ab1100 ends at 0x00ab1110 [ 808.65] Empty flash at 0x00ab2120 ends at 0x00ab4140 [ 808.67] Empty flash at 0x00ab6120 ends at 0x00ab9140 [ 808.68] Empty flash at 0x00aba140 ends at 0x00aba150 [ 808.71] JFFS2 notice: (1078) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. root@OpenWrt:/# [ 809.19] Newly-erased block contained word 0x0 at offset 0x00fda000 [ 809.62] Newly-erased block contained word 0x0 at offset 0x00fc3000 [ 810.08] Newly-erased block contained word 0x0 at offset 0x00fb6000 [ 810.52] Newly-erased block contained word 0x0 at offset 0x00fa1000 [ 810.98] Newly-erased block contained word 0x0 at offset 0x00f94000 [ 811.41] Newly-erased block contained word 0x0 at offset 0x00f8 [ 811.86] Newly-erased block contained word 0x0 at offset 0x00f73000 [ 812.30] Newly-erased block contained word 0x0 at offset 0x00f68000 [ 812.75] Newly-erased block contained word 0x0 at offset 0x00f5e000 [
[OpenWrt-Devel] Dual-Flash Driver support on openwrt
Hi, all: My board is a Dual-flash device, and I want to make openwrt support on it. The chip is compatible with M25P80, detail model is MX25L12845EMI-10G. The 1st flash GPIO pin is GPIO5, and the 2nd is GPIO-13. I had refer to the arch/mips/ath79/dev-m25p80.c and dev-spi.c , etc, but failed with many try. So, my question is how can I modified the relevant code to make it support my dual-flah, any hints will be appreciated.If you interested in this case or had done a similar case with it, please let me know, thansk -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Dual-Flash Driver support on openwrt
I already know it is same driver with 12805d, but the ath79_register_m25p80_multi() function does not seem to work. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Original -- From: Tymon;banglang.hu...@foxmail.com; Date: Fri, May 16, 2014 09:36 PM To: openwrt-developenwrt-devel@lists.openwrt.org; Subject: [OpenWrt-Devel] Dual-Flash Driver support on openwrt Hi, all: My board is a Dual-flash device, and I want to make openwrt support on it. The chip is compatible with M25P80, detail model is MX25L12845EMI-10G. The 1st flash GPIO pin is GPIO5, and the 2nd is GPIO-13. I had refer to the arch/mips/ath79/dev-m25p80.c and dev-spi.c , etc, but failed with many try. So, my question is how can I modified the relevant code to make it support my dual-flah, any hints will be appreciated.If you interested in this case or had done a similar case with it, please let me know, thansk -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Question about the /tmp/resolv.conf.auto file
How can it retrieve the nameserver in 'DHCP' way ? -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Original -- From: Kristian Evensen;kristian.even...@gmail.com; Date: Mar 31, 2014 To: banglang huangbanglang.hu...@gmail.com; Cc: OpenWrt Development Listopenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] Question about the /tmp/resolv.conf.auto file Hi, On Mon, Mar 31, 2014 at 11:39 AM, banglang huang banglang.hu...@gmail.com wrote: And I want to learn how this file can be generated and why the openwrt knows the dns ip address automatically (nameserver) ?? This file is generated by the network interface daemon (netifd) in the function interface_write_resolv_conf() in interface-ip.c. The nameservers are retrieved through different means, for example DHCP and static configuration in UCI. -Kristian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel .___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Question about the /tmp/resolv.conf.auto file
Thanks Lukas Macura, I really need this, please inform me when it can work fine. -- Regards, banglang huang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Original -- From: Lukas Macura;mac...@opf.slu.cz; Date: Mon, Mar 31, 2014 09:42 PM To: openwrt-developenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] Question about the /tmp/resolv.conf.auto file Hi, we are working on patch which will save DHCP client parameters, because we needed to get informations later in scripts. Maybe this is what you need. Our implementation utilises udhcp script and save needed parameters to /var/state for given interface. Now we are testing this. I think more people can use this. We will inform you when patch will be available. With regards, Lukas Dne 31.3.2014 12:43, Kristian Evensen napsal(a): Hi, On Mon, Mar 31, 2014 at 11:58 AM, Tymon banglang.hu...@foxmail.com wrote: How can it retrieve the nameserver in 'DHCP' way ? When a nameserver is retrieved through DHCP, it is part of the reply sent by the DHCP server. It is set (and communicated to) netifd through the /lib/netifd/dhcp.script, which is run by udhcp when an IP is acquired. -Kristian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel .___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel