diff options
Diffstat (limited to 'target/lemote')
-rw-r--r-- | target/lemote/Makefile | 43 | ||||
-rw-r--r-- | target/lemote/files/boot/boot.cfg | 6 | ||||
-rw-r--r-- | target/lemote/files/etc/inittab | 7 | ||||
-rw-r--r-- | target/lemote/files/etc/network/interfaces | 13 | ||||
-rw-r--r-- | target/lemote/files/etc/tmpfs | 1 | ||||
-rw-r--r-- | target/lemote/kernel.config | 8 |
6 files changed, 49 insertions, 29 deletions
diff --git a/target/lemote/Makefile b/target/lemote/Makefile index 59e2b84b1..40b19b19c 100644 --- a/target/lemote/Makefile +++ b/target/lemote/Makefile @@ -7,8 +7,7 @@ include $(TOPDIR)/mk/modules.mk include $(TOPDIR)/mk/kernel-build.mk include $(TOPDIR)/mk/image.mk -kernel-install: - @cp $(LINUX_DIR)/vmlinuz $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel +KERNEL:=$(LINUX_DIR)/vmlinuz createinitcrypt: $(SED) 's#^CONFIG_INITRAMFS_SOURCE.*#CONFIG_INITRAMFS_SOURCE="./initramfs_list"#' $(LINUX_DIR)/.config @@ -18,17 +17,34 @@ createinitcrypt: CC="$(TARGET_CC)" oldconfig $(MAKE_TRACE) $(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \ CC="$(TARGET_CC)" $(MAKE_TRACE) - @cp $(LINUX_DIR)/vmlinuz $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel + @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel ifeq ($(FS),nfsroot) imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL) + @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel' @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}' @echo 'Boot your lemote and type following commands in PMON:' @echo 'PMON> ifaddr rtl0 <ip-address-client>' @echo 'PMON> load tftp://<ip-address-server>/${ADK_TARGET}-${FS}-kernel' @echo 'PMON> g' - @echo 'Login as user root with password linux123 via ssh or console' +endif +ifeq ($(FS),initramfs) +imageinstall: $(BIN_DIR)/$(INITRAMFS) + @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel + @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel' + @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}' +endif +ifeq ($(FS),initramfs-piggyback) +imageinstall: $(BUILD_DIR)/$(INITRAMFS_PIGGYBACK) createinitramfs + @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel + @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel' +endif +ifeq ($(FS),archive) +imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL) + @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel + @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel' + @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)" endif ifeq ($(FS),encrypted) imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL) createinitcrypt @@ -57,23 +73,4 @@ imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL) createinitcrypt @echo 'Move boot.cfg to /mnt/boot/boot' @echo 'mv /mnt/root/boot/boot.cfg /mnt/boot/boot' @echo 'cd /mnt/root ; mknod -m 644 console c 5 1' - @echo 'Login as user root with password linux123 via ssh or console' -endif -ifeq ($(FS),initramfs) -imageinstall: $(BIN_DIR)/$(INITRAMFS) - @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel' - @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}' - @echo 'Login as user root with password linux123 via ssh or console' -endif -ifeq ($(FS),initramfs-piggyback) -imageinstall: $(BUILD_DIR)/$(INITRAMFS_PIGGYBACK) createinitramfs - @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel' - @echo 'Login as user root with password linux123 via ssh or console' -endif -ifeq ($(FS),archive) -imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL) - @echo - @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel' - @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)," - @echo 'Login as user root with password linux123 via ssh or console' endif diff --git a/target/lemote/files/boot/boot.cfg b/target/lemote/files/boot/boot.cfg index 2f67fe67b..dd386032b 100644 --- a/target/lemote/files/boot/boot.cfg +++ b/target/lemote/files/boot/boot.cfg @@ -1,7 +1,7 @@ -timeout 4 +timeout 3 default 0 showmenu 1 title Linux - kernel /dev/fs/ext2@wd0/boot/lemote-encrypted-kernel - args no_auto_cmd root=/dev/mapper/root resume=/dev/mapper/swap + kernel /dev/fs/ext2@wd0/boot/vmlinuz-adk + args no_auto_cmd diff --git a/target/lemote/files/etc/inittab b/target/lemote/files/etc/inittab index f14e0d568..6e32240bd 100644 --- a/target/lemote/files/etc/inittab +++ b/target/lemote/files/etc/inittab @@ -1,3 +1,10 @@ ::sysinit:/etc/init.d/rcS ::shutdown:/etc/init.d/rcK tty1::respawn:/sbin/getty -i -L tty1 115200 vt100 +tty2::respawn:/sbin/getty -i -L tty2 115200 vt100 +tty3::respawn:/sbin/getty -i -L tty3 115200 vt100 +tty4::respawn:/sbin/getty -i -L tty4 115200 vt100 +tty5::respawn:/sbin/getty -i -L tty5 115200 vt100 +tty6::respawn:/sbin/getty -i -L tty6 115200 vt100 +tty7::respawn:/sbin/getty -i -L tty7 115200 vt100 +tty11::respawn:/sbin/logread -f diff --git a/target/lemote/files/etc/network/interfaces b/target/lemote/files/etc/network/interfaces new file mode 100644 index 000000000..3abd272d8 --- /dev/null +++ b/target/lemote/files/etc/network/interfaces @@ -0,0 +1,13 @@ +auto lo +iface lo inet loopback + +# wlan example +#auto wlan0 +#iface wlan0 inet dhcp +# wireless-extension 1 +# wireless-mode sta +# wireless-channel 1 +# wireless-ssid openadk +# wireless-security wpa2 +# wireless-passphrase openadk123 + diff --git a/target/lemote/files/etc/tmpfs b/target/lemote/files/etc/tmpfs new file mode 100644 index 000000000..08558e471 --- /dev/null +++ b/target/lemote/files/etc/tmpfs @@ -0,0 +1 @@ +16384 diff --git a/target/lemote/kernel.config b/target/lemote/kernel.config index c109120a0..21df7a57a 100644 --- a/target/lemote/kernel.config +++ b/target/lemote/kernel.config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.34 -# Fri May 28 12:08:04 2010 +# Thu Jun 3 15:37:40 2010 # CONFIG_MIPS=y @@ -108,7 +108,9 @@ CONFIG_CPU_LOONGSON2F=y # CONFIG_CPU_RM9000 is not set # CONFIG_CPU_SB1 is not set # CONFIG_CPU_CAVIUM_OCTEON is not set -# CONFIG_CPU_LOONGSON2F_WORKAROUNDS is not set +CONFIG_CPU_NOP_WORKAROUNDS=y +CONFIG_CPU_JUMP_WORKAROUNDS=y +CONFIG_CPU_LOONGSON2F_WORKAROUNDS=y CONFIG_SYS_SUPPORTS_ZBOOT=y CONFIG_SYS_SUPPORTS_ZBOOT_UART16550=y CONFIG_CPU_LOONGSON2=y @@ -1386,7 +1388,7 @@ CONFIG_HAVE_ARCH_KGDB=y CONFIG_EARLY_PRINTK=y CONFIG_CMDLINE_BOOL=y CONFIG_CMDLINE="console=tty0 init=/init no_auto_cmd" -CONFIG_CMDLINE_OVERRIDE=y +# CONFIG_CMDLINE_OVERRIDE is not set # # Security options |