make kernels use /etc/preinit by default
authorImre Kaloz <kaloz@openwrt.org>
Thu, 14 May 2009 10:20:53 +0000 (10:20 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Thu, 14 May 2009 10:20:53 +0000 (10:20 +0000)
SVN-Revision: 15840

57 files changed:
target/linux/adm5120/image/router_le.mk
target/linux/adm5120/router_be/config-2.6.28
target/linux/adm5120/router_le/config-2.6.28
target/linux/amazon/files/arch/mips/amazon/prom.c
target/linux/ar7/config-2.6.26
target/linux/ar7/config-2.6.27
target/linux/ar71xx/config-2.6.28
target/linux/ar71xx/config-2.6.29
target/linux/ar71xx/config-2.6.30
target/linux/at91/image/u-boot/patches/006-generate_params.patch
target/linux/at91/image/u-boot/patches/011-ubparams_update.patch
target/linux/at91/image/u-boot/patches/013-params-in-config.patch
target/linux/at91/image/u-boot/patches/014-ubparam-kernel.patch
target/linux/at91/image/u-boot/ubclient/ubpar.c
target/linux/atheros/config-2.6.28
target/linux/au1000/au1500/config-default
target/linux/au1000/au1550/config-default
target/linux/brcm47xx/config-2.6.28
target/linux/brcm63xx/config-2.6.27
target/linux/cavium-octeon/config-default
target/linux/cavium-octeon/config/profile-simulator
target/linux/etrax/config-2.6.25
target/linux/etrax/config-2.6.30
target/linux/gemini/config-default
target/linux/generic-2.6/patches-2.6.21/999-use_preinit_as_init.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.23/999-use_preinit_as_init.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.25/999-use_preinit_as_init.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.27/999-use_preinit_as_init.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.28/999-use_preinit_as_init.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.29/999-use_preinit_as_init.patch [new file with mode: 0644]
target/linux/generic-2.6/patches-2.6.30/999-use_preinit_as_init.patch [new file with mode: 0644]
target/linux/ifxmips/config-2.6.26
target/linux/ifxmips/config-2.6.27
target/linux/ifxmips/config-2.6.28
target/linux/ifxmips/files/arch/mips/ifxmips/prom.c
target/linux/iop32x/config-default
target/linux/ixp4xx/config-2.6.27
target/linux/ixp4xx/config-2.6.28
target/linux/ixp4xx/config-2.6.29
target/linux/ixp4xx/config-2.6.30
target/linux/ixp4xx/config-default
target/linux/kirkwood/config-default
target/linux/olpc/image/Makefile
target/linux/orion/config-default
target/linux/ppc40x/config-default
target/linux/ppc44x/config-default
target/linux/ppc44x/patches/100-openwrt_dts_cmdline.patch
target/linux/rb532/base-files/sbin/cf2nand
target/linux/rb532/base-files/sbin/wget2nand
target/linux/rb532/image/Makefile
target/linux/rdc/config-2.6.28
target/linux/s3c24xx/patches-2.6.28/002-call-preinit-instead-of-init.patch [deleted file]
target/linux/s3c24xx/patches-2.6.29/002-call-preinit-instead-of-init.patch [deleted file]
target/linux/sibyte/config-default
target/linux/storm/config-default
target/linux/uml/README
target/linux/x86/image/Makefile

index a760a21b73ef5aa413e382f5387a010787c1f9c6..d1ee363a16686483a7d4844a2fe9dfe830a3af96 100644 (file)
@@ -354,7 +354,7 @@ endef
 
 ifeq ($(PROFILE),RouterBoard)
   define Image/cmdline/yaffs2
-       root=/dev/mtdblock3 rootfstype=yaffs2 init=/etc/preinit
+       root=/dev/mtdblock3 rootfstype=yaffs2
   endef
 
   define Image/BuildKernel/RouterBoard
index 6254db60dabc7b478f0c3d9ff9a9fb9b3dc321d3..4500718fe8fd66f7573ff9a21ece865dc90109da 100644 (file)
@@ -27,7 +27,7 @@ CONFIG_BINFMT_MISC=m
 CONFIG_BITREVERSE=y
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,115200 rootfstype=squashfs,jffs2"
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index 14a9a486511e757751e4720e370374ff2f23b36f..865b62ce459057470f37f55b7ae2d4f27760ab2c 100644 (file)
@@ -49,7 +49,7 @@ CONFIG_BITREVERSE=y
 CONFIG_BRIDGE=m
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="console=ttyS0,115200 rootfstype=squashfs,yaffs2,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,115200 rootfstype=squashfs,yaffs2,jffs2"
 # CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index 2947473ad060ff3e3ea421be57b14b474b2d4034..f138bcbef4d6925fbc5f5de3fe4d365f40edb3ba 100644 (file)
@@ -62,7 +62,7 @@ void __init prom_init(void)
        mips_machgroup = MACH_GROUP_INFINEON;
        mips_machtype = MACH_INFINEON_AMAZON;
 
-       strcpy(&(arcs_cmdline[0]), "console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit");
+       strcpy(&(arcs_cmdline[0]), "console=ttyS0,115200 rootfstype=squashfs,jffs2");
        
        add_memory_region(0x00000000, 0x1000000, BOOT_MEM_RAM);
 }
