hcg
58313fff71
licensing: Add licensing metadata to many packages
...
Two new variables are introduces to many packages, namely PKG_LICENSE and
PKG_LICENSE_FILES - there may be more than one license applied to packages,
and these are listed in the PKG_LICENSE variable and separated by spaces.
All relevant license files are also added to the PKG_LICENSE_FILES variable,
also space separated.
The licensing metadata is put into the bin/<platform>/packages/Packages file
for later parsing. A script for that is on it's way!
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33861 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-19 15:34:28 +00:00
juhosg
c34b71fa3d
package/mtd: add option for fixing seama images
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33841 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-18 07:22:59 +00:00
jogo
6b08cfb731
package: mtd: use in-kernel bcm63xx image tag header
...
Use the image tag header from the kernel instead of an external header
file.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33654 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-08 09:59:47 +00:00
nbd
a596792a94
mtd: fix trx_fixup
...
With the BRCM47xx image I have built (Linksys E3000), there are additional
writes following the completion of "mtd_replace_jffs2" which invalidate the
'trx_fixup' performed by 'mtd_replace_jffs2'. Moving the 'trx_fixup' to somewhere
after all writes have completed fixes the problem. I also noticed that 'erasesize'
used to compute 'block_offset' in 'mtd_fixtrx' is used before it is computed by
'mtd_check_open'; moving the call to 'mtd_check_open' up a few lines fixes this.
Unlike 'mtd_fixtrx', 'trx_fixup' appears to assume that the TRX header is always at
offset 0; which may be the cause of the problem described in Ticket #8960 .
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32866 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-25 17:28:32 +00:00
jow
dd97bbee8a
mtd - remove partition table assumption when writing fis table
...
When mtd alters the fis partition table it assumes that the first partition
table entry also is the first logical parition table entry. For instance our
table could look like this (irrelevant partitions put aside):
* vmlinux.bin.l7 0xA8710000
* rootfs 0xA8030000
Here mtd would assume vmlinux.bin.l7 being the first partition and use its
address to calculate the size and offset which ultimately leads to a broken
partition table.
This patch alters the behavior by checking what partition has the smaller
address to do the calculations based on that address.
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32601 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 11:56:25 +00:00
jow
6a288531d7
mtd - add partition offset parameter
...
The offset parameter can be used to write the data at the offset
instead of writing it to the beginning of the partition.
Signed-off-by: Marek Linder <lindner_marek@yahoo.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32600 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 11:37:53 +00:00
florian
68eac67f55
mtd: define MTDREFRESH if not defined (external kernel)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30340 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-06 17:15:40 +00:00
jow
156a74e724
[package] mtd: external toolchains usually do not know about MTDREFRESH, so search in $(LINUX_DIR)/include first, fixes compilation with external CodeSourcery toolchain
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29779 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 19:22:14 +00:00
jogo
4ef5b94744
target: linux: mtd: fix MTDREFRESH to an arbitrary high number
...
To make the ioctl number "stable", use an arbitrary high number to prevent
conflicts with new mtd ioctls that would push MTDREFRESH's number.
Also make mtd use the in-kernel mtd headers.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28893 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-09 21:16:36 +00:00
juhosg
01b3fa0465
package/mtd: don't append jffs2 data multiple times
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27358 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-02 08:38:00 +00:00
juhosg
a4cf24d38a
package/mtd: make fixtrx available on ar71xx as well
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24911 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-05 19:27:55 +00:00
cshore
612cc293e1
Added OpenWRT-specific field to imagetag so that we can record the real root length, so that when the CRC fixup is applied and the root length is recorded as zero we can still calculate the rootfs mtd partition size.
...
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24838 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:18:13 +00:00
cshore
449cb3140d
mtd: Added trx_fixup for brcm63xx imagetag, and made references to fix_trx use the weak reference rather than the brcm47xx ifdef. This fixes a bug in which sysupgrade failed due to changing bad CRC on reboot.
...
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:18:08 +00:00
cshore
40e6842297
mtd: Added fixtrx for brcm63xx imagetag. This allows brcm63xx boards which experience a CRC on second boot due to the JFFS2 creation / DEADC0DE deletion to work correctly when mtd fixtrx is run on first boot
...
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24835 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:18:01 +00:00
cshore
28e44a8c63
mtd: Changed mtd_fixtrx and related functions to be weak references. The weak references only lead to actual functions for brcm47xx
...
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-26 04:17:51 +00:00
jow
d7e3482069
[package] mtd: whitespace cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 16:21:25 +00:00
jow
401f12d020
[package] mtd: fix r24132
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24134 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 16:18:34 +00:00
acoul
6a226cb195
package/mtd: (enhancement) add option to prevent erase when writing to flash. ( closes #8308 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24132 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 14:10:01 +00:00
juhosg
b73df9f67e
package/mtd: write remaining data after adding file to the jffs2 partition
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22881 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-03 18:14:32 +00:00
jow
800c8c564b
[package] mtd: request locked pages when mmap'ing the FIS table, cures random segfaults in table rewrite until
...
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2d4dc890b5c8fabd818a8586607e6843c4375e62
is added.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21823 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-16 23:34:38 +00:00
juhosg
a24b24783c
package/mtd: fix automatic partition size detection in fis_remap
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20537 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 07:16:27 +00:00
juhosg
07f362a34d
package/mtd: add fixtrx command
...
* patch by Bernhard Loos
* note: trailing whitespaces are removed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20524 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 17:38:33 +00:00
juhosg
60d74152dd
package/mtd: reuse existing crc32 stuff in the trx code
...
* patch by Bernhard Loos
* note: fixed compiler error on brcm47xx
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20523 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 17:38:30 +00:00
nbd
9b205741b6
mtd: fix typo (thx, Plouj)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19263 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-21 23:48:52 +00:00
jow
baab9a6aec
[package] mtd: treat failure to open FIS partition as fatal when a fis_layout is given, aborts mtd write if reformat is needed and FIS table not available
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19231 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-19 21:28:22 +00:00
nbd
f0c31da5a2
mtd: fix wrong open() return code checks
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17666 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 19:13:34 +00:00
nbd
2d32ced174
mtd: bump release
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17661 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 11:19:08 +00:00
nbd
2c2e02d729
mtd: update copyright headers
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17660 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 10:09:02 +00:00
nbd
3a0a80e129
mtd: add support for rewriting the fis table layout on redboot based systems
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 09:58:41 +00:00
agb
fcf2c28149
[package] bump some revisions and update copyrights
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17554 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-10 10:07:04 +00:00
nbd
e04d6b1f56
fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17522 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-05 23:38:51 +00:00
nbd
796a9d1091
get rid of $Id$ - it has never helped us and it has broken too many patches ;)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
nbd
816a2302d9
remove accidentally committed debug message
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12827 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-02 18:31:26 +00:00
nbd
64c023294f
mtd: fix image check on non-broadcom platforms
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-02 18:19:02 +00:00
nbd
a7c35fcd0d
fix some warnings
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12707 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-25 18:24:53 +00:00
nbd
8114ef99e3
mtd: improve support for reading input from a pipe. fixes sysupgrade
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12706 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-25 18:24:18 +00:00
nbd
82cd54f3ea
clean up mtd, fix up trx header when integrating jffs2 data on broadcom devices
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12655 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-23 09:23:58 +00:00
nbd
093822cb53
mtd: use broadcom specific code on linux 2.6 as well
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12651 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-22 17:06:03 +00:00
nbd
c7494fd234
fix mtd target define for brcm-2.4
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-22 17:03:06 +00:00
nbd
da0a101791
mtd: add jffs2 cleanmarker for big endian systems
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12418 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-28 00:15:22 +00:00
nbd
201ca503a1
add support for appending a file to jffs2 during reflash on the fly
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12250 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-08 22:43:19 +00:00
nico
c4b73fa154
move package description to a separate definition, remove it when DESCRIPTION=TITLE
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 08:34:51 +00:00
nbd
6c1223e189
add sysupgrade script for config preserving system upgrades. only implemented for x86-2.6 at the moment, but can be ported to other platforms easily
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8456 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-21 18:23:57 +00:00
nbd
be7a97c144
oops. forgot one file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8445 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-20 21:27:29 +00:00
nbd
c52dd373c6
cleanup mtd, implement jffs2write - one step closer to config preserving system upgrades
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8444 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-20 16:12:24 +00:00
nbd
4f8894887d
add 'mtd refresh' command
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8439 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-19 21:53:44 +00:00
mbm
2e59ffe7de
Add a "Rebooting ..." message to the mtd util
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7159 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 08:54:37 +00:00
mbm
70020451ee
change handling of non-trx files
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6924 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-10 14:46:15 +00:00
mbm
75f5660b07
fallback when devfs names aren't found
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6541 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-09 08:58:37 +00:00
nbd
1967751704
add reboot fix for mtd (thanks, wbx)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5645 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-11-26 01:03:21 +00:00