summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2010-09-20 17:06:13 -0700
committerBrian Swetland <swetland@google.com>2010-09-20 17:35:50 -0700
commit921f0de3d7680ec242fd56b9fae27f17ed7bf49c (patch)
tree3bb0ae0f3290daf063640b3a070d1de403659a40
parent96323f74bc43a2a85043c030f5f19fff39ee3fc3 (diff)
downloaddevice_samsung_crespo-921f0de3d7680ec242fd56b9fae27f17ed7bf49c.zip
device_samsung_crespo-921f0de3d7680ec242fd56b9fae27f17ed7bf49c.tar.gz
device_samsung_crespo-921f0de3d7680ec242fd56b9fae27f17ed7bf49c.tar.bz2
new GPT world, switch to JI6 bootloader
- require JI6 bootloader and JI4 radio - machine name is now "herring" - filesystems now mounted by name - setup_fs can now deal with name aliases for devices - kernel updated as below: 6ab2f34 S5PC11X: Fix compile error related sd/mmc platdata of herring f149eab S5PC11X: BATTERY: add gpio irq information at max8998 i2c device a8655ff S5PC11X: FIMC: Update fimc driver. 5d2366a S5PC11X: CONFIG: Add CONFIG_INPUT_KEYCHORD for bugreport service f44d575 S5PC11X: renamed board config file. renamed herring config from crespo and added Herring configuration 5fdbe88 S5PC11X: Add Herring configuration in board file Added configuration for Herring board 0f50abd S5PC11X: remove unused machine check code 1251f00 fs: partitions: add partition name to uevent 94dc613 ARM: crespo: defconfig: disable legacy PTYs 5a3d459 EFI/GPT: Register named partitions. cb2a888 Revert "EFI/GPT: Register named partitions." 719e7bc S5PC11X: I2C: Fix compile warnning. 60db07a S5PC11X: VIBRATOR: Add driver for Imagis ISA1000 haptic 4dce0eb ARM: crespo: defconfig: enable EFI/GPT partitions 7257dce fs: partitions: Add support for named partitions cb9d4a5 ARM: crespo: defconfig: enable DEBUG_FS Change-Id: I7be3ed0d2bf94807f40e0a21b322b49458e71e83
-rw-r--r--board-info.txt6
-rw-r--r--device.mk4
-rwxr-xr-xinit.herring.rc (renamed from init.smdkc110.rc)12
-rwxr-xr-xkernelbin2394768 -> 2397444 bytes
-rw-r--r--setup_fs.c21
-rw-r--r--ueventd.herring.rc (renamed from ueventd.smdkc110.rc)0
-rw-r--r--vold.fstab2
7 files changed, 29 insertions, 16 deletions
diff --git a/board-info.txt b/board-info.txt
index ab214a1..efc6977 100644
--- a/board-info.txt
+++ b/board-info.txt
@@ -1,3 +1,3 @@
-require board=crespo|herring
-require version-bootloader=I9020XXJI5
-require version-baseband=I9020XXJI2
+require board=herring
+require version-bootloader=I9020XXJI6
+require version-baseband=I9020XXJI4
diff --git a/device.mk b/device.mk
index 42a122f..c297752 100644
--- a/device.mk
+++ b/device.mk
@@ -49,8 +49,8 @@ PRODUCT_COPY_FILES := \
# Init files
PRODUCT_COPY_FILES += \
- device/samsung/crespo/init.smdkc110.rc:root/init.smdkc110.rc \
- device/samsung/crespo/ueventd.smdkc110.rc:root/ueventd.smdkc110.rc
+ device/samsung/crespo/init.herring.rc:root/init.herring.rc \
+ device/samsung/crespo/ueventd.herring.rc:root/ueventd.herring.rc
# Prebuilt kl keymaps
PRODUCT_COPY_FILES += \
diff --git a/init.smdkc110.rc b/init.herring.rc
index 3b2c14c..c24fd25 100755
--- a/init.smdkc110.rc
+++ b/init.herring.rc
@@ -1,8 +1,8 @@
on boot
mount debugfs /sys/kernel/debug /sys/kernel/debug
- setprop ro.build.product smdkc110
- setprop ro.product.device smdkc110
+ setprop ro.build.product herring
+ setprop ro.product.device herring
setprop ro.radio.noril yes
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
@@ -85,9 +85,9 @@ on boot
on fs
mkdir /efs 0775 radio radio
mount yaffs2 mtd@efs /efs nosuid nodev
- mount ext4 /dev/block/mmcblk0p2 /system wait ro
- mount ext4 /dev/block/mmcblk0p3 /cache wait noatime
- mount ext4 /dev/block/mmcblk0p4 /data wait noatime
+ mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro
+ mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/cache /cache wait noatime
+ mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime
# permissions for bluetooth.
chown bluetooth bluetooth ro.bt.bdaddr_path
@@ -105,7 +105,7 @@ service glgps /system/vendor/bin/gpsd/glgps_samsungJupiter -c /system/etc/jupite
group system inet
# create filesystems if necessary
-service setup_fs /system/bin/setup_fs mmcblk0p3 mmcblk0p4
+service setup_fs /system/bin/setup_fs /dev/block/platform/s3c-sdhci.0/by-name/cache /dev/block/platform/s3c-sdhci.0/by-name/userdata
user root
group root
oneshot
diff --git a/kernel b/kernel
index cbb2aa9..8948e35 100755
--- a/kernel
+++ b/kernel
Binary files differ
diff --git a/setup_fs.c b/setup_fs.c
index 74a6e71..0acf026 100644
--- a/setup_fs.c
+++ b/setup_fs.c
@@ -9,10 +9,23 @@ const char *mkfs = "/system/bin/make_ext4fs";
int setup_fs(const char *blockdev)
{
- char buf[128];
+ char buf[256], path[128];
pid_t child;
- int status;
+ int status, n;
+ /* we might be looking at an indirect reference */
+ n = readlink(blockdev, path, sizeof(path) - 1);
+ if (n > 0) {
+ path[n] = 0;
+ if (!memcmp(path, "/dev/block/", 11))
+ blockdev = path + 11;
+ }
+
+ if (strchr(blockdev,'/')) {
+ fprintf(stderr,"not a block device name: %s\n", blockdev);
+ return 0;
+ }
+
sprintf(buf,"/sys/fs/ext4/%s", blockdev);
if (access(buf, F_OK) == 0) {
fprintf(stderr,"device %s already has a filesystem\n", blockdev);
@@ -44,8 +57,8 @@ int main(int argc, char **argv)
int need_reboot = 0;
while (argc > 1) {
- if (strlen(argv[1]) > 32) continue;
- need_reboot |= setup_fs(argv[1]);
+ if (strlen(argv[1]) < 128)
+ need_reboot |= setup_fs(argv[1]);
argv++;
argc--;
}
diff --git a/ueventd.smdkc110.rc b/ueventd.herring.rc
index dff0ca3..dff0ca3 100644
--- a/ueventd.smdkc110.rc
+++ b/ueventd.herring.rc
diff --git a/vold.fstab b/vold.fstab
index 7f74e0d..f34f890 100644
--- a/vold.fstab
+++ b/vold.fstab
@@ -12,4 +12,4 @@
## <sysfs_path> - List of sysfs paths to source devices
######################
-dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0
+dev_mount sdcard /mnt/sdcard 4 /devices/platform/s3c-sdhci.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0