index 3fa8c44a65627c56a1a4092731e77d97ff92bed3..9f675487817713013e6f29022dfd2810c6208e68 100644 (file)
@@ -17,7 +17,7 @@ CONFIG_BOOT_ELF32=y
 # CONFIG_BT is not set
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="init=/etc/preinit rootfstype=squashfs,jffs2,"
+CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
 CONFIG_CPMAC=y
 # CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_HAS_LLSC=y
index e98a416ee2338fe584168469b6a138315f433936..78588d812b660d2be6f9f9fc0e833fdf582b64cc 100644 (file)
@@ -15,7 +15,7 @@ CONFIG_BITREVERSE=y
 CONFIG_BOOT_ELF32=y
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="init=/etc/preinit rootfstype=squashfs,jffs2,"
+CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
 CONFIG_CPMAC=y
 # CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_HAS_LLSC=y
index ca0c9a06a9bf4a1aa822c9dbe55143ef123ca50a..bc2b30036d722002e972262e2689811d9045bcd0 100644 (file)
@@ -34,7 +34,7 @@ CONFIG_BASE_SMALL=0
 CONFIG_BITREVERSE=y
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200"
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index ab7312e3c287164575dc007fdcb5f57ac5ffaa2b..2fd9276f6f92e36bdd6cdb846c8f0e6f4bcdbe95 100644 (file)
@@ -35,7 +35,7 @@ CONFIG_BITREVERSE=y
 # CONFIG_CAVIUM_OCTEON_SIMULATOR is not set
 CONFIG_CEVT_R4K=y
 CONFIG_CEVT_R4K_LIB=y
-CONFIG_CMDLINE="rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200"
 CONFIG_COMPAT_NET_DEV_OPS=y
 CONFIG_CPU_BIG_ENDIAN=y
 # CONFIG_CPU_CAVIUM_OCTEON is not set
index c093a220fee7a17b7c562790ce325107cd05f138..ac825c7f296c8e6f70c8391c583b64fafc46ef6d 100644 (file)
@@ -36,7 +36,7 @@ CONFIG_BITREVERSE=y
 # CONFIG_CAVIUM_OCTEON_SIMULATOR is not set
 CONFIG_CEVT_R4K=y
 CONFIG_CEVT_R4K_LIB=y
-CONFIG_CMDLINE="rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200"
 CONFIG_CPU_BIG_ENDIAN=y
 # CONFIG_CPU_CAVIUM_OCTEON is not set
 CONFIG_CPU_HAS_LLSC=y
index d278cfb2da85b69183b556520e8d79bfad14dd0e..d4427c3ecdd761f99901898710224e6aeaf9a77e 100644 (file)
 +      "stdout=serial\0"
 +      "stderr=serial\0"
 +      "partitions=mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data)\0"
-+      "fbargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
-+      "rdba=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
++      "fbargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro console=/dev/ttyS0,115200,mem=32M\0"
++      "rdba=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 console=/dev/ttyS0,115200,mem=32M\0"
 +      "rdram=run rdba; tftp 21000000 vImage; tftp 21200000 root.squashfs; bootm 21000000\0"
 +      "flash=run fbargs; bootm 0xc0042000\0"
-+      "bootargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
++      "bootargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro console=/dev/ttyS0,115200,mem=32M\0"
 +      "bootcmd=bootm 0xc0042000\0"
 +      "ethaddr=00:30:49:00:00:01\0"
 +      "ipaddr=10.0.1.73\0"
index 267903efe4af66e483b29ad3071d18b2f2fb5f1e..de02cc88c06a1457ed9342e75f9f6359ddfffd03 100644 (file)
@@ -6,14 +6,14 @@ diff -urN u-boot-1.1.4.old/tools/ubparams.c u-boot-1.1.4/tools/ubparams.c
        "stdout=serial\0"
        "stderr=serial\0"
 -      "partitions=mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data)\0"
--      "fbargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
--      "rdba=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
-+      "fbargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
-+      "rdba=setenv bootargs root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
+-      "fbargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro console=/dev/ttyS0,115200,mem=32M\0"
+-      "rdba=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 console=/dev/ttyS0,115200,mem=32M\0"
++      "fbargs=setenv bootargs root=/dev/mtdblock3 ro console=/dev/ttyS0,115200,mem=32M\0"
++      "rdba=setenv bootargs root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 console=/dev/ttyS0,115200,mem=32M\0"
        "rdram=run rdba; tftp 21000000 vImage; tftp 21200000 root.squashfs; bootm 21000000\0"
        "flash=run fbargs; bootm 0xc0042000\0"
--      "bootargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
-+      "bootargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
+-      "bootargs=setenv bootargs mtdparts=AT45DB642.spi0:132k(bootloader),33k(ubparams),99k(spare),1056k(linux),2112k(rootfs),33k(nvram),-(rootfs_data) root=/dev/mtdblock4 ro console=/dev/ttyS0,115200,mem=32M\0"
++      "bootargs=setenv bootargs root=/dev/mtdblock3 ro console=/dev/ttyS0,115200,mem=32M\0"
        "bootcmd=bootm 0xc0042000\0"
        "ethaddr=00:30:49:00:00:01\0"
        "ipaddr=10.0.1.73\0"
