No no, I have compiled for NAND generic devices. It is up and available for you to try now
Topic: Unofficial Full Feature Images
The content of this topic has been archived between 14 Apr 2018 and 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Thanks hnyman I'll work on that -- I only run 4 different config files for everything in the ar71xx list as you can see but I guess some ppl would like to know the selections. Should I post that output on here?
With my own community firmware I place both the .config and diffconfig output to the same folder as firmware release itself. I also post all the diffs & scripts that I use in the build process, so that replicating my build is really easy.
Full .config is 180 kB, while diffconfig is only 14 kB (of which 9 kB is Busybox changes as devs changed its handling a few months ago). Earlier diffconfig was only 5 kB.
See e.g. the most recent build: https://www.dropbox.com/sh/t52c02rm20y8 … 2014-06-25
Info on my build in general: https://forum.openwrt.org/viewtopic.php?id=28392
(Last edited by hnyman on 26 Jun 2014, 13:09)
Well first thing I noticed after having a bit of a trawl thru your thread, is that you too are running Ubuntu 14.04
Anyway good suggestion which I will take onboard.
OK,I'am not good at English。And I want to say:我必须要好好学习英语了!
If you need help with English go to https://translate.google.com
如果您需要幫助,英語,訪 https://translate.google.com
It's what I used to help me write this!
Hi AdamK, thanks for providing the new revision. I'd like to upgrade my router by flashing directly in luci. Does sysupgrade work properly now? Also I noticed that there is only a openwrt-ar71xx-nand-wndr4300-squashfs-sysupgrade.tar but not the normal .bin file. How should I do the sysupgrade using .tar?
Okay so the latest build is on the server after testing for several hours. I know that at the very least these images work on a TL-WDR4300 and WNDR4300, and are stable.
http://www.mcservices.com.au/downloads/ … er-r41337/
These images are as per post # 69 above.
I have also put in the directory the imagebuilder tarballs for NAND and generic devices. This will aide you in customizing your images further, ultimately mostly based on the code I have compiled.
For those of you who just want to install a couple of extra packages in addition to the base images I have built, you'll find a repository of ipk files that I have built in the packages subdirectory.
Finally, for those who just want to compile from scratch without the headache of working out what packages to add, what to configure etc, I've also put several .config files in the base directory. generic.config is for most routers in the list, archerc7.config is for the archer c7 v2 with the 16MB flash and properly support 802.11ac/ath10k, wdr4300.config is for the TL-WDR4300 (TP-LINK) which has most features pre-built into the image, and lastly wndr4300.config which is for the Netgear WNDR4300 & Netgear WNDR3700v4.
As always, appreciate feedback, bug reports etc that you guys find.
Hi d1no, thanks for asking that question as this was overlooked in my update notes.
Firstly, the sysupgrade, as far as I know, will NOT work with versions prior to when the openwrt developers implemented the sysupgrade features in trunk. That said, unless you have already upgraded to my 41336 build, you'll need to do the whole process of using TFTP one last time. Assuming that things do not break unintentionally in trunk, all future images can be done via the sysupgrade facility in luci. Note that the process for this is precisely the same as it would be assuming the file is a .bin that said do NOT extract the tar file first. Provide that tarball to luci as is.
HTH
For those of you who've noticed, it looks like the default used kernel has been upgraded from 3.10.36 to 3.10.44
Now that in itself I don't think changes much other than it is a bigger number, that said I'll probably do another new build in a weeks time (or sooner if a security hole needs patching and is fixed in a newer trunk revision)
Should give me some time to rest up (sadly yes I have been ill now for quite sometime) and look at what hnyman has done with his community builds some more, as I'd like to take on his suggestions. If it makes replicating my builds easier for those who have the facilities and know-how to do it, I'm all for it.
(Last edited by AdamK on 28 Jun 2014, 00:46)
Hi AdamK
thanks for the build just installed on my wrt160nl. all is good after i uninstalled the bootstrap theme for luci. that's not your fault tho, it dus not play nice with my screen reader. I have a wd n750 in the post so will test on that soon to. thanks and get well soon.
Thanks tapper I hope you're enjoying your router.
The feedback overall that I have received via pm & in person is that people much prefer the bootstrap (aka luci default theme) over the openwrt theme as they find it easier to navigate compared to the openwrt theme. You can change themes via the openwrt developers build repository though, this should not fail even though my builds are based on snapshots of current trunk code.
Okay I've built an update for the ar71xx routers based on trunk r41522
There are no changes on my end, so any changes are based on what the OpenWRT developers have put into the source code. You can review the changes here: https://dev.openwrt.org/log/
I'm doing some testing of the images before I put them up on to the server, this will take several hours. Currently both my test routers (Netgear WNDR4300 & TP-Link TL-WDR4300) are happy with the build, no issues are seen at this stage, but I will run them both for a few more hours before I post them onto the server
Once this version has been released there will be releases every 2 to 3 weeks, except where a security hole needs to be patched in which case once this has been found by either me, you guys or the OpenWRT developers and a fix released in trunk or in any of my work, I will build a fresh release immediately.
(Last edited by AdamK on 6 Jul 2014, 04:53)
Hi AdamK,
Thank you for sharing your config file with us.
I'd try to use your config to compile openwrt for wndr4300, but eventually pppd server seems encount an error:
Sun Jul 6 08:48:27 2014 daemon.info pppd[5882]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.6
Sun Jul 6 08:48:27 2014 daemon.err pppd[5882]: Couldn't open the /dev/ppp device: No such file or directory
Sun Jul 6 08:48:27 2014 daemon.notice netifd: wan (5882): /usr/sbin/pppd: You need to create the /dev/ppp device node by
Sun Jul 6 08:48:27 2014 daemon.notice netifd: wan (5882): executing the following command as root:
Sun Jul 6 08:48:27 2014 daemon.notice netifd: wan (5882): mknod /dev/ppp c 108 0
Sun Jul 6 08:48:27 2014 daemon.notice netifd: wan (5882):
Sun Jul 6 08:48:27 2014 daemon.err pppd[5882]: You need to create the /dev/ppp device node by
executing the following command as root:
mknod /dev/ppp c 108 0
........
Should I fix it by hand? or there's something wrong during compiling that I must fix toolchain(?) or something else then recompile it from srouce?
here's diff between my config and config from your site, I just enabled macvlan mod and disable all new settings for new kernel:
1464d1463
< # CONFIG_PACKAGE_kmod-nls-cp932 is not set
1555c1554
< CONFIG_PACKAGE_kmod-macvlan=y
---
> # CONFIG_PACKAGE_kmod-macvlan is not set
2003,2004d2001
< # CONFIG_PACKAGE_libacl is not set
< # CONFIG_PACKAGE_libattr is not set
3586d3582
< # CONFIG_PACKAGE_mdns is not set
3769a3766
> # CONFIG_PACKAGE_pulseaudio-daemon-avahi is not set
3809,3810d3805
< # CONFIG_PACKAGE_acl is not set
< # CONFIG_PACKAGE_attr is not set
looking forward your reply,
thanks,
quabug
Hi will you post here wen you update the server?
Yes I will be.
Tests seem to be good so I have uploaded the images to the server.
You can grab the latest build here:
http://www.mcservices.com.au/downloads/ … er-r41522/
(Last edited by AdamK on 7 Jul 2014, 06:43)
Hi AdamK, Thanks for your great work.
I have a problem with WNDR4300. After updating the router's firmware using your images (r41522 and r41337, openwrt-ar71xx-nand-wndr4300-ubi-factory.img), I find that the router's DNS function don't work correctly. When I run "ping www.baidu.com" in router's shell, the result will be "ping: unknown host www.baidu.com".
Should I do some config about DNS?
Do anyone else meet this problem before?
What can I do to fix this problem?
(Last edited by ldd200888 on 7 Jul 2014, 09:54)
I am unaware of any issues relating to DNS with the builds.
I've re-tested here and got this result:
adamk@Dell-M4500:~$ nslookup
> server 192.168.1.1
Default server: 192.168.1.1
Address: 192.168.1.1#53
> www.google.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: www.google.com
Address: 74.125.237.112
Name: www.google.com
Address: 74.125.237.116
Name: www.google.com
Address: 74.125.237.115
Name: www.google.com
Address: 74.125.237.114
Name: www.google.com
Address: 74.125.237.113
> www.baidu.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
www.baidu.com canonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 180.76.3.151
There does not appear to be any fault on the part of the image and the DNS that is setup on it. Perhaps your ISP uses an unusual type of DNS server or did not correctly tell the router what the DNS servers are.
or there's something wrong during compiling that I must fix toolchain(?) or something else then recompile it from srouce?
The toolchain is built as a part of the overall OpenWRT build process. The fault may lie in that there may be a missing piece of the puzzle in your overall build environment but it would be impossible for me to diagnose for you from here. Are you using Ubuntu? If so perhaps I can look to document what packages I installed (there were quite a lot of them however) at some point to assist.
I am unaware of any issues relating to DNS with the builds.
I've re-tested here and got this result:
adamk@Dell-M4500:~$ nslookup
> server 192.168.1.1
Default server: 192.168.1.1
Address: 192.168.1.1#53
> www.google.com
Server: 192.168.1.1
Address: 192.168.1.1#53
....There does not appear to be any fault on the part of the image and the DNS that is setup on it. Perhaps your ISP uses an unusual type of DNS server or did not correctly tell the router what the DNS servers are.
Thanks for your elaborate reply. This problem really confuses me.
However, in the same condition, other routers(such as TP-link) and the WNDR4300 with its origin factory image (download from netgear.com) can work correctly.
Without other solutions, I modify the /etc/config/network by adding a line " option dns '8.8.8.8' ". It appears to work now~~
OMG, Why me meeting the odd??
Without other solutions, I modify the /etc/config/network by adding a line " option dns '8.8.8.8' ". It appears to work now~~
This means that your ISP is sending information to the router when you authenticate, which the router cannot understand.
You could also find out what the DNS servers are for your ISP and replace 8.8.8.8 with the address your ISP uses. This should resolve your problem longer term, however if there's anyone else who also have this problem please let us know in this thread.
The toolchain is built as a part of the overall OpenWRT build process. The fault may lie in that there may be a missing piece of the puzzle in your overall build environment but it would be impossible for me to diagnose for you from here. Are you using Ubuntu? If so perhaps I can look to document what packages I installed (there were quite a lot of them however) at some point to assist.
Hi AdamK,
I just upgrade to your new 41522 firmware and encounter the same issue.. so I guess this issue is not related on toolchains (btw, I use arch to compile openwrt)? Did you test pppoe feature?
Anyway I'll try to install a new firmware instead of upgrade from old one.
quabug
quabug:
I use these routers as a production router which involves normal DHCP and also PPPoE.
Both of these routers work without fault.
I had a look at my test unit which shows the ppp device in Linux, intact.
root@OpenWrt-Test:~# cd /dev
root@OpenWrt-Test:/dev# ls -l ppp
crw-r--r-- 1 root root 108, 0 Jul 7 20:10 ppp
root@OpenWrt-Test:/dev#
Have you tried using the factory image via TFTP? If so, did you power cycle the router once flashed? Have you also tried reverting to the Netgear stock firmware and then flashing with OpenWRT? Again if you try this don't forget to power cycle the router after flashing. The only time I have noted where you do not need to power cycle the router after flashing OpenWRT is when you have successfully done a sysupgrade. I have not seen any issues with sysupgrade since the OpenWRT developers have rolled it out and got the whole setup working, but that's not to say that others may run into problems, which could be caused by minor hardware revisions that Netgear have not told anyone about.
(Last edited by AdamK on 8 Jul 2014, 02:32)
Hi,AdamK.I find a problem recently,when I installed some software( xunlei Xware is more than 5M) and I have little space for /overlay ,when I use df -h I found there are only 8M for /overlay.
root@OpenWrt:/dev# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 8.1M 8.0M 0 100% /
/dev/root 8.8M 8.8M 0 100% /rom
tmpfs 61.6M 1.4M 60.2M 2% /tmp
/dev/ubi0_1 8.1M 8.0M 0 100% /overlay
overlayfs:/overlay 8.1M 8.0M 0 100% /
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:~# cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 256 mtdblock1
31 2 256 mtdblock2
31 3 512 mtdblock3
31 4 2048 mtdblock4
31 5 512 mtdblock5
31 6 3072 mtdblock6
31 7 2048 mtdblock7
31 8 23552 mtdblock8
31 9 25600 mtdblock9
31 10 256 mtdblock10
31 11 98304 mtdblock11
254 0 8928 ubiblock0_0
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "u-boot"
mtd1: 00040000 00020000 "u-boot-env"
mtd2: 00040000 00020000 "caldata"
mtd3: 00080000 00020000 "pot"
mtd4: 00200000 00020000 "language"
mtd5: 00080000 00020000 "config"
mtd6: 00300000 00020000 "traffic_meter"
mtd7: 00200000 00020000 "kernel"
mtd8: 01700000 00020000 "ubi"
mtd9: 01900000 00020000 "firmware"
mtd10: 00040000 00020000 "caldata_backup"
mtd11: 06000000 00020000 "reserved"
Now,I use mkfs.ext4 /dev/mtdblock11 and mount /dev/mtdblock11 /mnt/mtd11,so,there are 80.7M for free. Is that OK? And I want to know how to edit the source file to change the size of partition.After all,I want full use of 3700v4's 128M nand flash.
------------two days later----------------------------
How are you these days,take care about yourself!
Though searching from google and wiki,I edit the file ./target/linux/ar71xx/image/Makefile
old:
wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),(reserved)
new:(increase 50M for both ubi and firmware,you can increase more space if you want and I just for a test)
wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),74752k(ubi),76800k@0x6c0000(firmware),256k(caldata_backup),(reserved)
Then build a new image and upgrade on my wndr3700v4,I'am very happy to find that the size of /overly change to 51.6M.
This is information:
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 52868 80 50056 0% /
/dev/root 10496 10496 0 100% /rom
tmpfs 63048 912 62136 1% /tmp
/dev/ubi0_1 52868 80 50056 0% /overlay
overlayfs:/overlay 52868 80 50056 0% /
tmpfs 512 0 512 0% /dev
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 51.6M 80.0K 48.9M 0% /
/dev/root 10.3M 10.3M 0 100% /rom
tmpfs 61.6M 912.0K 60.7M 1% /tmp
/dev/ubi0_1 51.6M 80.0K 48.9M 0% /overlay
overlayfs:/overlay 51.6M 80.0K 48.9M 0% /
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "u-boot"
mtd1: 00040000 00020000 "u-boot-env"
mtd2: 00040000 00020000 "caldata"
mtd3: 00080000 00020000 "pot"
mtd4: 00200000 00020000 "language"
mtd5: 00080000 00020000 "config"
mtd6: 00300000 00020000 "traffic_meter"
mtd7: 00200000 00020000 "kernel"
mtd8: 04900000 00020000 "ubi"
mtd9: 04b00000 00020000 "firmware"
mtd10: 00040000 00020000 "caldata_backup"
mtd11: 02e00000 00020000 "reserved"
root@OpenWrt:~# cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 256 mtdblock1
31 2 256 mtdblock2
31 3 512 mtdblock3
31 4 2048 mtdblock4
31 5 512 mtdblock5
31 6 3072 mtdblock6
31 7 2048 mtdblock7
31 8 74752 mtdblock8
31 9 76800 mtdblock9
31 10 256 mtdblock10
31 11 47104 mtdblock11
254 0 10292 ubiblock0_0
So, I think if you both change the size of mtd8(ubi) and mtd9(witch include mtd7 and mtd8) the size of other partition will change automatic.
If it is right and you think it is useful,would you mind do this change in you images?
Thanks again.
(Last edited by zhouruixi on 14 Jul 2014, 07:42)
hi zhouruixi,
there is the possibility to get the firmware from you? I would be happy ;-)
(Last edited by Meditux on 12 Jul 2014, 13:56)
To say the truth,I use OpenWRT for only less than two month,I know little about it. I don't know what package is necessary what are not,I build based on your .config.And another problem is I can not download lots of source file by the build system because of the GFW(Great Firewall of China) so,I must download it by myself with VPN in other country .It's trouble for me.But I will try my best to explore and test the firmware on my device.Now,I'll test for several hours or several days.Of course I will put it here if necessary(only for wndr3700V4 wndr4300).
======================a small bug=============
In my image,I had not select kmod-nls-iso8859-1 and kmod-nls-cp437(it is necessary for chinese?).When I mount -t vfat /dev/sda1 /mnt/sda1 I got "Failed to mount '/dev/sda1': Invalid argument".I think it is because of the kmod-nls-iso8859-1 and it's useless by use -o iocharset=utf8 ,finally I installed kmod-nls-iso8859-1 .when I use mount /dev/sda1 /mnt/sda1 it shows to me :
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
But it will mount successfully.and run mount:
/dev/sda1 on /mnt/sda1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso88591,shortname=mixed,errors=remount-ro)
The default is iocharset=iso88591 not utf8(it may is the reason why I can't mount).Next I remove kmod-nls-iso8859-1 and delete /bin/mount witch provide by busybox then installed mount-utils.Well,I can't mount(by default) without kmod-nls-iso8859-1 but I can mount with -o iocharset=utf8.It will not show "NTFS signature is missing.........."too.
-------------------one day later-------------------------------
now,I select kmod-nls-iso8859-1,and use mount-utils Instead of busybox(mount and umount).
(Last edited by zhouruixi on 14 Jul 2014, 09:25)
OK zhouruixi,
no problem. I have made myself at times their own firmware for the WNDR3700v4 and it runs with Samba, vsftpd without problems. Thanks for the tip with the mtdlayout.
root@gateway:~# dmesg
[ 0.000000] Linux version 3.10.44 (meditux@meditux-virtual-machine) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41595) ) #3 Sun Jul 13 13:47:25 CEST 2014
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 2
[ 0.000000] Clocks: CPU:560.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 8036ea80, node_mem_map 81000000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=WNDR4300 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),74752k(ubi),76800k@0x6c0000(firmware),256k(caldata_backup),-(reserved) rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 125868k/131072k available (2566k kernel code, 5204k reserved, 656k data, 232k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.060000] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 512
[ 0.080000] NET: Registered protocol family 16
[ 0.080000] MIPS: machine is NETGEAR WNDR3700v4/WNDR4300
[ 0.090000] ar71xx: using random MAC address for eth0
[ 0.290000] registering PCI controller with io_map_base unset
[ 0.300000] bio: create slab <bio-0> at 0
[ 0.310000] PCI host bridge to bus 0000:00
[ 0.310000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.320000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.320000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.330000] pci 0000:00:00.0: [168c:0033] type 00 class 0x028000
[ 0.330000] pci 0000:00:00.0: invalid calibration data
[ 0.330000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.330000] pci 0000:00:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
[ 0.330000] pci 0000:00:00.0: supports D1
[ 0.330000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.330000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.330000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.340000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.340000] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.350000] Switching to clocksource MIPS
[ 0.350000] NET: Registered protocol family 2
[ 0.360000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.360000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.370000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.370000] TCP: reno registered
[ 0.370000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.380000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.390000] NET: Registered protocol family 1
[ 0.390000] PCI: CLS 0 bytes, default 32
[ 0.410000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.410000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.420000] msgmni has been set to 245
[ 0.430000] io scheduler noop registered
[ 0.430000] io scheduler deadline registered (default)
[ 0.430000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.460000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.470000] console [ttyS0] enabled, bootconsole disabled
[ 0.480000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[ 0.490000] Scanning device for bad blocks
[ 0.590000] 12 cmdlinepart partitions found on MTD device ar934x-nfc
[ 0.590000] Creating 12 MTD partitions on "ar934x-nfc":
[ 0.600000] 0x000000000000-0x000000040000 : "u-boot"
[ 0.600000] 0x000000040000-0x000000080000 : "u-boot-env"
[ 0.610000] 0x000000080000-0x0000000c0000 : "caldata"
[ 0.620000] 0x0000000c0000-0x000000140000 : "pot"
[ 0.620000] 0x000000140000-0x000000340000 : "language"
[ 0.630000] 0x000000340000-0x0000003c0000 : "config"
[ 0.640000] 0x0000003c0000-0x0000006c0000 : "traffic_meter"
[ 0.640000] 0x0000006c0000-0x0000008c0000 : "kernel"
[ 0.650000] 0x0000008c0000-0x0000051c0000 : "ubi"
[ 0.660000] 0x0000006c0000-0x0000051c0000 : "firmware"
[ 1.370000] 0x0000051c0000-0x000005200000 : "caldata_backup"
[ 1.380000] 0x000005200000-0x000008000000 : "reserved"
[ 1.410000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[ 2.620000] libphy: ag71xx_mdio: probed
root@gateway:~# cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 256 mtdblock1
31 2 256 mtdblock2
31 3 512 mtdblock3
31 4 2048 mtdblock4
31 5 512 mtdblock5
31 6 3072 mtdblock6
31 7 2048 mtdblock7
31 8 74752 mtdblock8
31 9 76800 mtdblock9
31 10 256 mtdblock10
31 11 47104 mtdblock11
254 0 5456 ubiblock0_0
8 0 31375360 sda
8 1 31371264 sda1
root@gateway:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "u-boot"
mtd1: 00040000 00020000 "u-boot-env"
mtd2: 00040000 00020000 "caldata"
mtd3: 00080000 00020000 "pot"
mtd4: 00200000 00020000 "language"
mtd5: 00080000 00020000 "config"
mtd6: 00300000 00020000 "traffic_meter"
mtd7: 00200000 00020000 "kernel"
mtd8: 04900000 00020000 "ubi"
mtd9: 04b00000 00020000 "firmware"
mtd10: 00040000 00020000 "caldata_backup"
mtd11: 02e00000 00020000 "reserved"
root@gateway:~#
root@gateway:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 56.0M 112.0K 53.0M 0% /
/dev/root 5.5M 5.5M 0 100% /rom
tmpfs 61.6M 416.0K 61.2M 1% /tmp
/dev/ubi0_1 56.0M 112.0K 53.0M 0% /overlay
overlayfs:/overlay 56.0M 112.0K 53.0M 0% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 29.9G 4.3G 25.6G 14% /mnt/usb
Greetings and thanks Meditux
Ok,Meditux,thanks for your trying.Now,I edit the Makefile as:
wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),121856k(ubi),123904k@0x6c0000(firmware),256k(caldata_backup),-(reserved)
So,I can fully use the 128M flash without mtd11(reserved).
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "u-boot"
mtd1: 00040000 00020000 "u-boot-env"
mtd2: 00040000 00020000 "caldata"
mtd3: 00080000 00020000 "pot"
mtd4: 00200000 00020000 "language"
mtd5: 00080000 00020000 "config"
mtd6: 00300000 00020000 "traffic_meter"
mtd7: 00200000 00020000 "kernel"
mtd8: 07700000 00020000 "ubi"
mtd9: 07900000 00020000 "firmware"
mtd10: 00040000 00020000 "caldata_backup"
root@OpenWrt:~#
root@OpenWrt:~# cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 256 mtdblock1
31 2 256 mtdblock2
31 3 512 mtdblock3
31 4 2048 mtdblock4
31 5 512 mtdblock5
31 6 3072 mtdblock6
31 7 2048 mtdblock7
31 8 121856 mtdblock8
31 9 123904 mtdblock9
31 10 256 mtdblock10
254 0 13516 ubiblock0_0
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 89.8M 700.0K 84.5M 1% /
/dev/root 13.3M 13.3M 0 100% /rom
tmpfs 61.6M 444.0K 61.1M 1% /tmp
/dev/ubi0_1 89.8M 700.0K 84.5M 1% /overlay
overlayfs:/overlay 89.8M 700.0K 84.5M 1% /
tmpfs 512.0K 0 512.0K 0% /dev
Download r41581-full-use-of-128M-NAND-flash:(click 下载 then click 立即下载 )
Based on AdamK's .config
WNDR3700V4 http://pan.baidu.com/s/1gd68TA7
WNDR4300 http://pan.baidu.com/s/1pJyRepP
My own firmware (aria2,yaaw,python,vsftpd,tinyproxy,wol,mwan3,three themes,etc)
WNDR3700V4 http://pan.baidu.com/s/1dDGg2hN
WNDR4300 http://pan.baidu.com/s/1o6Bevyy
(Last edited by zhouruixi on 14 Jul 2014, 07:17)
The discussion might have continued from here.