Commit Graph

510 Commits

Author SHA1 Message Date
Florian Fainelli
ed5e0b9431 Split up drivers and specific files, update flash map driver
SVN-Revision: 6765
2007-03-30 21:56:07 +00:00
Mike Baker
3debff019c Remove extra -
SVN-Revision: 6763
2007-03-30 10:23:15 +00:00
Hamish Guthrie
ad2a8ced9d Moved activity led to correct IO ports
SVN-Revision: 6761
2007-03-30 07:22:52 +00:00
Florian Fainelli
d1eb342ea7 Cleanup system code and use definitions
SVN-Revision: 6760
2007-03-29 22:21:43 +00:00
Florian Fainelli
ef53f5db7c Add definitions, add settings detection for SoCs
SVN-Revision: 6759
2007-03-29 22:21:22 +00:00
Florian Fainelli
d5bb3765ca Fix myloader partition table parser
SVN-Revision: 6757
2007-03-29 22:19:26 +00:00
Florian Fainelli
f5b93badec Fix warning
SVN-Revision: 6756
2007-03-29 22:18:50 +00:00
Florian Fainelli
ae90a1394d Working, but very minimalistic kernel config for rdc-2.6
SVN-Revision: 6755
2007-03-29 22:15:15 +00:00
Florian Fainelli
55e4f0f8bc Should fix edimax generation
SVN-Revision: 6752
2007-03-29 10:49:52 +00:00
Florian Fainelli
74304a4323 Fix the irq request
SVN-Revision: 6748
2007-03-28 18:14:07 +00:00
Florian Fainelli
e172d1c9ea Fix warnings
SVN-Revision: 6742
2007-03-28 10:49:01 +00:00
Florian Fainelli
799427a878 Enable kmod-sched for adm5120
SVN-Revision: 6739
2007-03-28 10:09:21 +00:00
Florian Fainelli
e1b66f44ea Use myloader parser in the adm5120 mtd driver. Do not use EXPORT_SYMBOL in myloader parser
SVN-Revision: 6737
2007-03-28 09:10:46 +00:00
Florian Fainelli
d8bf22859b Add myloader partition table parser
SVN-Revision: 6736
2007-03-28 08:35:10 +00:00
Felix Fietkau
5c9cbf119d clean up nfsd kernel config entries (#1523)
SVN-Revision: 6731
2007-03-27 23:41:05 +00:00
Felix Fietkau
9198bbb303 add nfs kernel server kmod package (patch from #1524)
SVN-Revision: 6729
2007-03-27 23:34:37 +00:00
Felix Fietkau
1bde611b1a fix flash buswidth detection
SVN-Revision: 6727
2007-03-27 23:15:10 +00:00
Eugene Konev
6f48cd2114 ar7: cpmac: use fixed-size ringbuffers for rx/tx descriptors, use single channel rx, move skb allocation out of interrupt, general cleanup
SVN-Revision: 6724
2007-03-27 15:19:08 +00:00
Eugene Konev
34fd376368 ar7: speed up irq handlers, fix asm/ar7/ar7.h
SVN-Revision: 6723
2007-03-27 14:56:34 +00:00
Florian Fainelli
067704996a Fix edimax image generation
SVN-Revision: 6722
2007-03-26 22:12:49 +00:00
Florian Fainelli
e25fff9a14 Also forgot adding the adm5120_info file
SVN-Revision: 6719
2007-03-26 20:26:23 +00:00
Felix Fietkau
4113d5a46d fix the sdk
SVN-Revision: 6718
2007-03-26 20:17:28 +00:00
Florian Fainelli
f1b6a4ce42 Disable YAFFS and NAND by default
SVN-Revision: 6717
2007-03-26 19:54:54 +00:00
Florian Fainelli
7d55bb05fe Move the yaffs patch to be generic, shared between rb532 and adm5120
SVN-Revision: 6716
2007-03-26 19:42:33 +00:00
Florian Fainelli
1e3c50caa7 Forgot adding infos header
SVN-Revision: 6715
2007-03-26 19:09:16 +00:00
Florian Fainelli
e5f6938314 Rewrite of the bootloader runtime detection (Gabor Juhos)
SVN-Revision: 6713
2007-03-26 07:37:31 +00:00
Florian Fainelli
7fb29fc2b9 Add myloader definitions
SVN-Revision: 6712
2007-03-26 07:34:45 +00:00
Florian Fainelli
4377351db4 Preserve fw_arg0-3 to allow runtime bootloader detection (Gabor Juhos)
SVN-Revision: 6711
2007-03-26 07:32:10 +00:00
Felix Fietkau
8496e946b9 add fix from #1516
SVN-Revision: 6697
2007-03-25 16:25:15 +00:00
Eugene Konev
d81c7f76b9 ar7: clocks setup (prerequisite for dsl/usb) and misc cleanups.
SVN-Revision: 6693
2007-03-25 05:42:16 +00:00
Florian Fainelli
8c2cf394a3 Update kernel config
SVN-Revision: 6690
2007-03-24 22:51:37 +00:00
Florian Fainelli
9f205cc473 Forgot to define what CFE is
SVN-Revision: 6685
2007-03-24 21:34:51 +00:00
Florian Fainelli
984bd80138 Typo fix
SVN-Revision: 6684
2007-03-24 21:34:14 +00:00
Florian Fainelli
1f3c505ef6 Do not register more than 2 ethernet porst for CFE based devices (i.e : Compex WP54G-wrt)
SVN-Revision: 6683
2007-03-24 21:31:13 +00:00
Hamish Guthrie
19358682eb Added support for BSD pty's
SVN-Revision: 6673
2007-03-24 17:32:32 +00:00
Hamish Guthrie
535ff3f6b2 Added facility to program entire device from SD-Card Fixed up MAC address init in u-boot
SVN-Revision: 6662
2007-03-24 12:54:38 +00:00
Felix Fietkau
e224d3e42d add bcm94710a0 cache workarounds to brcm47xx-2.6 (fix #1502)
SVN-Revision: 6649
2007-03-23 16:40:42 +00:00
Hamish Guthrie
f63dd06ad7 Final image build fixups
SVN-Revision: 6644
2007-03-23 10:24:01 +00:00
Felix Fietkau
5c08fcb390 add more stability fixes for brcm47xx-2.6 on bcm4704 (from #1485)
SVN-Revision: 6642
2007-03-23 00:08:59 +00:00
Florian Fainelli
dd5488dd3f Add CFE runtime detection
SVN-Revision: 6641
2007-03-22 22:43:11 +00:00
Florian Fainelli
4bb721a186 Add firmware generation for other Compex boards based on myloader, thanks to Juhos Gabor !
SVN-Revision: 6640
2007-03-22 21:36:15 +00:00
Felix Fietkau
5d28e0fd0e add brcm47xx-2.6 fixes from #1496
SVN-Revision: 6639
2007-03-22 20:23:17 +00:00
Hamish Guthrie
d9b2f5c07b Added rule for objdump Added support for AT91 SD-Card in primary bootloader (romboot)
SVN-Revision: 6638
2007-03-22 18:07:01 +00:00
Hamish Guthrie
cfec8068ce There are issues with the CRC calc stuff under x86_64. This version only works on 32-bit architectures.
SVN-Revision: 6637
2007-03-22 17:45:21 +00:00
Hamish Guthrie
5bd6518456 New program to generate u-boot parameter block with correct CRC to enable reprogramming parameters from Linux.
SVN-Revision: 6636
2007-03-22 17:33:29 +00:00
Eugene Konev
ec63c08be8 ar7 misc fixes: - serial - memory probing
SVN-Revision: 6635
2007-03-22 16:39:07 +00:00
Florian Fainelli
0d7c5a12e1 Also add squashfs to the possible filesystems to be mounted
SVN-Revision: 6634
2007-03-21 22:18:07 +00:00
Florian Fainelli
e9c056090a Remove usb support for the moment
SVN-Revision: 6633
2007-03-21 21:50:58 +00:00
Florian Fainelli
28c4689e06 backward compatible code, if ssb is not enabled
SVN-Revision: 6632
2007-03-21 21:29:30 +00:00
Florian Fainelli
86b6dab84d Include profiles
SVN-Revision: 6631
2007-03-21 20:11:00 +00:00
Florian Fainelli
0499278053 Fix a typo
SVN-Revision: 6630
2007-03-21 18:47:41 +00:00
Florian Fainelli
16d645378e Enable profiles for adm5120
SVN-Revision: 6629
2007-03-21 18:10:55 +00:00
Florian Fainelli
3bd14c6197 Fix warnings and add more detailed informations
SVN-Revision: 6628
2007-03-21 17:23:34 +00:00
Florian Fainelli
5e7833d044 Add image generation for edimax routers
SVN-Revision: 6627
2007-03-21 15:04:07 +00:00
Hamish Guthrie
285c45e7fd Added primary and secondary bootloaders
SVN-Revision: 6626
2007-03-20 09:59:17 +00:00
Florian Fainelli
ccb99d82df prom_free_prom_memory is useless
SVN-Revision: 6625
2007-03-20 09:23:43 +00:00
Florian Fainelli
4b8150a056 Use the bcm947xx mtd driver instead
SVN-Revision: 6624
2007-03-20 09:00:23 +00:00
Nicolas Thill
6726055df0 uml now needs init=/etc/preinit, fix example in README
SVN-Revision: 6622
2007-03-20 01:36:56 +00:00
Nicolas Thill
f5225bef85 attempt to fix uml kernel config for i386
SVN-Revision: 6621
2007-03-20 01:32:09 +00:00
Florian Fainelli
78f10cebdd Re-enable adm5120 mtd driver
SVN-Revision: 6620
2007-03-19 22:42:23 +00:00
Florian Fainelli
b8ca430c7f Remove 8250 serial driver, enable software watchdog
SVN-Revision: 6618
2007-03-19 21:52:40 +00:00
Florian Fainelli
c2c8a6dfe7 CFE-ready mtd driver, needs fixing though, update kernel config
SVN-Revision: 6617
2007-03-19 21:43:06 +00:00
Florian Fainelli
1be7df6f97 Fix the baudrate macro
SVN-Revision: 6616
2007-03-19 19:51:26 +00:00
Florian Fainelli
9c4b23a8d1 Fix the uart patch
SVN-Revision: 6615
2007-03-19 19:38:12 +00:00
Florian Fainelli
d9dfd7341b Preliminary ADM5120 support, marked as broken
SVN-Revision: 6614
2007-03-19 17:34:37 +00:00
Eugene Konev
f04dd67969 Remove initrd code leftovers. Also fixes "Bad page state" on boot (kernel tried to free initramfs twice).
SVN-Revision: 6613
2007-03-19 17:25:06 +00:00
Eugene Konev
510db3b0a6 Add forgotten part of vlynq irq setup
SVN-Revision: 6606
2007-03-18 16:00:28 +00:00
Eugene Konev
259c114526 ar7-2.4 cleanup - Switch to generic init scripts (/sbin/mount_root, /bin/firstboot, /etc/preinit), failsafe part moved to /etc/preinit.arch. This should fix #1449 with an added benefit of using mini_fo. - Switch to generic /etc/config/network. - ar7 flashmap: change "OpenWrt" to "rootfs_data", move ar7_mtd_cleanup out of .exit.
SVN-Revision: 6604
2007-03-18 14:18:56 +00:00
Eugene Konev
6eb218b9c9 Add ar7-2.6 port (marked as broken for now).
SVN-Revision: 6600
2007-03-18 09:40:51 +00:00
Eugene Konev
418ae3a045 Make lzma-loader sdram mapping configurable (#1169)
SVN-Revision: 6598
2007-03-18 09:32:22 +00:00
Hamish Guthrie
2ee061880b Changed pin selections in low-level mmc driver
SVN-Revision: 6596
2007-03-17 16:19:09 +00:00
Hamish Guthrie
edea35b85e Changed kernel configs to enable more packages. Added additional dependencies to mmc module in the modules tree
SVN-Revision: 6579
2007-03-16 18:53:35 +00:00
Florian Fainelli
ddb5473bb3 Fix compilation errors with xt_portscan
SVN-Revision: 6578
2007-03-16 18:35:48 +00:00
Florian Fainelli
11109c2515 Fix the serial driver with the devfs removal
SVN-Revision: 6577
2007-03-16 18:33:46 +00:00
Felix Fietkau
a8fbb232f8 add final fix for brcm47xx-2.6 memory corruption (patch from #1465)
SVN-Revision: 6575
2007-03-16 12:26:33 +00:00
Felix Fietkau
2c62bddcfe Add an 'Image Configuration' menu to menuconfig Packages can export a list of config options with labels and data types through the metadata. The selected config values will be exported to the target filesystem in /etc/uci-defaults and applied on the first boot.
SVN-Revision: 6572
2007-03-16 03:02:31 +00:00
Felix Fietkau
fbe0b0e33a enable ext2 by default for rb532 (fixes #1466)
SVN-Revision: 6569
2007-03-15 18:53:00 +00:00
Felix Fietkau
4319c79ad4 brcm47xx: add a few nops to keep the cpu happy
SVN-Revision: 6568
2007-03-15 12:07:43 +00:00
Felix Fietkau
dcfbd5f656 fix up remaining parts for the brcm47xx-2.6 port (tested on wgt634u), nuke the old brcm-2.6 port, close #1312, #1451
SVN-Revision: 6564
2007-03-14 03:37:40 +00:00
Felix Fietkau
53a5d4131f add reboot fix from #1312
SVN-Revision: 6563
2007-03-14 01:26:57 +00:00
Felix Fietkau
f7809d07c8 remove screwy network config override from x86-2.6 base-files
SVN-Revision: 6558
2007-03-12 19:23:18 +00:00
Imre Kaloz
ee653e3700 add preliminary IOP32x support, mark it broken for now
SVN-Revision: 6557
2007-03-11 19:49:50 +00:00
Felix Fietkau
04fd1d444a oops... forgot to make x86-2.6 ext2 images use preinit as well :)
SVN-Revision: 6546
2007-03-11 00:04:17 +00:00
Hamish Guthrie
98408d0854 Added MMC/SD Card module support
SVN-Revision: 6544
2007-03-10 16:06:37 +00:00
Mike Baker
4a5cb10be3 more devfs related bugs
SVN-Revision: 6543
2007-03-09 18:39:34 +00:00
Felix Fietkau
65e59861ba fix up the netconfig script after the devfs=>hotplug2 migration
SVN-Revision: 6542
2007-03-09 18:20:54 +00:00
Tim Yardley
fbbad27a41 split out scsi module support and add ata piix support
SVN-Revision: 6535
2007-03-07 15:38:45 +00:00
Hamish Guthrie
2cbe1f1c0d Added GPIO driver
SVN-Revision: 6534
2007-03-07 11:46:24 +00:00
Mike Albon
1fa14eaccc Fix config, set directory block to -1 for redboot.
SVN-Revision: 6533
2007-03-06 23:13:20 +00:00
Hamish Guthrie
18b744818a Add support for LED drivers (clock tick and CPU activity) Removed partition support (done on command line now)
SVN-Revision: 6531
2007-03-06 20:40:41 +00:00
Felix Fietkau
4af390ee76 add vga console support for x86-2.6 images (fixes #1342, #840)
SVN-Revision: 6530
2007-03-06 19:13:40 +00:00
Hamish Guthrie
a5938cfbb3 Modified partition table to support jffs2
SVN-Revision: 6529
2007-03-05 10:30:34 +00:00
Hamish Guthrie
64d7360b51 Chaged kernel config so default builds cleanly
SVN-Revision: 6528
2007-03-05 09:15:45 +00:00
Imre Kaloz
44a2fd050c fix squashfs for ixp4xx
SVN-Revision: 6524
2007-03-05 00:47:13 +00:00
Felix Fietkau
cf282c9a69 add missing init=/etc/preinit cmdline parameter
SVN-Revision: 6523
2007-03-05 00:38:37 +00:00
Felix Fietkau
8621fbdb4e add squashfs support for ixp4xx
SVN-Revision: 6522
2007-03-05 00:21:30 +00:00
Felix Fietkau
275ff405d8 more hotplug2/mdev/devfs related fixups, this time for broadcom
SVN-Revision: 6519
2007-03-04 23:55:07 +00:00
Felix Fietkau
5f728db76a fix a compile error caused by the devfs removal
SVN-Revision: 6518
2007-03-04 23:34:50 +00:00
Felix Fietkau
6bbbeb5d67 enable ne2k-pci by default
SVN-Revision: 6517
2007-03-04 21:25:25 +00:00
Imre Kaloz
603bbc1e8a SVN-Revision: 6516 2007-03-04 21:17:17 +00:00
Felix Fietkau
aabda0f133 reorder target profiles
SVN-Revision: 6514
2007-03-04 20:43:39 +00:00
Felix Fietkau
a44c286fdb nuke mdev and replace it with hotplug2 :)
SVN-Revision: 6512
2007-03-04 20:31:53 +00:00
Hamish Guthrie
99657a3be5 Added initial support for at91 plaform (HCG)
SVN-Revision: 6508
2007-03-04 17:29:44 +00:00
Imre Kaloz
b97c7c0af6 upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two patches
SVN-Revision: 6489
2007-03-03 23:12:34 +00:00
Felix Fietkau
5acf90187b fix mdev for broadcom 2.6
SVN-Revision: 6484
2007-03-03 22:40:28 +00:00
Felix Fietkau
ae650458bb enable preinit for magicbox
SVN-Revision: 6483
2007-03-03 22:38:28 +00:00
Felix Fietkau
12fc04238e enable preinit in a few other platforms
SVN-Revision: 6482
2007-03-03 22:36:45 +00:00
Felix Fietkau
c96e173c28 add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit
SVN-Revision: 6481
2007-03-03 22:32:13 +00:00
Imre Kaloz
662fde9077 R.I.P. devfs
SVN-Revision: 6478
2007-03-03 20:35:01 +00:00
Felix Fietkau
7b0de4ae45 replace some hardcoded /dev/mtdblock/* references with calls to find_mtd_part()
SVN-Revision: 6477
2007-03-03 19:22:41 +00:00
Tim Yardley
747e57ffe2 make the rest of the structure for the targets that dont have profiles yet
SVN-Revision: 6475
2007-03-03 01:22:09 +00:00
Hamish Guthrie
cc04f0502f Deleting the test file
SVN-Revision: 6473
2007-03-02 23:33:12 +00:00
Hamish Guthrie
cfb6b9fa45 Test file - please ignore
SVN-Revision: 6472
2007-03-02 23:30:16 +00:00
Tim Yardley
03beb39e5f split out profile definitions from Makefiles
structure is as follows:
target/linux/<arch>/profiles/<profilename>.mk

These files are included by a blob match in the target Makefile

The files should be labeled based on their profile Name in the definition

SVN-Revision: 6468
2007-03-02 23:02:38 +00:00
Tim Yardley
484609eeb0 commit profile support for base-files... patches still need to be done
SVN-Revision: 6465
2007-03-02 18:17:40 +00:00
Felix Fietkau
91e5dba2c7 kernel build cleanup
SVN-Revision: 6464
2007-03-02 17:24:20 +00:00
Felix Fietkau
983544f859 copy the initramfs kernel to bin/ on x86-2.6 (fixes #1359)
SVN-Revision: 6463
2007-03-02 17:12:23 +00:00
Felix Fietkau
c457155452 enable mini_fo on fonera
SVN-Revision: 6456
2007-03-02 15:26:57 +00:00
Florian Fainelli
3e95289149 Add a LED driver for MTX-1 boards, yeah baby
SVN-Revision: 6454
2007-03-02 13:03:50 +00:00
Felix Fietkau
28ab697fae enable grub images in menuconfig for squashfs
SVN-Revision: 6453
2007-03-02 02:46:38 +00:00
Felix Fietkau
0373c4a352 use /etc/preinit on atheros-2.6
SVN-Revision: 6452
2007-03-02 01:39:14 +00:00
Felix Fietkau
d2c8e9104d add squashfs support for atheros-2.6
SVN-Revision: 6451
2007-03-02 01:38:07 +00:00
Felix Fietkau
68ca8e7818 make squashfs overlay support more generic and integrate it for x86-2.6
SVN-Revision: 6450
2007-03-02 01:23:36 +00:00
Felix Fietkau
a256c81dd9 move mtd rootfs split patch to generic-2.6, disabled for broadcom targets until the flash map driver is updated and tested
SVN-Revision: 6449
2007-03-01 23:52:19 +00:00
Felix Fietkau
c762548eee flash related cleanups
SVN-Revision: 6446
2007-03-01 11:54:33 +00:00
Felix Fietkau
2a7df08119 mark uml as broken and add some cleanups (not working yet)
SVN-Revision: 6439
2007-02-28 18:25:14 +00:00
Felix Fietkau
74f71f0739 fix a small bug in the config merge/split (fixes buildbot error on ixp4xx)
SVN-Revision: 6427
2007-02-28 13:00:26 +00:00
Florian Fainelli
f5616580b3 Forgot the patch for CLASSIFY
SVN-Revision: 6425
2007-02-28 12:05:46 +00:00
Florian Fainelli
780712e30e Add ipt_CLASSIFY target for 2.4 kernels (#1338)
SVN-Revision: 6424
2007-02-28 12:04:58 +00:00
Felix Fietkau
4273579814 add a patch to revert recent breakage in the intel cfi flash driver (fixes #1140)
SVN-Revision: 6420
2007-02-28 01:14:42 +00:00
Felix Fietkau
cb3fc42f71 strip double quotes from grub boot options (fixes #1406)
SVN-Revision: 6419
2007-02-28 01:10:10 +00:00
Felix Fietkau
d064080013 update to imq patch version 2.6.19-imq3 - fixes kernel oops from #1397
SVN-Revision: 6418
2007-02-28 00:53:20 +00:00
Felix Fietkau
295d0a7e82 allow the user to change the rb532 rootfs size in menuconfig (fixes #1374)
SVN-Revision: 6417
2007-02-28 00:06:37 +00:00
Felix Fietkau
c6a4f047e3 correct wrong CONFIG_PCMCIA defaults (fixes buildbot errors)
SVN-Revision: 6390
2007-02-26 14:36:27 +00:00
Felix Fietkau
4e60cfe51f use default_subtargets in package/Makefile and target/Makefile
SVN-Revision: 6380
2007-02-26 00:41:53 +00:00
Felix Fietkau
43f15e09a9 run indent on ar2313 driver
SVN-Revision: 6366
2007-02-25 20:06:27 +00:00
Felix Fietkau
653f61fb3e clean up a few things in image build makefiles and fix unnecessary grub rebuilds
SVN-Revision: 6360
2007-02-25 18:20:34 +00:00
Felix Fietkau
738ca6f657 add optional padding for x86 grub images (useful for running jffs2 images in qemu)
SVN-Revision: 6359
2007-02-25 17:59:23 +00:00
Felix Fietkau
804bfa954d ignore profiles with custom kernel configs in the image builder itself
SVN-Revision: 6342
2007-02-22 04:03:35 +00:00
Felix Fietkau
ccd12544f6 disable the image builder in menuconfig for profiles with custom kernel configs
SVN-Revision: 6341
2007-02-22 03:56:54 +00:00
Felix Fietkau
2bcaa1fecd add missing config files
SVN-Revision: 6338
2007-02-22 03:44:37 +00:00
Felix Fietkau
e78fb96964 Reorganize kernel configs - target/linux/*/config is now a directory. ./config/default will replace the old config and config-diff (format is like config-diff, the full kernel config is no longer kept in the build system) This commit removes all the kernel config stuff, the next one will add the replacement - there's no way to do this atomically with svn.
SVN-Revision: 6337
2007-02-22 03:44:15 +00:00
Felix Fietkau
5281d134cd rename the Profile template that the image builder uses to prevent name conflicts with the template that the kernel uses
SVN-Revision: 6336
2007-02-22 02:27:01 +00:00
Felix Fietkau
b37101053a add 16MB flash support for ar2315 (who knows...?)
SVN-Revision: 6334
2007-02-20 22:44:59 +00:00
Felix Fietkau
328e660b31 make rootfs split/detection more generic - patch can be moved to generic-2.6 after testing on other platforms (especially broadcom)
SVN-Revision: 6328
2007-02-19 23:28:09 +00:00
Imre Kaloz
1d7bfc46ec autodetect flash width - thanks to Kestutis Kupciunas
SVN-Revision: 6327
2007-02-19 22:33:06 +00:00
Imre Kaloz
e32f19c986 use radio0 only on the 5312
SVN-Revision: 6326
2007-02-19 22:22:26 +00:00
Felix Fietkau
e10c97c2ca fix ar2315 rootfs mount
SVN-Revision: 6325
2007-02-19 16:48:02 +00:00
Felix Fietkau
912e5867ef Finally fix the pesky x86-2.6 block2mtd related crash (#1058) When erasing blocks, block2mtd checks the block on the physical disk to see if everything's filled with 0xff. When grabbing a page from the page cache, it initializes the limit as <start address> + PAGE_SIZE. Turns out that the pointer to the status page is (unsigned long *), and thus it adds (PAGE_SIZE * 4). This would never have been caught, if it wasn't for the unlikely event that block2mtd catches the *last* page available in the system ram and thus tries to scan 4 memory pages from there. The absolutely trivial fix is to do a double cast (cast to (u8 *), add PAGE_SIZE, then cast to (unsigned long *))
... and there was much rejoicing

SVN-Revision: 6318
2007-02-18 13:52:14 +00:00
Felix Fietkau
9b47712459 disable dma offset for now
SVN-Revision: 6317
2007-02-17 23:02:49 +00:00