index 11ff2a39cb44ff310c4b1301207e9b028ece4523..5f42209238f0239e323c2752bcdbfbe9b6ca0a12 100644 (file)
@@ -12,7 +12,7 @@
 --- u-boot-1.1.4.old/tools/ubparams.c  2007-06-13 13:35:59.000000000 +0200
 +++ u-boot-1.1.4/tools/ubparams.c      2007-06-14 15:31:55.000000000 +0200
 @@ -44,8 +44,8 @@
-       "bootargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
+       "bootargs=setenv bootargs root=/dev/mtdblock3 ro console=/dev/ttyS0,115200,mem=32M\0"
        "bootcmd=bootm 0xc0042000\0"
        "ethaddr=00:30:49:00:00:01\0"
 -      "ipaddr=10.0.1.73\0"
index f6d0a1b191bcf46fb9f7a85257e2daaea7408b54..26f03474e196236c01c257deed20d6e901cb2195 100644 (file)
@@ -2,10 +2,10 @@
 +++ u-boot-1.1.4/tools/ubparams.c      2007-06-19 14:25:05.000000000 +0200
 @@ -39,7 +39,7 @@
        "stderr=serial\0"
-       "fbargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
-       "rdba=setenv bootargs root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
+       "fbargs=setenv bootargs root=/dev/mtdblock3 ro console=/dev/ttyS0,115200,mem=32M\0"
+       "rdba=setenv bootargs root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 console=/dev/ttyS0,115200,mem=32M\0"
 -      "rdram=run rdba; tftp 21000000 vImage; tftp 21200000 root.squashfs; bootm 21000000\0"
 +      "rdram=run rdba; tftp 21000000 uImage; tftp 21200000 root.squashfs; bootm 21000000\0"
        "flash=run fbargs; bootm 0xc0042000\0"
-       "bootargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
+       "bootargs=setenv bootargs root=/dev/mtdblock3 ro console=/dev/ttyS0,115200,mem=32M\0"
        "bootcmd=bootm 0xc0042000\0"
