aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* kirkwood: add ZyXEL NSA310bAlberto Bursi2017-01-249-13/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ZyXEL NSA310 device is a Kirkwood based NAS: - SoC: Marvell 88F6702 1200Mhz - SDRAM memory: 256MB DDR2 400Mhz - Gigabit ethernet: Realtek (over pcie) - Flash memory: 128MB - 1 Power button - 1 Power LED (blue) - 5 Status LED (green/red) - 1 Copy/Sync button - 1 Reset button - 2 SATA II port (1 internal and 1 external) - 2 USB 2.0 ports (1 front and 1 back) - Smart fan The stock u-boot cannot read ubi so it should be replaced with the LEDE/OpenWRT's u-boot or with a u-boot from here https://github.com/mibodhi/u-boot-kirkwood This device's boot ROM supports "kwboot" tool (in mainline u-boot, built automatically if CONFIG_KIRKWOOD is declared) that sends an uboot image to the board over serial connection, it is very easy to unbrick. The stock bootloader can use usb and read from FAT filesystems, so the installation process is simple, place the uboot file on a USB flashdrive formatted as FAT (here it is "openwrt-kirkwood-nsa310.bin", then connect TTL to the board and write the following commands in the bootloader console: usb reset fatload usb 0 0x1000000 openwrt-kirkwood-nsa310.bin nand write 0x1000000 0x00000 0x100000 reset Now you are rebooting in the new u-boot, write this in its console to install the firmware: usb reset fatload usb 0 0x2000000 lede-kirkwood-nsa310b-squashfs-factory.bin nand erase.part ubi nand write 0x2000000 ubi 0x600000 If your firmware file is bigger than 6 MiBs you should write its size in hex instead of 0x600000 above, or remove that number entirely (it will take a while in this case). If you are using another uboot that can read ubi, set mtdparts like this mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) And set your bootcmd to be like this bootcmd=run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000 Then you can install the firmware as described above. After you installed (or configured) the u-boot for booting the firmware, write the device's mac address in the ethaddr u-boot env. The MAC address is usually on a sticker under the device (one of the two codes is the serial), it should begin with "107BEF" as it is assigned to ZyXEL. write in the u-boot console (use your MAC address instead of the example) setenv ethaddr 10:7B:EF:00:00:00 saveenv to save the mac address in the u-boot. Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
* uboot-envtools: add nsa310b envsAlberto Bursi2017-01-241-0/+1
| | | | | | | accessing the u-boot's envs on this device is required to read the mac address. These are the envs of the new u-boot, not of the stock one. Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
* mvebu: set fan_ctrl.sh only on mambaHans Geiblinger2017-01-242-1/+23
| | | | | Signed-off-by: Hans Geiblinger <cybrnook2002yahoo.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
* uboot-zynq: switch to u-boot.mkFelix Fietkau2017-01-241-98/+17
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-sunxi: clean up, switch to u-boot.mkFelix Fietkau2017-01-244-107/+124
| | | | | | | | Instead of referencing u-boot packages from device profiles and having a -all metapackage, make the u-boot packages hidden (they don't install to bin/ anyway), and name the files in KERNEL_BUILD_DIR appropriately Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-pxa: remove packageFelix Fietkau2017-01-242-104/+0
| | | | | | support for pxa has been gone for a long time now Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-oxnas: switch to u-boot.mkFelix Fietkau2017-01-2429-76/+10
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-omap: switch to u-boot.mkFelix Fietkau2017-01-241-75/+16
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-mxs: switch to u-boot.mkFelix Fietkau2017-01-241-66/+10
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-mvebu: switch to u-boot.mkFelix Fietkau2017-01-244-84/+14
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-layerscape-32b: simplify the package, it does not build anythingFelix Fietkau2017-01-241-64/+16
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-layerscape: switch to u-boot.mkFelix Fietkau2017-01-241-69/+22
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-imx6: switch to u-boot.mkFelix Fietkau2017-01-241-88/+29
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-at91: switch to u-boot.mkFelix Fietkau2017-01-241-71/+11
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-kirkwood: switch to u-boot.mkFelix Fietkau2017-01-241-78/+38
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-ar71xx: switch to using u-boot.mkFelix Fietkau2017-01-2416-82/+19
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-lantiq: switch to using u-boot.mkFelix Fietkau2017-01-241-259/+209
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: add generic build template for u-boot packagesFelix Fietkau2017-01-241-0/+96
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-kirkwood: add uboot for nsa310bAlberto Bursi2017-01-243-9/+745
| | | | | | | | | | | | this commit allows to make a standalone u-boot for nsa310b. While both first-stage and second-stage u-boot work fine if installed to flash or loaded with kwboot, I could not get stock u-boot nor bodhi's u-boot to chainload any second stage u-boot (I also tried with dockstar's uboot that works fine on this device if loaded with kwboot). Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
* sdk: explicitely remove ccache directories when packing SDKJo-Philipp Wich2017-01-241-0/+6
| | | | | | | | | | Upon first invocation, the ccache program will create the required directory hierarchy so there is no point in shipping these empty directories. Removing those paths also avoids shipping dangling symlinks in case the directories got linked elsewhere, e.g. into a shared global cache. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* build: make the touch .autoremove call non-fatalFelix Fietkau2017-01-241-1/+1
| | | | | | | Fixes build issues when there is nothing to do on the compile step (e.g. with unselected packages). Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: remove CPU_TYPE:=mips32r2, it gets overwritten anywayFelix Fietkau2017-01-241-2/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* x86: unify CPU_TYPE for legacy and geodeFelix Fietkau2017-01-242-5/+2
| | | | | | | | | | According to some reports, -march=pentium-mmx is a better choice for older Geode CPUs than -march=geode anyway. Bump the minimum architecture of the legacy target from i486 to pentium-mmx. Anything older is not worth supporting anyway. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uml: mark as source-onlyFelix Fietkau2017-01-241-1/+1
| | | | | | Get rid of a special case in the buildbot script Signed-off-by: Felix Fietkau <nbd@nbd.name>
* malta: mark as source-only to avoid wasting build resourcesFelix Fietkau2017-01-241-1/+1
| | | | | | | | The le64 and be64 subtargets do not share a package architecture with any other targets, so they are pretty wasteful for a development-only target. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* malta: move FEATURES to the target makefileFelix Fietkau2017-01-245-4/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: remove mips16 feature flag from target makefilesFelix Fietkau2017-01-2410-9/+11
| | | | | | | It can be implicitly derived from the MIPS32 revision support in the kernel configuration Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: remove obsolete mips32r2 CPU_TYPEFelix Fietkau2017-01-241-1/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips/rt288x: switch CPU_TYPE to 24kcFelix Fietkau2017-01-241-1/+1
| | | | | | | | | | | While rt288x only has a MIPS 4KEc processor, it implements the MIPS32r2 architecture just like the 24Kc, so the instruction set should be 100% compatible. Switching it to 24kc allows it to share the package architecture with a lot of other targets instead of creating a special case, saving buildbot resources. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* odhcpd: update to git HEAD versionHans Dedecker2017-01-241-3/+3
| | | | | | e447ff9 router: fix compile issue on 64 bit systems Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* packages: mark packages depending on a target as nonsharedMathias Kresin2017-01-248-0/+16
| | | | | | | | | The packages can't be build as shared packages due to the unmet dependencies. Fixes FS#418. Signed-off-by: Mathias Kresin <dev@kresin.me>
* x86: drop ep80579-driversMathias Kresin2017-01-2429-13884/+0
| | | | | | | | The subtarget on which the driver still depends was removed with dee8986b95dcc200550faebe49c143e5d2357c60 because it was unmaintained for a long time. Signed-off-by: Mathias Kresin <dev@kresin.me>
* build: do not auto-clean packages where the autoremove step has not runFelix Fietkau2017-01-231-2/+5
| | | | | | | This avoids repeatedly unpacking and rebuilding packages that are failing the build. Re-running the failing step should be much faster. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* odhcpd: update to git HEAD versionHans Dedecker2017-01-231-3/+3
| | | | | | | | | | | | 237f1f4 router: convert syslog lifetime traces into LOG_INFO prio da660c7 treewide: rework prio of syslog messages 0485580 ndp: code cleanup c5040fe router: add syslog debug tracing for trouble shooting df023ad treewide: use RELAYD_MAX_ADDRS as address array size c8ac572 ndp: don't scan netlink attributes in case of netlink route event Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* hostapd: fix stray "out of range" shell errors in hostapd.shJo-Philipp Wich2017-01-232-3/+3
| | | | | | | | | | | | The hostapd_append_wpa_key_mgmt() procedure uses the possibly uninitialized $ieee80211r and $ieee80211w variables in a numerical comparisation, leading to stray "netifd: radio0 (0000): sh: out of range" errors in logread when WPA-PSK security is enabled. Ensure that those variables are substituted with a default value in order to avoid emitting this (harmless) shell error. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* build: use if-then to avoid non-zero return codes in bin/ packaging codeFelix Fietkau2017-01-231-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* 6in4: add missing colon when setting default ca_pathDaniel Golle2017-01-231-1/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* build: fix bin/ package empty checkFelix Fietkau2017-01-231-4/+6
| | | | | | $(wildcard) is evaluated too early in the build process Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: do not create empty directories in bin/Felix Fietkau2017-01-231-2/+3
| | | | | | Some packages may not install any files Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: fix CONFIG_AUTOREMOVE for packages with multiple variantsFelix Fietkau2017-01-223-5/+12
| | | | | | | | Calling the clean target removes all .ipk files and un-stages the package. Add a new target just for clearing the build dir and call that one instead of the full clean target Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-lantiq: fix build issueFelix Fietkau2017-01-221-2/+3
| | | | | | | Do not reference BIN_DIR in the package install section directly, use $(1) instead. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ubus: update to the latest versionFelix Fietkau2017-01-221-3/+3
| | | | | | Adds uloop related libubus fixes Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert "build: always run package/cleanup before package/compile"Felix Fietkau2017-01-222-3/+2
| | | | | | | This reverts commit 2990a21058243b067bb56fed36ee69205595993e. This introduces a race condition, let's fix this in buildbot instead. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: always run package/cleanup before package/compileFelix Fietkau2017-01-222-2/+3
| | | | | | | Remove unnecessary stampfile indirection Fixes an issue with the command sequence used by buildbot Signed-off-by: Felix Fietkau <nbd@nbd.name>
* libtool: don't clobber host libtool infrastructureJo-Philipp Wich2017-01-221-7/+7
| | | | | | | | | | | | | | | | The libtool target package stages its files into the host staging directory and moves the libltdl library parts from there into the target staging directory afterwards. By doing so, the package essentially renders the host libtool infrastructure unusable, leading to the below error in subsequent package builds: libtoolize: $pkgltdldir is not a directory: `.../hostpkg/share/libtool` Prevent this problem by using a dedicated libltdl install prefix in order to avoid overwriting and moving away preexisting files belonging to tools/libtool. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* openvpn: let all openvpn variants provide a virtual openvpn packageJo-Philipp Wich2017-01-211-1/+2
| | | | | | | | | | Add PROVIDES:=openvpn to the default recipe in order to let all build variants provide a virtual openvpn package. The advantage of this approach is that downstream packages can depend on just "openvpn" without having to require a specific flavor. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* build: fix regression in handling ABI_VERSIONFelix Fietkau2017-01-211-1/+1
| | | | | | | The code was updated without changing $$@ into the proper target filename Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kmod-sched-cake: fix parameter passing kernel/user spaceKevin Darbyshire-Bryant2017-01-211-3/+3
| | | | | | | | | | | | The last two parameters passed between user space tc and kernel space sched-cake were transposed due to a merge mistake in a parameter header file. As such, using a packet overhead figure was likely to set cake to wash packet DSCP values. Similarly, the DSCP wash flag was used as an offset to the displayed packet overhead value. Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* mac80211: rt2x00: add support for external LNA on MT7620Daniel Golle2017-01-201-3/+9
| | | | | Reported-by: Tom Psyborg <pozega.tomislav@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* Revert "tools: wrt400n: fix making factory images with kernel bigger than 1MB"John Crispin2017-01-201-197/+266
| | | | | | | | This reverts commit 5f9b20bc7d0bde6c100a3dec5f02b56f7ef7a61d. The builders were failing with a segfault when generating the image Signed-off-by: John Crispin <john@phrozen.org>