summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorAnas Nashif <nashif@linux.intel.com>2011-01-20 09:59:26 +0000
committerAnas Nashif <nashif@linux.intel.com>2011-01-20 09:59:26 +0000
commit431fce48b751065c7cc719b0b8ed7900bcfb94c8 (patch)
tree175973ac3368cef6a8d20a8ee16fda5348191fdd /custom
parentada5a8d291f4cdbcbdd772119887912d71a47d67 (diff)
downloadkickstarter-431fce48b751065c7cc719b0b8ed7900bcfb94c8.tar.gz
kickstarter-431fce48b751065c7cc719b0b8ed7900bcfb94c8.tar.bz2
kickstarter-431fce48b751065c7cc719b0b8ed7900bcfb94c8.zip
more fixes, enhancements
Diffstat (limited to 'custom')
-rw-r--r--custom/scripts/fstab-n900.post5
-rw-r--r--custom/scripts/inittab-n900.post3
-rw-r--r--custom/scripts/kboot.post3
-rw-r--r--custom/scripts/kernel-handset.post20
-rw-r--r--custom/scripts/serial-mfld.post4
-rw-r--r--custom/scripts/u-boot.post4
6 files changed, 39 insertions, 0 deletions
diff --git a/custom/scripts/fstab-n900.post b/custom/scripts/fstab-n900.post
new file mode 100644
index 0000000..03b6fc1
--- /dev/null
+++ b/custom/scripts/fstab-n900.post
@@ -0,0 +1,5 @@
+
+# Use eMMC swap partition as MeeGo swap as well.
+# Because of the 2nd partition is swap for the partition numbering
+# we can just change the current fstab entry to match the eMMC partition.
+sed -i 's/mmcblk0p2/mmcblk1p3/g' /etc/fstab
diff --git a/custom/scripts/inittab-n900.post b/custom/scripts/inittab-n900.post
new file mode 100644
index 0000000..4650a2f
--- /dev/null
+++ b/custom/scripts/inittab-n900.post
@@ -0,0 +1,3 @@
+
+# open serial line console for embedded system
+echo "s0:235:respawn:/sbin/agetty -L 115200 ttyS2 vt100" >> /etc/inittab
diff --git a/custom/scripts/kboot.post b/custom/scripts/kboot.post
new file mode 100644
index 0000000..d5d5183
--- /dev/null
+++ b/custom/scripts/kboot.post
@@ -0,0 +1,3 @@
+#Create Initrd if it does not exist and create symlinks for bzImage and initrd for kboot autoboot
+echo "ro pci=noearly console=tty1 console=ttyS0 console=ttyMFD2 earlyprintk=mrst loglevel=8 s0ix_latency=160" > /boot/kboot.cmdline
+
diff --git a/custom/scripts/kernel-handset.post b/custom/scripts/kernel-handset.post
new file mode 100644
index 0000000..f3805d4
--- /dev/null
+++ b/custom/scripts/kernel-handset.post
@@ -0,0 +1,20 @@
+reate Initrd if it does not exist and create symlinks for bzImage and initrd for kboot autoboot
+echo "ro pci=noearly console=tty1 console=ttyS0 console=ttyMFD2 earlyprintk=mrst loglevel=8 s0ix_latency=160" > /boot/kboot.cmdline
+
+echo "Checking for kernel......."
+Kernel_Name=`ls /boot | grep vmlinuz`
+if [ -f /boot/$Kernel_Name ]; then
+ Kernel_Ver=`echo $Kernel_Name | sed s/vmlinuz-//`
+ if [ -f /boot/initrd* ]; then
+ echo "Initrd exists" > /dev/null
+ else
+ /usr/libexec/mkmrstinitrd /boot/initrd-$Kernel_Ver.img $Kernel_Ver
+ fi
+ #Create Symlinks
+ cd /boot
+ ln -s $Kernel_Name bzImage
+ ln -s initrd-$Kernel_Ver.img initrd
+ ln -s kboot.cmdline cmdline
+else
+ echo "No Kernels were found"
+fi
diff --git a/custom/scripts/serial-mfld.post b/custom/scripts/serial-mfld.post
new file mode 100644
index 0000000..c3c62b0
--- /dev/null
+++ b/custom/scripts/serial-mfld.post
@@ -0,0 +1,4 @@
+# open serial line console for embedded system
+echo "s0:235:respawn:/sbin/agetty -L 115200 ttyS0 vt100" >> /etc/inittab
+echo "s1:235:respawn:/sbin/agetty -L 115200 ttyMFD2 vt100" >> /etc/inittab
+echo "ttyMFD2" >> /etc/securetty
diff --git a/custom/scripts/u-boot.post b/custom/scripts/u-boot.post
new file mode 100644
index 0000000..6377edc
--- /dev/null
+++ b/custom/scripts/u-boot.post
@@ -0,0 +1,4 @@
+
+
+# Create the /boot/uImage for u-boot support.
+mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n vmlinuz -d /boot/vmlinuz* /boot/uImage