index 7e8ea0eb2d947cd552834bc3b4426dbc4d12bd20..edc5b2cdbd2578824ad02cd24eb755cb2d50b2f2 100644 (file)
@@ -46,11 +46,11 @@ static char *environment[] = {
        "stdin=serial\0"
        "stdout=serial\0"
        "stderr=serial\0"
-       "fbargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
-       "rdba=setenv bootargs root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
+       "fbargs=setenv bootargs root=/dev/mtdblock3 ro console=/dev/ttyS0,115200,mem=32M\0"
+       "rdba=setenv bootargs root=/dev/ram rw initrd=0x21200000,6000000 ramdisk_size=20000 console=/dev/ttyS0,115200,mem=32M\0"
        "rdram=run rdba; tftp 21000000 uImage; tftp 21200000 root.squashfs; bootm 21000000\0"
        "flash=run fbargs; bootm 0xc0042000\0"
-       "bootargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
+       "bootargs=setenv bootargs root=/dev/mtdblock3 ro console=/dev/ttyS0,115200,mem=32M\0"
        "bootcmd=bootm 0xc0042000\0"
        "ipaddr=" MK_STR(LAN_IP) "\0"
        "serverip=" MK_STR(LAN_SERVERIP) "\0"
index 39382670848e3819a0912908ae0767e8401d47d0..a157dafc9d2b22a0f557cebf41794b24b2e01f80 100644 (file)
@@ -19,7 +19,7 @@ CONFIG_BASE_SMALL=0
 CONFIG_BITREVERSE=y
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2"
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index 5a27eda41f0aec20d48471be4b38d9cb04c8d97e..2b3ddb65c8831416a753c74cd99911edf09dc3d1 100644 (file)
@@ -14,7 +14,7 @@ CONFIG_BASE_SMALL=0
 CONFIG_BITREVERSE=y
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock0 rootfstype=squashfs,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock0 rootfstype=squashfs,jffs2"
 # CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index 6dc238c3952f57d70873de25ec5ba70632baef41..a3623adfe090b43a61473c8ef2211b9b0a1b32f4 100644 (file)
@@ -15,7 +15,7 @@ CONFIG_BITREVERSE=y
 CONFIG_CEVT_R4K=y
 # CONFIG_CFG80211 is not set
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock0 rootfstype=squashfs,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock0 rootfstype=squashfs,jffs2"
 # CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index a47339c14cb507a59cb99f1a1be3d6464da9a862..9858c2f07da520b0049a5af95a8a6f86c40815fa 100644 (file)
@@ -20,7 +20,7 @@ CONFIG_BITREVERSE=y
 CONFIG_CEVT_R4K=y
 CONFIG_CFE=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index aab9271c88e466d03e46140b6bd5defcd2d83714..fb72aa26b7c139685bd473f69f2bbe2436d7f7c1 100644 (file)
@@ -27,7 +27,7 @@ CONFIG_BOARD_BCM963XX=y
 CONFIG_BSD_PROCESS_ACCT_V3=y
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index 560ec7361bbaaa1eea42eb1c1e4472570a2fd96f..5472f6850f2c0ad47083cdf6f48043ed73102b4a 100644 (file)
@@ -44,7 +44,7 @@ CONFIG_CAVIUM_OCTEON_SPECIFIC_OPTIONS=y
 CONFIG_CEVT_R4K=y
 CONFIG_CEVT_R4K_LIB=y
 # CONFIG_CGROUP_SCHED is not set
-CONFIG_CMDLINE="console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,115200"
 # CONFIG_COMEDI is not set
 CONFIG_COMPAT=y
 CONFIG_COMPAT_BRK=y
index 5ccd9c7f11299b2dbb5876919189870e936867a2..5fbefec145363736664d9a99b586d9b327df9d4b 100644 (file)
@@ -1,2 +1,2 @@
-CONFIG_CMDLINE="console=ttyS0,115200 init=/etc/preinit numcores=16"
+CONFIG_CMDLINE="console=ttyS0,115200 numcores=16"
 CONFIG_CAVIUM_OCTEON_SIMULATOR=y
index d287655dd552f7571fff94da970cbdae55c8fc3d..2f59494d412e073e3de6d1e5f8446e9901e6f9fc 100644 (file)
@@ -14,7 +14,7 @@ CONFIG_ETRAX100LX_V2=y
 CONFIG_ETRAX_ARCH_V10=y
 # CONFIG_ETRAX_ARCH_V32 is not set
 CONFIG_ETRAX_AXISFLASHMAP=y
-CONFIG_ETRAX_CMDLINE="root=/dev/mtdblock1 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200"
+CONFIG_ETRAX_CMDLINE="root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_ETRAX_CSP0_LEDS is not set
 # CONFIG_ETRAX_DEBUG_PORT0 is not set
 # CONFIG_ETRAX_DEBUG_PORT1 is not set
index 054793f91a5c87635c45f2ccd37c0fb58bd6e6ea..328d2ab6c33e542cab41ea2ef31574721e381465 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_ETRAX100LX_V2=y
 CONFIG_ETRAX_ARCH_V10=y
 # CONFIG_ETRAX_ARCH_V32 is not set
 CONFIG_ETRAX_AXISFLASHMAP=y
-CONFIG_ETRAX_CMDLINE="root=/dev/mtdblock1 rootfstype=jffs2 init=/etc/preinit noinitrd console=ttyS0,115200"
+CONFIG_ETRAX_CMDLINE="root=/dev/mtdblock1 rootfstype=jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_ETRAX_CSP0_LEDS is not set
 # CONFIG_ETRAX_DEBUG_PORT0 is not set
 # CONFIG_ETRAX_DEBUG_PORT1 is not set
index 8f4c18288c51b2150224ba4cff4167d8d9050562..d6010cdb161a9ed5e68d29ca4786c4999ec316bb 100644 (file)
@@ -61,7 +61,7 @@ CONFIG_BITREVERSE=y
 CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
 # CONFIG_BOOT_PRINTK_DELAY is not set
 # CONFIG_BOOT_TRACER is not set
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,19200 init=/etc/preinit mem=32M"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,19200 mem=32M"
 CONFIG_COMPAT_NET_DEV_OPS=y
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32v4=y
diff --git a/target/linux/generic-2.6/patches-2.6.21/999-use_preinit_as_init.patch b/target/linux/generic-2.6/patches-2.6.21/999-use_preinit_as_init.patch
new file mode 100644 (file)
index 0000000..e38dfac
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/init/main.c
++++ b/init/main.c
+@@ -764,10 +764,7 @@ static int noinline init_post(void)
+               printk(KERN_WARNING "Failed to execute %s.  Attempting "
+                                       "defaults...\n", execute_command);
+       }
+-      run_init_process("/sbin/init");
+-      run_init_process("/etc/init");
+-      run_init_process("/bin/init");
+-      run_init_process("/bin/sh");
++      run_init_process("/etc/preinit");
+       panic("No init found.  Try passing init= option to kernel.");
+ }
diff --git a/target/linux/generic-2.6/patches-2.6.23/999-use_preinit_as_init.patch b/target/linux/generic-2.6/patches-2.6.23/999-use_preinit_as_init.patch
new file mode 100644 (file)
index 0000000..afb8ade
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/init/main.c
++++ b/init/main.c
+@@ -802,10 +802,7 @@ static int noinline init_post(void)
+               printk(KERN_WARNING "Failed to execute %s.  Attempting "
+                                       "defaults...\n", execute_command);
+       }
+-      run_init_process("/sbin/init");
+-      run_init_process("/etc/init");
+-      run_init_process("/bin/init");
+-      run_init_process("/bin/sh");
++      run_init_process("/etc/preinit");
+       panic("No init found.  Try passing init= option to kernel.");
+ }
diff --git a/target/linux/generic-2.6/patches-2.6.25/999-use_preinit_as_init.patch b/target/linux/generic-2.6/patches-2.6.25/999-use_preinit_as_init.patch
new file mode 100644 (file)
index 0000000..d61546d
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/init/main.c
++++ b/init/main.c
+@@ -797,10 +797,7 @@ static int noinline init_post(void)
+               printk(KERN_WARNING "Failed to execute %s.  Attempting "
+                                       "defaults...\n", execute_command);
+       }
+-      run_init_process("/sbin/init");
+-      run_init_process("/etc/init");
+-      run_init_process("/bin/init");
+-      run_init_process("/bin/sh");
++      run_init_process("/etc/preinit");
+       panic("No init found.  Try passing init= option to kernel.");
+ }
diff --git a/target/linux/generic-2.6/patches-2.6.27/999-use_preinit_as_init.patch b/target/linux/generic-2.6/patches-2.6.27/999-use_preinit_as_init.patch
new file mode 100644 (file)
index 0000000..ab10403
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/init/main.c
++++ b/init/main.c
+@@ -825,10 +825,7 @@ static int noinline init_post(void)
+               printk(KERN_WARNING "Failed to execute %s.  Attempting "
+                                       "defaults...\n", execute_command);
+       }
+-      run_init_process("/sbin/init");
+-      run_init_process("/etc/init");
+-      run_init_process("/bin/init");
+-      run_init_process("/bin/sh");
++      run_init_process("/etc/preinit");
+       panic("No init found.  Try passing init= option to kernel.");
+ }
diff --git a/target/linux/generic-2.6/patches-2.6.28/999-use_preinit_as_init.patch b/target/linux/generic-2.6/patches-2.6.28/999-use_preinit_as_init.patch
new file mode 100644 (file)
index 0000000..ab10403
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/init/main.c
++++ b/init/main.c
+@@ -825,10 +825,7 @@ static int noinline init_post(void)
+               printk(KERN_WARNING "Failed to execute %s.  Attempting "
+                                       "defaults...\n", execute_command);
+       }
+-      run_init_process("/sbin/init");
+-      run_init_process("/etc/init");
+-      run_init_process("/bin/init");
+-      run_init_process("/bin/sh");
++      run_init_process("/etc/preinit");
+       panic("No init found.  Try passing init= option to kernel.");
+ }
diff --git a/target/linux/generic-2.6/patches-2.6.29/999-use_preinit_as_init.patch b/target/linux/generic-2.6/patches-2.6.29/999-use_preinit_as_init.patch
new file mode 100644 (file)
index 0000000..bcfc6bb
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/init/main.c
++++ b/init/main.c
+@@ -821,10 +821,7 @@ static noinline int init_post(void)
+               printk(KERN_WARNING "Failed to execute %s.  Attempting "
+                                       "defaults...\n", execute_command);
+       }
+-      run_init_process("/sbin/init");
+-      run_init_process("/etc/init");
+-      run_init_process("/bin/init");
+-      run_init_process("/bin/sh");
++      run_init_process("/etc/preinit");
+       panic("No init found.  Try passing init= option to kernel.");
+ }
diff --git a/target/linux/generic-2.6/patches-2.6.30/999-use_preinit_as_init.patch b/target/linux/generic-2.6/patches-2.6.30/999-use_preinit_as_init.patch
new file mode 100644 (file)
index 0000000..0a52a87
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/init/main.c
++++ b/init/main.c
+@@ -836,10 +836,7 @@ static noinline int init_post(void)
+               printk(KERN_WARNING "Failed to execute %s.  Attempting "
+                                       "defaults...\n", execute_command);
+       }
+-      run_init_process("/sbin/init");
+-      run_init_process("/etc/init");
+-      run_init_process("/bin/init");
+-      run_init_process("/bin/sh");
++      run_init_process("/etc/preinit");
+       panic("No init found.  Try passing init= option to kernel.");
+ }
index 0f7a1d26d1b4da2d2ae5a331647a8d774c78920d..d4f576be0118b4341c45656ac32ab2ac029d402a 100644 (file)
@@ -14,7 +14,7 @@ CONFIG_BITREVERSE=y
 # CONFIG_BT is not set
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2"
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index e5eabb1c4727c847dc9b0d884e99cf7fadbbb36f..4e114543bb398466444c18502ad117d0350d9018 100644 (file)
@@ -14,7 +14,7 @@ CONFIG_BITREVERSE=y
 # CONFIG_BT is not set
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2"
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index 3a13fdb2fcfdb760c5910cb8dcf7c03f2daa3902..75dd6d5b5a8ed7bc40ccaa473672e5f7e634d5f6 100644 (file)
@@ -12,7 +12,7 @@ CONFIG_BASE_SMALL=0
 CONFIG_BITREVERSE=y
 CONFIG_CEVT_R4K=y
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2"
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
index 9fbd4e457edf580a1f005c3ab7df26ec3d08b6c4..efd472fb0eb314cfc0526de2b68fa0b3c806df1f 100644 (file)
@@ -127,7 +127,7 @@ void __init prom_init(void)
                }
                if (!*arcs_cmdline)
                        strcpy(&(arcs_cmdline[0]),
-                               "console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit");
+                               "console=ttyS0,115200 rootfstype=squashfs,jffs2");
        }
        envp = (char **)KSEG1ADDR((unsigned long)envp);
        while (*envp) {
index bd8044f6dc7c16246165361b7592a67f87206ed3..c85d757cb83aea0e19eb006ac561edaa249fa20d 100644 (file)
@@ -67,7 +67,7 @@ CONFIG_BOUNCE=y
 # CONFIG_BT is not set
 # CONFIG_CIFS_STATS is not set
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
 CONFIG_CPU_32v5=y
index 7e2e50a2e9c15fa54cbb6cdc15d1f14d8660a808..8a8261bd9b7b220f7fad3ebb6f5e93f87eecd0f6 100644 (file)
@@ -70,7 +70,7 @@ CONFIG_BOUNCE=y
 # CONFIG_BSD_DISKLABEL is not set
 # CONFIG_CIFS_STATS is not set
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
 CONFIG_CPU_32v5=y
index bbfaff8f4e6d3b2ff8432b3c27cd4a3c63749e25..17ab7af5c39d323fc44f92c6a73289e57c38fcef 100644 (file)
@@ -71,7 +71,7 @@ CONFIG_BOUNCE=y
 # CONFIG_BSD_DISKLABEL is not set
 # CONFIG_CIFS_STATS is not set
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
 CONFIG_CPU_32v5=y
index aa42ea3298d90c7c37c00549e3f0c1dd2cd48772..1c8082e7b3bd2fe7b280f45a483f3850218a04d6 100644 (file)
@@ -58,7 +58,7 @@ CONFIG_ARM=y
 CONFIG_BASE_SMALL=0
 CONFIG_BITREVERSE=y
 CONFIG_BOUNCE=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 CONFIG_COMPAT_NET_DEV_OPS=y
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
index 2bc5997504eb5eed7d80f09b0c04b7207896f7a4..81a7fa0dafab63b5d40294d64d383dce34485f93 100644 (file)
@@ -60,7 +60,7 @@ CONFIG_ARM=y
 CONFIG_BASE_SMALL=0
 CONFIG_BITREVERSE=y
 CONFIG_BOUNCE=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 CONFIG_COMPAT_NET_DEV_OPS=y
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
index 5d7595db022d49cafc820a6d973076b8ebcc6345..110a9adf660c608fc2e0a578b13e5b0cc4e4cd60 100644 (file)
@@ -68,7 +68,7 @@ CONFIG_BOUNCE=y
 # CONFIG_BSD_DISKLABEL is not set
 # CONFIG_CIFS_STATS is not set
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
 CONFIG_CPU_32v5=y
index 1bdc887f9e1dd065f42306113676a3e7dff141da..35a896380d2cab170120496f115c33fc3ffea3e3 100644 (file)
@@ -58,7 +58,7 @@ CONFIG_BASE_SMALL=0
 CONFIG_BITREVERSE=y
 CONFIG_CACHE_FEROCEON_L2=y
 # CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH is not set
-CONFIG_CMDLINE="root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 CONFIG_COMPAT_NET_DEV_OPS=y
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
index 4945022ba7fddd2e1f6195af0d18cd8afe89b8eb..eb1bedd0a05707d2d420e39e376c45e81d0aeea0 100644 (file)
@@ -15,19 +15,19 @@ ROOTDELAY=5
 
 ifeq ($(CONFIG_OLPC_BOOTSCRIPT_IMAGES),y)
   define Image/cmdline/squashfs
-    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=squashfs init=/etc/preinit rootdelay=$(ROOTDELAY)
+    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=squashfs rootdelay=$(ROOTDELAY)
   endef
 
   define Image/cmdline/jffs2-64k
-    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=jffs2 init=/etc/preinit rootdelay=$(ROOTDELAY)
+    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=jffs2 rootdelay=$(ROOTDELAY)
   endef
 
   define Image/cmdline/jffs2-128k
-    block2mtd.block2mtd=$(ROOTPART),131072,rootfs root=/dev/mtdblock0 rootfstype=jffs2 init=/etc/preinit rootdelay=$(ROOTDELAY)
+    block2mtd.block2mtd=$(ROOTPART),131072,rootfs root=/dev/mtdblock0 rootfstype=jffs2 rootdelay=$(ROOTDELAY)
   endef
 
   define Image/cmdline/ext2
-    root=$(ROOTPART) rootfstype=ext2 init=/etc/preinit
+    root=$(ROOTPART) rootfstype=ext2
   endef
 
   define Image/Build/bootscript
index 35dc44f8a3b4f1a74720a5ecc21b53e0bbe97841..68d39d6e25f303f80f76d4816ca8c719ce396444 100644 (file)
@@ -67,7 +67,7 @@ CONFIG_BOUNCE=y
 # CONFIG_BT is not set
 # CONFIG_CIFS_STATS is not set
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200"
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
 CONFIG_CPU_32v5=y
index 912a10fe22b52a9d26e7420d9e66eda51b149900..a4beb3574e41a1263162e86edc6e251e263f369c 100644 (file)
@@ -23,7 +23,7 @@ CONFIG_BITREVERSE=y
 CONFIG_BOUNCE=y
 # CONFIG_BT is not set
 CONFIG_CLASSIC_RCU=y
-CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd"
 CONFIG_CMDLINE_BOOL=y
 CONFIG_CONSISTENT_SIZE=0x00200000
 CONFIG_CONSISTENT_START=0xff100000
index e313119e4c076104761da3ee46ec74f7062cee8c..da0a1741e7701c9533b44049c0aae7c4e8ba838d 100644 (file)
@@ -19,7 +19,7 @@ CONFIG_BOOKE=y
 # CONFIG_BOOKE_WDT is not set
 CONFIG_BOOT_LOAD=0x01000000
 # CONFIG_BT is not set
-CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd"
 CONFIG_CMDLINE_BOOL=y
 CONFIG_CONSISTENT_SIZE=0x00200000
 CONFIG_CONSISTENT_START=0xff100000
index 3c1a7570a6440cd168a9d325b629c37b066b5765..e61943014ca3e054f140620e27dd7bcebec178d3 100644 (file)
@@ -4,6 +4,6 @@
  
        chosen {
                linux,stdout-path = "/plb/opb/serial@40000300";
-+              bootargs = "console=ttyS1,115200 root=/dev/mtdblock1 rootfstype=squashfs noinitrd init=/etc/preinit";
++              bootargs = "console=ttyS1,115200 root=/dev/mtdblock1 rootfstype=squashfs noinitrd";
        };
  };
index 5b838dbbb97ed8735622e2269d0aa98ca603474b..60542de1e19152c4f231f71abf4cb4d6e037298f 100755 (executable)
@@ -45,7 +45,7 @@ mount -t yaffs2 "$boot" /tmp/cf2nand/p1
 mount -t yaffs2 "$main" /tmp/cf2nand/p2
 
 echo "Copying kernel..."
-copy_kernel /dev/cfa1 /tmp/cf2nand/p1/kernel "root=/dev/mtdblock1 rootfstype=yaffs2 init=/etc/preinit " 2>/dev/null >/dev/null
+copy_kernel /dev/cfa1 /tmp/cf2nand/p1/kernel "root=/dev/mtdblock1 rootfstype=yaffs2 " 2>/dev/null >/dev/null
 umount /tmp/cf2nand/p1
 rmdir /tmp/cf2nand/p1
 
@@ -55,7 +55,7 @@ echo "chmod ugo+x /" > /tmp/cf2nand/p2/etc/uci-defaults/set_root_permission
 sync
 # Use kexec is present
 [ -x /usr/bin/kexec ] && {
-       kexec -l /tmp/cf2nand/p1/kernel --command-line="$(cat /proc/cmdline) root=/dev/mtdblock1 rootfstype=yaffs2 init=/etc/preinit"
+       kexec -l /tmp/cf2nand/p1/kernel --command-line="$(cat /proc/cmdline) root=/dev/mtdblock1 rootfstype=yaffs2"
        kexec -e
 }
 umount /tmp/cf2nand/p2
index b0f4205e78ba594481b0aaa1cca6adf43fa065c8..57f4128642d9539ae7cff7e39787d32eb8ad3145 100755 (executable)
@@ -57,7 +57,7 @@ ls /tmp/wget2nand-boot/
 ls /tmp/wget2nand/
 # use kexec if present
 [ -x /usr/bin/kexec ] && {
-       kexec -l /tmp/wget2nand-boot/kernel --command-line="$(cat /proc/cmdline) root=$main rootfstype=yaffs2 init=/etc/preinit"
+       kexec -l /tmp/wget2nand-boot/kernel --command-line="$(cat /proc/cmdline) root=$main rootfstype=yaffs2"
        kexec -e
 }
 
index 9d0857dec84c9ae10b27119ac2063742149624be..9f1ec23057e476479212333716a6f072abc0f6b7 100644 (file)
@@ -34,23 +34,23 @@ define Image/BuildKernel
 endef
 
 define Image/cmdline/jffs2-64k
-block2mtd.block2mtd=/dev/sda2,65536 root=/dev/mtdblock0 rootfstype=jffs2 init=/etc/preinit
+block2mtd.block2mtd=/dev/sda2,65536 root=/dev/mtdblock0 rootfstype=jffs2
 endef
 
 define Image/cmdline/jffs2-128k
-block2mtd.block2mtd=/dev/sda2,131072 root=/dev/mtdblock0 rootfstype=jffs2 init=/etc/preinit
+block2mtd.block2mtd=/dev/sda2,131072 root=/dev/mtdblock0 rootfstype=jffs2
 endef
 
 define Image/cmdline/ext2
-root=/dev/sda2 rootfstype=ext2 init=/etc/preinit
+root=/dev/sda2 rootfstype=ext2
 endef
 
 define Image/cmdline/squashfs
-block2mtd.block2mtd=/dev/sda2,65536 root=/dev/mtdblock0 rootfstype=squashfs init=/etc/preinit
+block2mtd.block2mtd=/dev/sda2,65536 root=/dev/mtdblock0 rootfstype=squashfs
 endef
 
 define Image/cmdline/yaffs2
-root=/dev/mtdblock1 rootfstype=yaffs2 init=/etc/preinit
+root=/dev/mtdblock1 rootfstype=yaffs2
 endef
 
 define Image/Build
index dac461ff8149c20fba581284923e703e49cbab2f..6539e9c3402e494897a83faa9c5d971756e1b0af 100644 (file)
@@ -32,7 +32,7 @@ CONFIG_BLK_DEV_RAM_SIZE=4096
 CONFIG_BOUNCE=y
 CONFIG_CLASSIC_RCU=y
 CONFIG_CLOCKSOURCE_WATCHDOG=y
-CONFIG_CMDLINE="console=ttyS0,38400 init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,38400"
 CONFIG_CMDLINE_BOOL=y
 # CONFIG_CMDLINE_OVERRIDE is not set
 # CONFIG_COMPAT_VDSO is not set
diff --git a/target/linux/s3c24xx/patches-2.6.28/002-call-preinit-instead-of-init.patch b/target/linux/s3c24xx/patches-2.6.28/002-call-preinit-instead-of-init.patch
deleted file mode 100644 (file)
index 8ab3a5c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/init/main.c
-+++ b/init/main.c
-@@ -825,6 +825,7 @@ static int noinline init_post(void)
-               printk(KERN_WARNING "Failed to execute %s.  Attempting "
-                                       "defaults...\n", execute_command);
-       }
-+      run_init_process("/etc/preinit");
-       run_init_process("/sbin/init");
-       run_init_process("/etc/init");
-       run_init_process("/bin/init");
diff --git a/target/linux/s3c24xx/patches-2.6.29/002-call-preinit-instead-of-init.patch b/target/linux/s3c24xx/patches-2.6.29/002-call-preinit-instead-of-init.patch
deleted file mode 100644 (file)
index 8ab3a5c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/init/main.c
-+++ b/init/main.c
-@@ -825,6 +825,7 @@ static int noinline init_post(void)
-               printk(KERN_WARNING "Failed to execute %s.  Attempting "
-                                       "defaults...\n", execute_command);
-       }
-+      run_init_process("/etc/preinit");
-       run_init_process("/sbin/init");
-       run_init_process("/etc/init");
-       run_init_process("/bin/init");
index e2503fae14e84ab49ab3bb11cc349e63a64c5bc7..ccc8a79687f15fd0348e2298091b766e337ee882 100644 (file)
@@ -27,7 +27,7 @@ CONFIG_CFE=y
 CONFIG_CLASSIC_RCU=y
 # CONFIG_CLS_U32_MARK is not set
 # CONFIG_CLS_U32_PERF is not set
-CONFIG_CMDLINE="rootfstype=squashfs,yaffs,jffs2 noinitrd console=duart0,115200 init=/etc/preinit"
+CONFIG_CMDLINE="rootfstype=squashfs,jffs2 noinitrd console=duart0,115200"
 CONFIG_COMPAT=y
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CONNECTOR=m
index e98fe781ed0b2755942860f032f8365475e14a8b..9a59d098923843e8fca1c49caa5f9c4ba72feea3 100644 (file)
@@ -54,7 +54,7 @@ CONFIG_BOUNCE=y
 # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
 # CONFIG_CIFS is not set
 # CONFIG_CLS_U32_PERF is not set
-CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,19200 init=/etc/preinit mem=32M loglevel=8"
+CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,19200 mem=32M"
 # CONFIG_CONFIGFS_FS is not set
 CONFIG_CPU_32=y
 CONFIG_CPU_32v4=y
index 2ef27a374f0c1076810a7f5d12f06270fc7e06b6..5a33d9199e022695277936e11ddb6a7b455106f2 100644 (file)
@@ -17,7 +17,7 @@ build it all
 In your bin directory you will find a kernel and an ext2 root file system
 when it's finished.  Just run it like this:-
 
-bin/openwrt-uml-vmlinux ubd0=bin/openwrt-uml-ext2.img con=null ssl=null ssl0=fd:0,fd:1 con0=null,fd:2 init=/etc/preinit
+bin/openwrt-uml-vmlinux ubd0=bin/openwrt-uml-ext2.img con=null ssl=null ssl0=fd:0,fd:1 con0=null,fd:2
 
 The uml will start, and eventually the serial console of the uml will be at your
 console prompt.  If you would like it in xterms, substitute con=xterm and con0=xterm.
index e64fa19925614e6f791fca61453f698c7eb3ef13..6d3c77b77d6bc7b45f9cc0ed3ea65208d971e7d9 100644 (file)
@@ -16,19 +16,19 @@ ROOTPART=$(strip $(subst ",, $(CONFIG_X86_GRUB_ROOTPART)))
 ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
 ifneq ($(HOST_OS),Darwin)
   define Image/cmdline/squashfs
-    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=squashfs init=/etc/preinit
+    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=squashfs
   endef
 
   define Image/cmdline/jffs2-64k
-    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=jffs2 init=/etc/preinit
+    block2mtd.block2mtd=$(ROOTPART),65536,rootfs root=/dev/mtdblock0 rootfstype=jffs2
   endef
 
   define Image/cmdline/jffs2-128k
-    block2mtd.block2mtd=$(ROOTPART),131072,rootfs root=/dev/mtdblock0 rootfstype=jffs2 init=/etc/preinit
+    block2mtd.block2mtd=$(ROOTPART),131072,rootfs root=/dev/mtdblock0 rootfstype=jffs2
   endef
 
   define Image/cmdline/ext2
-    root=$(ROOTPART) rootfstype=ext2 init=/etc/preinit
+    root=$(ROOTPART) rootfstype=ext2
   endef
   
   define Image/Build/grub